Browse Source

修改到货检验

wms3.0_pda
lijuncheng 11 months ago
parent
commit
fa4f0c0189
  1. 10
      api/request2.js
  2. 18
      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: {},
}); });
} }

18
pages/inspect/job/inspectFullDetail.vue

@ -353,10 +353,14 @@
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;
} else {
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
//-------:nxt 20231213 //-------:nxt 20231213
if (this.jobContent.allowPartialComplete == "TRUE") { if (this.jobContent.allowPartialComplete == "TRUE") {
this.submitJob(); this.submitJob();
@ -370,6 +374,12 @@
} }
}); });
} }
}
}
}, },
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