From 99a8b6f04234ef9d2ea67e0a0bc4b6d491dbd48e Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 13 Mar 2024 11:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/api/index.js | 7 + .../mycomponents/comItem/comJobScanDetail.vue | 37 +- fe/PDA/mycomponents/wincom/winScanByCode.vue | 12 +- fe/PDA/pages.js | 43 ++ fe/PDA/pages.json | 43 ++ fe/PDA/pages/container/containerCall.vue | 187 ++++++++ fe/PDA/pages/container/containerMove.vue | 192 ++++++++ .../pages/container/containerMoveDetail.vue | 413 ++++++++++++++++++ .../inventory/productionReturn_detail.vue | 54 +-- .../pages/inventory/transferIssue_detail.vue | 46 +- .../inventory/transferReceipt_detail.vue | 35 +- .../plastics/plasticsCompleteReceive.vue | 176 ++++++++ .../pages/plastics/plasticsInventoryMove.vue | 192 ++++++++ .../plastics/plasticsInventoryMoveDetail.vue | 412 +++++++++++++++++ .../pages/return/productionReturn_detail.vue | 41 +- fe/PDA/pages/return/purchaseReturn_detail.vue | 44 +- fe/PDA/pages/task/Inspect_detail.vue | 33 +- fe/PDA/pages/task/count_detail.vue | 26 +- fe/PDA/pages/task/deliver.vue | 1 + fe/PDA/pages/task/deliverBoard_detail.vue | 46 +- fe/PDA/pages/task/deliverJis_detail.vue | 8 - fe/PDA/pages/task/deliver_detail.vue | 57 +-- fe/PDA/pages/task/issue_detail.vue | 44 +- fe/PDA/pages/task/putaway_detail.vue | 32 +- fe/PDA/pages/task/receipt_detail.vue | 27 +- fe/PDA/pages/task/receipt_result.vue | 7 +- fe/PDA/pages/task/unProducePickDetail.vue | 4 - fe/PDA/pages/task/unProduceReturnDetail.vue | 4 - 28 files changed, 1923 insertions(+), 300 deletions(-) create mode 100644 fe/PDA/pages/container/containerCall.vue create mode 100644 fe/PDA/pages/container/containerMove.vue create mode 100644 fe/PDA/pages/container/containerMoveDetail.vue create mode 100644 fe/PDA/pages/plastics/plasticsCompleteReceive.vue create mode 100644 fe/PDA/pages/plastics/plasticsInventoryMove.vue create mode 100644 fe/PDA/pages/plastics/plasticsInventoryMoveDetail.vue diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index bab601259..a135708b9 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -1394,3 +1394,10 @@ export const finshDeliverBoardJob = (id, params) => request( method: "post" }) +//高往低库存转移任务列表 +export const getPlasticsList = (params) => request( + devUrl + "/api/pda/job/deliver/list", { + method: 'get', + data: params + }); + diff --git a/fe/PDA/mycomponents/comItem/comJobScanDetail.vue b/fe/PDA/mycomponents/comItem/comJobScanDetail.vue index 402028f4c..db69a461a 100644 --- a/fe/PDA/mycomponents/comItem/comJobScanDetail.vue +++ b/fe/PDA/mycomponents/comItem/comJobScanDetail.vue @@ -110,7 +110,8 @@ getJobStatuDesc, showConfirmMsg, compare, - goHome + goHome, + navigateBack } from '@/common/basic.js'; import comMessage from '@/mycomponents/common/comMessage.vue' @@ -139,11 +140,11 @@ inputQty: "", listfocus: false, finshed: false, - received: false, allCount: 0, scanCount: 0, isCheckAll: false, - selectedItem: {} + selectedItem: {}, + jobStatus:"" }; }, onLoad(option) { @@ -152,7 +153,6 @@ //新建的任务自动接收 if (option.jobStatus == 1) { this.receive((callback => { - this.received = true; this.getDetail(); })); } else { @@ -168,16 +168,21 @@ window.location.reload(); } }, - //拦截返回按钮事件 + onBackPress(e) { //已经接收但是没提交任务 - if (this.received) { - //取消承接任务 - cancelTakeReceiptJob(this.id) - .then(res => {}) - .catch(err => { - this.showMessage(err.message); - }); + if (e.from == 'backbutton') { + if (this.jobStatus == 2) { + //取消承接任务 + cancelTakeReceiptJob(this.id).then(res => { + uni.navigateBack(); + }).catch(error => { + uni.navigateBack(); + }) + } else { + uni.navigateBack(); + } + return true; } }, filters: { @@ -214,6 +219,7 @@ getDetail() { let that = this; that.getJoDetail(callBack => { + that.jobStatus =that.receiptJob.jobStatus; that.ispending = that.receiptJob.jobStatus === 2; if (that.receiptJob.details != null) { that.allCount = that.receiptJob.details.length; @@ -433,13 +439,6 @@ showMessage(message) { this.$refs.comMessage.showMessage(message); }, - upper: function(e) { - // console.log(e) - }, - - lower: function(e) { - // console.log(e) - }, scroll: function(e) { // console.log(e) diff --git a/fe/PDA/mycomponents/wincom/winScanByCode.vue b/fe/PDA/mycomponents/wincom/winScanByCode.vue index b23d4444a..2c2450200 100644 --- a/fe/PDA/mycomponents/wincom/winScanByCode.vue +++ b/fe/PDA/mycomponents/wincom/winScanByCode.vue @@ -1,12 +1,12 @@