|
|
@ -11,8 +11,10 @@ |
|
|
|
<view class="page-main"> |
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
|
<view v-for="(toLocation, index) in detailSource"> |
|
|
|
<work-station :workshopCode="jobContent.workShopCode" :productionLineCode="toLocation.productionLineCode" |
|
|
|
:workStationCode="toLocation.workStationCode" :rawLocationCode="toLocation.toLocationCode"></work-station> |
|
|
|
<work-station :workshopCode="jobContent.workShopCode" |
|
|
|
:productionLineCode="toLocation.productionLineCode" |
|
|
|
:workStationCode="toLocation.workStationCode" :rawLocationCode="toLocation.toLocationCode"> |
|
|
|
</work-station> |
|
|
|
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" @updateData='updateData'> |
|
|
|
</com-issue-detail-card> |
|
|
|
</view> |
|
|
@ -285,7 +287,7 @@ |
|
|
|
item.Locations.forEach(fromLocation => { |
|
|
|
fromLocation.Batchs.forEach(batch => { |
|
|
|
let subItem = batch.detail; |
|
|
|
if(subItem!=undefined){ |
|
|
|
if (subItem != undefined) { |
|
|
|
subItem.recordList = []; |
|
|
|
if (batch.Records.length > 0) { |
|
|
|
batch.Records.forEach(r => { |
|
|
@ -306,14 +308,24 @@ |
|
|
|
.toLocationCode; |
|
|
|
record.supplierCode = r.supplierCode; |
|
|
|
|
|
|
|
let single_price = r.balance |
|
|
|
.singlePrice == null ? 0 : r |
|
|
|
.balance |
|
|
|
.singlePrice; |
|
|
|
|
|
|
|
record.singlePrice = single_price; |
|
|
|
record.amount = single_price * r.qty; |
|
|
|
|
|
|
|
//使用在途库不改变管理模式 |
|
|
|
if (this.jobContent.useOnTheWayLocation == |
|
|
|
if (this.jobContent |
|
|
|
.useOnTheWayLocation == |
|
|
|
'TRUE') { |
|
|
|
record.toPackingNumber = r |
|
|
|
.packingNumber; |
|
|
|
record.toBatch = r.batch; |
|
|
|
} else { |
|
|
|
var info = getPackingNumberAndBatch( |
|
|
|
var info = |
|
|
|
getPackingNumberAndBatch( |
|
|
|
this.managementList, r |
|
|
|
.itemCode, |
|
|
|
r.packingNumber, r |
|
|
|