Kaynağa Gözat

商品信息修改

lichao 3 yıl önce
ebeveyn
işleme
c724807c1b

+ 17 - 7
src/views/basicData/productInformation/configuration/mainList.json

@@ -19,6 +19,7 @@
       "prop": "code",
       "search": true,
       "width": 100,
+      "overHidden": true,
       "rules": [
         {
           "required": true,
@@ -32,6 +33,7 @@
       "prop": "cname",
       "search": true,
       "width": 100,
+      "overHidden": true,
       "rules": [
         {
           "required": true,
@@ -48,6 +50,7 @@
       "hide": true,
       "addDisabled": false,
       "multiple": true,
+      "overHidden": true,
       "props": {
         "label": "title"
       },
@@ -65,37 +68,44 @@
     {
       "label": "花纹",
       "prop": "brandItem",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格尺寸",
       "prop": "typeno",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格尺寸1",
       "prop": "specsOne",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格尺寸2",
       "prop": "specsTwo",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "供应商",
       "prop": "corpId",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "级别",
       "prop": "level",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "备注",
       "prop": "remarks",
-      "width": 100
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 2 - 1
src/views/basicData/productInformation/detailsPageEdit.vue

@@ -296,6 +296,7 @@ export default {
   },
   //初始化查询
   created() {
+    this.$set(this.form, 'status', 0)
     getDeptTree().then(res => {
       this.dicData = res.data.data;
     });
@@ -304,7 +305,7 @@ export default {
     if (this.detailData.id) {
       this.queryData(this.detailData.id)
     } else {
-      this.$set(this.form, "goodsTypeId", this.$route.query.treeDeptId);
+      this.$set(this.form, "goodsTypeId", this.detailData.goodsTypeId);
     }
   },
   methods: {

+ 1 - 1
src/views/basicData/productInformation/index.vue

@@ -300,7 +300,7 @@ export default {
     //新增跳转页面
     beforeOpenE(row, index) {
       this.detailData = {
-        id: row.id,
+        goodsTypeId: this.treeDeptId,
       };
       this.isShow = false;
     },