diff --git a/fe/PDA/pages/task/unProduceReturnWipDetail.vue b/fe/PDA/pages/task/unProduceReturnWipDetail.vue
index 2f2afced5..04a83083e 100644
--- a/fe/PDA/pages/task/unProduceReturnWipDetail.vue
+++ b/fe/PDA/pages/task/unProduceReturnWipDetail.vue
@@ -6,8 +6,8 @@
-
+
@@ -33,21 +33,21 @@
库位
- {{ item.recommendFromLocationCode }}
+ {{ item.recommendToLocationCode }}
- {{ item.handledFromLocationCode }}
+ {{ item.handledToLocationCode }}
-
-
+
+
@@ -67,7 +67,7 @@
-
+
@@ -76,7 +76,7 @@
-;
+ ;
@@ -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'));
@@ -278,12 +278,12 @@
this.calcScanCount()
this.$forceUpdate()
}
-
+
},
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();
+ });
},
//返回任务列表页