From 332c012e7336f2996c4fe5c8c110d00713c1bde2 Mon Sep 17 00:00:00 2001
From: haoyahui <2032914783@qq.com>
Date: 星期六, 11 十一月 2023 18:51:33 +0800
Subject: [PATCH] 采购单,采购明细,库存管理,出入库,调拨管理,库存盘点

---
 admin-web/src/views/foundation/classification/edit.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/admin-web/src/views/foundation/classification/edit.vue b/admin-web/src/views/foundation/classification/edit.vue
index 808e3f7..2669df8 100644
--- a/admin-web/src/views/foundation/classification/edit.vue
+++ b/admin-web/src/views/foundation/classification/edit.vue
@@ -1,7 +1,7 @@
 <template>
   <win-sm :title="setting.title" @close="close" :width="'800px'">
     <el-form ref="ruleForm" :model="formData" :rules="rules" class="demo-ruleForm" label-width="100px">
-      <el-form-item label="涓婄骇鍒嗙被" prop="fatherCategoryName" :key="key">
+      <el-form-item v-if="setting.pid" label="涓婄骇鍒嗙被" prop="fatherCategoryName" :key="key">
         <el-input
           v-model="formData.fatherCategoryName"
           clearable
@@ -100,6 +100,7 @@
     getEditInfo(id) {},
     // 鍒嗙被鍚嶇О鑾峰彇
     getCategoryName() {
+      if(!this.formData.fatherCategoryId) return
       getCategoryDetail({ id: this.formData.fatherCategoryId }).then((res) => {
         this.formData.fatherCategoryName = res.categoryName;
         this.key = Math.random();

--
Gitblit v1.9.1