From 3bc073a1d64ba097dc925b0ffdd7cf759dc9b4ad Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 19 Jun 2024 11:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=82=E8=A3=85=E4=B8=8A=E7=BA=BF=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/pages/request/injectionPlanRequest.vue | 58 +++++++++++++++---- 1 file changed, 47 insertions(+), 11 deletions(-) diff --git a/fe/PDA/pages/request/injectionPlanRequest.vue b/fe/PDA/pages/request/injectionPlanRequest.vue index dc0710153..90a169242 100644 --- a/fe/PDA/pages/request/injectionPlanRequest.vue +++ b/fe/PDA/pages/request/injectionPlanRequest.vue @@ -21,11 +21,26 @@ - + - + + + + + + + + 收容数 + + + + + + @@ -67,12 +82,14 @@ import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue' import comMessage from '@/mycomponents/common/comMessage.vue' import winCollapseLocation from '@/mycomponents/wincom/winCollapseLocation.vue' + import comNumberBox from '@/mycomponents/common/comNumberBox.vue'; export default { components: { winEmptyView, comJobTopInfo, comMessage, - winCollapseLocation + winCollapseLocation, + comNumberBox }, data() { return { @@ -83,7 +100,10 @@ loadingType: "nomore", showList: [], toLocationInfo: null, - tabIndex:0 + tabIndex:0, + customStyle:"white-space: normal;word-break:break-all" + + }; }, filters: { @@ -142,6 +162,10 @@ this.showMessage("获取["+categoryName+"]信息失败,请在字典中维护") }else { this.showList = res; + this.showList.forEach(item=>{ + item.defaultStdPackQty=item.stdPackQty + item.checked =false + }) } }).catch(error => { @@ -175,10 +199,13 @@ }) }, setContainerModel(item) { + item.checked=!item.checked this.showList.forEach(res => { - res.checked = false + if(res.code!=item.code){ + res.checked = false + } + }) - item.checked = true; this.$forceUpdate() }, @@ -194,7 +221,8 @@ this.current=0 this.showList= [] this.toLocationInfo = null, - this.tabIndex = 0 + this.tabIndex = 0 ; + this.$refs.comCollapseLocation.clearLocation(); }, submit(item) { @@ -230,7 +258,7 @@ itemDesc1: checked[0].desc1, itemDesc2: checked[0].desc2, uom: checked[0].basicUom, - qty: 1, + qty: checked[0].stdPackQty, stdPackQty: checked[0].stdPackQty, toLocationCode: this.toLocationInfo.code, toLocationArea: this.toLocationInfo.areaCode, @@ -239,7 +267,7 @@ toWarehouseCode: localStorage.warehouseCode, positionCode: "", recommendType: "SEMI", - boxQty: 1 + boxQty: checked[0].stdPackQty } params.details.push(item) console.log("测试", JSON.stringify(params)); @@ -266,7 +294,15 @@ } this.tabIndex = index; this.getCategoryList(this.tabs[index]) - } + }, + qtyChanged(value, item, index) { + if (value <= 0) { + item.qty = item.defaultHandleQty + this.$refs['comNumberBox_' + index][0].setValue(item.qty); + this.showMessage('数量不能小于或等于0') + return; + } + }, } };