Browse Source

组件修改

lichao 3 năm trước cách đây
mục cha
commit
73f327ae9f

+ 17 - 2
src/components/goodsSelect/index.vue

@@ -64,6 +64,7 @@
                      @refresh-change="refreshChange"
                      @selection-change="selectionChange"
                      @on-load="onLoad"
+                     @saveColumn="saveColumn"
                      @tree-load="treeLoad">
           </avue-crud>
         </basic-container>
@@ -100,7 +101,7 @@ export default {
       dicData: [],
       dialogVisible: false,
       value: '',
-      option: option,
+      option: {},
       parentId: 0,
       dataList: [],
       selection: [],
@@ -141,7 +142,9 @@ export default {
       },
     }
   },
-  created() {
+  async created() {
+    this.option = option
+    // this.option = await this.getColumnData(this.getColumnName(49), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },
@@ -291,6 +294,18 @@ export default {
         return current
       }, [])
     },
+    //列保存触发
+    async saveColumn() {
+      const inSave = await this.saveColumnData(
+        this.getColumnName(49),
+        this.option
+      );
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
   }
 };
 </script>

+ 26 - 8
src/components/procurement/config/market.json

@@ -42,39 +42,57 @@
       "width":180
     },
     {
+      "label": "商品名称",
+      "prop": "cname",
+      "index": 4,
+      "width":120
+    },
+    {
+      "label": "编码",
+      "prop": "code",
+      "index": 5,
+      "width":120
+    },
+    {
+      "label": "规格型号",
+      "prop": "typeno",
+      "index": 6,
+      "width":120
+    },
+    {
       "label": "货物品种",
       "prop": "priceCategoryNames",
-      "index": 4,
+      "index": 7,
       "width":120
     },{
       "label": "规格名称",
       "prop": "itemType",
-      "index": 5,
+      "index": 8,
       "width":120
     },{
       "label": "件数",
       "prop": "purchaseQuantity",
-      "index": 6,
+      "index": 9,
       "width":120
     },{
       "label": "发票净重(吨)",
       "prop": "invoiceWeight",
-      "index": 7,
+      "index": 10,
       "width":120
     },{
       "label": "码单重量(吨)",
       "prop": "billWeight",
-      "index": 8,
+      "index": 11,
       "width":120
     },{
       "label": "单价",
       "prop": "price",
-      "index": 9,
+      "index": 12,
       "width":120
     },{
       "label": "合同金额",
       "prop": "amount",
-      "index": 10,
+      "index": 13,
       "width":120
     },{
       "label": "订单日期",
@@ -86,7 +104,7 @@
       "unlinkPanels": true,
       "searchRange": true,
       "search": true,
-      "index": 6,
+      "index": 14,
       "width":150
     }
   ]

+ 17 - 2
src/components/selectComponent/customerSelect.vue

@@ -63,6 +63,7 @@
                      @refresh-change="refreshChange"
                      @selection-change="selectionChange"
                      @on-load="onLoad"
+                     @saveColumn="saveColumn"
                      @tree-load="treeLoad">
           </avue-crud>
         </basic-container>
@@ -99,7 +100,7 @@ export default {
       dicData: [],
       dialogVisible: false,
       value: '',
-      option: option,
+      option: {},
       parentId: 0,
       dataList: [],
       selection: [],
@@ -140,7 +141,9 @@ export default {
       },
     }
   },
-  created() {
+  async created() {
+    this.option = option
+    // this.option = await this.getColumnData(this.getColumnName(47), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },
@@ -279,6 +282,18 @@ export default {
         return current
       }, [])
     },
+    //列保存触发
+    async saveColumn() {
+      const inSave = await this.saveColumnData(
+        this.getColumnName(47),
+        this.option
+      );
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
   }
 };
 </script>

+ 17 - 2
src/components/warehouseSelect/index.vue

@@ -53,6 +53,7 @@
                      @refresh-change="refreshChange"
                      @selection-change="selectionChange"
                      @on-load="onLoad"
+                     @saveColumn="saveColumn"
                      @tree-load="treeLoad">
           </avue-crud>
         </basic-container>
@@ -89,7 +90,7 @@ export default {
       dicData: [],
       dialogVisible: false,
       value: '',
-      option: option,
+      option: {},
       parentId: 0,
       dataList: [],
       selection: [],
@@ -130,7 +131,9 @@ export default {
       },
     }
   },
-  created() {
+  async created() {
+    this.option = option
+    // this.option = await this.getColumnData(this.getColumnName(48), option);
     // this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
     this.remoteMethod()
   },
@@ -269,6 +272,18 @@ export default {
         return current
       }, [])
     },
+    //列保存触发
+    async saveColumn() {
+      const inSave = await this.saveColumnData(
+        this.getColumnName(48),
+        this.option
+      );
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
   }
 };
 </script>