From c5757c57175f94630dd0402fcc56d2b583784f32 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Sun, 8 Jan 2023 09:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/DialogSelectUnit.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/warehouse/DialogSelectUnit.vue b/src/views/warehouse/DialogSelectUnit.vue index 64e605b..696709c 100644 --- a/src/views/warehouse/DialogSelectUnit.vue +++ b/src/views/warehouse/DialogSelectUnit.vue @@ -91,6 +91,9 @@ export default { }, methods: { getUnitList() { + if(!this.unitquery.key){ + this.getUnitListByCode(this.codeId) + }else{ this.loading = true; getBasicUnitMaintains(this.unitquery) .then((response) => { @@ -100,6 +103,7 @@ export default { .catch(() => { this.loading = false; }); + } }, getUnitListByCode(row) { let query = {