From f6557f718068d48d94919f7d6f62094ebda550c5 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Mon, 7 Nov 2022 08:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xinrui/storage/outstorage/CheckOutStore.vue | 6 +++--- .../xinrui/storage/outstorage/OtherOutStore.vue | 6 +++--- .../xinrui/storage/outstorage/PeifenOutStore.vue | 16 ++++++++++------ .../storage/outstorage/ReturnMaterOutStore.vue | 6 +++--- .../xinrui/storage/outstorage/SaleOutStore.vue | 6 +++--- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/pages/xinrui/storage/outstorage/CheckOutStore.vue b/src/pages/xinrui/storage/outstorage/CheckOutStore.vue index 4237192..f817af1 100644 --- a/src/pages/xinrui/storage/outstorage/CheckOutStore.vue +++ b/src/pages/xinrui/storage/outstorage/CheckOutStore.vue @@ -169,11 +169,11 @@ export default { }, returnStore () { this.disabled2 = true - if (this.val1 && this.val2) { - this._backstore() - } else { + if (!(this.val1 && this.val2)) { this.disabled2 = false + return } + this._backstore() } } } diff --git a/src/pages/xinrui/storage/outstorage/OtherOutStore.vue b/src/pages/xinrui/storage/outstorage/OtherOutStore.vue index b3c2702..288e39b 100644 --- a/src/pages/xinrui/storage/outstorage/OtherOutStore.vue +++ b/src/pages/xinrui/storage/outstorage/OtherOutStore.vue @@ -169,11 +169,11 @@ export default { }, returnStore () { this.disabled2 = true - if (this.val1 && this.val2) { - this._backstore() - } else { + if (!(this.val1 && this.val2)) { this.disabled2 = false + return } + this._backstore() } } } diff --git a/src/pages/xinrui/storage/outstorage/PeifenOutStore.vue b/src/pages/xinrui/storage/outstorage/PeifenOutStore.vue index 094af1a..b18b152 100644 --- a/src/pages/xinrui/storage/outstorage/PeifenOutStore.vue +++ b/src/pages/xinrui/storage/outstorage/PeifenOutStore.vue @@ -188,16 +188,20 @@ export default { } }, outSure () { - if (this.val3 && this.val4) { - this.disabled1 = true - this._pfoutConfirmoutstore() + this.disabled1 = true + if (!(this.val3 && this.val4)) { + this.disabled1 = false + return } + this._pfoutConfirmoutstore() }, returnStore () { - if (this.val1 && this.val2) { - this.disabled2 = true - this._pfoutBackstore() + this.disabled2 = true + if (!(this.val1 && this.val2)) { + this.disabled2 = false + return } + this._pfoutBackstore() } } } diff --git a/src/pages/xinrui/storage/outstorage/ReturnMaterOutStore.vue b/src/pages/xinrui/storage/outstorage/ReturnMaterOutStore.vue index 14591a3..c8d40f4 100644 --- a/src/pages/xinrui/storage/outstorage/ReturnMaterOutStore.vue +++ b/src/pages/xinrui/storage/outstorage/ReturnMaterOutStore.vue @@ -169,11 +169,11 @@ export default { }, returnStore () { this.disabled2 = true - if (this.val1 && this.val2) { - this._backstore() - } else { + if (!(this.val1 && this.val2)) { this.disabled2 = false + return } + this._backstore() } } } diff --git a/src/pages/xinrui/storage/outstorage/SaleOutStore.vue b/src/pages/xinrui/storage/outstorage/SaleOutStore.vue index 1a8c3e1..ba6009e 100644 --- a/src/pages/xinrui/storage/outstorage/SaleOutStore.vue +++ b/src/pages/xinrui/storage/outstorage/SaleOutStore.vue @@ -169,11 +169,11 @@ export default { }, returnStore () { this.disabled2 = true - if (this.val1 && this.val2) { - this._backstore() - } else { + if (!(this.val1 && this.val2)) { this.disabled2 = false + return } + this._backstore() } } }