|
@ -7,13 +7,13 @@ |
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
扫描箱码 |
|
|
扫描箱码 |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<image class="fr icons_scan_close" src="/static/icons/icons_scan_close.svg" |
|
|
<image class="fr icons_scan_close" src="/static/icons/icons_scan_close.svg" |
|
|
@click="closeScanPopup()"></image> |
|
|
@click="closeScanPopup()"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- <view class="uni-flex uni-row" style="align-items: center; |
|
|
<!-- <view class="uni-flex uni-row" style="align-items: center; |
|
|
background-color: #fff; |
|
|
background-color: #fff; |
|
|
margin-left: 20rpx; |
|
|
margin-left: 20rpx; |
|
@ -343,7 +343,7 @@ |
|
|
this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + |
|
|
this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + |
|
|
'】的发货明细,是否要继续发货?', res => { |
|
|
'】的发货明细,是否要继续发货?', res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
let batch = that.createBatchInfo(label, balance); |
|
|
let batch = that.createBatchInfo(label, balance,packageInfo); |
|
|
fromLocation.Batchs.unshift(batch); |
|
|
fromLocation.Batchs.unshift(batch); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -370,7 +370,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
createBatchInfo(data, balance) { |
|
|
createBatchInfo(data, balance, packageInfo) { |
|
|
let batch = { |
|
|
let batch = { |
|
|
batch: data.lot, |
|
|
batch: data.lot, |
|
|
qty: 0, |
|
|
qty: 0, |
|
@ -378,7 +378,7 @@ |
|
|
handleQty: Number(data.qty), |
|
|
handleQty: Number(data.qty), |
|
|
Records: [] |
|
|
Records: [] |
|
|
} |
|
|
} |
|
|
let record = this.creatRecord(data, balance); |
|
|
let record = this.creatRecord(data, balance, packageInfo); |
|
|
batch.Records.push(record); |
|
|
batch.Records.push(record); |
|
|
this.issueRecord.unshift(record) |
|
|
this.issueRecord.unshift(record) |
|
|
return batch; |
|
|
return batch; |
|
@ -396,7 +396,9 @@ |
|
|
inventoryStatus: balance.inventoryStatus, |
|
|
inventoryStatus: balance.inventoryStatus, |
|
|
balance: balance, |
|
|
balance: balance, |
|
|
toLocationCode: this.toLocationCode, |
|
|
toLocationCode: this.toLocationCode, |
|
|
supplierCode: label.supplierCode |
|
|
supplierCode: label.supplierCode, |
|
|
|
|
|
packUnit: packageInfo.packUnit, |
|
|
|
|
|
packQty: packageInfo.packQty |
|
|
} |
|
|
} |
|
|
return record; |
|
|
return record; |
|
|
}, |
|
|
}, |
|
@ -404,7 +406,7 @@ |
|
|
calcBatchHandleQty(batch) { |
|
|
calcBatchHandleQty(batch) { |
|
|
let handleQty = 0; |
|
|
let handleQty = 0; |
|
|
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; |
|
|
}, |
|
|
}, |
|
|