| | |
| | | }) |
| | | 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 |