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) {