瀏覽代碼

业务锁页面增加列设置

lichao 3 年之前
父節點
當前提交
cd4b117d5b
共有 3 個文件被更改,包括 39 次插入2 次删除
  1. 4 0
      src/enums/column-name.js
  2. 8 0
      src/views/system/lock/config/mainList.json
  3. 27 2
      src/views/system/lock/index.vue

+ 4 - 0
src/enums/column-name.js

@@ -243,6 +243,10 @@ const columnName = [{
     code: 72,
     name: '进项发票明细'
   },
+  {
+    code: 73,
+    name: '锁定管理'
+  },
 ]
 export const getColumnName = (key) => {
   for (let index = 0; index < columnName.length; index++) {

+ 8 - 0
src/views/system/lock/config/mainList.json

@@ -27,6 +27,14 @@
       "overHidden": true,
       "searchSpan": 8
     },{
+      "label": "合同号",
+      "prop": "billNo",
+      "search": true,
+      "index": 2,
+      "minWidth": 80,
+      "overHidden": true,
+      "searchSpan": 8
+    },{
       "label": "操作者",
       "prop": "realName",
       "search": false,

+ 27 - 2
src/views/system/lock/index.vue

@@ -13,6 +13,8 @@
         @size-change="sizeChange"
         @refresh-change="refreshChange"
         @on-load="onLoad"
+        @saveColumn="saveColumn"
+        @resetColumn="resetColumn"
         :table-loading="loading"
       >
         <template slot="moudleNameSearch">
@@ -99,8 +101,8 @@ export default {
       ]
     }
   },
-  created() {
-    this.option = option
+  async created() {
+    this.option = await this.getColumnData(this.getColumnName(73), option);
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -179,6 +181,29 @@ export default {
         this.onLoad(this.page, {parentId: 0});
       })
     },
+    async saveColumn() {
+      const inSave = await this.saveColumnData(
+        this.getColumnName(73),
+        this.option
+      );
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    async resetColumn() {
+      this.option = option;
+      const inSave = await this.delColumnData(
+        this.getColumnName(73),
+        option
+      );
+      if (inSave) {
+        this.$message.success("重置成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
   },
 }
 </script>