Browse Source

修改采购申请自定义列传值问题

caojunjie 4 năm trước cách đây
mục cha
commit
ba9d180f1b

+ 1 - 4
src/combination/listComponent.vue

@@ -264,7 +264,6 @@ export default {
       };
       addSet(data).then((res) => {
         if (res.code == 200) {
-          console.log(res)
           this.showSetting = false;
           this.queryList.columnList = this.setRowList.filter((e) => e.checked == 0);
         }
@@ -272,7 +271,6 @@ export default {
     },
     //自定义列
     delRow() {
-      console.log(this.listStyle)
       this.data = {
         tableName: this.queryList.tableName,
         userId: Cookies.get("userName"),
@@ -280,9 +278,8 @@ export default {
       resetModule(this.data).then((res) => {
         if (res.code == 200) {
           this.showSetting = false;
-          this.listStyle.forEach(item=>item.checked = 0)
+          this.setRowList.forEach(item=>item.checked = 0)
           this.queryList.columnList = this.setRowList = this.listStyle;
-          console.log(this.listStyle)
         }
       });
     },

+ 4 - 7
src/views/purchaseRequest/index.vue

@@ -910,9 +910,8 @@ export default {
             this.purchaseList.columnList = this.purchaseList.columnList.filter((e) => e.checked == 0)
             // this.waitFor = true
           } else {
-            // this.waitFor = true
-            this.purchaseList.columnList = this.contentStyle
-            this.setRowList = this.contentStyle
+            this.$set(this.purchaseList,'columnList',this.$options.data().contentStyle)
+            this.setRowList = this.$options.data().contentStyle
           }
           this.pageDisplay = false
           this.isItHidden = false
@@ -925,10 +924,8 @@ export default {
             this.queryList.columnList = this.queryList.columnList.filter((e) => e.checked == 0)
             // this.waitFor = true
           } else {
-            // this.waitFor = true
-            this.queryList.columnList = this.listStyle
-            console.log(this.queryList.columnList.fFeeid)
-            this.setRowList = this.listStyle
+            this.$set(this.queryList,'columnList',this.$options.data().listStyle)
+            this.setRowList = this.$options.data().listStyle
           }
           this.pageDisplay = true
           this.isItHidden = true

+ 77 - 3
src/views/reportAnalysis/salesStatistics.vue

@@ -79,7 +79,56 @@ export default {
         },{
           surface: '2',
           label: 'fBillno',
-          name: '客户名称',
+          name: '客户项目',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '3',
+          label: 'fBillno',
+          name: '物资类别',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '4',
+          label: 'fBillno',
+          name: '物资',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '5',
+          label: 'fBillno',
+          name: '规格',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '6',
+          label: 'fBillno',
+          name: '数量',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '7',
+          label: 'fBillno',
+          name: '计量单位',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '8',
+          label: 'fBillno',
+          name: '单价',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '9',
+          label: 'fBillno',
+          name: '金额',
           checked: 0,
           width: 100,
           onabort: ''
@@ -89,17 +138,42 @@ export default {
         {
           span: 6,
           label: 'fBillno',
-          name: '申请编号',
-          inputType: 2,
+          name: '客户项目',
+          inputType: 1,
           width: 200,
           labelSize: '80',
           rules: [{ required: false, message: ' ' }]
+        },{
+          span: 6,
+          label: 'fBillno',
+          name: '物资类别',
+          inputType: 1,
+          width: 200,
+          labelSize: '80',
+          rules: [{ required: false, message: ' ' }]
+        },{
+          span: 6,
+          label: 'fBillno',
+          name: '期间',
+          inputType: 3,
+          width: 240,
+          labelSize: '80',
+          rules: [{ required: false, message: ' ' }]
+        },{
+          span: 6,
+          label: 'fBillno',
+          name: '物资名称',
+          inputType: 1,
+          width: 240,
+          labelSize: '80',
+          rules: [{ required: false, message: ' ' }]
         }
       ]
     }
   },
   created() {
     this.queryList.columnList = this.listStyle
+    this.setRowList = this.listStyle
   },
   methods:{
     //修改