|
@ -8,10 +8,12 @@ |
|
|
<scroll-view scroll-y="true" class=""> |
|
|
<scroll-view scroll-y="true" class=""> |
|
|
<view v-for="(toLocation, index) in detailSource"> |
|
|
<view v-for="(toLocation, index) in detailSource"> |
|
|
<view class="uni-row uni-flex"> |
|
|
<view class="uni-row uni-flex"> |
|
|
<!-- <com-issue-request-info :workShopCode="workShopCode" :dataContent="toLocation"> |
|
|
<!-- <com-issue-request-info :workShopCode="workShopCode" :dataContent="toLocation"> |
|
|
</com-issue-request-info> --> |
|
|
</com-issue-request-info> --> |
|
|
<work-station :workshopCode="workShopCode" :productionLineCode="toLocation.productionLineCode" |
|
|
<work-station :workshopCode="workShopCode" |
|
|
:workStationCode="toLocation.workStationCode" :rawLocationCode="toLocation.toLocationCode"></work-station> |
|
|
:productionLineCode="toLocation.productionLineCode" |
|
|
|
|
|
:workStationCode="toLocation.workStationCode" |
|
|
|
|
|
:rawLocationCode="toLocation.toLocationCode"></work-station> |
|
|
</view> |
|
|
</view> |
|
|
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" |
|
|
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" |
|
|
@updateData='updateData'> |
|
|
@updateData='updateData'> |
|
@ -101,8 +103,8 @@ |
|
|
fromInventoryStatuses: "", |
|
|
fromInventoryStatuses: "", |
|
|
toInventoryStatuses: "", |
|
|
toInventoryStatuses: "", |
|
|
requestList: [], |
|
|
requestList: [], |
|
|
dataContent:{}, |
|
|
dataContent: {}, |
|
|
managementList:[] |
|
|
managementList: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -212,7 +214,7 @@ |
|
|
caclcQty() { |
|
|
caclcQty() { |
|
|
var totalQty = 0; |
|
|
var totalQty = 0; |
|
|
this.detailSource.subList.forEach(res => { |
|
|
this.detailSource.subList.forEach(res => { |
|
|
totalQty = calc.add(totalQty,res.qty); |
|
|
totalQty = calc.add(totalQty, res.qty); |
|
|
}) |
|
|
}) |
|
|
this.detailSource.totalQty = totalQty; |
|
|
this.detailSource.totalQty = totalQty; |
|
|
}, |
|
|
}, |
|
@ -244,10 +246,10 @@ |
|
|
let handleQty = 0; |
|
|
let handleQty = 0; |
|
|
if (batch != undefined) { |
|
|
if (batch != undefined) { |
|
|
batch.Records.forEach(res => { |
|
|
batch.Records.forEach(res => { |
|
|
handleQty = calc.add(handleQty,res.qty); |
|
|
handleQty = calc.add(handleQty, res.qty); |
|
|
}) |
|
|
}) |
|
|
batch.handleQty = handleQty; |
|
|
batch.handleQty = handleQty; |
|
|
itemHandleQty = calc.add(itemHandleQty,handleQty) |
|
|
itemHandleQty = calc.add(itemHandleQty, handleQty) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -283,18 +285,26 @@ |
|
|
.inventoryStatus; |
|
|
.inventoryStatus; |
|
|
record.toLocationCode = subItem |
|
|
record.toLocationCode = subItem |
|
|
.toLocationCode; |
|
|
.toLocationCode; |
|
|
record.fromLocationCode = fromLocation.fromLocationCode |
|
|
record.fromLocationCode = fromLocation |
|
|
|
|
|
.fromLocationCode |
|
|
record.supplierCode = r.supplierCode; |
|
|
record.supplierCode = r.supplierCode; |
|
|
|
|
|
|
|
|
|
|
|
let single_price = r.singlePrice == null ? |
|
|
|
|
|
0 : r.singlePrice; |
|
|
|
|
|
|
|
|
|
|
|
record.singlePrice = single_price; |
|
|
|
|
|
record.amount = single_price * r.qty; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//使用在途库不改变管理模式 |
|
|
//使用在途库不改变管理模式 |
|
|
var info = getPackingNumberAndBatch( |
|
|
var info = getPackingNumberAndBatch( |
|
|
this.managementList, r |
|
|
this.managementList, r |
|
|
.itemCode, |
|
|
.itemCode, |
|
|
r.packingNumber, r |
|
|
r.packingNumber, r |
|
|
.batch); |
|
|
.batch); |
|
|
record.toPackingNumber = info |
|
|
record.toPackingNumber = info |
|
|
.packingNumber; |
|
|
.packingNumber; |
|
|
record.toBatch = info.batch; |
|
|
record.toBatch = info.batch; |
|
|
subItem.recordList.push(record); |
|
|
subItem.recordList.push(record); |
|
|
}) |
|
|
}) |
|
|
subList.push(subItem); |
|
|
subList.push(subItem); |
|
@ -360,11 +370,11 @@ |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
clearData(){ |
|
|
clearData() { |
|
|
this.detailSource =[]; |
|
|
this.detailSource = []; |
|
|
this.requestList=[]; |
|
|
this.requestList = []; |
|
|
this.dataContent ={} |
|
|
this.dataContent = {} |
|
|
this.managementList=[] |
|
|
this.managementList = [] |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showMessage(message) { |
|
|
showMessage(message) { |
|
|