|
@@ -230,23 +230,22 @@
|
|
</div>
|
|
</div>
|
|
<a-icon slot="filterIcon" type='setting' :style="{ fontSize:'16px',color: '#108ee9' }" />
|
|
<a-icon slot="filterIcon" type='setting' :style="{ fontSize:'16px',color: '#108ee9' }" />
|
|
|
|
|
|
- <span slot="contractfpe" slot-scope="text, record">
|
|
|
|
- <!-- <a-button type="link">{{text}}</a-button> -->
|
|
|
|
|
|
+ <!-- <span slot="contractfpe" slot-scope="text, record">
|
|
<a-button type="link" @click.native="detailClick(text,record,'contractfpe','合同额')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click.native="detailClick(text,record,'contractfpe','合同额')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
- </span>
|
|
|
|
- <span slot="taskmoney" slot-scope="text, record">
|
|
|
|
|
|
+ </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)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click="detailClick(text,record,'taskmoney','已收款')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
- </span>
|
|
|
|
- <span slot="clf" slot-scope="text, record">
|
|
|
|
|
|
+ </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)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click="detailClick(text,record,'clf','材料费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
- </span>
|
|
|
|
- <span slot="zyf" slot-scope="text, record">
|
|
|
|
|
|
+ </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)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click="detailClick(text,record,'zyf','专用费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
- </span>
|
|
|
|
- <span slot="swf" slot-scope="text, record">
|
|
|
|
|
|
+ </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)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click="detailClick(text,record,'swf','事务费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
- </span>
|
|
|
|
- <span slot="wxf" slot-scope="text, record">
|
|
|
|
|
|
+ </span> -->
|
|
|
|
+ <!-- <span slot="wxf" slot-scope="text, record">
|
|
<a-button type="link" @click.native="detailClick(text,record,'wxf','外协费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
<a-button type="link" @click.native="detailClick(text,record,'wxf','外协费')" :style="{color: (record.children || record.id === 'amount') ? 'rgba(0,0,0,.65)' : ''}">{{(Number(text)/10000).toFixed(2)}}</a-button>
|
|
</span>
|
|
</span>
|
|
<span slot="zjcb" slot-scope="text, record">
|
|
<span slot="zjcb" slot-scope="text, record">
|
|
@@ -254,7 +253,7 @@
|
|
</span>
|
|
</span>
|
|
<span slot="workhour" slot-scope="text, record">
|
|
<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}}</a-button>
|
|
- </span>
|
|
|
|
|
|
+ </span> -->
|
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
@@ -469,20 +468,27 @@ import { number } from 'echarts';
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'taskmoney',
|
|
dataIndex: 'taskmoney',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'taskmoney',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'taskmoney',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'taskmoney', '已收款')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'合同额',
|
|
title:'合同额',
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'contractfpe',
|
|
dataIndex: 'contractfpe',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'contractfpe',
|
|
|
|
- },
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'contractfpe',
|
|
|
|
+ // },
|
|
// customCell: this.getClickColumn,
|
|
// customCell: this.getClickColumn,
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
|
+ },
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'contractfpe', '合同额')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'预估价',
|
|
title:'预估价',
|
|
@@ -567,30 +573,39 @@ import { number } from 'echarts';
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'clf',
|
|
dataIndex: 'clf',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'clf',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'clf',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'clf', '材料费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'专用费',
|
|
title:'专用费',
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'zyf',
|
|
dataIndex: 'zyf',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'zyf',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'zyf',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'zyf', '专用费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'事务费',
|
|
title:'事务费',
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'swf',
|
|
dataIndex: 'swf',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'swf',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'swf',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'swf', '事务费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'外协预算',
|
|
title:'外协预算',
|
|
@@ -606,10 +621,13 @@ import { number } from 'echarts';
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'wxf',
|
|
dataIndex: 'wxf',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'wxf',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'wxf',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'wxf', '外协费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'燃动费',
|
|
title:'燃动费',
|
|
@@ -619,6 +637,7 @@ import { number } from 'echarts';
|
|
customRender: (text) => {
|
|
customRender: (text) => {
|
|
return (Number(text)/10000).toFixed(2)
|
|
return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'rldlf', '燃动费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'固资费',
|
|
title:'固资费',
|
|
@@ -628,15 +647,17 @@ import { number } from 'echarts';
|
|
customRender: (text) => {
|
|
customRender: (text) => {
|
|
return (Number(text)/10000).toFixed(2)
|
|
return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'gdzczj', '固资费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title:'工时费',
|
|
|
|
|
|
+ title:'人工费',
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'gzjlwf',
|
|
dataIndex: 'gzjlwf',
|
|
customRender: (text) => {
|
|
customRender: (text) => {
|
|
return (Number(text)/10000).toFixed(2)
|
|
return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'gzjlwf', '人工费')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'管理费',
|
|
title:'管理费',
|
|
@@ -648,14 +669,27 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ title:'筛选费',
|
|
|
|
+ align:"center",
|
|
|
|
+ width: 120,
|
|
|
|
+ dataIndex: 'sxf',
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
|
|
+ },
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'sxf', '筛选费')}
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title:'装机成本',
|
|
title:'装机成本',
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'zjcb',
|
|
dataIndex: 'zjcb',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'zjcb',
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'zjcb',
|
|
|
|
+ // },
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return (Number(text)/10000).toFixed(2)
|
|
},
|
|
},
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'zjcb', '装机成本')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'内部试验',
|
|
title:'内部试验',
|
|
@@ -668,10 +702,10 @@ import { number } from 'echarts';
|
|
align:"center",
|
|
align:"center",
|
|
width: 120,
|
|
width: 120,
|
|
dataIndex: 'workhour',
|
|
dataIndex: 'workhour',
|
|
- scopedSlots: {
|
|
|
|
- customRender: 'workhour',
|
|
|
|
- },
|
|
|
|
- // customCell: this.getClickColumn,
|
|
|
|
|
|
+ // scopedSlots: {
|
|
|
|
+ // customRender: 'workhour',
|
|
|
|
+ // },
|
|
|
|
+ customCell: (record, index)=>{ return this.customCellDetail(record, index, 'workhour', '工时')}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title:'责任部门',
|
|
title:'责任部门',
|
|
@@ -977,11 +1011,54 @@ import { number } from 'echarts';
|
|
this.columns = cols;
|
|
this.columns = cols;
|
|
columnsEdit({checkedValues: checkedValues})
|
|
columnsEdit({checkedValues: checkedValues})
|
|
},
|
|
},
|
|
|
|
+ customCellDetail(record, index, columnValue, columnTitle){
|
|
|
|
+ if(record.children || record.id === 'amount'){
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ console.log(record, index, columnValue, columnTitle)
|
|
|
|
+ return {
|
|
|
|
+ style: {
|
|
|
|
+ 'color': "#1890ff !important",
|
|
|
|
+ 'cursor': "pointer",
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ // 点击事件
|
|
|
|
+ click: (event) => {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ dblclick: (event) => {
|
|
|
|
+ // 没有值不弹窗--也弹窗
|
|
|
|
+ // if(!event.target.textContent){
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ this.$refs.proCostDetail.taskno = record.taskno
|
|
|
|
+ if(record.status === '1' && columnValue === 'clf'){
|
|
|
|
+ // 批产参数
|
|
|
|
+ this.$refs.proCostDetail.pichanInfo = {
|
|
|
|
+ pccode: record.pccode,
|
|
|
|
+ proportion: record.proportion,
|
|
|
|
+ columnValue: columnValue,
|
|
|
|
+ }
|
|
|
|
+ console.log(columnValue)
|
|
|
|
+ this.$refs.proCostDetail.columnValue = 'pichanTask'
|
|
|
|
+ this.$refs.proCostDetail.title = columnTitle + '批产明细'
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs.proCostDetail.columnValue = columnValue
|
|
|
|
+ this.$refs.proCostDetail.title = columnTitle + '明细'
|
|
|
|
+ }
|
|
|
|
+ this.$refs.proCostDetail.show()
|
|
|
|
+ },
|
|
|
|
+ contextmenu: (event) => {},
|
|
|
|
+ mouseenter: (event) => {}, // 鼠标移入行
|
|
|
|
+ mouseleave: (event) => {}
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ },
|
|
detailClick(text, record, columnValue, columnTitle){
|
|
detailClick(text, record, columnValue, columnTitle){
|
|
if(!this.isClick){
|
|
if(!this.isClick){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log(text, record, columnValue, columnTitle)
|
|
|
|
|
|
+ // console.log(text, record, columnValue, columnTitle)
|
|
// 去掉没有值不弹窗判断 !text ||
|
|
// 去掉没有值不弹窗判断 !text ||
|
|
if(record.children || record.id === 'amount'){
|
|
if(record.children || record.id === 'amount'){
|
|
return
|
|
return
|