| | |
| | | class="customer-name_block-input" |
| | | placeholder="请输入车数" |
| | | border="surround" |
| | | :disabled="isNumOk" |
| | | v-model="value" |
| | | ></u--input> |
| | | </view> |
| | |
| | | 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> |
| | | <view class="name">{{ item.orderType }}</view> |
| | | </uni-td> |
| | | |
| | | <uni-td align="center"> |
| | | <view>{{ item.bunkerName }}</view></uni-td> |
| | | <uni-td align="center"> |
| | | <view> |
| | | <u-input |
| | | v-model="subDataList[index].quant" |
| | | border="surround" |
| | | placeholder="请输入数量" /> |
| | | </view></uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | </view> |
| | |
| | | deptId: '', |
| | | checkList:[], |
| | | deptName: '', |
| | | mapProductNum:'', |
| | | activeName:'', |
| | | isNumOk:false, |
| | | isNumData:[], |
| | |
| | | }else{ |
| | | this.subDataList = []; |
| | | } |
| | | //查看是不是采购的计数 |
| | | if(this.subDataList.find(item=>item.isWeight === 0)){ |
| | | this.isNumOk = true; |
| | | this.value = 1; |
| | | } else{ |
| | | this.isNumOk = false; |
| | | } |
| | | if(this.isNumOk){ |
| | | let tempArr = []; |
| | | this.subDataList.forEach(item=>{ |
| | | tempArr.push(item.productId + ':' + item.quant); |
| | | }) |
| | | this.mapProductNum = tempArr.join(",") |
| | | }else{ |
| | | this.mapProductNum = ''; |
| | | } |
| | | } |
| | | }) |
| | | |
| | | |
| | | }, |
| | | confirmBuild() { |
| | | let tempArr = []; |
| | | this.subDataList.forEach(item=>{ |
| | | tempArr.push(item.productId + ':' + item.quant); |
| | | }) |
| | | this.mapProductNum = tempArr.join(",") |
| | | let form = { |
| | | orderId:this.deptId, |
| | | carNum:this.value, |
| | |
| | | sendSign:0, |
| | | itemIds:this.checkList.join(",") + ',', |
| | | closeOrderId:this.closeOrderId, |
| | | mapProductNum:this.mapProductNum, |
| | | |
| | | } |
| | | this.buildLoading = true |
| | | this.$reqPost('addDeliveryPlan', form, 'json').then(res => { |