| | |
| | | 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> |
| | |
| | | customerNameList: [], |
| | | buildLoading: false, |
| | | subDataList:[], |
| | | isWeighing:'', |
| | | orderType:'', |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | 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 = ''; |
| | |
| | | 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 = { |
| | |
| | | itemIds:this.checkList.join(",") + ',', |
| | | closeOrderId:this.closeOrderId, |
| | | mapProductNum:this.mapProductNum, |
| | | orderType:this.orderType, |
| | | isWeighing:this.isWeighing |
| | | |
| | | } |
| | | this.buildLoading = true |