Browse Source

Merge branch 'dev' of http://git.echepei.com/caojunjie/Smart_platform_ui into dev

QuKatie 3 years ago
parent
commit
5091c21c81
72 changed files with 810 additions and 93 deletions
  1. 13 0
      src/api/statisticAnalysis/profit.js
  2. 1 0
      src/components/fee-info/main.vue
  3. 59 0
      src/components/selectComponent/userCom.vue
  4. 3 0
      src/main.js
  5. 3 1
      src/views/basicData/basicFeesDesc/configuration/mainList.json
  6. 13 1
      src/views/basicData/basicFeesDesc/index.vue
  7. 3 0
      src/views/basicData/basicFeesType/index.vue
  8. 4 1
      src/views/basicData/basicStorageDesc/configuration/mainList.json
  9. 13 1
      src/views/basicData/basicStorageDesc/index.vue
  10. 0 3
      src/views/basicData/basicStorageType/configuration/mainList.json
  11. 3 0
      src/views/basicData/basicStorageType/index.vue
  12. 3 1
      src/views/basicData/commodityCategory/index.vue
  13. 18 7
      src/views/basicData/commodityType/configuration/mainList.json
  14. 1 0
      src/views/basicData/commodityType/index.vue
  15. 1 1
      src/views/basicData/container/index.vue
  16. 1 1
      src/views/basicData/container/type.vue
  17. 5 1
      src/views/basicData/customerCategory/index.vue
  18. 4 1
      src/views/basicData/customerInformation/configuration/mainList.json
  19. 12 0
      src/views/basicData/customerInformation/index.vue
  20. 4 1
      src/views/basicData/customerManagement/companyMaterial/configuration/mainList.json
  21. 12 0
      src/views/basicData/customerManagement/companyMaterial/index.vue
  22. 5 1
      src/views/basicData/customerManagement/companyType/index.vue
  23. 4 1
      src/views/basicData/customerManagement/supplierMaterial/configuration/mainList.json
  24. 12 0
      src/views/basicData/customerManagement/supplierMaterial/index.vue
  25. 5 1
      src/views/basicData/customerManagement/supplierType/index.vue
  26. 1 1
      src/views/basicData/portinformation/index.vue
  27. 1 1
      src/views/basicData/portinformation/type.vue
  28. 3 0
      src/views/basicData/productInformation/index.vue
  29. 5 1
      src/views/financialManagement/billDetails/billDetails.vue
  30. 70 0
      src/views/financialManagement/billDetails/configuration/mainList.json
  31. 1 0
      src/views/financialManagement/incomeInvoice/configuration/mainList.json
  32. 4 0
      src/views/financialManagement/incomeInvoice/incomeInvoice.vue
  33. 1 0
      src/views/financialManagement/outputInvoice/configuration/mainList.json
  34. 4 0
      src/views/financialManagement/outputInvoice/outputInvoice.vue
  35. 1 0
      src/views/financialManagement/paymentRequest/configuration/mainList.json
  36. 4 0
      src/views/financialManagement/paymentRequest/index.vue
  37. 1 0
      src/views/financialManagement/paymentSettle/configuration/mainList.json
  38. 4 0
      src/views/financialManagement/paymentSettle/paymentSettle.vue
  39. 1 0
      src/views/financialManagement/receiptSettle/configuration/mainList.json
  40. 4 0
      src/views/financialManagement/receiptSettle/receiptSettle.vue
  41. 3 2
      src/views/importTrade/invoice/config/mainList.json
  42. 12 0
      src/views/importTrade/invoice/detailsPageEdit.vue
  43. 23 1
      src/views/importTrade/invoice/index.vue
  44. 1 0
      src/views/importTrade/receipt/config/mainList.json
  45. 12 0
      src/views/importTrade/receipt/detailsPageEdit.vue
  46. 22 0
      src/views/importTrade/receipt/index.vue
  47. 1 0
      src/views/purchase/contract/config/mainList.json
  48. 7 0
      src/views/purchase/contract/detailsPage.vue
  49. 22 0
      src/views/purchase/contract/index.vue
  50. 1 0
      src/views/purchase/stockBill/config/mainList.json
  51. 17 0
      src/views/purchase/stockBill/index.vue
  52. 1 0
      src/views/salesManagement/salesContract/config/mainList.json
  53. 6 0
      src/views/salesManagement/salesContract/detailsPage.vue
  54. 22 0
      src/views/salesManagement/salesContract/index.vue
  55. 1 0
      src/views/statisticAnalysis/profit/config/mainList.json
  56. 4 0
      src/views/statisticAnalysis/profit/index.vue
  57. 74 23
      src/views/statisticAnalysis/royalty/config/mainList.json
  58. 38 19
      src/views/statisticAnalysis/royalty/index.vue
  59. 1 1
      src/views/statisticAnalysis/salesProfit/index.vue
  60. 17 14
      src/views/system/application/config/detailsPage.json
  61. 130 0
      src/views/system/application/detailsPage.vue
  62. 1 0
      src/views/workManagement/main-items/configuration/mainList.json
  63. 4 2
      src/views/workManagement/main-items/detailsPage.vue
  64. 17 1
      src/views/workManagement/main-items/list.vue
  65. 1 0
      src/views/workManagement/performanceAnalysis/config/mainList.json
  66. 17 1
      src/views/workManagement/performanceAnalysis/index.vue
  67. 1 0
      src/views/workManagement/receipt/configuration/statisticalList.json
  68. 16 0
      src/views/workManagement/receipt/statisticalList.vue
  69. 12 0
      src/views/workManagement/service-items/configuration/projectOption.json
  70. 2 1
      src/views/workManagement/service-items/configuration/typeOption.json
  71. 9 1
      src/views/workManagement/service-items/project.vue
  72. 8 1
      src/views/workManagement/service-items/type.vue

+ 13 - 0
src/api/statisticAnalysis/profit.js

@@ -1,5 +1,6 @@
 import request from '@/router/axios';
 
+//利润分析
 export const getProfitList = (current, size,params) => {
   return request({
     url: '/api/blade-purchase-sales/order/listOrderStatisticAnalysis',
@@ -11,3 +12,15 @@ export const getProfitList = (current, size,params) => {
     }
   })
 }
+//提成统计
+export const getCommission = (current, size,params) => {
+  return request({
+    url: '/api/blade-deliver-goods/deliveryReport/commission',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size
+    }
+  })
+}

+ 1 - 0
src/components/fee-info/main.vue

@@ -510,6 +510,7 @@ export default {
       });
     },
     getCorpData(row) {
+      console.log(row)
       this.feeData[row.index].corpName = row.cname;
     },
     countChange(row) {

+ 59 - 0
src/components/selectComponent/userCom.vue

@@ -0,0 +1,59 @@
+<template>
+  <div style="display:flex">
+    <el-select
+      size="small"
+      v-model="value"
+      placeholder="请选择"
+      @input="$emit('balabala', value)"
+      :disabled="disabled"
+      filterable
+      clearable
+      style="width:100%"
+      @change="userChange"
+    >
+      <el-option
+        v-for="item in userList"
+        :key="item.id"
+        :label="item.realName"
+        :value="item.id"
+      >
+      </el-option>
+    </el-select>
+  </div>
+</template>
+
+<script>
+import { getUserList } from "@/api/workManagement/mainProject";
+export default {
+  data() {
+    return {
+      userList: [],
+    };
+  },
+  props: {
+    value: String,
+    disabled: Boolean,
+  },
+  model: {
+    prop: "value",
+    event: "balabala"
+  },
+  created() {
+    getUserList().then(res => {
+      this.userList = res.data.data;
+    });
+  },
+  mounted() {},
+  methods: {
+    userChange(row) {
+      this.userList.forEach(e => {
+        if (row == e.id) {
+          this.$emit("getUserData", { ...e});
+        }
+      });
+    }
+  }
+};
+</script>
+
+<style scoped lang="scss"></style>

+ 3 - 0
src/main.js

@@ -40,6 +40,8 @@ import goodsSelect from '@/components/goodsSelect/index';
 import breakdownSelect from '@/components/costBreakdown/costBreakdown';
 //用户选择组件
 import userSelect from '@/components/selectComponent/userSelect';
+//用户选择组件重新封装
+import userCom from '@/components/selectComponent/userCom';
 //重新封装了客户选择组件
 import cropSelect from "@/components/crop-select/main";
 // 发送消息㢟
@@ -71,6 +73,7 @@ Vue.component('selectComponent', selectComponent);
 Vue.component('warehouseSelect', warehouseSelect);
 Vue.component('goodsSelect', goodsSelect);
 Vue.component('breakdownSelect', breakdownSelect);
+Vue.component('userCom', userCom);
 Vue.component('userSelect', userSelect);
 Vue.component('cropSelect', cropSelect);
 Vue.component('messagePost', messagePost);

+ 3 - 1
src/views/basicData/basicFeesDesc/configuration/mainList.json

@@ -9,8 +9,10 @@
   "simplePage": true,
   "searchMenuPosition": "right",
   "searchShow": true,
-  "searchMenuSpan": 6,
+  "searchMenuSpan": 8,
   "searchSpan": 8,
+  "searchIcon": true,
+  "searchIndex": 2,
   "tree": true,
   "selection": true,
   "viewBtn": true,

+ 13 - 1
src/views/basicData/basicFeesDesc/index.vue

@@ -28,6 +28,7 @@
                    @size-change="sizeChange"
                    @refresh-change="refreshChange"
                    @on-load="onLoad"
+                   @search-criteria-switch="searchCriteriaSwitch"
                    @tree-load="treeLoad">
         </avue-crud>
       </basic-container>
@@ -206,7 +207,18 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
-      })
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
+      });
+    },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 50
+      }else {
+        this.option.height = this.option.height + 50
+      }
+      this.$refs.crud.getTableHeight()
     },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {

+ 3 - 0
src/views/basicData/basicFeesType/index.vue

@@ -184,6 +184,9 @@ export default {
       customerList(values).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       }).finally(()=>{
         this.loading = false;
       })

+ 4 - 1
src/views/basicData/basicStorageDesc/configuration/mainList.json

@@ -8,8 +8,11 @@
   "tip": false,
   "simplePage": true,
   "searchShow": true,
-  "searchMenuSpan": 6,
   "tree": true,
+  "searchMenuSpan": 16,
+  "searchSpan": 8,
+  "searchIcon": true,
+  "searchIndex": 2,
   "selection": true,
   "viewBtn": true,
   "menuWidth": 300,

+ 13 - 1
src/views/basicData/basicStorageDesc/index.vue

@@ -28,6 +28,7 @@
                    @size-change="sizeChange"
                    @refresh-change="refreshChange"
                    @on-load="onLoad"
+                   @search-criteria-switch="searchCriteriaSwitch"
                    @tree-load="treeLoad">
         </avue-crud>
       </basic-container>
@@ -210,7 +211,18 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
-      })
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
+      });
+    },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 90
+      }else {
+        this.option.height = this.option.height + 90
+      }
+      this.$refs.crud.getTableHeight()
     },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {

+ 0 - 3
src/views/basicData/basicStorageType/configuration/mainList.json

@@ -80,7 +80,6 @@
     {
       "label": "联系人",
       "prop": "attn",
-      "search": true,
       "overHidden": true,
       "index": 4,
       "width": 150,
@@ -95,7 +94,6 @@
     {
       "label": "电话",
       "prop": "tel",
-      "search": true,
       "index": 5,
       "overHidden": true,
       "width": 150,
@@ -110,7 +108,6 @@
     {
       "label": "库容",
       "prop": "storageCapacity",
-      "search": true,
       "overHidden": true,
       "index": 6,
       "width": 150,

+ 3 - 0
src/views/basicData/basicStorageType/index.vue

@@ -163,6 +163,9 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       })
     },
     //树桩列点击展开触发

+ 3 - 1
src/views/basicData/commodityCategory/index.vue

@@ -169,7 +169,9 @@ export default {
       customerList(values).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
-        console.log()
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       })
     },
     //树桩列点击展开触发

+ 18 - 7
src/views/basicData/commodityType/configuration/mainList.json

@@ -19,6 +19,7 @@
       "prop": "code",
       "search": true,
       "width": 100,
+      "overHidden": true,
       "rules": [
         {
           "required": true,
@@ -31,6 +32,7 @@
       "label": "商品名称",
       "prop": "cname",
       "slot": true,
+      "overHidden": true,
       "width": 100,
       "rules": [
         {
@@ -46,6 +48,7 @@
       "dicData": [],
       "type": "tree",
       "hide": true,
+      "overHidden": true,
       "addDisabled": false,
       "multiple": true,
       "props": {
@@ -60,32 +63,38 @@
     {
       "label": "规格编码",
       "prop": "typeno",
-      "search": true
+      "search": true,
+      "overHidden": true
     },
     {
       "label": "品牌",
       "prop": "brand",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     },
     {
       "label": "商品类别",
       "prop": "category",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     },
     {
       "label": "供应商",
       "prop": "corpName",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     },
     {
       "label": "计量单位",
       "prop": "unit",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     },
     {
       "label": "包装单位",
       "prop": "packgeunit",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     },
     {
       "label": "商品图片",
@@ -98,13 +107,15 @@
         "res": "data",
         "url": "link"
       },
+      "overHidden": true,
       "hide": true,
       "span": 24
     },
     {
       "label": "备注",
       "prop": "remarks",
-      "slot": true
+      "slot": true,
+      "overHidden": true
     }
   ]
 }

+ 1 - 0
src/views/basicData/commodityType/index.vue

@@ -385,6 +385,7 @@ export default {
     },
   },
   mounted() {
+    option.height = window.innerHeight - 230 ;
     // 非租户模式默认加载管理组数据
     if (!website.tenantMode) {
       this.initData(website.tenantId);

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

@@ -111,7 +111,7 @@
       reportDialog
     },
     mounted() {
-      option.height = window.innerHeight - 350 ;
+      option.height = window.innerHeight - 240 ;
       //查询服务类别字典项
       getTypeTree().then(res => {
         this.findObject(this.tableOption.column, "typeId").dicData = res.data.data;

+ 1 - 1
src/views/basicData/container/type.vue

@@ -55,7 +55,7 @@
 
     },
     mounted() {
-      option.height = window.innerHeight - 310 ;
+      option.height = window.innerHeight - 200 ;
     },
     methods: {
       onLoad(page, params = {}) {

+ 5 - 1
src/views/basicData/customerCategory/index.vue

@@ -200,8 +200,12 @@ export default {
       customerList(values).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
+      }).finally(()=>{
         this.loading = false;
-      });
+      })
     },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {

+ 4 - 1
src/views/basicData/customerInformation/configuration/mainList.json

@@ -5,7 +5,7 @@
   "stripe": true,
   "simplePage": true,
   "searchShow": true,
-  "searchMenuSpan": 24,
+  "searchMenuSpan": 8,
   "dialogWidth": "60%",
   "tree": true,
   "border": true,
@@ -15,6 +15,9 @@
   "editBtn": false,
   "delBtn": false,
   "menuWidth": 220,
+  "searchIcon": true,
+  "searchIndex": 2,
+  "searchSpan": 8,
   "dialogClickModal": false,
   "column": [{
       "label": "编码",

+ 12 - 0
src/views/basicData/customerInformation/index.vue

@@ -34,6 +34,7 @@
           @refresh-change="refreshChange"
           @on-load="onLoad"
           @tree-load="treeLoad"
+          @search-criteria-switch="searchCriteriaSwitch"
         >
           <template slot="menuLeft">
             <el-button
@@ -368,8 +369,19 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       });
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 90
+      }else {
+        this.option.height = this.option.height + 90
+      }
+      this.$refs.crud.getTableHeight()
+    },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {
       const parentId = tree.id;

+ 4 - 1
src/views/basicData/customerManagement/companyMaterial/configuration/mainList.json

@@ -5,7 +5,7 @@
   "stripe": true,
   "simplePage": true,
   "searchShow": true,
-  "searchMenuSpan": 24,
+  "searchMenuSpan": 8,
   "dialogWidth": "60%",
   "tree": true,
   "border": true,
@@ -14,6 +14,9 @@
   "viewBtn": false,
   "editBtn": false,
   "delBtn": false,
+  "searchIcon": true,
+  "searchIndex": 2,
+  "searchSpan": 8,
   "menuWidth": 220,
   "dialogClickModal": false,
   "column": [{

+ 12 - 0
src/views/basicData/customerManagement/companyMaterial/index.vue

@@ -33,6 +33,7 @@
           @size-change="sizeChange"
           @refresh-change="refreshChange"
           @on-load="onLoad"
+          @search-criteria-switch="searchCriteriaSwitch"
           @tree-load="treeLoad"
         >
           <template slot="menuLeft">
@@ -370,8 +371,19 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       });
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 90
+      }else {
+        this.option.height = this.option.height + 90
+      }
+      this.$refs.crud.getTableHeight()
+    },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {
       const parentId = tree.id;

+ 5 - 1
src/views/basicData/customerManagement/companyType/index.vue

@@ -200,8 +200,12 @@ export default {
       customerList(values).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
+      }).finally(()=>{
         this.loading = false;
-      });
+      })
     },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {

+ 4 - 1
src/views/basicData/customerManagement/supplierMaterial/configuration/mainList.json

@@ -5,7 +5,7 @@
   "stripe": true,
   "simplePage": true,
   "searchShow": true,
-  "searchMenuSpan": 24,
+  "searchMenuSpan": 8,
   "dialogWidth": "60%",
   "tree": true,
   "border": true,
@@ -14,6 +14,9 @@
   "viewBtn": false,
   "editBtn": false,
   "delBtn": false,
+  "searchIcon": true,
+  "searchIndex": 2,
+  "searchSpan": 8,
   "menuWidth": 220,
   "dialogClickModal": false,
   "column": [{

+ 12 - 0
src/views/basicData/customerManagement/supplierMaterial/index.vue

@@ -34,6 +34,7 @@
           @refresh-change="refreshChange"
           @on-load="onLoad"
           @tree-load="treeLoad"
+          @search-criteria-switch="searchCriteriaSwitch"
         >
           <template slot="menuLeft">
             <el-button
@@ -370,8 +371,19 @@ export default {
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       });
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 90
+      }else {
+        this.option.height = this.option.height + 90
+      }
+      this.$refs.crud.getTableHeight()
+    },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {
       const parentId = tree.id;

+ 5 - 1
src/views/basicData/customerManagement/supplierType/index.vue

@@ -200,8 +200,12 @@ export default {
       customerList(values).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
+      }).finally(()=>{
         this.loading = false;
-      });
+      })
     },
     //树桩列点击展开触发
     treeLoad(tree, treeNode, resolve) {

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

@@ -112,7 +112,7 @@
       reportDialog
     },
     mounted() {
-      option.height = window.innerHeight - 350 ;
+      option.height = window.innerHeight - 235 ;
       //查询服务类别字典项
       getTypeTree().then(res => {
         this.findObject(this.tableOption.column, "typeId").dicData = res.data.data;

+ 1 - 1
src/views/basicData/portinformation/type.vue

@@ -55,7 +55,7 @@
 
     },
     mounted() {
-      option.height = window.innerHeight - 310 ;
+      option.height = window.innerHeight - 200 ;
     },
     methods: {
       onLoad(page, params = {}) {

+ 3 - 0
src/views/basicData/productInformation/index.vue

@@ -208,6 +208,9 @@ export default {
       detailData: {},
     };
   },
+  mounted() {
+    option.height = window.innerHeight - 235 ;
+  },
   methods: {
     derivation() {
       window.open(`/api/blade-client/goodsdesc/export-template-info?${this.website.tokenHeader}=${getToken()}`);

+ 5 - 1
src/views/financialManagement/billDetails/billDetails.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -104,7 +105,7 @@
       rowStyle(data){
         if(_.subtract(data.row.settlementAmount, data.row.amount) < 0){
           return  {
-            background: "rgba(248,203,203,0.56)"
+            color: "rgba(220,0,0,0.56)"
           }
         }
       },
@@ -170,6 +171,9 @@
         }
         this.$refs.crud.getTableHeight()
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 70 - 0
src/views/financialManagement/billDetails/configuration/mainList.json

@@ -15,6 +15,7 @@
   "editBtn": false,
   "delBtn": false,
   "menuWidth": 80,
+  "stripe": true,
   "dialogClickModal": false,
   "searchLabelWidth": 120,
   "searchIcon": true,
@@ -161,6 +162,75 @@
       "overHidden": true,
       "index": 15,
       "width": 200
+    },
+    {
+      "label": "结算状态",
+      "prop": "accSysNo",
+      "search": true,
+      "overHidden": true,
+      "hide": true,
+      "index": 2,
+      "type": "select",
+      "dicData": [
+        {
+          "label": "全部",
+          "value": "全部"
+        },
+        {
+          "label": "已结算",
+          "value":"已结算"
+        },
+        {
+          "label": "未结算",
+          "value":"未结算"
+        }
+      ]
+    },
+    {
+      "label": "对账状态",
+      "prop": "accSysNo",
+      "search": true,
+      "overHidden": true,
+      "hide": true,
+      "index": 2,
+      "type": "select",
+      "dicData": [
+        {
+          "label": "全部",
+          "value": "全部"
+        },
+        {
+          "label": "已对账",
+          "value":"已对账"
+        },
+        {
+          "label": "未对账",
+          "value":"未对账"
+        }
+      ]
+    },
+    {
+      "label": "发票状态",
+      "prop": "accSysNo",
+      "search": true,
+      "overHidden": true,
+      "hide": true,
+      "index": 2,
+      "type": "select",
+      "dicData": [
+        {
+          "label": "全部",
+          "value": "全部"
+        },
+        {
+          "label": "已开票",
+          "value":"已开票"
+        },
+        {
+          "label": "未开票",
+          "value":"未开票"
+        }
+      ]
     }
   ]
 }

+ 1 - 0
src/views/financialManagement/incomeInvoice/configuration/mainList.json

@@ -15,6 +15,7 @@
   "editBtn": false,
   "delBtn": false,
   "menuWidth": 80,
+  "stripe": true,
   "dialogClickModal": false,
   "searchLabelWidth": 120,
   "searchIcon": true,

+ 4 - 0
src/views/financialManagement/incomeInvoice/incomeInvoice.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -211,6 +212,9 @@
         this.show = true;
         this.onLoad(this.page,this.search)
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/financialManagement/outputInvoice/configuration/mainList.json

@@ -19,6 +19,7 @@
   "searchLabelWidth": 120,
   "searchIcon": true,
   "searchIndex": 2,
+  "stripe": true,
   "addBtn":false,
   "headerAlign": "center",
   "showSummary": false,

+ 4 - 0
src/views/financialManagement/outputInvoice/outputInvoice.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -217,6 +218,9 @@
         this.show = true;
         this.onLoad(this.page,this.search)
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/financialManagement/paymentRequest/configuration/mainList.json

@@ -20,6 +20,7 @@
   "searchLabelWidth": 120,
   "searchIcon": true,
   "searchIndex": 2,
+  "stripe": true,
   "addBtn":false,
   "expand": false,
   "expandWidth": 38,

+ 4 - 0
src/views/financialManagement/paymentRequest/index.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -221,6 +222,9 @@
         this.show = true;
         this.onLoad(this.page,this.search)
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/financialManagement/paymentSettle/configuration/mainList.json

@@ -20,6 +20,7 @@
   "searchIcon": true,
   "searchIndex": 2,
   "addBtn":false,
+  "stripe": true,
   "headerAlign": "center",
   "showSummary": true,
   "summaryText": "合计",

+ 4 - 0
src/views/financialManagement/paymentSettle/paymentSettle.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -230,6 +231,9 @@
         this.show = true;
         this.onLoad(this.page,this.search)
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/financialManagement/receiptSettle/configuration/mainList.json

@@ -20,6 +20,7 @@
   "searchIcon": true,
   "searchIndex": 2,
   "addBtn":false,
+  "stripe": true,
   "headerAlign": "center",
   "showSummary": true,
   "summaryText": "合计",

+ 4 - 0
src/views/financialManagement/receiptSettle/receiptSettle.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -214,6 +215,9 @@
         this.show = true;
         this.onLoad(this.page,this.search)
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 3 - 2
src/views/importTrade/invoice/config/mainList.json

@@ -5,11 +5,11 @@
   "searchShow": true,
   "searchMenuSpan": 8,
   "searchSpan": 8,
-  "align": "center",
   "searchMenuPosition": "right",
+  "align": "center",
   "dialogWidth": "60%",
-  "height": "auto",
   "tree": true,
+  "height": "auto",
   "border": true,
   "index": true,
   "selection": true,
@@ -22,6 +22,7 @@
   "addBtnText": "创建单据",
   "dialogClickModal": false,
   "searchLabelWidth": 120,
+  "stripe": true,
   "showSummary": true,
   "summaryText": "合计",
   "sumColumnList": [

+ 12 - 0
src/views/importTrade/invoice/detailsPageEdit.vue

@@ -72,6 +72,18 @@
                   :disabled="viewDisabled || goodsDisable"
                   style="width: 100%"
                 ></crop-select>
+                <user-com
+                  v-else-if="item.prop === 'arrivalContact'"
+                  :disabled="viewDisabled || goodsDisable"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
+                <user-com
+                  v-else-if="item.prop === 'saleman'"
+                  :disabled="viewDisabled || goodsDisable"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
                 <el-select v-else-if="item.prop === 'storageId'" style="width: 100%" :disabled="goodsDisable || viewDisabled"  @change="warehouseChange" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
                   <el-option v-for="(item,index) in storageList" :key="index" :label="item.stockName" :value="item.storageId"></el-option>
                 </el-select>

+ 23 - 1
src/views/importTrade/invoice/index.vue

@@ -10,6 +10,7 @@
                @row-del="rowDel"
                :before-open="beforeOpen"
                :before-close="beforeClose"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -18,6 +19,7 @@
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
                @refresh-change="refreshChange"
+               @search-criteria-switch="searchCriteriaSwitch"
                @on-load="onLoad">
       <template slot="corpIdSearch">
         <select-component
@@ -31,6 +33,12 @@
           :configuration="sConfiguration"
         ></warehouse-select>
       </template>
+      <template slot="arrivalContactSearch">
+        <user-com
+          v-model="search.arrivalContact"
+          style="width: 100%"
+        ></user-com>
+      </template>
       <template slot="menuLeft">
         <el-button size="small"
                    type="success"
@@ -130,7 +138,7 @@ export default {
     this.option = await this.getColumnData(this.getColumnName(43), option);
   },
   mounted() {
-    // this.option.height = window.innerHeight - 200;
+
   },
   activated() {
     if(!this.show && !this.$store.getters.goStatus){
@@ -250,6 +258,9 @@ export default {
       selectInvoiceList(params).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       }).finally(()=>{
         this.loading = false
       })
@@ -259,6 +270,17 @@ export default {
       this.show = true;
       this.onLoad(this.page,this.search)
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 140
+      }else {
+        this.option.height = this.option.height + 140
+      }
+      this.$refs.crud.getTableHeight()
+    },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 1 - 0
src/views/importTrade/receipt/config/mainList.json

@@ -22,6 +22,7 @@
   "addBtnText": "创建单据",
   "dialogClickModal": false,
   "searchLabelWidth": 120,
+  "stripe": true,
   "showSummary": true,
   "summaryText": "合计",
   "sumColumnList": [

+ 12 - 0
src/views/importTrade/receipt/detailsPageEdit.vue

@@ -72,6 +72,18 @@
                   :disabled="viewDisabled || receiptDisable"
                   style="width: 100%"
                 ></crop-select>
+                <user-com
+                  v-else-if="item.prop === 'arrivalContact'"
+                  :disabled="receiptDisable || viewDisabled"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
+                <user-com
+                  v-else-if="item.prop === 'saleman'"
+                  :disabled="receiptDisable || viewDisabled"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
                 <el-select v-else-if="item.prop === 'storageId'" style="width: 100%" :disabled="receiptDisable || viewDisabled" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
                   <el-option v-for="(item,index) in storageIdDic" :key="index" :label="item.cname " :value="item.id"></el-option>
                 </el-select>

+ 22 - 0
src/views/importTrade/receipt/index.vue

@@ -10,6 +10,7 @@
                @row-del="rowDel"
                :before-open="beforeOpen"
                :before-close="beforeClose"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -18,6 +19,7 @@
                @refresh-change="refreshChange"
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
+               @search-criteria-switch="searchCriteriaSwitch"
                @on-load="onLoad">
       <template slot="corpIdSearch">
         <select-component
@@ -25,6 +27,12 @@
           :configuration="configuration"
         ></select-component>
       </template>
+      <template slot="arrivalContactSearch">
+        <user-com
+          v-model="search.arrivalContact"
+          style="width: 100%"
+        ></user-com>
+      </template>
       <template slot="storageIdSearch">
         <warehouse-select
           v-model="search.storageId"
@@ -260,15 +268,29 @@ export default {
       selectReceiptList(params).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       }).finally(()=>{
         this.loading = false
       })
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 140
+      }else {
+        this.option.height = this.option.height + 140
+      }
+      this.$refs.crud.getTableHeight()
+    },
     goBack() {
       this.detailData=this.$options.data().detailData
       this.show = true;
       this.onLoad(this.page,this.search)
     },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 1 - 0
src/views/purchase/contract/config/mainList.json

@@ -26,6 +26,7 @@
   "expandWidth": 38,
   "selectionWidth": 50,
   "showSummary": true,
+  "stripe": true,
   "summaryText": "合计",
   "sumColumnList": [
     {

+ 7 - 0
src/views/purchase/contract/detailsPage.vue

@@ -147,6 +147,12 @@
                     <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue"  :value="item.dictValue"></el-option>
                   </el-select>
                 </div>
+                <user-com
+                  v-else-if="item.prop === 'salesName'"
+                  :disabled="item.disabled?true:false || takeDisabled  || viewDisabled"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
                 <el-input type="age" v-else-if="item.prop === 'exchangeRate'" v-model="form[item.prop]"  :disabled="item.disabled?true:false || takeDisabled  || viewDisabled" size="small" autocomplete="off"  @change="RMBChange" placeholder="请输入">
                 </el-input>
                 <el-input type="textarea" v-else-if="(item.prop === 'orderRemark')" v-model="form[item.prop]" :disabled="viewDisabled"  size="small" autocomplete="off" placeholder="请输入"></el-input>
@@ -500,6 +506,7 @@ export default {
       batchNo:'',
       billType:"",
       billData:{},
+      salesNameDic:[],//业务员列表
       contractTypeDic:[],
       currencyDic:[],
       selectContact:[],//选中采购明细

+ 22 - 0
src/views/purchase/contract/index.vue

@@ -11,6 +11,7 @@
                  @row-del="rowDel"
                  :before-open="beforeOpen"
                  :before-close="beforeClose"
+                 :cell-style="cellStyle"
                  @search-change="searchChange"
                  @search-reset="searchReset"
                  @selection-change="selectionChange"
@@ -21,6 +22,7 @@
                  @expand-change="expandChange"
                  @saveColumn="saveColumn"
                  @resetColumn="resetColumn"
+                 @search-criteria-switch="searchCriteriaSwitch"
       >
         <template slot="corpIdSearch">
           <select-component
@@ -28,6 +30,12 @@
             :configuration="configuration"
           ></select-component>
         </template>
+        <template slot="salesNameSearch">
+          <user-com
+            v-model="search.salesName"
+            style="width: 100%"
+          ></user-com>
+        </template>
         <template slot-scope="scope" slot="expand">
           <el-table :data="scope.row.insideList" v-loading="scope.row.loading">
             <el-table-column   type="selection" align="center"  width="50"></el-table-column>
@@ -281,16 +289,30 @@ export default {
       selectPurchaseList(params).then(res => {
         this.dataList = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total || this.page.total === 0) {
+          this.option.height = window.innerHeight - 200;
+        }
       })
       .finally(()=>{
         this.loading = false
       })
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 145
+      }else {
+        this.option.height = this.option.height + 145
+      }
+      this.$refs.crud.getTableHeight()
+    },
     goBack() {
       this.detailData=this.$options.data().detailData
       this.show = true;
       this.onLoad(this.page, this.search)
     },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 1 - 0
src/views/purchase/stockBill/config/mainList.json

@@ -21,6 +21,7 @@
   "searchIcon": true,
   "searchIndex": 2,
   "searchLabelWidth": 100,
+  "stripe": true,
   "showSummary": true,
   "summaryText": "合计",
   "sumColumnList": [

+ 17 - 0
src/views/purchase/stockBill/index.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -15,6 +16,7 @@
                @refresh-change="refreshChange"
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
+               @search-criteria-switch="searchCriteriaSwitch"
                @on-load="onLoad">
       <template slot-scope="scope" slot="surplusRouteQuantity">
         <span>{{ scope.row.surplusRouteQuantity | roundNumbers}}</span>
@@ -133,9 +135,24 @@
         customerList(params).then(res=>{
           this.dataList = res.data.data.records
           this.page.total = res.data.data.total
+          if (this.page.total || this.page.total === 0) {
+            this.option.height = window.innerHeight - 240;
+          }
+        }).finally(()=>{
           this.loading = false;
         })
       },
+      searchCriteriaSwitch(type){
+        if (type){
+          this.option.height = this.option.height - 45
+        }else {
+          this.option.height = this.option.height + 45
+        }
+        this.$refs.crud.getTableHeight()
+      },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/salesManagement/salesContract/config/mainList.json

@@ -25,6 +25,7 @@
   "expandWidth": 38,
   "addBtnText": "创建单据",
   "expand": true,
+  "stripe": true,
   "rowKey": "id",
   "showSummary": true,
   "summaryText": "合计",

+ 6 - 0
src/views/salesManagement/salesContract/detailsPage.vue

@@ -134,6 +134,12 @@
                   :disabled="viewDisabled || takeDisabled"
                   corpType="GS"
                 ></crop-select>
+                <user-com
+                  v-else-if="item.prop === 'salesName'"
+                  :disabled="viewDisabled || takeDisabled"
+                  v-model="form[item.prop]"
+                  style="width: 100%"
+                ></user-com>
                 <el-input type="age" v-else-if="item.type === 'unit'" v-model="form[item.prop]"  @change="downPaymentChange"  :disabled="viewDisabled|| takeDisabled " size="small" autocomplete="off" placeholder="请输入">
                   <template slot="append">%</template>
                 </el-input>

+ 22 - 0
src/views/salesManagement/salesContract/index.vue

@@ -10,6 +10,7 @@
                @row-del="rowDel"
                :before-open="beforeOpen"
                :before-close="beforeClose"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -20,6 +21,7 @@
                @expand-change="expandChange"
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
+               @search-criteria-switch="searchCriteriaSwitch"
     >
       <template slot="corpIdSearch">
         <select-component
@@ -27,6 +29,12 @@
           :configuration="configuration"
         ></select-component>
       </template>
+      <template slot="salesNameSearch">
+        <user-com
+          v-model="search.salesName"
+          style="width: 100%"
+        ></user-com>
+      </template>
       <template slot-scope="{row,size}" slot="search">
       </template>
       <template slot-scope="scope" slot="expand" width="48px">
@@ -261,6 +269,9 @@ export default {
           this.$set(item,'insideList',[])
           this.$set(item,'loading', true)
         })
+        if (this.page.total) {
+          this.option.height = window.innerHeight - 200;
+        }
       }).finally(()=>{
         this.loading = false
       })
@@ -270,6 +281,17 @@ export default {
       this.show = true;
       this.onLoad(this.page,this.search)
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.option.height = this.option.height - 145
+      }else {
+        this.option.height = this.option.height + 145
+      }
+      this.$refs.crud.getTableHeight()
+    },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 1 - 0
src/views/statisticAnalysis/profit/config/mainList.json

@@ -22,6 +22,7 @@
   "searchIndex": 2,
   "addBtn":false,
   "menu": false,
+  "stripe": true,
   "headerAlign": "center",
   "showSummary": true,
   "summaryText": "合计",

+ 4 - 0
src/views/statisticAnalysis/profit/index.vue

@@ -15,6 +15,7 @@
                @size-change="sizeChange"
                @refresh-change="refreshChange"
                @saveColumn="saveColumn"
+               :cell-style="cellStyle"
                @resetColumn="resetColumn"
                @on-load="onLoad">
       <template slot="menuLeft">
@@ -176,6 +177,9 @@
           this.loading = false;
         })
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 74 - 23
src/views/statisticAnalysis/royalty/config/mainList.json

@@ -22,6 +22,7 @@
   "searchIndex": 2,
   "addBtn":false,
   "menu": false,
+  "stripe": true,
   "headerAlign": "center",
   "showSummary": true,
   "summaryText": "合计",
@@ -65,28 +66,80 @@
     {
       "name": "invoiceAmount",
       "type": "sum"
+    }
+  ],
+  "column": [
+    {
+      "label": "年",
+      "prop": "year",
+      "width": 170,
+      "hide": true,
+      "search": true
     },
     {
-      "name": "unitPrice",
-      "type": "sum"
+      "label": "季度",
+      "prop": "quarter",
+      "width": 170,
+      "hide": true,
+      "search": true,
+      "type": "select",
+      "dicData": [
+        {
+          "label": "第一季度",
+          "value": "1"
+        },
+        {
+          "label": "第二季度",
+          "value": "2"
+        },
+        {
+          "label": "第三季度",
+          "value": "3"
+        },
+        {
+          "label": "第四季度",
+          "value": "4"
+        }
+      ]
     },
     {
-      "name": "costAmount",
-      "type": "sum"
+      "label": "用户类型",
+      "prop": "userType",
+      "width": 170,
+      "hide": true,
+      "search": true,
+      "type": "select",
+      "dicData": [
+        {
+          "label": "业务",
+          "value": "11"
+        },
+        {
+          "label": "操作",
+          "value": "12"
+        }
+      ]
     },
     {
-      "name": "deliverMoney",
-      "type": "sum"
+      "label": "姓名",
+      "prop": "userId",
+      "width": 170,
+      "hide": true,
+      "search": true
     },
     {
-      "name": "profit",
-      "type": "sum"
-    }
-  ],
-  "column": [
+      "label": "序号",
+      "prop": "serialId",
+      "width": 50
+    },
     {
       "label": "姓名",
-      "prop": "name",
+      "prop": "userName",
+      "width": 170
+    },
+    {
+      "label": "商品",
+      "prop": "goodsName",
       "width": 170,
       "search": true
     },
@@ -95,28 +148,28 @@
       "children": [
         {
           "label": "第一月",
-          "prop": "corpName",
+          "prop": "firstMonth",
           "overHidden": true,
           "width": 170,
           "index": 1
         },
         {
           "label": "第二月",
-          "prop": "orderNo",
+          "prop": "secondMonth",
           "width": 170,
           "index": 2,
           "overHidden": true
         },
         {
           "label": "第三月",
-          "prop": "invoiceWeight",
+          "prop": "thirdMonth",
           "width": 170,
           "index": 3,
           "overHidden": true
         },
         {
           "label": "合计",
-          "prop": "customDutyMoney",
+          "prop": "totalBillWeight",
           "width": 170,
           "index": 4,
           "overHidden": true
@@ -125,14 +178,12 @@
     },
     {
       "label": "提成单价",
-      "prop": "name",
-      "search": true,
+      "prop": "commissionRate",
       "width": 170
     },
     {
       "label": "提成金额",
-      "prop": "name",
-      "search": true,
+      "prop": "commissionAmount",
       "width": 170
     },
     {
@@ -140,7 +191,7 @@
       "children": [
         {
           "label": "60%",
-          "prop": "saleCorpName",
+          "prop": "receivedAmount",
           "overHidden": true,
           "width": 170,
           "index": 10
@@ -152,14 +203,14 @@
       "children": [
         {
           "label": "已领金额",
-          "prop": "createUserName",
+          "prop": "receivedAmount",
           "width": 170,
           "index": 17,
           "overHidden": true
         },
         {
           "label": "留存金额",
-          "prop": "createUserName",
+          "prop": "retainedAmount",
           "width": 170,
           "index": 17,
           "overHidden": true

+ 38 - 19
src/views/statisticAnalysis/royalty/index.vue

@@ -8,6 +8,7 @@
                :search.sync="search"
                :table-loading="loading"
                :span-method="spanMethod"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -17,10 +18,22 @@
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
                @on-load="onLoad">
+      <template slot="yearSearch">
+        <el-date-picker
+          v-model="search.year"
+          type="year"
+          placeholder="">
+        </el-date-picker>
+      </template>
+      <template slot="userIdSearch">
+        <user-com
+          v-model="search.userId"
+          style="width: 100%"
+        ></user-com>
+      </template>
       <template slot="menuLeft">
         <el-button size="small"
-                   type="info"
-                   icon="el-icon-download"
+                   type="primary"
                    :loading="exportLoading"
                    @click.stop="downFile"
         >报表
@@ -32,7 +45,7 @@
 
 <script>
   import option from "./config/mainList.json";
-  import { getProfitList } from "@/api/statisticAnalysis/profit";
+  import { getCommission } from "@/api/statisticAnalysis/profit";
   import { contrastList } from "@/util/contrastData";
 
   export default {
@@ -82,9 +95,9 @@
       },
       rowspan() {
         //记录原始
-        let oldList = [this.dataList[0].name]
+        let oldList = [this.dataList[0].userName]
         this.dataList.forEach((item,index)=>{
-          let newList = [item.name]
+          let newList = [item.userName]
           if(index===0){
             this.spanArr.push(1)
             this.position=0;
@@ -103,7 +116,7 @@
         })
       },
       spanMethod({ row, column, rowIndex, columnIndex }) {
-        if (column.property === "name") {
+        if (column.property === "userName") {
           const _row=this.spanArr[rowIndex];
           const _col=_row>0?1:0;
           return {
@@ -136,23 +149,29 @@
       },
       paramsAdjustment(params) {
         params = Object.assign({}, this.search);
-        if (params.createTime &&  params.createTime.length !==0 ) {  //发货
-          params.startTime = params.createTime[0]+ " " + "00:00:00";
-          params.endTime = params.createTime[1] + " " + "23:59:59";
-          this.$delete(params,'createTime')
+        // if (params.createTime &&  params.createTime.length !==0 ) {  //发货
+        //   params.startTime = params.createTime[0]+ " " + "00:00:00";
+        //   params.endTime = params.createTime[1] + " " + "23:59:59";
+        //   this.$delete(params,'createTime')
+        // }
+        if(!params.userType){
+          params.userType = "业务"
         }
         return params
       },
       onLoad(page, params) {
-        // this.loading = true;
-        // params = this.paramsAdjustment(params)
-        // getProfitList(page.currentPage, page.pageSize,params).then(res=>{
-        //   this.dataList = res.data.data.records
-        //   this.page.total = res.data.data.total
-        //   this.rowspan()
-        // }).finally(()=>{
-        //   this.loading = false;
-        // })
+        this.loading = true;
+        params = this.paramsAdjustment(params)
+        getCommission(page.currentPage, page.pageSize,params).then(res=>{
+          this.dataList = res.data.data.records
+          this.page.total = res.data.data.total
+          // this.rowspan()
+        }).finally(()=>{
+          this.loading = false;
+        })
+      },
+      cellStyle() {
+        return "padding:0;height:40px;";
       },
       //列保存触发
       async saveColumn() {

+ 1 - 1
src/views/statisticAnalysis/salesProfit/index.vue

@@ -8,6 +8,7 @@
         :before-open="beforeOpen"
         :page.sync="page"
         :search.sync="search"
+        :cell-style="cellStyle"
         @search-change="searchChange"
         @current-change="currentChange"
         @size-change="sizeChange"
@@ -16,7 +17,6 @@
         :table-loading="loading"
         @saveColumn="saveColumn"
         @resetColumn="resetColumn"
-        :cell-style="cellStyle"
       >
         <template slot="corpIdSearch">
           <crop-select v-model="search.corpId" corpType="KH"></crop-select>

+ 17 - 14
src/views/system/application/config/detailsPage.json

@@ -36,12 +36,11 @@
       ]
     },
     {
-      "label": "版本",
+      "label": "最低版本",
       "prop": "versionCode",
       "overHidden": true,
       "cell":true,
-      "width": 120,
-      "type": "number",
+      "width": 180,
       "index": 2,
       "rules": [
         {
@@ -52,27 +51,31 @@
       ]
     },
     {
-      "label": "版本描述",
-      "prop": "versionDesc",
+      "label": "最新版本",
+      "prop": "lastVersionCode",
       "overHidden": true,
-      "cell":true,
-      "width": 300,
-      "index": 3
+      "cell": true,
+      "width": 180,
+      "index": 4
     },
     {
       "label": "下载地址",
       "prop": "downloadUrl",
       "overHidden": true,
-      "cell":true,
-      "width": 300,
-      "index": 4
+      "width": 430,
+      "index": 5
+    },
+    {
+      "label": "版本描述",
+      "prop": "versionDesc",
+      "overHidden": true,
+      "width": 360,
+      "index": 6
     },
     {
       "label": "是否发布",
       "prop": "isRelease",
-      "cell": true,
       "type": "select",
-      "value": 1,
       "dicData": [
         {
         "label": "是",
@@ -85,7 +88,7 @@
       ],
       "overHidden": true,
       "width": 120,
-      "index": 5
+      "index": 7
     }
   ]
 }

+ 130 - 0
src/views/system/application/detailsPage.vue

@@ -43,6 +43,51 @@
                    @current-change="currentChange"
                    @size-change="sizeChange"
                    @refresh-change="refreshChange">
+          <template slot="downloadUrl" slot-scope="{ row }">
+            <el-input
+              v-if="row.$cellEdit"
+              v-model="row.downloadUrl"
+              style="width: 80%"
+              size="small"
+            >
+            </el-input>
+            <el-button
+              style="width: 20%"
+              size="small"
+              v-if="row.$cellEdit"
+              @click="uploadFiles(row)"
+            >
+              附件
+            </el-button>
+            <span v-else>{{ row.downloadUrl }}</span>
+          </template>
+          <template slot="versionDesc" slot-scope="{ row }">
+            <el-input type="textarea"
+                      v-if="row.$cellEdit"
+                      v-model="row.versionDesc"
+                      size="small"
+                      autosize
+                      placeholder="">
+            </el-input>
+            <span v-else>{{ row.versionDesc }}</span>
+          </template>
+          <template slot="isRelease" slot-scope="{ row, index }">
+            <el-select
+              v-if="row.$cellEdit"
+              v-model="row.isRelease"
+              size="small"
+              @change="isReleaseChange(row,index)"
+            >
+              <el-option
+                v-for="(item,index) in isReleaseList"
+                :key="index"
+                :label="item.label"
+                :value="item.value"
+              >
+              </el-option>
+            </el-select>
+            <span v-else>{{ row.isRelease ===1?"是":"否" }}</span>
+          </template>
           <template slot="menuLeft">
             <el-button type="primary"
                        size="small"
@@ -69,6 +114,22 @@
           </template>
         </avue-crud>
       </basic-container>
+      <el-dialog
+        title="上传附件"
+        append-to-body
+        :visible.sync="excelBox"
+        width="555px"
+        v-dialog-drag
+      >
+        <avue-form
+          :option="excelOption"
+          v-model="excelForm"
+          table-loading="excelLoading"
+          :upload-before="uploadBefore"
+          :upload-after="uploadAfter"
+        >
+        </avue-form>
+      </el-dialog>
     </div>
   </div>
 </template>
@@ -146,6 +207,40 @@
             },
           ],
         },
+        selectRow:{},
+        isReleaseList:[
+          {
+            label: "是",
+            value: 1
+          },
+          {
+            label: "否",
+            value: 0
+          }
+          ],
+        excelBox: false,
+        excelLoading: false,
+        excelForm: {},
+        excelOption: {
+          submitBtn: false,
+          emptyBtn: false,
+          column: [
+            {
+              label: "附件上传",
+              prop: "excelFile",
+              type: "upload",
+              drag: true,
+              dataType: "string",
+              loadText: "模板上传中,请稍等",
+              span: 24,
+              propsHttp: {
+                res: "data",
+                url: "link"
+              },
+              action: "/api/blade-resource/oss/endpoint/put-file"
+            }
+          ]
+        },
         oldForm:{},
         oldDataList:[],
       }
@@ -160,10 +255,45 @@
         })
       }
     },
+    watch:{
+      'excelForm.excelFile'(val) {
+        this.selectRow.downloadUrl = val
+      },
+    },
     mounted() {
 
     },
     methods: {
+      isReleaseChange(row,indexs){
+        if(row.isRelease === 1){
+          //如果其他版本有发布的
+          let yes ;
+          this.dataList.map((item,index)=>{
+            if(indexs != index && item.isRelease === 1){
+              yes =  true
+            }
+          })
+          if(yes){
+            this.$message.warning("已有其他版本发布!")
+            row.isRelease = 0
+          }
+        }
+
+      },
+      uploadFiles(row){
+        this.selectRow = row
+        this.excelBox = true
+      },
+      uploadBefore(file, done, loading) {
+        done();
+        loading = true;
+      },
+      uploadAfter(res, done, loading, column) {
+        this.excelBox = false;
+        this.$message.success("上传成功!");
+        loading = false;
+        done();
+      },
       rowUpdate(row, index, done) {
         done(row);
       },

+ 1 - 0
src/views/workManagement/main-items/configuration/mainList.json

@@ -18,6 +18,7 @@
   "editBtn": false,
   "viewBtn": false,
   "delBtn": false,
+  "stripe": true,
   "showSummary": true,
   "menuWidth": 120,
   "column": [

+ 4 - 2
src/views/workManagement/main-items/detailsPage.vue

@@ -930,8 +930,10 @@
         })
       },
       value(value,row){
-        row.userid = value.id
-        row.deptid = value.deptId
+        if(value){
+          row.userid = value.id
+          row.deptid = value.deptId
+        }
       },
       //合计
       totalChange(row,type){

+ 17 - 1
src/views/workManagement/main-items/list.vue

@@ -9,6 +9,7 @@
       :search.sync="search"
       :table-loading="loading"
       :summary-method="summaryMethod"
+      :cell-style="cellStyle"
       @row-del="rowDel"
       @size-change="sizeChange"
       @search-change="searchChange"
@@ -17,6 +18,7 @@
       @on-load="getList"
       @saveColumn="saveColumn"
       @resetColumn="resetColumn"
+      @search-criteria-switch="searchCriteriaSwitch"
     >
       <template slot="corpIdSearch">
         <select-component
@@ -118,7 +120,7 @@ export default {
         currentPage: 1,
         total: 0,
         pageSize: 10,
-        pageSizes: [10, 50, 100, 200, 300, 400, 500,1000]
+        pageSizes: [10,20, 50, 100, 200,400, 500]
       }
     };
   },
@@ -204,6 +206,9 @@ export default {
       getList(page.currentPage, page.pageSize,params).then(res =>{
         this.data = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total) {
+          this.optionTable.height = window.innerHeight - 240;
+        }
       }).finally(()=>{
         this.loading = false;
       })
@@ -263,6 +268,14 @@ export default {
         });
       }
     },
+    searchCriteriaSwitch(type){
+      if (type){
+        this.optionTable.height = this.optionTable.height - 50
+      }else {
+        this.optionTable.height = this.optionTable.height + 50
+      }
+      this.$refs.crud.getTableHeight()
+    },
     summaryMethod({ columns, data }) {
       const sums = [];
       if (columns.length > 0) {
@@ -301,6 +314,9 @@ export default {
       this.show = true;
       this.getList(this.page, this.search)
     },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 1 - 0
src/views/workManagement/performanceAnalysis/config/mainList.json

@@ -16,6 +16,7 @@
   "editBtn": false,
   "delBtn": false,
   "menuWidth": 80,
+  "stripe": true,
   "dialogClickModal": false,
   "searchLabelWidth": 120,
   "searchIcon": true,

+ 17 - 1
src/views/workManagement/performanceAnalysis/index.vue

@@ -7,6 +7,7 @@
                :page.sync="page"
                :search.sync="search"
                :table-loading="loading"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -16,6 +17,7 @@
                @on-load="onLoad"
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
+               @search-criteria-switch="searchCriteriaSwitch"
     >
       <template slot="menuLeft">
         <el-button
@@ -214,10 +216,24 @@
         performanceAnalysis(page.currentPage, page.pageSize,params).then(res=>{
           this.dataList = res.data.data.records
           this.page.total = res.data.data.total
+          if (this.page.total) {
+            this.option.height = window.innerHeight - 200;
+          }
         }).finally(()=>{
-          this.loading = false;
+          this.loading = false
         })
       },
+      searchCriteriaSwitch(type){
+        if (type){
+          this.option.height = this.option.height - 50
+        }else {
+          this.option.height = this.option.height + 50
+        }
+        this.$refs.crud.getTableHeight()
+      },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 1 - 0
src/views/workManagement/receipt/configuration/statisticalList.json

@@ -16,6 +16,7 @@
   "searchIndex": 2,
   "selection": false,
   "viewBtn": false,
+  "stripe": true,
   "editBtn": false,
   "delBtn": false,
   "menuWidth": 80,

+ 16 - 0
src/views/workManagement/receipt/statisticalList.vue

@@ -7,6 +7,7 @@
                v-model="form"
                :page.sync="page"
                :search.sync="search"
+               :cell-style="cellStyle"
                @search-change="searchChange"
                @search-reset="searchReset"
                @selection-change="selectionChange"
@@ -16,6 +17,7 @@
                @on-load="onLoad"
                @saveColumn="saveColumn"
                @resetColumn="resetColumn"
+               @search-criteria-switch="searchCriteriaSwitch"
     >
       <template slot="menuLeft">
         <el-button
@@ -258,10 +260,24 @@
         getFlowList(page.currentPage, page.pageSize,param).then(res =>{
           this.dataList = res.data.data.records
           this.page.total = res.data.data.total
+          if (this.page.total) {
+            this.option.height = window.innerHeight - 240;
+          }
         }).finally(()=>{
           this.loading = false
         })
       },
+      searchCriteriaSwitch(type){
+        if (type){
+          this.option.height = this.option.height - 95
+        }else {
+          this.option.height = this.option.height + 95
+        }
+        this.$refs.crud.getTableHeight()
+      },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //列保存触发
       async saveColumn() {
         const inSave = await this.saveColumnData(

+ 12 - 0
src/views/workManagement/service-items/configuration/projectOption.json

@@ -13,6 +13,7 @@
   "selection": true,
   "viewBtn": false,
   "editBtn": true,
+  "stripe": true,
   "delBtn": true,
   "menuWidth": 150,
   "column": [
@@ -20,6 +21,7 @@
       "label": "项目编码",
       "prop": "code",
       "search": true,
+      "overHidden": true,
       "index": 1,
       "width": 150,
       "rules": [
@@ -34,6 +36,7 @@
       "label": "项目名称",
       "prop": "cname",
       "search": true,
+      "overHidden": true,
       "index": 2,
       "width": 150,
       "rules": [
@@ -50,6 +53,7 @@
       "dicData": [],
       "type": "tree",
       "hide": true,
+      "overHidden": true,
       "multiple": false,
       "props": {
         "label": "title"
@@ -63,6 +67,7 @@
     {
       "label": "收费建议",
       "prop": "remarks",
+      "overHidden": true,
       "index": 3,
       "width": 150
     },
@@ -70,11 +75,13 @@
       "label": "单价",
       "prop": "price",
       "index": 4,
+      "overHidden": true,
       "width": 120
     },
     {
       "label": "计价单位",
       "prop": "unit",
+      "overHidden": true,
       "index": 5,
       "width": 120
     },
@@ -82,6 +89,7 @@
       "label": "频率",
       "prop": "rate",
       "type": "select",
+      "overHidden": true,
       "dicUrl": "/api/blade-system/dict-biz/dictionary?code=frequency",
       "props": {
         "label": "dictValue",
@@ -93,6 +101,7 @@
     {
       "label": "质保期",
       "type":"date",
+      "overHidden": true,
       "prop": "warrantyPeriod",
       "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd HH:dd:ss",
@@ -101,6 +110,7 @@
     },
     {
       "label": "标准工时",
+      "overHidden": true,
       "prop": "workingHours",
       "index": 8,
       "width": 80
@@ -110,6 +120,7 @@
       "prop": "createUserName",
       "addDisplay": false,
       "editDisplay": false,
+      "overHidden": true,
       "index": 9,
       "width": 150
     },
@@ -117,6 +128,7 @@
       "label": "创建时间",
       "prop": "createTime",
       "editDisplay": false,
+      "overHidden": true,
       "addDisplay": false,
       "index": 10,
       "width": 150

+ 2 - 1
src/views/workManagement/service-items/configuration/typeOption.json

@@ -13,14 +13,15 @@
   "tree": true,
   "selection": true,
   "viewBtn": true,
+  "stripe": true,
   "menuWidth": 300,
   "column": [
     {
       "label": "类别名称",
       "prop": "cname",
       "search": true,
-      "index": 1,
       "overHidden": true,
+      "index": 1,
       "rules": [
         {
           "required": true,

+ 9 - 1
src/views/workManagement/service-items/project.vue

@@ -23,6 +23,7 @@
           :table-loading="loading"
           v-model='form'
           :search.sync="search"
+          :cell-style="cellStyle"
           :before-open="beforeOpen"
           @size-change="sizeChange"
           @current-change="currentChange"
@@ -111,7 +112,6 @@ export default {
     reportDialog
   },
   mounted() {
-    option.height = window.innerHeight - 350 ;
     //查询服务类别字典项
     getDeptTree().then(res => {
       this.findObject(this.tableOption.column, "goodsTypeId").dicData = res.data.data;
@@ -131,6 +131,11 @@ export default {
       getServiceProjectList(page.currentPage, page.pageSize, params, this.treeDeptId).then(res => {
         this.data = res.data.data.records
         this.page.total = res.data.data.total
+        if (this.page.total) {
+          this.tableOption.height = window.innerHeight - 240;
+          // this.treeOption.height = window.innerHeight - 240;
+        }
+      }).finally(()=>{
         this.loading = false
       })
 
@@ -223,6 +228,9 @@ export default {
       this.page.currentPage = 1;
       this.getList(this.page);
     },
+    cellStyle() {
+      return "padding:0;height:40px;";
+    },
     //列保存触发
     async saveColumn() {
       const inSave = await this.saveColumnData(

+ 8 - 1
src/views/workManagement/service-items/type.vue

@@ -9,6 +9,7 @@
                :search.sync="search"
                @row-del="rowDel"
                @row-update="rowUpdate"
+               :cell-style="cellStyle"
                :before-open="beforeOpen"
                :before-close="beforeClose"
                @row-save="rowSave"
@@ -56,7 +57,6 @@
 
     },
     mounted() {
-      option.height = window.innerHeight - 310 ;
     },
     methods: {
       onLoad(page, params = {}) {
@@ -70,6 +70,10 @@
         getList(values).then(res => {
           this.dataList = res.data.data.records
           this.page.total = res.data.data.total
+          if (this.page.total) {
+            this.option.height = window.innerHeight - 200;
+          }
+        }).finally(()=>{
           this.loading=false;
         })
       },
@@ -147,6 +151,9 @@
         }
         done();
       },
+      cellStyle() {
+        return "padding:0;height:40px;";
+      },
       //点击新增取消时触发
       beforeClose(done) {
         this.parentId = "";