From f9b2a039afe6f674908e483bf19915c0ba06eb71 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 06 十一月 2023 17:19:25 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into dev --- src/views/productManage/productCategory/AddProductCategoryDialog.vue | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/views/productManage/productCategory/AddProductCategoryDialog.vue b/src/views/productManage/productCategory/AddProductCategoryDialog.vue index 63c4f32..b4330aa 100644 --- a/src/views/productManage/productCategory/AddProductCategoryDialog.vue +++ b/src/views/productManage/productCategory/AddProductCategoryDialog.vue @@ -268,23 +268,25 @@ }, // 鑾峰彇浜у搧鏁伴噺 getProductCount() { - getProductList({ - keyWord: "", - categoryId: this.editConfig.title === "鏂板缓" ? null : this.editConfig.infomation.id, - page: 1, - pageSize: 1 - }) - .then((res) => { - if (res.code === 200) { - this.statisticsMap.product = res?.total ?? 0 - } else { + if (this.editConfig.title !== "鏂板缓") { + getProductList({ + keyWord: "", + categoryId: this.editConfig.title === "鏂板缓" ? null : this.editConfig.infomation.id, + page: 1, + pageSize: 1 + }) + .then((res) => { + if (res.code === 200) { + this.statisticsMap.product = res?.total ?? 0 + } else { + this.statisticsMap.product = 0 + } + }) + .catch((err) => { + console.error(err) this.statisticsMap.product = 0 - } - }) - .catch((err) => { - console.error(err) - this.statisticsMap.product = 0 - }) + }) + } }, // 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず setBottonView() { -- Gitblit v1.8.0