Преглед изворни кода

修改账龄分析检索渲染问题

Qukatie пре 1 дан
родитељ
комит
7bbcd4f5a7

+ 9 - 3
src/views/iosBasicData/agingAnalysis/index.vue

@@ -125,7 +125,7 @@ export default {
       form: {},
       loading: true,
       page: {
-        pageSize: 10,
+        pageSize: 20,
         currentPage: 1,
         total: 0
       },
@@ -487,6 +487,13 @@ export default {
   },
   async created() {
     this.option = await this.getColumnData(this.getColumnName(335), this.optionBack);
+    this.query = {
+      dc: "D",
+      isBusinessDate: 1,
+      type: "1",
+      etdStart: defaultDate3()[0],
+      etdEnd: defaultDate3()[1]
+    };
   },
   methods: {
     // 导出
@@ -534,7 +541,7 @@ export default {
           this.findObject(this.option.column, "corpName").label = "业务来源";
         }
         this.$set(this.query, name, value);
-      }else if (name == "srcType") {
+      } else if (name == "srcType") {
         if (value == "OWN") {
           // 公司
           this.srcforParameter = { key: "id", label: "title", value: "title" };
@@ -584,7 +591,6 @@ export default {
         // 公司
         this.srcforParameter = { key: "id", label: "title", value: "title" };
         this.ownDeptLazyTreefun();
-      } else {
       }
     },
     // 多选切换

+ 9 - 9
src/views/iosBasicData/decisionAnalysis/index.vue

@@ -8,7 +8,7 @@
                     @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
                     @resetColumn="resetColumnTwo('crud', 'option', 'optionBack', 372)"
                     @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 372)" @on-load="onLoad"
-                    @search-criteria-switch="searchCriteriaSwitch">
+                    >
                     <template slot="menuLeft">
                         <el-button type="success" size="small" plain @click="Export">导出</el-button>
                     </template>
@@ -878,14 +878,14 @@ export default {
             };
             this.onLoad(this.page);
         },
-        searchCriteriaSwitch(type) {
-            if (type) {
-                this.option.height = this.option.height - 73;
-            } else {
-                this.option.height = this.option.height + 73;
-            }
-            this.$refs.crud.getTableHeight();
-        },
+        // searchCriteriaSwitch(type) {
+        //     if (type) {
+        //         this.option.height = this.option.height - 73;
+        //     } else {
+        //         this.option.height = this.option.height + 73;
+        //     }
+        //     this.$refs.crud.getTableHeight();
+        // },
         // 搜索点击回调
         searchChange(params, done) {
             this.page.currentPage = 1;

+ 3 - 3
src/views/iosBasicData/financeProfit/index.vue

@@ -202,7 +202,7 @@ export default {
       },
       option: {},
       optionBack: {
-        height: "auto",
+        height: 1000,
         calcHeight: 30,
         tip: false,
         searchShow: true,
@@ -943,12 +943,12 @@ export default {
             const data = res.data.data;
             this.page.total = data.total;
             this.data = data.records;
-            financeStatisticsFinanceProfitSum(Object.assign(params, this.query)).then(re => {
-              this.commodityData = [re.data.data];
               this.$nextTick(() => {
                 this.$refs.crud.doLayout();
                 this.$refs.crud.dicInit();
               });
+            financeStatisticsFinanceProfitSum(Object.assign(params, this.query)).then(re => {
+              this.commodityData = [re.data.data];
             })
           .finally(() => {
             this.itemLoading = false;

+ 2 - 2
src/views/iosBasicData/paymentSummary/index.vue

@@ -98,7 +98,7 @@ export default {
             form: {},
             loading: true,
             page: {
-                pageSize: 10,
+                pageSize: 20,
                 currentPage: 1,
                 total: 0
             },
@@ -112,7 +112,7 @@ export default {
             },
             option: {},
             optionBack: {
-                height: 'auto',
+                height:845,
                 calcHeight: 30,
                 tip: false,
                 searchShow: true,