|
|
@ -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" |
|
|
@ -76,7 +76,7 @@ |
|
|
|
<view v-if="item.scaned" class="choose_marked_count" |
|
|
|
style="background-color: #5FCB94; opacity: 0.65"> |
|
|
|
<view class="" style="background-color: #5FCB94; width: 200rpx;height: 300rpx;"> |
|
|
|
; |
|
|
|
; |
|
|
|
</view> |
|
|
|
<!-- <image src="@/static/image_marked.svg"></image> --> |
|
|
|
</view> |
|
|
@ -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() { |
|
|
@ -268,9 +268,9 @@ |
|
|
|
this.showMessage('在任务详情中,单件码【' + result.scanCode + '】所对应的物料号与任务中的物料号不一致,请重新扫描'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(item.scaned){ |
|
|
|
this.showMessage('单件码['+result.scanCode+"]已经扫描") |
|
|
|
}else { |
|
|
|
if (item.scaned) { |
|
|
|
this.showMessage('单件码[' + result.scanCode + "]已经扫描") |
|
|
|
} else { |
|
|
|
item.scaned = true; |
|
|
|
item.scanDate = new Date() |
|
|
|
this.details.sort(compareDesc('scanDate')); |
|
|
@ -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 = "" |
|
|
|
|
|
|
|
}) |
|
|
@ -359,17 +354,17 @@ |
|
|
|
that.datacontent.details = that.details; |
|
|
|
let params = JSON.stringify(that.datacontent); |
|
|
|
console.log("提交", params); |
|
|
|
finshUnProduceReturnJob(that.id, params) |
|
|
|
.then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (res != null) { |
|
|
|
that.showCommitSuccessMessage(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
that.showMessage(err.message); |
|
|
|
uni.hideLoading(); |
|
|
|
}); |
|
|
|
finshUnProduceReturnJob(that.id, params) |
|
|
|
.then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (res != null) { |
|
|
|
that.showCommitSuccessMessage(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
that.showMessage(err.message); |
|
|
|
uni.hideLoading(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//返回任务列表页 |
|
|
|