snow 7 months ago
parent
commit
a41a128123

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.31af95f6.css


BIN
dist/static/css/app.31af95f6.css.gz


BIN
dist/static/css/app.d31835b8.css.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.18332b1c.js


BIN
dist/static/js/app.18332b1c.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.cf4d87fe.js


BIN
dist/static/js/app.cf4d87fe.js.gz


+ 8 - 2
src/components/newEarningReport/company.vue

@@ -18,10 +18,11 @@
         :data="tableData" 
         :header-cell-class-name="setHeaderClassName"
         :cell-class-name="setCellClassName"
-        default-expand-all
+        :default-expand-all="isDefaultExpandAll"
         row-key="companyNo"
         :load="load"
         lazy
+        @expand-change="handleExpandChange"
        >
         <el-table-column fixed="left" label="公司" prop="companyName" align="center" width="120px">
           <template slot-scope="scope">
@@ -213,6 +214,8 @@ export default {
   props: ['companies', 'costField', 'isTenThound'],
   data() {
     return {
+      isDefaultExpandAll: false,
+      cacheDefaultExpandAll: false,
       isShowTable: false,
       filterCompany: {},
       daytime: "",
@@ -262,6 +265,10 @@ export default {
     this.requestData();
   },
   methods: {
+    handleExpandChange(_,isExpand){
+      // console.log(isExpand)
+      this.isDefaultExpandAll = isExpand
+    },
     calcAmountRealRate(){
       const msale_total = this.calcAmount('msale_total')
       const gross_completion = this.calcAmount('gross_completion') 
@@ -507,7 +514,6 @@ export default {
       this.tableData = platformlist
 
       this.isShowTable = false
-
       this.$nextTick(() => {
         this.isShowTable = true
       })

+ 1 - 1
src/pages/index.vue

@@ -15,6 +15,7 @@ export default {
     return {
       routes:[
         {label:'6.业务公司业绩报表', link: '/?path=newResults'},
+        {label: '8.结算订单业绩报表', link: '/?path=newEarningReport'},
         {label:'2.利润看板', link: '/?path=report'},
         {label:'3.应收账款', link: '/?path=accountsReceivable'},
         {label:'4.订单情况', link: '/?path=newReport'},
@@ -22,7 +23,6 @@ export default {
         {label:'7.库存情况', link:'?path=newStock'},
         {label:'1.业绩报表(2023版)', link: '/?path=results'},
         {label: '测试', link: '/?path=newResultInfo'},
-        {label: '8.结算订单业绩报表', link: '/?path=newEarningReport'}
       ]
     }
   },

+ 3 - 1
src/pages/newEarningReport.vue

@@ -156,7 +156,9 @@ export default {
       switch (Number(result.code)) {
         case 0:
           this.isShow = (result.data.is_show || []).includes(8) || (result.data.is_show || []).includes('8')
-          this.costField = (result.data.is_show || []).includes('cost_field')
+          this.costField = (result.data.is_show || []).includes('cost_field_settle')
+
+          console.log( this.costField, '~~🚀~~')
           setOpenid(result.data.openid)
           break
         default:

Some files were not shown because too many files changed in this diff