From 3499764f8a351d07caa212301d62d0744dcb9b3f Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 13 Aug 2024 09:08:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 228 ++++----- .../inout/split/IoSplitFifoCodePanel.vue | 19 +- src/views/inout/split/IoSplitScanCode.vue | 1 - src/views/inout/split/bindWorkDialog.vue | 14 +- src/views/inout/split/prescribeAllot.vue | 2 +- .../inout/split/prescribeDownloadDialog.vue | 438 +++++++++--------- .../inout/split/prescribeTagCodeDeal.vue | 179 +++---- .../inout/split/selectPrescribeDialog.vue | 208 ++------- 8 files changed, 447 insertions(+), 642 deletions(-) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 31b72ef8..73a7f462 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -1,51 +1,95 @@ @@ -1223,6 +1226,9 @@ export default { } listPage(query).then((res) => { this.curWorkPlaces = res.data.list || []; + if (this.curWorkPlaces.length == 1) { + this.orderFormData.workPlaceCode = this.curWorkPlaces[0].workplaceId; + } }) }, @@ -1245,7 +1251,7 @@ export default { //添加条码 - addCode(event) { + addCode() { this.originCode = ""; this.sictomText = ""; this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim(); @@ -1254,9 +1260,15 @@ export default { this.codeFormData.expireDate = ""; this.codeFormData.serialNo = ""; this.actionEnable = true; - if (event == null) { - } else event.target.select(); this.$refs.inputRef.select(); + if (this.$isBlank(this.codeFormData.code)) { + this.codeFormData.code = this.scanCode.trim(); + return; + } + if (this.$isBlank(this.codeFormData.code) && this.$isBlank(this.scanCode)) { + return; + } + if (this.$isBlank(this.orderFormData.action)) { this.$message.warning("请选择单据类型!"); return; @@ -1301,8 +1313,6 @@ export default { return; } } - - if (this.checkPreInArray != null) { this.orderFormData.checkPreInOrders = this.checkPreInArray.join(","); } @@ -1313,8 +1323,7 @@ export default { parseTime(date, "{y}{m}{d}{h}{i}{s}") + Math.ceil(Math.random() * 89 + 10); } - this.codeFormData.code = this.scanCode.trim(); - if (this.$isBlank(this.codeFormData.code)) return; + this.loading = true; let tQuery = Object.assign( JSON.parse(JSON.stringify(this.orderFormData)) @@ -1743,9 +1752,9 @@ export default { this.$refs.inputRef.focus(); this.$refs.inputRef.select(); this.isSuccess = true; - this.scanCode = "" this.printCodeResult(response.data) this.codeFormData.code = response.data.code; + this.scanCode = "" this.addCode(); } else { if (response.code == 502) { @@ -2020,6 +2029,11 @@ export default { diff --git a/src/views/inout/split/prescribeTagCodeDeal.vue b/src/views/inout/split/prescribeTagCodeDeal.vue index 3fc73f33..b259af7f 100644 --- a/src/views/inout/split/prescribeTagCodeDeal.vue +++ b/src/views/inout/split/prescribeTagCodeDeal.vue @@ -1,146 +1,76 @@