Procházet zdrojové kódy

项目成本元变万元

yuhan před 1 rokem
rodič
revize
7110069539

+ 54 - 21
src/views/module_kzks/projectCostList/ProjectCostList.vue

@@ -216,28 +216,28 @@
 
         <span slot="contractfpe" slot-scope="text, record">
           <!-- <a-button type="link">{{text}}</a-button> -->
-          <a-button type="link" @click="detailClick(text,record,'contractfpe','合同额')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'contractfpe','合同额')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="taskmoney" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'taskmoney','已收款')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'taskmoney','已收款')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="clf" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'clf','材料费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'clf','材料费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="zyf" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'zyf','专用费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'zyf','专用费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="swf" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'swf','事务费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'swf','事务费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="wxf" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'wxf','外协费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'wxf','外协费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="zjcb" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'zjcb','装机成本')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'zjcb','装机成本')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         <span slot="workhour" slot-scope="text, record">
-          <a-button type="link" @click="detailClick(text,record,'workhour','工时')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text}}</a-button>
+          <a-button type="link" @click="detailClick(text,record,'workhour','工时')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{text?(text/10000).toFixed(2):null}}</a-button>
         </span>
         
 
@@ -421,7 +421,7 @@ import { number } from 'echarts';
             dataIndex: 'yzjdname'
           },
           {
-            title:'项目进度',
+            title:'项目进度(%)',
             align:"center",
             dataIndex: 'processpercent'
           },
@@ -438,32 +438,50 @@ import { number } from 'echarts';
           {
             title:'单台收入',
             align:"center",
-            dataIndex: 'oneIncome'
+            dataIndex: 'oneIncome',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'单台成本',
             align:"center",
-            dataIndex: 'oneCost'
+            dataIndex: 'oneCost',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'单台利润',
             align:"center",
-            dataIndex: 'oneProfit'
+            dataIndex: 'oneProfit',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'利润额',
             align:"center",
-            dataIndex: 'lre'
+            dataIndex: 'lre',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
-            title:'利润率',
+            title:'利润率(%)',
             align:"center",
-            dataIndex: 'lrl'
+            dataIndex: 'lrl',
+            customRender: (text) => {
+              return text.toFixed(1)
+            },
           },
           {
             title:'预估价',
             align:"center",
-            dataIndex: 'estimationcoat'
+            dataIndex: 'estimationcoat',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'合同额',
@@ -486,7 +504,10 @@ import { number } from 'echarts';
           {
             title:'总成本',
             align:"center",
-            dataIndex: 'zcb'
+            dataIndex: 'zcb',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'材料预算',
@@ -537,22 +558,34 @@ import { number } from 'echarts';
           {
             title:'燃料动力费',
             align:"center",
-            dataIndex: 'rldlf'
+            dataIndex: 'rldlf',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'固定资产折旧',
             align:"center",
-            dataIndex: 'gdzczj'
+            dataIndex: 'gdzczj',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'工资及劳务费',
             align:"center",
-            dataIndex: 'gzjlwf'
+            dataIndex: 'gzjlwf',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'管理费',
             align:"center",
-            dataIndex: 'glf'
+            dataIndex: 'glf',
+            customRender: (text) => {
+              return text?(text/10000).toFixed(2):null
+            },
           },
           {
             title:'装机成本',