|
@ -334,6 +334,10 @@ export default { |
|
|
// }, |
|
|
// }, |
|
|
// 拆箱 |
|
|
// 拆箱 |
|
|
postSplitPackingHandle(newCode,resolve,reject){ |
|
|
postSplitPackingHandle(newCode,resolve,reject){ |
|
|
|
|
|
if(!this.InventoryInfo || JSON.stringify(this.InventoryInfo) == '{}'){ |
|
|
|
|
|
this.pageLoading = false; |
|
|
|
|
|
return this.$errorMsg("该箱码无库存,不可拆箱!") |
|
|
|
|
|
} |
|
|
let _data = { |
|
|
let _data = { |
|
|
useOnTheWayLocation: false, |
|
|
useOnTheWayLocation: false, |
|
|
requestNumber: null, |
|
|
requestNumber: null, |
|
@ -346,13 +350,13 @@ export default { |
|
|
confirmTime: new Date(), |
|
|
confirmTime: new Date(), |
|
|
details: [{ |
|
|
details: [{ |
|
|
fromLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null, |
|
|
fromLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null, |
|
|
|
|
|
toLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null, |
|
|
fromLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), |
|
|
fromLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), |
|
|
fromLot: this.selectItemInfo.lot, |
|
|
fromLot: this.selectItemInfo.lot, |
|
|
fromPackingCode: this.selectItemInfo.code, |
|
|
fromPackingCode: this.selectItemInfo.code, |
|
|
fromWarehouseCode: this.InventoryInfo ? this.InventoryInfo.warehouseCode : null, |
|
|
fromWarehouseCode: this.InventoryInfo ? this.InventoryInfo.warehouseCode : localStorage.getItem('warehouseCode'), |
|
|
itemCode: this.selectItemInfo.itemCode, |
|
|
itemCode: this.selectItemInfo.itemCode, |
|
|
itemName: this.selectItemInfo.itemName, |
|
|
itemName: this.selectItemInfo.itemName, |
|
|
toLocationCode: this.InventoryInfo ? this.InventoryInfo.locationCode : null, |
|
|
|
|
|
toLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), |
|
|
toLocationErpCode: this.selectItemInfo.locationErpCode || (this.InventoryInfo ? this.InventoryInfo.locationErpCode : null), |
|
|
toLot: this.selectItemInfo.lot, |
|
|
toLot: this.selectItemInfo.lot, |
|
|
toPackingCode: newCode, |
|
|
toPackingCode: newCode, |
|
|