|
@@ -263,8 +263,8 @@
|
|
|
title:'已收款',
|
|
|
align:"center",
|
|
|
dataIndex: 'taskmoney',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'taskmoney',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
@@ -272,54 +272,55 @@
|
|
|
title:'合同额',
|
|
|
align:"center",
|
|
|
dataIndex: 'contractfpe',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'contractfpe',
|
|
|
- },
|
|
|
- // customCell: this.getClickColumn,
|
|
|
- },
|
|
|
- {
|
|
|
- title:'预估价',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'estimationcoat',
|
|
|
customRender: (text, record) => {
|
|
|
- return record.contractfpe ? '-' : Number(text).toFixed(2)
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title:'总成本',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'zcb',
|
|
|
- customRender: (text) => {
|
|
|
- return (Number(text)/10000).toFixed(2)
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title:'利润额',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'lre',
|
|
|
- customRender: (text) => {
|
|
|
return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
+ // customCell: this.getClickColumn,
|
|
|
},
|
|
|
- {
|
|
|
- title:'利润率',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'lrl',
|
|
|
- customRender: (text) => {
|
|
|
- return (Number(text) * 100).toFixed(1) + '%'
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title:'研制数量',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'yzsl'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'预估价',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'estimationcoat',
|
|
|
+ // customRender: (text, record) => {
|
|
|
+ // return record.contractfpe ? '-' : Number(text).toFixed(2)
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'总成本',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'zcb',
|
|
|
+ // customRender: (text) => {
|
|
|
+ // return (Number(text)/10000).toFixed(2)
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'利润额',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'lre',
|
|
|
+ // customRender: (text) => {
|
|
|
+ // return (Number(text)/10000).toFixed(2)
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'利润率',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'lrl',
|
|
|
+ // customRender: (text) => {
|
|
|
+ // return (Number(text) * 100).toFixed(1) + '%'
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'研制数量',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'yzsl'
|
|
|
+ // },
|
|
|
{
|
|
|
title:'单台利润',
|
|
|
align:"center",
|
|
|
dataIndex: 'oneProfit',
|
|
|
customRender: (text, record) => {
|
|
|
- return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
|
|
|
+ // return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -327,7 +328,7 @@
|
|
|
align:"center",
|
|
|
dataIndex: 'oneIncome',
|
|
|
customRender: (text, record) => {
|
|
|
- return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -335,23 +336,23 @@
|
|
|
align:"center",
|
|
|
dataIndex: 'oneCost',
|
|
|
customRender: (text, record) => {
|
|
|
- return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title:'材料预算',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'clys',
|
|
|
- customRender: (text) => {
|
|
|
- return Number(text).toFixed(2)
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title:'材料预算',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'clys',
|
|
|
+ // customRender: (text) => {
|
|
|
+ // return Number(text).toFixed(2)
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
title:'材料费',
|
|
|
align:"center",
|
|
|
dataIndex: 'clf',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'clf',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
@@ -359,8 +360,8 @@
|
|
|
title:'专用费',
|
|
|
align:"center",
|
|
|
dataIndex: 'zyf',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'zyf',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
@@ -368,25 +369,25 @@
|
|
|
title:'事务费',
|
|
|
align:"center",
|
|
|
dataIndex: 'swf',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'swf',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
|
- {
|
|
|
- title:'外协预算',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'wxys',
|
|
|
- customRender: (text) => {
|
|
|
- return Number(text).toFixed(2)
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title:'外协预算',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'wxys',
|
|
|
+ // customRender: (text) => {
|
|
|
+ // return Number(text).toFixed(2)
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
title:'外协费',
|
|
|
align:"center",
|
|
|
dataIndex: 'wxf',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'wxf',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
@@ -426,8 +427,8 @@
|
|
|
title:'装机成本',
|
|
|
align:"center",
|
|
|
dataIndex: 'zjcb',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'zjcb',
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
},
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
@@ -440,9 +441,9 @@
|
|
|
title:'工时(h)',
|
|
|
align:"center",
|
|
|
dataIndex: 'workhour',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'workhour',
|
|
|
- },
|
|
|
+ // scopedSlots: {
|
|
|
+ // customRender: 'workhour',
|
|
|
+ // },
|
|
|
// customCell: this.getClickColumn,
|
|
|
},
|
|
|
{
|