From 7169af26b39f693418065ed5efd03eeda6586889 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 7 Dec 2023 08:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request2.js | 6 +- common/basic.js | 1 - mycomponents/scan/winScanPackAndLocation.vue | 2 +- pages/inspect/job/inspectDetail.vue | 6 +- pages/inspect/job/inspectResult.vue | 4 +- .../coms/comReturnJobCard.vue | 18 ++-- pages/productionReturn/job/returnDetail.vue | 100 +++++++++--------- pages/purchaseReceipt/job/receiptDetail.vue | 17 +-- pages/purchaseReturn/job/returnDetail.vue | 5 +- pages/purchaseReturn/record/returnRecord.vue | 7 +- pages/putaway/job/putawayDetail.vue | 5 +- static/config.json | 2 +- 12 files changed, 77 insertions(+), 96 deletions(-) diff --git a/api/request2.js b/api/request2.js index 1db71757..45b1d8b6 100644 --- a/api/request2.js +++ b/api/request2.js @@ -2234,7 +2234,7 @@ export function getProductionReturnJobDetail(id) { */ export function takeProductionReturnJob(id) { return request({ - url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, + url: baseApi + "/wms/productionreturn-job-main/accept?id=" + id, method: "put", data: {}, }); @@ -2247,7 +2247,7 @@ export function takeProductionReturnJob(id) { */ export function cancleTakeProductionReturnJob(id) { return request({ - url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, + url: baseApi + "/wms/productionreturn-job-main/abandon?id=" + id, method: "put", data: {}, }); @@ -2260,7 +2260,7 @@ export function cancleTakeProductionReturnJob(id) { */ export function productionReturnJobSubmit(params) { return request({ - url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit", + url: baseApi + "/wms/productionreturn-job-main/execute", method: "put", data: params, }); diff --git a/common/basic.js b/common/basic.js index ba15c4d1..68e219a3 100644 --- a/common/basic.js +++ b/common/basic.js @@ -882,7 +882,6 @@ export function clearTirmAndWrap(content) { export function navigateBack(backIndex) { let canNavBack = getCurrentPages() - console.log("返回",canNavBack.length ) if (canNavBack && canNavBack.length - 1 > backIndex) { uni.navigateBack({ delta: backIndex diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue index 8e91fa81..e84e4197 100644 --- a/mycomponents/scan/winScanPackAndLocation.vue +++ b/mycomponents/scan/winScanPackAndLocation.vue @@ -136,7 +136,7 @@ this.fromLocationCode = this.fromLocationList[0]; } } - this.$refs.popup.open('bottom'); + this.$refs.popup.open('bottom'); this.fromInventoryStatuses = jobContent.outInventoryStatuses this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 this.fromLocationTypeArray = getDirectoryItemArray(jobContent.fromLocationTypes); //出库库存状态 diff --git a/pages/inspect/job/inspectDetail.vue b/pages/inspect/job/inspectDetail.vue index 99904637..f79f0cb3 100644 --- a/pages/inspect/job/inspectDetail.vue +++ b/pages/inspect/job/inspectDetail.vue @@ -313,12 +313,8 @@ this.showErrorMessage(e.message); } }, - commit(){ - this.showCommitSuccessMessage("提交成功") - }, - commits() { - + commit() { this.scanCount = getScanCount(this.subList); if (this.scanCount == 0) { this.showErrorMessage("扫描数为0,请先扫描") diff --git a/pages/inspect/job/inspectResult.vue b/pages/inspect/job/inspectResult.vue index 840141b8..3946deaa 100644 --- a/pages/inspect/job/inspectResult.vue +++ b/pages/inspect/job/inspectResult.vue @@ -383,7 +383,7 @@ } else { //报废数大于0,进入详情 //进入下一页面 - uni.redirectTo({ + uni.navigateTo({ url: './inspectDetail?id=' + this.id + '&status=' + this.status + '&failedQty=' + this.jobContent.failedQty + @@ -420,7 +420,7 @@ //部分合格 } else if (this.nextAction == "PARTIAL_OK") { //进入下一页面 - uni.redirectTo({ + uni.navigateTo({ url: './inspectDetail?id=' + this.id + '&status=' + this.status + '&failedQty=' + this.jobContent.failedQty + diff --git a/pages/productionReturn/coms/comReturnJobCard.vue b/pages/productionReturn/coms/comReturnJobCard.vue index 0c128100..9f4c26ec 100644 --- a/pages/productionReturn/coms/comReturnJobCard.vue +++ b/pages/productionReturn/coms/comReturnJobCard.vue @@ -9,15 +9,10 @@ - 物品代码 : {{dataContent.itemCode}} + 业务类型 : {{getBusinessTypeName(dataContent.businessType)}} - - - 目标库位 : {{dataContent.toLocationCode}} - - @@ -40,7 +35,16 @@ }, methods: { - + getBusinessTypeName(value) { + var name = ""; + if (value == 'ReturnToStore') { + name = "合格退料" + } else if (value == 'ReturnToHold') { + name = "隔离退料" + } + return name; + + } } } diff --git a/pages/productionReturn/job/returnDetail.vue b/pages/productionReturn/job/returnDetail.vue index 8ab84e96..915013ad 100644 --- a/pages/productionReturn/job/returnDetail.vue +++ b/pages/productionReturn/job/returnDetail.vue @@ -14,14 +14,14 @@ - - + @@ -37,7 +37,6 @@