【update】-普通项目-金额字段 增加逗号分隔的情况
This commit is contained in:
@@ -85,6 +85,12 @@
|
|||||||
<template slot="text" slot-scope="text">
|
<template slot="text" slot-scope="text">
|
||||||
<j-ellipsis :value="text" :length="15"></j-ellipsis>
|
<j-ellipsis :value="text" :length="15"></j-ellipsis>
|
||||||
</template>
|
</template>
|
||||||
|
<template slot="allMoney" slot-scope="text">
|
||||||
|
<a-tooltip>
|
||||||
|
<template slot="title">{{ formatMoney(text) }}</template>
|
||||||
|
<div class="table-text">{{ formatMoney(text) }}</div>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- 打包、需要发票、到账、开票、邮寄状态-->
|
<!-- 打包、需要发票、到账、开票、邮寄状态-->
|
||||||
<template slot="status" slot-scope="text,record">
|
<template slot="status" slot-scope="text,record">
|
||||||
@@ -126,6 +132,7 @@ import ProjectDetailModal from '@comp/ProjectDetailModal'
|
|||||||
import StatusSlot from '@comp/tools/StatusSlot'
|
import StatusSlot from '@comp/tools/StatusSlot'
|
||||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||||
import IconProjectManagement from '@/assets/imgs/icon/icon_project_management.png'
|
import IconProjectManagement from '@/assets/imgs/icon/icon_project_management.png'
|
||||||
|
import { formatMoney } from '../../utils/formatMoney'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GeneralProjectManagement',
|
name: 'GeneralProjectManagement',
|
||||||
@@ -180,16 +187,18 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
dataIndex: 'receivableAmount',
|
dataIndex: 'receivableAmount',
|
||||||
customRender: (text, record) => (
|
scopedSlots: {customRender: 'allMoney'},
|
||||||
<j-ellipsis value={ record.receivableAmount + '元' } length={ 15 }></j-ellipsis>
|
// customRender: (text, record) => (
|
||||||
)
|
// <j-ellipsis value={ record.receivableAmount + '元' } length={ 15 }></j-ellipsis>
|
||||||
|
// )
|
||||||
}, {
|
}, {
|
||||||
title: '实收金额',
|
title: '实收金额',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
dataIndex: 'paidAmount',
|
dataIndex: 'paidAmount',
|
||||||
customRender: (text, record) => (
|
scopedSlots: {customRender: 'allMoney'}
|
||||||
<j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis>)
|
// customRender: (text, record) => (
|
||||||
|
// <j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis>)
|
||||||
}, {
|
}, {
|
||||||
title: '负责人',
|
title: '负责人',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -249,6 +258,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
formatMoney,
|
||||||
/*
|
/*
|
||||||
* 打开项目详情模态框
|
* 打开项目详情模态框
|
||||||
* */
|
* */
|
||||||
|
|||||||
Reference in New Issue
Block a user