| | |
| | | <view class="cu-form-group padding-lr-0"> |
| | | <view class="title text-blue"><text |
| | | class="text-red text-xl vertical-middle">*</text>拣:</view> |
| | | <uni-number-box style="width: 70%;" :max="max" v-model="item2.receiptQty" |
| | | <uni-number-box style="width: 70%;" :max="max" v-model="item2.demandQty" |
| | | :step='1'></uni-number-box> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-gray">本次拣货数量:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.receiptQty) ||0 ) , 0)}}</text></text> |
| | | <text class="text-gray">本次拣货数量:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.demandQty) ||0 ) , 0)}}</text></text> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | |
| | | <view class="cu-bar btn-group foot" v-show="!isconfirm"> |
| | | <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button> |
| | | <button class="cu-btn bg-blue shadow-blur" @click="next">下一步</button> |
| | | <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">拣货完成</button> |
| | | </view> |
| | | |
| | | |
| | |
| | | isconfirm: false, |
| | | barcode:'80003642', |
| | | max: 99999999, |
| | | repeatClick:false |
| | | |
| | | } |
| | | }, |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | |
| | | clear() { |
| | | this.barcode = '' |
| | | this.list = [] |
| | | }, |
| | | clearCode() { |
| | | this.barcode = '' |
| | | }, |
| | |
| | | |
| | | |
| | | }, |
| | | async complete() { |
| | | let that = this |
| | | this.repeatClick = true |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/saveWavePick',that.list) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "none", |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "none", |
| | | }) |
| | | } |
| | | this.repeatClick = false |
| | | }, |
| | | } |
| | | } |
| | | </script> |