diff --git a/api/request2.js b/api/request2.js
index 55516fce..169cbe72 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -1537,26 +1537,26 @@ export function getProductReceiptJobDetail(id) {
}
/**
- * 制品收货 承接
+ * 制品收货任务 承接
* @param {*} id
*
*/
export function takeProductReceiptJob(id) {
return request({
- url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id,
+ url: baseApi + "/wms/productreceipt-job-main/accept?id=" + id,
method: "put",
data: {},
});
}
/**
- * 制品收货 放弃承接
+ * 制品收货任务 放弃承接
* @param {*} id
*
*/
export function cancleTakeProductReceiptJob(id) {
return request({
- url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id,
+ url: baseApi + "/wms/productreceipt-job-main/abandon?id=" + id,
method: "put",
data: {},
});
@@ -1568,7 +1568,7 @@ export function cancleTakeProductReceiptJob(id) {
*/
export function productReceiptJobsubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ url: baseApi + "/wms/productreceipt-job-main/execute",
method: "put",
data: params,
});
diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue
index 62b61d78..e3ec3242 100644
--- a/mycomponents/scan/winScanPackAndLocation.vue
+++ b/mycomponents/scan/winScanPackAndLocation.vue
@@ -139,7 +139,6 @@
this.$refs.popup.open('bottom');
this.fromInventoryStatuses = jobContent.outInventoryStatuses
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态
- debugger
this.fromLocationTypeArray = getDirectoryItemArray(jobContent.fromLocationTypes); //出库库存状态
},
diff --git a/pages/issue/coms/comIssueRequestCreator.vue b/pages/issue/coms/comIssueRequestCreator.vue
index 7a4cd165..a5276da9 100644
--- a/pages/issue/coms/comIssueRequestCreator.vue
+++ b/pages/issue/coms/comIssueRequestCreator.vue
@@ -71,9 +71,13 @@
},
},
watch: {
- dataContent(newVal) {
- this.requestItem = newVal.subList[0];
- },
+ dataContent: {
+ handler(newval, oldval) {
+ this.requestItem = this.dataContent.subList[0];
+ },
+ immediate: true,
+ deep: true
+ }
},
data() {
diff --git a/pages/productReceipt/coms/comProductDetailCard.vue b/pages/productReceipt/coms/comProductDetailCard.vue
index 32e2e085..ee8c62c6 100644
--- a/pages/productReceipt/coms/comProductDetailCard.vue
+++ b/pages/productReceipt/coms/comProductDetailCard.vue
@@ -3,47 +3,54 @@
-
+
-
+
-
+
+
-
-
+
+
+
+
+
diff --git a/pages/productReceipt/job/productReceiptDetail.vue b/pages/productReceipt/job/productReceiptDetail.vue
index 6c67be4f..1425e40d 100644
--- a/pages/productReceipt/job/productReceiptDetail.vue
+++ b/pages/productReceipt/job/productReceiptDetail.vue
@@ -13,10 +13,10 @@
-
-
+
@@ -37,8 +37,7 @@
-
-
+
@@ -56,7 +55,6 @@
} from '@/api/request2.js';
import {
goHome,
- getCurrDateTime,
navigateBack,
getPackingNumberAndBatch,
} from '@/common/basic.js';
@@ -79,8 +77,9 @@
import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanPack from "@/mycomponents/scan/winScanPack.vue"
import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
- import detailInfoPopup from '@/pages/productReceipt/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
+ import comProductDetailCard from "@/pages/productReceipt/coms/comProductDetailCard.vue"
+
export default {
name: 'receipt_detail',
@@ -90,8 +89,8 @@
requiredLocation,
winScanPack,
comMessage,
- detailInfoPopup,
- jobTop
+ jobTop,
+ comProductDetailCard
},
data() {
return {
@@ -104,10 +103,8 @@
jobContent: {}, //任务内容
subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- fromLocationTypeList: [],
toLocationTypeList: [],
toLocationInfo: {},
- businessTypeInfo: {},
managementList: []
};
@@ -116,16 +113,15 @@
this.id = option.id;
if (this.id != undefined) {
//新建的任务自动接收
- // if (option.status == "JOB_PENDING") {
- // this.receive((callback => {
- // this.received = true;
- // this.getDetail();
- // }));
- // } else {
- // this.getDetail();
- // }
-
- this.getDetail();
+ if (option.status == "1") {
+ this.receive((callback => {
+ this.received = true;
+ this.getDetail();
+ }));
+ } else {
+ this.getDetail();
+ }
+
}
},
//返回首页
@@ -189,7 +185,6 @@
that.jobContent = res.data;
that.subList = res.data.subList;
that.toLocationCode = that.subList[0].toLocationCode
- that.fromLocationTypeList = getDirectoryItemArray(that.jobContent.fromLocationTypes);
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.subList)
} else {
@@ -226,19 +221,15 @@
itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
- this.calcHandleQty();
+ calcHandleQty(this.detailSource);
+ this.continueScan()
+ this.$forceUpdate()
}
}
}
},
- calcHandleQty() {
- calcHandleQty(this.detailSource)
- this.continueScan();
- this.$forceUpdate();
- },
-
//继续扫描
continueScan() {
this.scanCount = getScanCount(this.subList);
@@ -251,12 +242,9 @@
updateData() {
- this.calcHandleQty();
+ calcHandleQty(this.detailSource);
},
- openDetail(item) {
- this.$refs.detailInfoPopup.openPopup(item)
- },
openScanPopup() {
this.$refs.scanPopup.openScanPopup();
@@ -342,17 +330,17 @@
this.managementList = res.list;
var params = this.setParams();
console.log("提交参数",JSON.stringify(params));
- // productReceiptJobsubmit(params).then(res => {
- // uni.hideLoading()
- // if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成制品收货记录" + res.data, )
- // } else {
- // this.showErrorMessage("提交失败[" + res.msg + "]")
- // }
- // }).catch(error => {
- // uni.hideLoading()
- // this.showErrorMessage(error)
- // })
+ productReceiptJobsubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功
生成制品收货记录
" + res.data, )
+ } else {
+ this.showErrorMessage("提交失败[" + res.msg + "]")
+ }
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
@@ -369,8 +357,11 @@
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
- detail.toPackingNumber =info.packingNumber;
- detail.toBatch =info.batch;
+ detail.toPackingNumber = info.packingNumber;
+ detail.toBatch = info.batch;
+ detail.toContainerNumber = '';
+ detail.toInventoryStatus =detail.inventoryStatus
+ detail.toLocationCode = this.toLocationCode
subList.push(detail)
}
})
@@ -382,19 +373,19 @@
scanPopupGetFocus() {
- this.$refs.scanPopup.packGetFocus();
+ this.$refs.scanPopup.getfocus();
},
scanPopupLoseFocus() {
- this.$refs.scanPopup.packLoseFocus();
+ this.$refs.scanPopup.losefocus();
},
showMessage(message) {
setTimeout(r => {
- // this.scanPopupLoseFocus();
+ this.scanPopupLoseFocus();
this.$refs.comMessage.showMessage(message, res => {
if (res) {
- // this.scanPopupGetFocus();
+ this.scanPopupGetFocus();
}
});
})
diff --git a/pages/productReceipt/job/productReceiptJob.vue b/pages/productReceipt/job/productReceiptJob.vue
index 245dedb1..d2730f53 100644
--- a/pages/productReceipt/job/productReceiptJob.vue
+++ b/pages/productReceipt/job/productReceiptJob.vue
@@ -128,7 +128,7 @@
this.loadingType = "loading";
if (type === "refresh") {
this.pageNo = 1;
- this.receiptList = [];
+ this.jobList = [];
}
var filters = []
if (this.checkedToday) {
diff --git a/pages/productionReturn/request/returnRequestCreate.vue b/pages/productionReturn/request/returnRequestCreate.vue
index 98747514..0c8d5cf4 100644
--- a/pages/productionReturn/request/returnRequestCreate.vue
+++ b/pages/productionReturn/request/returnRequestCreate.vue
@@ -7,7 +7,6 @@
-
@@ -183,17 +182,17 @@
});
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
- // productionReturnRequestCreate(params).then(res => {
- // uni.hideLoading()
- // if (res.data) {
- // this.showCommitSuccessMessage("提交成功
生成发料申请" + res.data)
- // } else {
- // this.showErrorMessage("提交失败[" + res.msg + "]")
- // }
- // }).catch(error => {
- // uni.hideLoading()
- // this.showErrorMessage(error)
- // })
+ productionReturnRequestCreate(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功
生成发料申请" + res.data)
+ } else {
+ this.showErrorMessage("提交失败[" + res.msg + "]")
+ }
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
diff --git a/pages/scrap/coms/comScrapDetailCard.vue b/pages/scrap/coms/comScrapDetailCard.vue
index d0ab40f2..4f376664 100644
--- a/pages/scrap/coms/comScrapDetailCard.vue
+++ b/pages/scrap/coms/comScrapDetailCard.vue
@@ -104,6 +104,7 @@
detail(item) {
this.showItem = item;
+ console.log("提交参数", JSON.stringify(item));
this.$refs.jobDetailPopup.openPopup(item)
},
remove(item) {
@@ -111,15 +112,13 @@
res => {
if (res) {
item.scaned = false
- item.record = {}
- // item.record.qty = 0;
this.$forceUpdate()
this.$emit('remove', item)
}
});
},
confirm(qty) {
- this.editItem.record.qty = qty;
+ this.editItem.handleQty = qty;
this.$emit('updateData')
}
}
diff --git a/pages/scrap/job/scrapJobDetail.vue b/pages/scrap/job/scrapJobDetail.vue
index 6eb893ec..c8f504fe 100644
--- a/pages/scrap/job/scrapJobDetail.vue
+++ b/pages/scrap/job/scrapJobDetail.vue
@@ -385,11 +385,11 @@
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ this.$refs.scanPopup.packGetFocus();
},
scanPopupLoseFocus() {
- this.$refs.scanPopup.losefocus();
+ this.$refs.scanPopup.packLoseFocus();
},
showCommitSuccessMessage(hint) {