From 74073d164925eff4962188405355debb367aaf06 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 24 十月 2024 18:13:25 +0800 Subject: [PATCH] feat:小问题修改 --- subPages/addDailyPlan/addDailyPlan.vue | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/subPages/addDailyPlan/addDailyPlan.vue b/subPages/addDailyPlan/addDailyPlan.vue index 34c0417..8cd2ed2 100644 --- a/subPages/addDailyPlan/addDailyPlan.vue +++ b/subPages/addDailyPlan/addDailyPlan.vue @@ -75,19 +75,21 @@ emptyText="鏆傛棤鏇村鏁版嵁"> <uni-tr> <uni-th align="center">浜у搧鍚嶇О</uni-th> + <uni-th align="center">瑙勬牸</uni-th> <uni-th align="center">浠撳簱</uni-th> <uni-th align="center" v-if="isNumOk">鏁伴噺</uni-th> </uni-tr> <uni-tr v-for="(item, index) in subDataList" :key="index"> <uni-td align="center"> <view>{{ item.productName}}</view></uni-td> - + <uni-td align="center"> + <view>{{ item.productSpecs}}</view></uni-td> 聽 <uni-td align="center"> <view>{{ item.bunkerName }}</view></uni-td> - 聽 <uni-td align="center"> + 聽 <uni-td align="center" v-if="isNumOk"> <view> <u-input - v-model="subDataList[index].quant" + v-model="subDataList[index].surplusQuant" border="surround" placeholder="璇疯緭鍏ユ暟閲�" /> </view></uni-td> @@ -204,6 +206,8 @@ customerNameList: [], buildLoading: false, subDataList:[], + isWeighing:'', + orderType:'', } }, computed: { @@ -296,8 +300,11 @@ if(this.isNumOk){ let tempArr = []; this.subDataList.forEach(item=>{ - tempArr.push(item.productId + ':' + item.quant); + tempArr.push(item.productId + ':' + item.surplusQuant); + this.isWeighing = item.isWeight; + this.orderType = item.orderType; }) + this.mapProductNum = tempArr.join(",") }else{ this.mapProductNum = ''; @@ -310,7 +317,13 @@ confirmBuild() { let tempArr = []; this.subDataList.forEach(item=>{ - tempArr.push(item.productId + ':' + item.quant); + this.checkList.forEach(val=>{ + if(item.id === val){ + tempArr.push(item.productId + ':' + item.surplusQuant); + } + + }) + }) this.mapProductNum = tempArr.join(",") let form = { @@ -321,6 +334,8 @@ itemIds:this.checkList.join(",") + ',', closeOrderId:this.closeOrderId, mapProductNum:this.mapProductNum, + orderType:this.orderType, + isWeighing:this.isWeighing } this.buildLoading = true -- Gitblit v1.9.1