fix : 格式化金额显示
This commit is contained in:
@@ -192,7 +192,10 @@ const tableConfig = reactive({
|
||||
{
|
||||
prop: 'economicEstimate',
|
||||
label: '经济概算(元)',
|
||||
align: 'center'
|
||||
align: 'center',
|
||||
currentRender:({row})=>{
|
||||
return <span>{toThousands(row.economicEstimate)}</span>
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'startTime',
|
||||
@@ -262,7 +265,14 @@ const tableConfig = reactive({
|
||||
api: '/workflow/mosr/project/filing',
|
||||
params: {},
|
||||
})
|
||||
|
||||
const toThousands=(num)=> {
|
||||
if(num==undefined||num==null)return '--';
|
||||
const options = {
|
||||
style: 'currency',
|
||||
currency: 'CNY',
|
||||
};
|
||||
return (num).toLocaleString('zh-CN', options)
|
||||
}
|
||||
const search = (val) => {
|
||||
let obj = {...val}
|
||||
if (obj.dateValue) {
|
||||
|
||||
Reference in New Issue
Block a user