From ea6f1a49ced187c4cb671fa1581a6528281dd3a8 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 22 Jan 2024 15:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=8F=91=E6=96=99=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E6=96=99=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/issue/coms/comIssueRequestPopup.vue | 26 ++++++-------- .../coms/comRepleinshRequestPopup.vue | 35 ++++++++++++++++--- 2 files changed, 41 insertions(+), 20 deletions(-) diff --git a/pages/issue/coms/comIssueRequestPopup.vue b/pages/issue/coms/comIssueRequestPopup.vue index 4f9c3693..ef52b381 100644 --- a/pages/issue/coms/comIssueRequestPopup.vue +++ b/pages/issue/coms/comIssueRequestPopup.vue @@ -43,20 +43,13 @@ - + - - - - - /{{stdQty}} - - - + + () + @@ -88,6 +81,7 @@ checkDirectoryItemExist } from '@/common/directory.js'; import uom from '@/mycomponents/qty/uom.vue' + import stdPackQty from '@/mycomponents/qty/stdPackQty.vue' import balanceStatus from '@/mycomponents/status/balanceStatus.vue' import comMessage from '@/mycomponents/common/comMessage.vue' import winScanItem from '@/mycomponents/scan/winScanItem.vue' @@ -98,7 +92,8 @@ uom, balanceStatus, comMessage, - winScanItem + winScanItem, + stdPackQty }, data() { return { @@ -127,7 +122,8 @@ isModifiedPosition: true, positionList: [], stdQty: 0, //标包 - maxlength:10 + maxlength:10, + stdPackInfo:undefined } }, props: { @@ -318,7 +314,7 @@ } this.itemCode = ""; this.checkItemCode(code) - this.stdQty = scanResult.package.stdPackQty; + this.stdPackInfo = scanResult.package; } } } diff --git a/pages/repleinsh/coms/comRepleinshRequestPopup.vue b/pages/repleinsh/coms/comRepleinshRequestPopup.vue index aa1ca50d..2585a16f 100644 --- a/pages/repleinsh/coms/comRepleinshRequestPopup.vue +++ b/pages/repleinsh/coms/comRepleinshRequestPopup.vue @@ -44,10 +44,14 @@ 数量: - - + + + + () + + @@ -60,7 +64,7 @@ - + -1) { + this.maxlength = dot + 7; //长度是小数点后两位 + if (value.length > dot + 7) { + + } + } + if (reg.test(value)) { //如果是正整数不包含小数点 + this.maxlength = 10; + } + this.change(value) + }, openRequestPopup(editPosition) { // this.editPosition = editPosition; // if (this.isModifiedPosition) { @@ -237,13 +261,14 @@ this.closeRequestPopup(); }, - getScanCode(code) { + getScanCode(code, scanResult) { if (code == "") { this.showErrorMessage('物料号不能为空') return; } this.itemCode = ""; this.checkItemCode(code) + this.stdPackInfo = scanResult.package; }, getLocationCode(location, code) {