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 @@