| | |
| | | <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="item.checkQty" |
| | | :step='1'></uni-number-box> |
| | | :step='0.01'></uni-number-box> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <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="item.checkQty" |
| | | :step='1'></uni-number-box> |
| | | :step='0.01'></uni-number-box> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }) |
| | | return; |
| | | } |
| | | this.list.push(...this.matnrList) |
| | | this.matnrList = [] |
| | | this.isconfirm = !this.isconfirm |
| | | |
| | | this.confirmAddMatnr() |
| | | this.matnrList = []; |
| | | }, |
| | | |
| | | remove(index) { |
| | | this.matnrList.splice(index, 1); |
| | | }, |
| | |
| | | matnrs: this.matnrList |
| | | }) |
| | | if (code === 200) { |
| | | |
| | | that.search() |
| | | } else { |
| | | |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "error", |
| | | position: 'top' |
| | | }) |
| | | } |
| | | this.isconfirm = !this.isconfirm |
| | | }, |
| | | async addMatnr() { |
| | | const { |
| | |
| | | return; |
| | | } |
| | | this.repeatClick = true |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/saveCheckDiff', { |
| | | container: that.barcode, |
| | | checkId: that.check.id, |
| | | checkDiffItems: that.list |
| | | const {code, data, msg } = await request('/temp/check/confirm', { |
| | | barcode: that.barcode, |
| | | items: that.list |
| | | }) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "none", |
| | | icon: "error", |
| | | }) |
| | | } |
| | | this.repeatClick = false |