From 7726a1c809b8c8fb637df3fa364e4659108cbcf3 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 24 Nov 2023 17:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E4=BD=8D=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customerReturn/job/returnDetail.vue | 43 +++++++++---------- pages/deliver/job/deliverDetail.vue | 7 +-- .../job/productDismantleDetail.vue | 7 +-- .../job/productPutawayDetail.vue | 36 ++++++++-------- .../job/productReceiptDetail.vue | 5 ++- .../job/productionReceiptDetail.vue | 7 +-- pages/productionReturn/job/returnDetail.vue | 5 ++- .../request/returnToStoreRequest.vue | 2 +- pages/purchaseReceipt/job/receiptDetail.vue | 1 - pages/putaway/job/putawayDetail.vue | 7 +-- pages/repleinsh/job/repleinshDetail.vue | 7 ++- pages/transfer/job/issueDetail.vue | 7 +-- pages/transfer/job/receiptDetail.vue | 6 +-- pages/unPlanned/job/receiptJobDetail.vue | 7 ++- 14 files changed, 73 insertions(+), 74 deletions(-) diff --git a/pages/customerReturn/job/returnDetail.vue b/pages/customerReturn/job/returnDetail.vue index 378403d5..b232a251 100644 --- a/pages/customerReturn/job/returnDetail.vue +++ b/pages/customerReturn/job/returnDetail.vue @@ -14,14 +14,15 @@ - + + @@ -348,7 +349,7 @@ } }, - submitJob() { + submitJob() { uni.showLoading({ title: "提交中....", mask: true @@ -403,19 +404,19 @@ this.jobContent.creator = creator; return this.jobContent; }, - + checkLocation() { var isPass = true; if (this.toLocationCode == "" || this.toLocationCode == null) { this.showMessageHint('请扫描收货库位', callback => { this.$refs.comScanLocation.showLocation(); }) - + return isPass = false; } return isPass; }, - + showMessageHint(hint, callback) { this.$refs.comMessage.showErrorMessage(hint, res => { if (res) { @@ -469,27 +470,23 @@ this.scanPopupGetFocus(); }, - getToLocationCode(location, code) { - if (this.fromLocationCode == code) { - this.$refs.comMessage.showMessage('来源库位[' + this.fromLocationCode + '] 不能与目标库位[' + code + '] 一致 ', - res => { - this.$refs.comScanLocation.showLocation(); - }); - } else { - this.toLocationInfo = location; - this.toLocationCode = code; - } + scanLocationCode(location, code) { + this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { + this.toLocationCode = code + this.detailSource.forEach(item => { + item.subList.forEach(detail => { + detail.toLocationCode = code + }) + }) + }) }, showCommitSuccessMessage(hint) { - setTimeout(() => { - this.$refs.comMessage.showSuccessMessage(hint, res => { - - }) + this.$refs.comMessage.showSuccessMessage(hint, res => { uni.navigateTo({ - url: './returnJobreturnJob' + url: './returnJob' }) - }, 3000) + }) }, } } diff --git a/pages/deliver/job/deliverDetail.vue b/pages/deliver/job/deliverDetail.vue index 663a0733..1d7bc4e9 100644 --- a/pages/deliver/job/deliverDetail.vue +++ b/pages/deliver/job/deliverDetail.vue @@ -13,13 +13,14 @@ - + + diff --git a/pages/productDismantle/job/productDismantleDetail.vue b/pages/productDismantle/job/productDismantleDetail.vue index 89a3465f..9855c2b1 100644 --- a/pages/productDismantle/job/productDismantleDetail.vue +++ b/pages/productDismantle/job/productDismantleDetail.vue @@ -14,14 +14,15 @@ - + + diff --git a/pages/productPutaway/job/productPutawayDetail.vue b/pages/productPutaway/job/productPutawayDetail.vue index 8eab09e4..8631c7e7 100644 --- a/pages/productPutaway/job/productPutawayDetail.vue +++ b/pages/productPutaway/job/productPutawayDetail.vue @@ -15,14 +15,13 @@ - - + @@ -39,7 +38,6 @@