diff --git a/src/components/show-modal/show-modal.vue b/src/components/show-modal/show-modal.vue index b9dd4784..38d55460 100644 --- a/src/components/show-modal/show-modal.vue +++ b/src/components/show-modal/show-modal.vue @@ -82,7 +82,9 @@ cancelClose() { clearInterval(this.timer) //清空timer - this.$refs.modal.popupClose(); + if(this.$refs.modal){ + this.$refs.modal.popupClose(); + } this.success({ // cancel: true, confirm: false, diff --git a/src/mycomponents/common/comMessage.vue b/src/mycomponents/common/comMessage.vue index e9beb857..bc82cdc0 100644 --- a/src/mycomponents/common/comMessage.vue +++ b/src/mycomponents/common/comMessage.vue @@ -109,7 +109,9 @@ if (this.show) { this.show = false; clearInterval(this.timer) //清空timer - this.$refs.modal.popupClose(); + if(this.$refs.modal){ + this.$refs.modal.popupClose(); + } this.success({ // cancel: false, confirm: true, diff --git a/src/pages/productReceipt/job/ccProductReceiptDetail.vue b/src/pages/productReceipt/job/ccProductReceiptDetail.vue index 08738d74..e69f7fb3 100644 --- a/src/pages/productReceipt/job/ccProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/ccProductReceiptDetail.vue @@ -346,6 +346,8 @@ if (!this.checkLocation()) { return } + }else{ + this.toLocationCode = this.jobToLocationCode }