From 359267701d7ad295c1a7a7cff4e481eb2332ccf8 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 6 Feb 2023 16:54:19 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/invWarehouse.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index 52e2f210..0cb659d4 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -93,13 +93,13 @@ - + + + + + + + { this.loading = false; - this.total = response.data.total; - let invlist = response.data.list || []; + //this.total = response.data.total; + let invlist = response.data || []; this.list = this.handleTree(invlist, "code", "parentCode"); }) From 4d9adf0c6e517337721b3a768ec8c1a169872668 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 6 Feb 2023 17:25:29 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/invWarehouse.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index 0cb659d4..33507207 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -263,7 +263,7 @@ :total="subTotal" :page.sync="thirdSubQuery.page" :limit.sync="thirdSubQuery.limit" - @pagination="getList" + @pagination="intentSubSelect" /> - -
- 提交订单 @@ -22,7 +22,7 @@ - @@ -30,10 +30,11 @@ @@ -44,7 +45,7 @@ - @@ -61,10 +62,9 @@ - - - - - @@ -180,13 +180,13 @@ - + - + - + @@ -301,22 +301,27 @@ export default { data() { return { - formData: { + //单据相关 + orderFormData: { billNo: null, corpOrderId: null, action: null, - createTime: new Date(), invCode: null, fromCorp: null, fromInvCode: null, remark: null, - code: "", fromType: 2, + }, + + //扫码相关 + codeFormData: { + code: "", batchNo: null, produceDate: null, expireDate: null, serialNo: null, }, + curInvOptions: [], busTypeOptions: [], fromInvOptions: [], @@ -348,12 +353,8 @@ export default { formVisible: false, deleteLoading: false, orderNo: null, - fromStorageOptions: [], - - curRow: null, - dialogTableVisible: false, sitcomScan: false, selectRlTitle: "绑定产品", @@ -382,7 +383,7 @@ export default { .then((response) => { this.curInvOptions = response.data || []; if (this.curInvOptions != null && this.curInvOptions.length == 1) { - this.formData.invWarehouseCode = this.curInvOptions[0].code; + this.orderFormData.invWarehouseCode = this.curInvOptions[0].code; this.getBusTypeByInv() } }) @@ -392,14 +393,14 @@ export default { //仓库改变 changeInv() { - this.formData.action = null; + this.orderFormData.action = null; this.getBusTypeByInv(); }, //根据仓库,用户获取单据类型 getBusTypeByInv() { let query = { - code: this.formData.invCode, + code: this.orderFormData.invCode, }; findByInvUser(query) .then((response) => { @@ -442,11 +443,11 @@ export default { this.curAction = this.getActionItem(item); if (this.curAction.corpType == 0 || this.curAction.corpType == 2 || (this.curAction.corpType == 1 && !this.curAction.genUnit)) { //1.切换往来单位 - this.formData.fromCorp = null; + this.orderFormData.fromCorp = null; this.findMethod(); } else if (this.curAction.corpType == 3) { //2. 切换往来仓库 - this.formData.fromInvCode = null; + this.orderFormData.fromInvCode = null; this.findFromInvList(); } }, @@ -454,13 +455,13 @@ export default { //获取往来仓库列表 findFromInvList(val) { let cQuery = { - locInvCode: this.formData.invCode, + locInvCode: this.orderFormData.invCode, }; findByFrom(cQuery) .then((response) => { this.fromInvOptions = response.data || []; if (val == 1) { - this.formData.fromInvCode = this.fromInvOptions[0].code; + this.orderFormData.fromInvCode = this.fromInvOptions[0].code; } }) .catch(() => { @@ -480,30 +481,28 @@ export default { addCode(event) { this.originCode = ""; this.sictomText = ""; - this.formData.corpOrderId = this.formData.corpOrderId.trim(); - this.formData.batchNo = ""; - this.formData.produceDate = ""; - this.formData.expireDate = ""; - this.formData.serialNo = ""; + this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim(); + this.codeFormData.batchNo = ""; + this.codeFormData.produceDate = ""; + this.codeFormData.expireDate = ""; + this.codeFormData.serialNo = ""; this.actionEnable = true; if (event == null) { } else event.target.select(); this.$refs.inputRef.select(); - if (this.$isBlank(this.formData.action)) { + if (this.$isBlank(this.orderFormData.action)) { this.$message.warning("请选择单据类型!"); return; } - if (this.$isBlank(this.formData.corpOrderId)) { + if (this.$isBlank(this.orderFormData.corpOrderId)) { let date = new Date(); - this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); + this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); } - this.formData.code = this.formData.code.trim(); - if (this.$isBlank(this.formData.code)) return; + this.codeFormData.code = this.codeFormData.code.trim(); + if (this.$isBlank(this.codeFormData.code)) return; this.loading = true; - let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); - tQuery.orderId = this.idQuery.id; - tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); - tQuery.action = this.formData.action; + let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); + tQuery.code = this.codeFormData.code; this.addCodeSubmit(tQuery); this.$refs.inputRef.select(); }, @@ -565,10 +564,10 @@ export default { } else if (response.code == 507) { this.editOriginCodeVisible = true; this.editTitle = response.message; - this.formData.produceDate = response.data.produceDate; - this.formData.expireDate = response.data.expireDate; - this.formData.batchNo = response.data.batchNo; - this.formData.serialNo = response.data.serialNo; + this.codeFormData.produceDate = response.data.produceDate; + this.codeFormData.expireDate = response.data.expireDate; + this.codeFormData.batchNo = response.data.batchNo; + this.codeFormData.serialNo = response.data.serialNo; this.$message({ type: 'error', message: "提交失败!" + this.editTitle, @@ -592,32 +591,15 @@ export default { refreshCodesPanel() { this.isCodeAlive = false; - this.idQuery = this.$nextTick(() => { //重新加载组件 this.isCodeAlive = true }) }, - submit(formName) { - if (this.total < 1) { - this.$message.error('未添加条码'); - return; - } - let tQuery = { - orderId: this.idQuery.id, - locStorageCode: this.formData.locStorageCode, - invStorageCode: this.formData.invStorageCode, - invWarehouseCode: this.formData.invWarehouseCode, - fromInvCode: this.formData.fromInvCode, - subInvCode: this.formData.subInvCode, - action: this.formData.action, - fromCorp: this.formData.fromCorp, - fromCorpId: this.formData.fromCorpId, - outChangeEnable: this.formData.outChangeEnable, - preCheck: this.formData.preCheck, - deptCode: this.formData.deptCode, - } + submit() { + let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); + tQuery.orderId = this.idQuery.billNo; submitOrderWeb(tQuery) .then((response) => { if (response.code === 20000) { @@ -630,23 +612,8 @@ export default { }); }, saveOrder() { - if (this.total < 1) { - this.$message.error('未添加条码'); - return; - } - if (this.formData.action == null || this.formData.action == '') { - this.$message.error('未选择扫码单据类型'); - return - } - - - if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { - this.$message.error('当前分库不能为空'); - return; - } - let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); + let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); tQuery.orderId = this.idQuery.billNo; - tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); saveOrderWeb(tQuery).then((response) => { if (response.code === 20000) { this.closeDialog(); @@ -676,42 +643,40 @@ export default { this.checkSuccess = true; let tQuery = { originCode: this.originCode, - code: this.formData.code.trim(), + code: this.codeFormData.code.trim(), } enterCodeWeb(tQuery).then((response) => { if (response.code === 20000) { this.$refs.inputRef.focus(); this.$refs.inputRef.select(); - this.formData.code = response.data; + this.codeFormData.code = response.data; this.addCode(); } else { if (response.code == 502) { this.checkSuccess = false; - this.formData.code = response.data; - this.originCode = this.formData.code; + this.codeFormData.code = response.data; + this.originCode = this.codeFormData.code; } else if (response.code == 501) { this.checkSuccess = false; - // this.formData.code = response.data; - // this.originCode = this.formData.code; this.$message.error(response.message); } else if (response.code == 503) { this.checkSuccess = false; - this.formData.code = response.data; + this.codeFormData.code = response.data; this.$confirm(response.message, "提示", { type: "warning", }) .then(() => { - this.formData.code = response.data; + this.codeFormData.code = response.data; this.addCode(); }) .catch(() => { - this.formData.code = this.originCode; + this.codeFormData.code = this.originCode; }); } else if (response.code == 508) { this.originCode = ""; - this.formData.code = "01" + response.data.nameCode; - this.originCode = this.formData.code; + this.codeFormData.code = "01" + response.data.nameCode; + this.originCode = this.codeFormData.code; } else { this.$alert(response.message, '提示', { confirmButtonText: '确定', @@ -732,8 +697,8 @@ export default { repeatAddCode(editData) { let tQuery = editData; tQuery.orderId = this.idQuery.id; - tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); - tQuery.action = this.formData.action; + tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); + tQuery.action = this.orderFormData.action; this.closeCodeDialog(); this.addCodeSubmit(tQuery); @@ -822,7 +787,7 @@ export default { window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点 sc.onInput = function (text) { if (text.includes("delete")) { - that.formData.code = ""; + that.codeFormData.code = ""; that.sictomText = ""; that.originCode = ""; return; @@ -831,44 +796,34 @@ export default { let tempTxt = text; let str = tempTxt.replace(/[\r]/g, ""); that.sictomText = that.sictomText + str; - that.formData.code = that.sictomText; + that.codeFormData.code = that.sictomText; } else { - that.formData.code = text; - // setTimeout(function(){ that.formData.code = text; }, 3000); - - + that.codeFormData.code = text; } }; inputer.focus(); }, created() { - this.formData.code = ''; + this.codeFormData.code = ''; this.codeArray = []; if (this.$isNotBlank(this.idQuery.billNo)) { - this.formData.actDate = new Date(this.idQuery.actDate); - this.formData.corpOrderId = this.idQuery.corpOrderId; this.corpOrderIdDisabled = true; - this.formData.action = this.idQuery.action; - this.formData.fromCorp = this.idQuery.fromCorp; - this.formData.deptCode = this.idQuery.deptCode - this.formData.invCode = this.idQuery.invCode; - this.formData.fromInvCode = this.idQuery.fromInvCode; - this.formData.preCheck = this.idQuery.preCheck; - this.formData.remark = this.idQuery.remark; + this.orderFormData = this.idQuery; this.actionEnable = true; this.refreshCodesPanel(); //选择框候选数据 this.findInvByUser(); this.getBusTypeByInv(); - this.findMethod(this.formData.fromCorp); + this.findMethod(this.orderFormData.fromCorp); this.findFromInvList(); } else { this.corpOrderIdDisabled = false; - this.formData.actDate = new Date(); let date = new Date(); - this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); - this.formData.invCode = this.$store.getters.locInvCode; + this.orderFormData.createTime = parseTime(date, '{y}-{m}-{d} {h}:{i}:{s}'); + this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); + this.orderFormData.deptCode = this.$store.getters.deptCode; + this.orderFormData.invCode = this.$store.getters.locInvCode; this.findInvByUser(); } diff --git a/src/views/inout/IoCreateOrderBizDetail.vue b/src/views/inout/IoCreateOrderBizDetail.vue index 143669d6..297c6f69 100644 --- a/src/views/inout/IoCreateOrderBizDetail.vue +++ b/src/views/inout/IoCreateOrderBizDetail.vue @@ -1,20 +1,33 @@ - - {{ errorDetail }} - - 关 闭 - - - - - - + + + + + + + 单据 {{ currentRow.billNo }}-业务详情 + + + + - 查询 - + 重置 + + 查询 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 单据 {{ currentRow.billNo }}-扫码详情 + + + + + + + + 重置 + + 查询 + + + + + + + + + + + + + + + + + + 单据 {{ currentRow.billNo }}-扫码明细 + + + + + + + + 重置 + + 查询 + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - -
From d133f515bf01f19af04bb71a9cb12d52e1097129 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 7 Feb 2023 21:41:56 +0800 Subject: [PATCH 11/13] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/IoNewOrder.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/inout/IoNewOrder.vue b/src/views/inout/IoNewOrder.vue index b19c2b64..d06acf70 100644 --- a/src/views/inout/IoNewOrder.vue +++ b/src/views/inout/IoNewOrder.vue @@ -122,7 +122,7 @@ 删除 @@ -341,7 +341,7 @@ export default { "11": "仓库盘点" }, deleteData: { - id: "", + billNo: "", status: 10, }, dialogTableVisible: false, @@ -557,7 +557,7 @@ export default { }, deleteOrders(data) { this.loading = true; - this.deleteData.id = data; + this.deleteData.billNo = data; deleteByOrderId(this.deleteData) .then((response) => { From 001eec90a36f2a114af83fe129960fe2ad4f75ac Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Tue, 7 Feb 2023 23:24:37 +0800 Subject: [PATCH 12/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/invWarehouse.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index 804765ef..7629b259 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -545,10 +545,11 @@ export default { this.currentCode = row.code; this.currentRow = row; this.curSeleUser = null; - //加载单据类型 - this.selsectBussinessType(row); //加载货位信息 this.invSpaceManage(row); + //加载单据类型 + this.selsectBussinessType(row); + }, //关联第三方仓库信息 intentSubSelect(row) { From 1e3ea35c1311ad4980d36169ce3dd7b0a1f3bd2e Mon Sep 17 00:00:00 2001 From: x_z Date: Wed, 8 Feb 2023 09:34:36 +0800 Subject: [PATCH 13/13] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E6=B5=81=E8=BD=AC=E6=97=A0=E6=B3=95=E6=96=B0=E5=A2=9E=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/param/busTypePreModify.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/param/busTypePreModify.vue b/src/views/system/param/busTypePreModify.vue index 92b114d1..22c29cc2 100644 --- a/src/views/system/param/busTypePreModify.vue +++ b/src/views/system/param/busTypePreModify.vue @@ -54,7 +54,7 @@ - { if (res.code === 20000){ - this.locInvs = res.data.list || []; + this.locInvs = res.data || []; } }); },