|
@ -19,6 +19,7 @@ |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" |
|
|
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" |
|
|
|
|
|
:isShowToLocation="false" |
|
|
@removePack="removePack"> |
|
|
@removePack="removePack"> |
|
|
</record-com-detail-card> |
|
|
</record-com-detail-card> |
|
|
</view> |
|
|
</view> |
|
@ -55,6 +56,7 @@ |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
goHome, |
|
|
goHome, |
|
|
|
|
|
deepCopyData |
|
|
} from '@/common/basic.js'; |
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -274,30 +276,34 @@ |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
detail.itemCode = detail.itemCode; |
|
|
var submitItem = deepCopyData(detail) |
|
|
detail.itemName = detail.package.itemName; |
|
|
submitItem.itemCode = detail.itemCode; |
|
|
detail.itemDesc1 = detail.package.itemDesc1; |
|
|
submitItem.itemName = detail.package.itemName; |
|
|
detail.itemDesc2 = detail.package.itemDesc2; |
|
|
submitItem.itemDesc1 = detail.package.itemDesc1; |
|
|
|
|
|
submitItem.itemDesc2 = detail.package.itemDesc2; |
|
|
|
|
|
|
|
|
detail.inventoryStatus = detail.inventoryStatus; |
|
|
submitItem.inventoryStatus = detail.inventoryStatus; |
|
|
|
|
|
|
|
|
detail.fromPackingNumber = detail.packingNumber; |
|
|
detail.fromPackingNumber = detail.packingNumber; |
|
|
detail.toPackingNumber = detail.packingNumber; |
|
|
detail.toPackingNumber = detail.packingNumber; |
|
|
|
|
|
|
|
|
detail.fromContainerNumber = detail.containerNumber; |
|
|
submitItem.fromContainerNumber = detail.containerNumber; |
|
|
detail.toContainerNumber = detail.containerNumber |
|
|
submitItem.toContainerNumber = detail.containerNumber |
|
|
|
|
|
|
|
|
detail.fromBatch = detail.batch; |
|
|
submitItem.fromBatch = detail.batch; |
|
|
detail.toBatch = detail.batch; |
|
|
submitItem.toBatch = detail.batch; |
|
|
|
|
|
|
|
|
detail.fromLocationCode = detail.locationCode; |
|
|
submitItem.fromLocationCode = detail.locationCode; |
|
|
detail.toLocationCode = ""; |
|
|
submitItem.toLocationCode = ""; |
|
|
|
|
|
|
|
|
detail.reason = this.reasonCode; |
|
|
submitItem.reason = this.reasonCode; |
|
|
subList.push(detail) |
|
|
submitItem.qty = detail.handleQty!=undefined?detail.handleQty:detail.qty; |
|
|
|
|
|
submitItem.package =""; |
|
|
|
|
|
subList.push(submitItem) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
this.dataContent.subList =subList |
|
|
this.dataContent.subList =subList |
|
|
this.dataContent.creator = creator; |
|
|
this.dataContent.creator = creator; |
|
|
return this.dataContent; |
|
|
return this.dataContent; |
|
@ -337,12 +343,13 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
clearData(){ |
|
|
clearData(){ |
|
|
this.reasonCode = "" |
|
|
this.reasonCode = ""; |
|
|
|
|
|
this.fromLocationCode = ""; |
|
|
this.reasonText = ""; |
|
|
this.reasonText = ""; |
|
|
this.detailSource = []; |
|
|
this.detailSource = []; |
|
|
this.subList =[]; |
|
|
this.subList = []; |
|
|
this.managementList =[]; |
|
|
this.managementList = []; |
|
|
this.dataContent ={} |
|
|
this.dataContent = {} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
updateData() { |
|
|
updateData() { |
|
|