【update】-普通项目-金额字段 增加逗号分隔的情况

This commit is contained in:
fengchenchen
2023-12-13 15:40:42 +08:00
parent 54251574f8
commit db1fb644c1
@@ -85,6 +85,12 @@
<template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="15"></j-ellipsis>
</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">
@@ -126,6 +132,7 @@ import ProjectDetailModal from '@comp/ProjectDetailModal'
import StatusSlot from '@comp/tools/StatusSlot'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
import IconProjectManagement from '@/assets/imgs/icon/icon_project_management.png'
import { formatMoney } from '../../utils/formatMoney'
export default {
name: 'GeneralProjectManagement',
@@ -180,16 +187,18 @@ export default {
align: 'center',
width: 150,
dataIndex: 'receivableAmount',
customRender: (text, record) => (
<j-ellipsis value={ record.receivableAmount + '元' } length={ 15 }></j-ellipsis>
)
scopedSlots: {customRender: 'allMoney'},
// customRender: (text, record) => (
// <j-ellipsis value={ record.receivableAmount + '元' } length={ 15 }></j-ellipsis>
// )
}, {
title: '实收金额',
align: 'center',
width: 150,
dataIndex: 'paidAmount',
customRender: (text, record) => (
<j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis>)
scopedSlots: {customRender: 'allMoney'}
// customRender: (text, record) => (
// <j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis>)
}, {
title: '负责人',
align: 'center',
@@ -249,6 +258,7 @@ export default {
}
},
methods: {
formatMoney,
/*
* 打开项目详情模态框
* */