代码备份

prod
anthonywj 2 years ago
parent 6e1aedd5ff
commit a97b6840e7

@ -26,4 +26,28 @@ export function deleterPrein(data) {
}); });
} }
export function getInvPreInProduct(params) {
return axios({
url: "/spms/inv/pre/in/product/filter",
method: "get",
params: params
});
}
export function getInvPreInProductDetail(params) {
return axios({
url: "/spms/inv/pre/in/product/filterDetail",
method: "get",
params: params
});
}
export function deleteInvPreInProduct(data) {
return axios({
url: "/spms/inv/pre/in/product/delete",
method: "post",
data: data
});
}

@ -1226,7 +1226,6 @@ export default {
}, },
corpTypeChange(type) { corpTypeChange(type) {
debugger
if (type != 2) { if (type != 2) {
this.inputQuery.genUnit = false this.inputQuery.genUnit = false
} }
@ -1355,7 +1354,6 @@ export default {
this.findSpecialMethod() this.findSpecialMethod()
this.selectBussinessList() this.selectBussinessList()
this.oldData = Object.assign({}, this.inputQuery) this.oldData = Object.assign({}, this.inputQuery)
debugger
if(this.inputQuery.id==null || this.inputQuery.id==''){ if(this.inputQuery.id==null || this.inputQuery.id==''){
this.inputQuery.codeFillCheck=false; this.inputQuery.codeFillCheck=false;
this.inputQuery.preInBack=false; this.inputQuery.preInBack=false;

@ -16,13 +16,13 @@
type="primary" type="primary"
v-if="documentShow" v-if="documentShow"
@click.native="OptionalDocument()" @click.native="OptionalDocument()"
>选入预验收库单 >选入预验收库单
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="saveOrder()" <el-button size="mini" type="primary" @click.native="saveOrder()"
>草稿保存 >草稿保存
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="submit()" <el-button size="mini" type="primary" @click.native="submit()"
>立即提交 >立即提交
</el-button> </el-button>
</el-button-group> </el-button-group>
<el-row> <el-row>
@ -92,8 +92,8 @@
> >
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ <span style="float: right; color: #8492a6; font-size: 13px">{{
item.warehouseName item.warehouseName
}}</span> }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -153,8 +153,8 @@
> >
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ <span style="float: right; color: #8492a6; font-size: 13px">{{
item.code item.code
}}</span> }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -223,7 +223,7 @@
size="mini" size="mini"
@click.native.stop="addCode()" @click.native.stop="addCode()"
style="margin-left: 15px" style="margin-left: 15px"
>添加 >添加
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -308,9 +308,9 @@ import {
updateCodeBindSup, updateCodeBindSup,
enterCodeWeb, enterCodeWeb,
} from "../../api/inout/order"; } from "../../api/inout/order";
import { findByFrom, findInvByUser } from "../../api/system/invSubWarehouse"; import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse";
import { parseTime } from "../../utils/coTools"; import {parseTime} from "../../utils/coTools";
import { getBasicUnitMaintains } from "../../api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain";
import editCodeDialog from "./DialogEditCode"; import editCodeDialog from "./DialogEditCode";
import DialogCreateOrderSelect from "./DialogCreateOrderSelect"; import DialogCreateOrderSelect from "./DialogCreateOrderSelect";
@ -318,7 +318,7 @@ import codesPanel from "./PanelCreateOrderCodes";
import codeDetailPanel from "./PanelCreateOrderCodeDetail"; import codeDetailPanel from "./PanelCreateOrderCodeDetail";
import bizDetailPanel from "./PanelCreateOrderBizDetail"; import bizDetailPanel from "./PanelCreateOrderBizDetail";
import A from "../../plugins/KeyScaner"; import A from "../../plugins/KeyScaner";
import { findByInvUser } from "@/api/basic/busType"; import {findByInvUser} from "@/api/basic/busType";
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -388,18 +388,18 @@ export default {
formRules: { formRules: {
corpOrderId: [ corpOrderId: [
{ required: true, message: "请输入单据号", trigger: "blur" }, {required: true, message: "请输入单据号", trigger: "blur"},
], ],
createTime: [ createTime: [
{ required: true, message: "请选择创建时间", trigger: "blur" }, {required: true, message: "请选择创建时间", trigger: "blur"},
], ],
invCode: [ invCode: [
{ required: true, message: "请选择当前仓库", trigger: "change" }, {required: true, message: "请选择当前仓库", trigger: "change"},
], ],
action: [ action: [
{ required: true, message: "请选择单据类型", trigger: "change" }, {required: true, message: "请选择单据类型", trigger: "change"},
], ],
acceptance:[ acceptance: [
{required: true, message: "请选入预验收单据", trigger: "blur"}, {required: true, message: "请选入预验收单据", trigger: "blur"},
] ]
}, },
@ -431,7 +431,7 @@ export default {
viewCodeVisible: false, viewCodeVisible: false,
viewCodeDetailVisible: false, viewCodeDetailVisible: false,
documentShow:false,// documentShow: false,//
}; };
}, },
components: { components: {
@ -457,7 +457,8 @@ export default {
this.getBusTypeByInv(); this.getBusTypeByInv();
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
// //
giveselectbox(val) { giveselectbox(val) {
@ -466,8 +467,8 @@ export default {
// //
changeInv() { changeInv() {
this.orderFormData.action = null; this.orderFormData.action = null;
if(this.documentShow=true){ if (this.documentShow = true) {
this.documentShow=false this.documentShow = false
} }
this.getBusTypeByInv(); this.getBusTypeByInv();
}, },
@ -481,7 +482,8 @@ export default {
.then((response) => { .then((response) => {
this.busTypeOptions = response.data || []; this.busTypeOptions = response.data || [];
}) })
.catch(() => {}); .catch(() => {
});
}, },
// //
closeDialogtwo() { closeDialogtwo() {
@ -513,7 +515,8 @@ export default {
this.bizShow = true; this.bizShow = true;
} else this.bizShow = false; } else this.bizShow = false;
}) })
.catch(() => {}); .catch(() => {
});
}, },
// //
@ -568,13 +571,12 @@ export default {
this.orderFormData.fromInvCode = null; this.orderFormData.fromInvCode = null;
this.findFromInvList(); this.findFromInvList();
} }
if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ if (this.curAction.scanPreIn && this.curAction.backPreinType == 1) {
this.documentShow=true this.documentShow = true
} } else {
else{ this.documentShow = false
this.documentShow=false
} }
this.giveselectbox(); this.giveselectbox();
}, },
@ -590,7 +592,8 @@ export default {
this.orderFormData.fromInvCode = this.fromInvOptions[0].code; this.orderFormData.fromInvCode = this.fromInvOptions[0].code;
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
// //
@ -663,7 +666,8 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "warning", type: "warning",
closeOnClickModal: true, closeOnClickModal: true,
callback: (action) => {}, callback: (action) => {
},
}); });
} }
this.corpOrderIdDisabled = true; this.corpOrderIdDisabled = true;
@ -693,7 +697,8 @@ export default {
tQuery.ignoreExpire = true; tQuery.ignoreExpire = true;
this.addCodeSubmit(tQuery); this.addCodeSubmit(tQuery);
}) })
.catch(() => {}); .catch(() => {
});
} else if (response.code == 505) { } else if (response.code == 505) {
this.$confirm(response.message, "提示", { this.$confirm(response.message, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -704,7 +709,8 @@ export default {
tQuery.ignoreRecentExpire = true; tQuery.ignoreRecentExpire = true;
this.addCodeSubmit(tQuery); this.addCodeSubmit(tQuery);
}) })
.catch(() => {}); .catch(() => {
});
} else if (response.code == 507) { } else if (response.code == 507) {
this.editOriginCodeVisible = true; this.editOriginCodeVisible = true;
this.editTitle = response.message; this.editTitle = response.message;
@ -897,7 +903,8 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
closeCodeDialog() { closeCodeDialog() {
this.editOriginCodeVisible = false; this.editOriginCodeVisible = false;

@ -9,8 +9,8 @@
v-show="showSearch" v-show="showSearch"
> >
<el-row> <el-row>
<el-col :span="6"> <el-col :span="8">
<el-form-item class="query-form-item" label="单号:"> <el-form-item class="query-form-item" label="预验收单号:">
<el-input <el-input
v-model="filterQuery.billNo" v-model="filterQuery.billNo"
placeholder="请输入单号" placeholder="请输入单号"
@ -19,62 +19,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="8">
<el-form-item class="query-form-item" label="出入库类型:">
<el-select
v-model="filterQuery.mainAction"
placeholder="请选择出入库类型"
style="width: 90%"
>
<el-option label="全部" value=""></el-option>
<el-option label="入库" value="WareHouseIn"></el-option>
<el-option label="出库" value="WareHouseOut"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="单据类型:">
<el-select
v-model="filterQuery.action"
placeholder="请选择单据类型"
style="width: 90%"
clearable
>
<el-option
v-for="item in busTypes"
:key="item.name"
:label="item.name"
:value="item.action"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="所属仓库:">
<el-select
v-model="filterQuery.invCode"
placeholder="请选择所属仓库"
clearable="true"
style="width: 90%"
@change="invChange"
>
<el-option
v-for="item in invList"
:key="item.name"
:label="item.name"
:value="item.code"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="创建时间:"> <el-form-item class="query-form-item" label="创建时间:">
<el-date-picker <el-date-picker
:picker-options="pickerOptions" :picker-options="pickerOptions"
@ -95,13 +40,14 @@
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch" <el-button icon="el-icon-view" type="primary" @click="hideSearch"
>显示/隐藏搜索栏</el-button >显示/隐藏搜索栏
</el-button
> >
<el-button type="primary" icon="el-icon-refresh" @click="onReset" <el-button type="primary" icon="el-icon-refresh" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit"
>查询 >查询
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@ -110,7 +56,8 @@
@click="combine" @click="combine"
:loading="combineLoading" :loading="combineLoading"
@close="closeLocalDialog" @close="closeLocalDialog"
>选入</el-button >选入
</el-button
> >
</el-button-group> </el-button-group>
</div> </div>
@ -177,30 +124,30 @@
<!-- </el-tag>--> <!-- </el-tag>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="操作" width="150" fixed="right"> <!-- <el-table-column label="操作" width="150" fixed="right">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native.stop="printOrder(scope.row)" <!-- @click.native.stop="printOrder(scope.row)"-->
>打印 <!-- >打印-->
</el-button> <!-- </el-button>-->
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native.stop="rollback(scope.row)" <!-- @click.native.stop="rollback(scope.row)"-->
>撤回 <!-- >撤回-->
</el-button> <!-- </el-button>-->
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native.stop="deleteDialog(scope.row)" <!-- @click.native.stop="deleteDialog(scope.row)"-->
>删除 <!-- >删除-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
v-show="total > 0" v-show="total > 0"
@ -219,13 +166,13 @@ import {
getOrderFilter, getOrderFilter,
rollbackOrder, rollbackOrder,
} from "../../api/inout/order"; } from "../../api/inout/order";
import { getLocalJoinByUser } from "@/api/basic/busType"; import {getLocalJoinByUser} from "@/api/basic/busType";
import { getInvListByUser } from "@/api/system/invWarehouse"; import {getInvListByUser} from "@/api/system/invWarehouse";
import { isBlank } from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import { selectSysParamByKey } from "@/api/param/systemParamConfig"; import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import { getResultDetailList } from "@/api/inout/orderDetailResult"; import {getResultDetailList} from "@/api/inout/orderDetailResult";
import { getCodeDetailList } from "@/api/inout/orderDetailCode"; import {getCodeDetailList} from "@/api/inout/orderDetailCode";
import { getCodeList } from "@/api/inout/code"; import {getCodeList} from "@/api/inout/code";
import { import {
inspectionOrderPDFFromTemplateFile, inspectionOrderPDFFromTemplateFile,
orderPDFFromTemplateFile, orderPDFFromTemplateFile,
@ -252,14 +199,12 @@ export default {
filterQuery: { filterQuery: {
id: "", id: "",
billNo: null, billNo: null,
statusType: "audited",
mainAction: null, mainAction: null,
action: null, action: null,
page: 1, page: 1,
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
invCode: this.$store.getters.locInvCode,
}, },
checkStatus: { checkStatus: {
1: "草稿", 1: "草稿",
@ -375,14 +320,12 @@ export default {
this.filterQuery = { this.filterQuery = {
id: "", id: "",
billNo: null, billNo: null,
statusType: "audited",
mainAction: null, mainAction: null,
action: null, action: null,
page: 1, page: 1,
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
invCode: this.$store.getters.locInvCode,
}; };
this.getList(); this.getList();
}, },
@ -417,7 +360,8 @@ export default {
// this.selectbox=qwe // this.selectbox=qwe
// }, // },
// //
closeLocalDialog() {}, closeLocalDialog() {
},
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
@ -430,7 +374,8 @@ export default {
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
}) })
.catch(() => {}); .catch(() => {
});
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.currentRow = val; this.currentRow = val;
@ -450,7 +395,7 @@ export default {
// //
getList() { getList() {
this.loading = true; this.loading = true;
this.currentRow = { billNo: "" }; this.currentRow = {billNo: ""};
getOrderFilter(this.filterQuery) getOrderFilter(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -484,7 +429,8 @@ export default {
this.getList(); this.getList();
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
deleteDialog(row) { deleteDialog(row) {
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", { this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
@ -495,7 +441,8 @@ export default {
.then(() => { .then(() => {
this.deleteOrders(row); this.deleteOrders(row);
}) })
.catch(() => {}); .catch(() => {
});
}, },
invChange() { invChange() {
this.filterQuery.action = null; this.filterQuery.action = null;
@ -506,9 +453,11 @@ export default {
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
}) })
.catch(() => {}); .catch(() => {
});
},
checkOrder(orderId) {
}, },
checkOrder(orderId) {},
onBizReset() { onBizReset() {
this.bizQuery = { this.bizQuery = {
productName: null, productName: null,
@ -548,7 +497,8 @@ export default {
this.bizTotal = 0; this.bizTotal = 0;
}); });
}, },
editBizDialog(row) {}, editBizDialog(row) {
},
onCodeReset() { onCodeReset() {
this.codeQuery = { this.codeQuery = {
orderIdFk: null, orderIdFk: null,
@ -588,7 +538,8 @@ export default {
this.codeTotal = 0; this.codeTotal = 0;
}); });
}, },
editCodeDialog(row) {}, editCodeDialog(row) {
},
printOrder(row) { printOrder(row) {
let tQuery = { let tQuery = {
action: row.action, action: row.action,
@ -611,7 +562,7 @@ export default {
binaryData.push(response); binaryData.push(response);
//blob //blob
let url = window.URL.createObjectURL( let url = window.URL.createObjectURL(
new Blob(binaryData, { type: "application/pdf" }) new Blob(binaryData, {type: "application/pdf"})
); );
this.loading = false; this.loading = false;
window.open(url); //pdf window.open(url); //pdf
@ -668,32 +619,6 @@ export default {
this.resultTotal = 0; this.resultTotal = 0;
}); });
}, },
//
rollback(row) {
this.$confirm(
"此操作将撤回单据至已校验未审核状态并删除对应库存信息, 是否继续?",
"提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(() => {
let param = { billNo: row.billNo };
rollbackOrder(param).then((res) => {
if (res.code === 20000) {
this.$message.success("撤回成功");
this.getList();
} else {
this.$message.error(res.message);
}
});
})
.catch(() => {
// this.$message.info('退');
});
},
}, },
filters: { filters: {
statusFilterType(status) { statusFilterType(status) {
@ -713,13 +638,6 @@ export default {
created() { created() {
this.getInvList(); this.getInvList();
this.getBusType(); this.getBusType();
selectSysParamByKey({ paramKey: "muti_inv_mode" }).then((res) => {
if (res.code === 20000) {
if (res.data.paramValue === "0") {
this.enableDept = true;
}
}
});
this.getList(); this.getList();
}, },
}; };

@ -263,7 +263,6 @@ export default {
}, },
excel(){ excel(){
debugger
if(isBlank(this.currentRow.recordKey)){ if(isBlank(this.currentRow.recordKey)){
return this.$message.error("请选择要导出的数据!"); return this.$message.error("请选择要导出的数据!");
} }

@ -0,0 +1,213 @@
<template>
<div>
<el-descriptions class="margin-top" title="产品信息" :column="3" :size="size" border>
<el-descriptions-item>
<template slot="label">
物资名称
</template>
{{ inputQuery.cpmctymc }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
DI/物资编码
</template>
{{ inputQuery.nameCode }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
批次号
</template>
{{ inputQuery.batchNo }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
规格型号
</template>
{{ inputQuery.ggxh }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
生产日期
</template>
{{ inputQuery.productionDate }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
失效日期
</template>
{{ inputQuery.expireDate }}
</el-descriptions-item>
</el-descriptions>
<el-form :inline="true" :model="invPreProductDetailQuery" style="margin-top: 10px;" size="mini">
<el-form-item class="query-form-item" label="UDI码:">
<el-input v-model="invPreProductDetailQuery.code"
placeholder="请输入UDI码查询"
clearable
style="width: 100%"
></el-input>
</el-form-item>
<el-form-item>
<el-button-group>
<el-button type="primary" icon="search" @click="onSubmit"
>查询
</el-button
>
</el-button-group>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="UDI码"
prop="code"
width="350"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="出入库单号"
prop="orderId"
width="180"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="单据类型"
prop="actionName"
width="150"
></el-table-column>
<el-table-column
label="出入库类型"
prop="mainActionStr"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="入库数量"
prop="inCount"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="出库数量"
prop="outCount"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="单据日期"
prop="orderTime"
width="150"
show-overflow-tooltip
></el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:limit.sync="invPreProductDetailQuery.limit"
:page.sync="invPreProductDetailQuery.page"
@pagination="getList"
></pagination>
</div>
</template>
<script>
import {getInvPreInProductDetail} from "@/api/inventory/invPreInSearch";
import {isBlank} from "@/utils/strUtil";
export default {
name: "InvPreProductsDetail",
props: {
inputQuery: {
type: Object,
required: true,
},
},
data() {
return {
invPreProductDetailQuery: {
code: null,
relId: null,
supId: null,
batchNo: null,
deptCode: null,
invCode: null,
page: 1,
limit: 10
},
list: [],
total: 0,
loading: false,
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.invPreProductDetailQuery = {
code: null,
page: 1,
limit: 10
};
this.getList();
},
onSubmit() {
this.invPreProductDetailQuery.page = 1;
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
handleSizeChange(val) {
this.invPreProductDetailQuery.limit = val;
this.getList();
},
handleCurrentChange(val) {
this.invPreProductDetailQuery.page = val;
this.getList();
},
getList() {
this.loading = true;
this.invPreProductDetailQuery.relId = this.inputQuery.relId;
this.invPreProductDetailQuery.supId = this.inputQuery.supId;
this.invPreProductDetailQuery.batchNo = this.inputQuery.batchNo;
this.invPreProductDetailQuery.deptCode = this.inputQuery.deptCode;
this.invPreProductDetailQuery.invCode = this.inputQuery.invCode;
// this.invPreProductDetailQuery.nameCode = this.inputQuery.nameCode;
getInvPreInProductDetail(this.invPreProductDetailQuery).then((res) => {
this.loading = false;
if (res.code === 20000) {
this.list = res.data.list || [];
this.total = res.data.total || 0;
} else {
this.$message.error(res.message);
this.list = [];
this.total = 0;
}
}).catch((error) => {
this.loading = false;
this.$message.error(error.message);
this.list = [];
this.total = 0;
})
},
},
mounted() {
document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
};
},
created() {
this.getList();
},
};
</script>
<style type="text/scss" lang="scss">
</style>

@ -273,7 +273,7 @@ export default {
}, },
getInvList() { getInvList() {
let query = { let query = {
advanceType: true, advanceType: 3,
}; };
getInvListByUser(query) getInvListByUser(query)
.then((response) => { .then((response) => {

@ -326,7 +326,7 @@ export default {
}, },
getInvList() { getInvList() {
let query = { let query = {
advanceType: false, advanceType: 1,
}; };
getInvListByUser(query) getInvListByUser(query)
.then((response) => { .then((response) => {

@ -0,0 +1,365 @@
<template>
<div>
<el-card class="el-card">
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" v-show="showSearch">
<el-row>
<el-col :span="18">
<el-form-item class="query-form-item" label="扫码查询:">
<el-input v-model="filterQuery.udiCode"
style="width: 97%"
placeholder="请扫描或输入UDI码"
clearable="true"
@keyup.enter.native="keyup_submit($event)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="DI/物资编码:">
<el-input v-model="filterQuery.nameCode" placeholder="DI/物资编码"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="物资名称:">
<el-input v-model="filterQuery.cpmctymc" placeholder="物资名称"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="规格型号:">
<el-input v-model="filterQuery.ggxh" placeholder="规格型号"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="批次号:">
<el-input v-model="filterQuery.batchNo" placeholder="批次号"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="注册/备案号:">
<el-input v-model="filterQuery.zczbhhzbapzbh" placeholder="注册/备案号"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="生产企业:">
<el-input v-model="filterQuery.ylqxzcrbarmc" placeholder="生产企业"
style="width: 90%"
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="所属仓库:">
<el-select v-model="filterQuery.invCode" placeholder="请选择所属仓库" clearable="true"
style="width: 90%"
>
<el-option
v-for="item in invList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button
type="primary"
icon="el-icon-refresh"
@click="onReset"
>重置
</el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"
>查询
</el-button
>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
border>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="supName" v-if="showSup" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column>
<el-table-column label="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="批次号" prop="batchNo" width="120"></el-table-column>
<el-table-column label="入库数量" prop="inCount" width="120"></el-table-column>
<el-table-column label="出库数量" prop="outCount" width="120"></el-table-column>
<el-table-column label="结余数量" prop="reCount" width="120"></el-table-column>
<el-table-column label="部门" prop="deptName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="仓库" prop="invName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="计量单位" prop="measname" width="120"></el-table-column>
<el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" width="160" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="80" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="detailDialog(scope.row)"
>详情
</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:limit.sync="filterQuery.limit"
:page.sync="filterQuery.page"
@pagination="getList"
></pagination>
</el-card>
<el-dialog
title="库存详情"
:visible.sync="detailDialogVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="85%"
v-if="detailDialogVisible"
>
<invPreProductsDetail
:inputQuery="inputQuery"
v-on:closeDetailDialog="closeDetailDialog"
></invPreProductsDetail>
</el-dialog>
</div>
</template>
<script>
import {getInvListByUser} from "@/api/system/invWarehouse";
import {getInvPreInProduct, deleteInvPreInProduct} from "@/api/inventory/invPreInSearch";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {isBlank} from "@/utils/strUtil";
import invPreProductsDetail from "@/views/inventory/InvPreProductsDetail.vue";
export default {
name: "InvPreProducts",
data() {
return {
showSearch: true,
filterQuery: {
nameCode: null,
cpmctymc: null,
ggxh: null,
batchNo: null,
supId: null,
zczbhhzbapzbh: null,
ylqxzcrbarmc: null,
invCode: this.$store.getters.locInvCode,
page: 1,
limit: 10,
},
list: [],
total: 0,
invList: [],
loading: false,
deleteData: {
id: "",
status: 10,
},
corpLoading: false,
dialogVisible: false,
fromOptions: [],
showSup: false,
detailDialogVisible: false,
inputQuery: {
relId: null,
cpmctymc: null,
nameCode: null,
batchNo: null,
ggxh: null,
productionDate: null,
expireDate: null,
supId: null,
deptCode: null,
invCode: null
}
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
nameCode: null,
cpmctymc: null,
ggxh: null,
batchNo: null,
supId: null,
zczbhhzbapzbh: null,
ylqxzcrbarmc: null,
invCode: this.$store.getters.locInvCode,
page: 1,
limit: 10,
};
this.getList();
},
onSubmit() {
this.filterQuery.page = 1;
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
handleSizeChange(val) {
this.filterQuery.limit = val;
this.getList();
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
keyup_submit(event) {
this.filterQuery.page = 1;
this.getList();
event.target.select();
},
getList() {
this.loading = true;
this.filterQuery.supId = this.$store.getters.customerId;
getInvPreInProduct(this.filterQuery).then((res) => {
this.loading = false;
if (res.code === 20000) {
this.list = res.data.list || [];
this.total = res.data.total || 0;
} else {
this.$message.error(res.message);
this.list = [];
this.total = 0;
}
}).catch((error) => {
this.loading = false;
this.$message.error(error.message);
this.list = [];
this.total = 0;
})
},
getInvList() {
let query = {
advanceType: 2,
};
getInvListByUser(query)
.then((response) => {
this.invList = response.data || [];
this.getList();
})
.catch(() => {
});
},
findMethod(key) {
this.corpLoading = true;
this.fromOptions = [];
let params = {
key: key,
corpType: 2,
page: 1,
limit: 20
};
getBasicUnitMaintains(params).then((res) => {
this.corpLoading = false;
this.fromOptions = res.data.list || [];
}).catch(() => {
this.corpLoading = false;
})
},
corpChange(value) {
if (!isBlank(value)) {
this.findMethod(value);
}
},
detailDialog(row) {
this.detailDialogVisible = true;
this.inputQuery = {
relId: row.relIdFk,
cpmctymc: row.cpmctymc,
nameCode: row.nameCode,
batchNo: row.batchNo,
ggxh: row.ggxh,
productionDate: row.productionDate,
expireDate: row.expireDate,
supId: row.supId,
deptCode: row.deptCode,
invCode: row.invCode
}
},
closeDetailDialog() {
this.detailDialogVisible = false;
},
deleteDialog(id) {
this.$confirm("此操作将永久删除此库存信息,是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.deleteInvPreProduct(id);
}).catch(() => {
});
},
deleteInvPreProduct(id) {
let params = {id: id};
deleteInvPreInProduct(params).then((res) => {
if (res.code === 20000) {
this.$message.success("删除成功!");
this.getList();
} else {
this.$message.error(res.message);
}
}).catch((error) => {
this.$message.error(error.message);
});
}
},
components: {
invPreProductsDetail
},
mounted() {
document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
};
},
created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.findMethod();
this.getInvList();
this.getList();
},
};
</script>
<style type="text/scss" lang="scss">
</style>

@ -242,7 +242,6 @@ export default {
}, },
submit() { submit() {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
debugger
if (!valid) { if (!valid) {
this.$message.error("请完善必填信息"); this.$message.error("请完善必填信息");
} else { } else {

@ -759,7 +759,6 @@ export default {
}); });
}, },
confirm() { confirm() {
debugger
if (this.confirmStatus == null) { if (this.confirmStatus == null) {
this.$message.error("请选择确认状态"); this.$message.error("请选择确认状态");
return; return;

@ -515,7 +515,6 @@ export default {
if(this.editType!=2 && this.editType!=0){ if(this.editType!=2 && this.editType!=0){
this.certQuery.auditStatus = 20; this.certQuery.auditStatus = 20;
} }
debugger
this.getCompanyCertList(); this.getCompanyCertList();
this.pmQuery.customerId = this.inputQuery.customerId; this.pmQuery.customerId = this.inputQuery.customerId;
this.findPMMethod(); this.findPMMethod();

@ -142,6 +142,7 @@ export default {
remark: null, remark: null,
auditStatus: null, auditStatus: null,
busAuditStatus: null, busAuditStatus: null,
createType: null,
}, },
enableMap: { enableMap: {
true: "全量补单", true: "全量补单",
@ -278,6 +279,7 @@ export default {
remark: null, remark: null,
auditStatus: null, auditStatus: null,
busAuditStatus: null, busAuditStatus: null,
createType: null,
}; };
this.modifyDialogVisible = true; this.modifyDialogVisible = true;
}, },

@ -97,7 +97,8 @@
style="width: 90%"> style="width: 90%">
<el-option label="送货至入库补单" :value="1"></el-option> <el-option label="送货至入库补单" :value="1"></el-option>
<el-option label="向上级仓库补单" :value="2"></el-option> <el-option label="向上级仓库补单" :value="2"></el-option>
<el-option label="寄售/预验收转入库补单" :value="3"></el-option> <el-option label="预验收转入库补单" :value="3"></el-option>
<el-option label="寄售转入库补单" :value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>

@ -385,7 +385,6 @@ export default {
}, },
moduleClick(row) { moduleClick(row) {
debugger
this.query = { this.query = {
modelKey: row.modelKey, modelKey: row.modelKey,
page: 1, page: 1,

@ -294,7 +294,7 @@ const formJson = {
name: null, name: null,
code: null, code: null,
status: 1, status: 1,
advanceType: false, advanceType: 1,
isDefault: false, isDefault: false,
page: 1, page: 1,
limit: 20, limit: 20,

@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.0.166:9991/`, target: `http://192.168.1.14:9991/`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save