| | |
| | | <button |
| | | class="cu-btn bg-blue shadow-blur" |
| | | @click="confirm" |
| | | :disabled="isconfirm" |
| | | > |
| | | 呼叫 |
| | | </button> |
| | |
| | | list: [], |
| | | range: [], |
| | | curCode: '', |
| | | palletTypeId: '' |
| | | palletTypeId: '', |
| | | isconfirm : false |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }) |
| | | return |
| | | } else { |
| | | const { code, data, msg } = await request('/orders/confirm', { |
| | | receipts: newArr, |
| | | palletTypeId: this.palletTypeId |
| | | }) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: '呼叫空托盘中,请稍作等待' |
| | | }) |
| | | this.list = [] |
| | | this.barcode = '' |
| | | this.isconfirm = true |
| | | try{ |
| | | const { code, data, msg } = await request( |
| | | '/callForEmptyContainers', |
| | | { |
| | | staNo: this.barcode, |
| | | type: this.palletTypeId |
| | | } |
| | | ) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: '呼叫空托盘中,请稍作等待' |
| | | }) |
| | | this.list = [] |
| | | this.barcode = '' |
| | | this.isconfirm = false |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: 'none', |
| | | position: 'top' |
| | | }) |
| | | } |
| | | }finally{ |
| | | this.isconfirm = false |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: 'none', |
| | | position: 'top' |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | | // const { |