|
|
@ -6,8 +6,8 @@ |
|
|
|
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount"> |
|
|
|
</com-job-scan-detail> |
|
|
|
</view> |
|
|
|
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" |
|
|
|
@scroll="scroll" class="scroll-detail"> |
|
|
|
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" |
|
|
|
class="scroll-detail"> |
|
|
|
|
|
|
|
<view class="detail-list margin_top" v-for="(item, index) in details" :key="item.id"> |
|
|
|
<view class="detail-content"> |
|
|
@ -33,13 +33,13 @@ |
|
|
|
<uni-tr> |
|
|
|
<uni-th width="50">库位</uni-th> |
|
|
|
<uni-th width="100" align="center"> |
|
|
|
<view class="text_black">{{ item.recommendFromLocationCode }}</view> |
|
|
|
<view class="text_black">{{ item.recommendToLocationCode }}</view> |
|
|
|
</uni-th> |
|
|
|
<uni-th width="140"> |
|
|
|
<view class="" v-if="item.scaned" |
|
|
|
style="display: flex; width: 100%; align-items: center; justify-content: center;"> |
|
|
|
<view class="text_black"> |
|
|
|
{{ item.handledFromLocationCode }} |
|
|
|
{{ item.handledToLocationCode }} |
|
|
|
</view> |
|
|
|
<view class="" style="margin-left: 20rpx;"> |
|
|
|
<button size="mini" type="primary" |
|
|
@ -204,11 +204,11 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
getToLocation(locationInfo) { |
|
|
|
this.currentItem.handledFromLocationCode = locationInfo.code; |
|
|
|
this.currentItem.handledFromLocationArea = locationInfo.areaCode |
|
|
|
this.currentItem.handledFromLocationGroup = locationInfo.locationGroupCode |
|
|
|
this.currentItem.handledFromLocationErpCode = locationInfo.erpLocationCode |
|
|
|
this.currentItem.handledFromWarehouseCode = locationInfo.warehouseCode |
|
|
|
this.currentItem.handledToLocationCode = locationInfo.code; |
|
|
|
this.currentItem.handledToLocationArea = locationInfo.areaCode |
|
|
|
this.currentItem.handledToLocationGroup = locationInfo.locationGroupCode |
|
|
|
this.currentItem.handledToLocationErpCode = locationInfo.erpLocationCode |
|
|
|
this.currentItem.handledToWarehouseCode = locationInfo.warehouseCode |
|
|
|
}, |
|
|
|
|
|
|
|
openScanPopup() { |
|
|
@ -283,7 +283,7 @@ |
|
|
|
|
|
|
|
qtyChanged(value, item, index) { |
|
|
|
if (value == 0) { |
|
|
|
this.showMessage('领料数量必须大于0') |
|
|
|
this.showMessage('退料数量必须大于0') |
|
|
|
item.handledQty = item.recommendQty |
|
|
|
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); |
|
|
|
return; |
|
|
@ -317,7 +317,7 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
let items = this.details.filter(r => { |
|
|
|
return r.scaned && r.handledQty != 0 && r.handledFromLocationCode != null |
|
|
|
return r.scaned && r.handledQty != 0 && r.handledToLocationCode != null |
|
|
|
}) |
|
|
|
if (items.length == this.details.length) { |
|
|
|
this.finsh(); |
|
|
@ -335,19 +335,14 @@ |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
that.details.forEach(res => { |
|
|
|
|
|
|
|
res.recommendContainerCode = "" |
|
|
|
res.handledContainerCode = "" |
|
|
|
res.recommendPackingCode = "" |
|
|
|
res.handledPackingCode = "" |
|
|
|
res.recommendSupplierBatch = "" |
|
|
|
res.recommendArriveDate = res.recommendFromArriveDate |
|
|
|
res.recommendProduceDate = res.recommendFromProduceDate |
|
|
|
res.recommendExpireDate = res.recommendFromExpireDate |
|
|
|
res.recommendLot = "" |
|
|
|
res.handledSupplierBatch = "" |
|
|
|
res.handledArriveDate = res.handledToArriveDate |
|
|
|
res.handledProduceDate = res.handledToProduceDate |
|
|
|
res.handledExpireDate = res.handledToExpireDate |
|
|
|
res.handledLot = "" |
|
|
|
|
|
|
|
}) |
|
|
|