diff --git a/api/request2.js b/api/request2.js index 169cbe72..cadc36ac 100644 --- a/api/request2.js +++ b/api/request2.js @@ -1163,39 +1163,39 @@ export function getCountJobDetail(id) { } /** - * 盘点 任务承接 + * 盘点任务 任务承接 * @param {*} id * */ export function takeCountJob(id) { return request({ - url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id, + url: baseApi + "/wms/count-job-main/accept?id=" + id, method: "put", data: {}, }); } /** - * 盘点 放弃承接 + * 盘点任务 放弃承接 * @param {*} id * */ export function cancleTakeCountJob(id) { return request({ - url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, + url: baseApi + "/wms/count-job-main/abandon?id=" + id, method: "put", data: {}, }); } /** - * 盘点 任务提交 + * 盘点任务 提交 * @param {*} 任务id * */ export function countJobSubmit(params) { return request({ - url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id, + url: baseApi + "/wms/count-job-main/execute", method: "put", data: params, }); diff --git a/common/directory.js b/common/directory.js index 80c38b53..8d76a32b 100644 --- a/common/directory.js +++ b/common/directory.js @@ -17,6 +17,8 @@ let nextActionList = []; let inspectTypeList = []; let sampleMethodList = []; let transferModeList = []; +let countStageList = []; + // 获取业务类型字典项 @@ -51,6 +53,7 @@ export function clearCacheData() { inspectTypeList = []; sampleMethodList =[]; transferModeList = []; + countStageList =[]; } //获取字典信息 @@ -436,6 +439,26 @@ export function getTransferModeName(value) { return resultInfo } +//获取盘点阶段名称 +export function getCountStageName(value) { + var resultInfo = ""; + if (countStageList.length == 0) { + countStageList = getDirectoryInfo("count_stage") + } + if (countStageList.length > 0) { + for (let item of countStageList) { + if (item.value == value) { + resultInfo = item.label + break; + } + } + } + return resultInfo +} + + + + diff --git a/mycomponents/location/requiredLocation.vue b/mycomponents/location/requiredLocation.vue index 7aa6746a..0ac2a93c 100644 --- a/mycomponents/location/requiredLocation.vue +++ b/mycomponents/location/requiredLocation.vue @@ -59,7 +59,10 @@ }, methods: { showLocation() { - this.$refs.scanLocationCode.openScanPopup(); + if(this.isShowEdit){ + this.$refs.scanLocationCode.openScanPopup(); + } + }, //扫描源库位 getLocation(location, code) { diff --git a/mycomponents/qty/CountQtyEdit.vue b/mycomponents/qty/CountQtyEdit.vue index 0ded9f60..645ad726 100644 --- a/mycomponents/qty/CountQtyEdit.vue +++ b/mycomponents/qty/CountQtyEdit.vue @@ -43,7 +43,7 @@ - + 库存数量 : {{Number(dataContent.balanceQty)}} @@ -52,7 +52,7 @@ + style="align-items: center; padding-left: 30rpx;"> 库存状态 : { - if (detail.record == undefined) { - if (detail.packingNumber == this.dataContent.packingNumber && - detail.batch == this.dataContent.batch && - detail.inventoryStatus == this.inventoryStatus) { - return detail; - } - } else { - if (detail.record.packingNumber == this.dataContent.packingNumber && - detail.record.batch == this.dataContent.batch && - detail.record.inventoryStatus == this.inventoryStatus) { - return detail; - } - } - - }) - if (item == undefined) { - this.dataContent.inventoryStatus = this.inventoryStatus - this.dataContent.qty = Number(this.allQty) - this.$emit("confirm"); - this.closeEditPopup(); - } else { - this.$refs.comMessage.showErrorMessage("箱码[" + item.packingNumber + "]批次[" + item.batch + "]" + "状态[" + - getInventoryStatusName(item.inventoryStatus) + "]已经在列表中", res => { - }) - } - }, updateStatus(value) { this.inventoryStatus = value console.log(this.inventoryStatus) diff --git a/mycomponents/qty/compareQty.vue b/mycomponents/qty/compareQty.vue index 165ce424..1d4f7e8b 100644 --- a/mycomponents/qty/compareQty.vue +++ b/mycomponents/qty/compareQty.vue @@ -13,13 +13,15 @@ {{Number(handleQty)}} + - / - - {{Number(recommendQty)}} - + / + + {{Number(recommendQty)}} + + - + @@ -71,6 +73,10 @@ isShowStdPack: { type: Boolean, default: true + }, + isShowRecommendQty: { + type: Boolean, + default: true } }, watch: { diff --git a/mycomponents/recommend/recommendCount.vue b/mycomponents/recommend/recommendCount.vue new file mode 100644 index 00000000..14a1559d --- /dev/null +++ b/mycomponents/recommend/recommendCount.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/pages/count/coms/comCountDetailCard.vue b/pages/count/coms/comCountDetailCard.vue index 68b86d06..0cfd55ea 100644 --- a/pages/count/coms/comCountDetailCard.vue +++ b/pages/count/coms/comCountDetailCard.vue @@ -14,7 +14,7 @@ - + @@ -28,7 +28,7 @@ diff --git a/pages/count/coms/jobInfoPopup.vue b/pages/count/coms/jobInfoPopup.vue index 1e244259..0d3996e4 100644 --- a/pages/count/coms/jobInfoPopup.vue +++ b/pages/count/coms/jobInfoPopup.vue @@ -6,12 +6,22 @@ 计划单号 : - {{dataContent.PlanNumber}} + {{dataContent.planNumber}} 阶段 : - {{dataContent.Stage}} + {{getCountStageName(dataContent.stage)}} + + + 库位 : + {{dataContent.locationCode}} + + + 盘点策略 : + {{isOpenCount(dataContent.isOpenCount)}} + + @@ -20,6 +30,9 @@ diff --git a/pages/count/job/countDetail.vue b/pages/count/job/countDetail.vue index 7b38c44f..c90ada10 100644 --- a/pages/count/job/countDetail.vue +++ b/pages/count/job/countDetail.vue @@ -1,6 +1,27 @@