| | |
| | | const { code, data, msg } = await request('/AGV/bindAndIn/start/T', { |
| | | matNr: this.matNr, |
| | | palletSta: this.palletStaBarcode, |
| | | area: "20", |
| | | palletBarcode: this.palletBarcode |
| | | }) |
| | | if (code === 200) { |
| | |
| | | icon: 'success' |
| | | }) |
| | | // 更新物料编码、物料名称 |
| | | this.matNr = item.matnrCode || '' |
| | | this.makTx = ' 待入库物料名称:' + (item.makTx || '') |
| | | // this.matNr = item.matnrCode || '' |
| | | // this.makTx = ' 待入库物料名称:' + (item.makTx || '') |
| | | |
| | | // 从列表中移除该项 |
| | | const index = this.bagList.findIndex( |
| | | (i) => i.palletId === item.palletId |
| | | ) |
| | | if (index > -1) { |
| | | this.bagList.splice(index, 1) |
| | | } |
| | | // 如果列表为空,关闭弹窗 |
| | | if (this.bagList.length === 0) { |
| | | this.closeModal() |
| | | } |
| | | // const index = this.bagList.findIndex( |
| | | // (i) => i.palletId === item.palletId |
| | | // ) |
| | | // if (index > -1) { |
| | | // this.bagList.splice(index, 1) |
| | | // } |
| | | // // 如果列表为空,关闭弹窗 |
| | | // if (this.bagList.length === 0) { |
| | | // this.closeModal() |
| | | // } |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |