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