From 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期二, 06 八月 2024 11:16:58 +0800 Subject: [PATCH] gitlab上面的wms转移到公司git --- src/views/productManage/productCategory/AddProductCategoryDialog.vue | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/views/productManage/productCategory/AddProductCategoryDialog.vue b/src/views/productManage/productCategory/AddProductCategoryDialog.vue index 63c4f32..19cc92b 100644 --- a/src/views/productManage/productCategory/AddProductCategoryDialog.vue +++ b/src/views/productManage/productCategory/AddProductCategoryDialog.vue @@ -85,13 +85,13 @@ style="width: 85%" ></el-input> </el-form-item> - <el-form-item label="涓婄骇鍝佺被" prop="parentId"> + <el-form-item label="涓婄骇鍝佺被" v-if="editConfig.infomation.parentId" prop="parentId"> <el-select v-model="editConfig.infomation.parentId" placeholder="璇烽�夋嫨" size="mini" style="width: 85%" - :disabled="!showFooter" + :disabled="editConfig.infomation.parentId" > <el-option v-for="item in productCategoryList" :key="item.id" :label="item.name" :value="item.id"> </el-option> @@ -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