Browse Source

feat: 物品管理新增分类显示全路径

liujt 6 ngày trước cách đây
mục cha
commit
52c7233fed
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/views/material/product/detail.vue

+ 3 - 2
src/views/material/product/detail.vue

@@ -24,7 +24,7 @@
           <el-col :span="8">
             <el-form-item label="分类" prop="categoryLevelName">
               <el-input
-                v-model="form.categoryLevelName"
+                v-model="form.categoryLevelPath"
                 @click.native="openCategory"
                 :disabled="isReadOnly"
               />
@@ -1539,6 +1539,7 @@
       },
       // 确定分类
       async confirmCategory(node, title, PathInfo, ruleCode) {
+        console.log('node', node, title, PathInfo, ruleCode);
         this.categoryLevelPathId = PathInfo.categoryLevelPathId.split(',')[0];
 
         if (title == '选择产品分类') {
@@ -1547,7 +1548,7 @@
         } else {
           this.$set(this.form, 'categoryLevelName', node.name);
           this.$set(this.form, 'categoryLevelId', node.id);
-          this.$set(this.form, 'categoryLevelPath', node.name);
+          this.$set(this.form, 'categoryLevelPath', PathInfo?.categoryLevelPath);
           this.$set(this.form, 'categoryLevelPathId', node.id);
           this.PathInfo = PathInfo;