Browse Source

修改到货检验

wms3.0_pda
lijuncheng 11 months ago
parent
commit
fa4f0c0189
  1. 10
      api/request2.js
  2. 56
      pages/inspect/job/inspectFullDetail.vue
  3. 2
      static/config.json

10
api/request2.js

@ -1619,27 +1619,27 @@ export function getProductPutawayJobDetail(id) {
} }
/** /**
* 制品上架 承接 * 制品上架任务 承接
* @param {*} id * @param {*} id
* *
*/ */
export function takeProductPutawayJob(id) { export function takeProductPutawayJob(id) {
return request({ return request({
url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, url: baseApi + "/wms/productputaway-job-main/accept?id=" + id,
method: "put", method: "put",
data: {}, data: {},
}); });
} }
/** /**
* 制品上架 放弃承接 * 制品上架任务 放弃承接
* @param {*} id * @param {*} id
* *
*/ */
export function cancleTakeProductPutawayJob(id) { export function cancleTakeProductPutawayJob(id) {
return request({ return request({
url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, url: baseApi + "/wms/productputaway-job-main/abandon?id=" + id,
method: "get", method: "put",
data: {}, data: {},
}); });
} }

56
pages/inspect/job/inspectFullDetail.vue

@ -148,24 +148,24 @@
}, },
methods: { methods: {
deleteFileById(id){ deleteFileById(id) {
deleteFileById(id).then(res=>{ deleteFileById(id).then(res => {
}) })
}, },
getFileList(id){ getFileList(id) {
getFileList("jobInspectDetail", id).then(res => { getFileList("jobInspectDetail", id).then(res => {
if(res.data){ if (res.data) {
res.data.forEach(res=>{ res.data.forEach(res => {
this.deleteFileById(res.id) this.deleteFileById(res.id)
}) })
} }
}) })
}, },
clearPicList(subList){ clearPicList(subList) {
subList.forEach(item=>{ subList.forEach(item => {
this.getFileList(item.id) this.getFileList(item.id)
}) })
}, },
@ -353,23 +353,33 @@
commit() { commit() {
this.scanCount = getScanCount(this.subList); this.scanCount = getScanCount(this.subList);
// if (this.scanCount == 0) {
// this.showErrorMessage("0,") if (this.scanCount == 0) {
// return; this.showErrorMessage("扫描数为0,请先扫描")
// } return;
//-------:nxt 20231213
if (this.jobContent.allowPartialComplete == "TRUE") {
this.submitJob();
} else { } else {
// if (this.scanCount == this.subList.length) {
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount + this.submitJob();
"]箱总共[" + this } else {
.subList.length + "]箱", res => { //-------:nxt 20231213
if (res) { if (this.jobContent.allowPartialComplete == "TRUE") {
this.openScanPopup(); this.submitJob();
} } else {
}); //
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
}
}
} }
}, },
submitJob() { submitJob() {

2
static/config.json

@ -18,7 +18,7 @@
"request_url": { "request_url": {
"name": "request_url", "name": "request_url",
"value": "http://192.168.0.157:12080/admin-api", "value": "http://192.168.0.230:12080/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api", "dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.178:12080/admin-api", "chefang": "http://192.168.0.178:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save