千分位
This commit is contained in:
@ -67,7 +67,7 @@ export const columns: BasicColumn[] = [
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
width: 200,
|
||||
width: 150,
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
@ -86,7 +86,7 @@ export const columns: BasicColumn[] = [
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
width: 200,
|
||||
width: 150,
|
||||
sorter: true,
|
||||
},
|
||||
|
||||
|
||||
@ -12,11 +12,17 @@
|
||||
<searchForm @search="onSearch" @reset="onReset" ></searchForm>
|
||||
<BasicTable @register="registerTable">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'qtySalesGj'">
|
||||
{{ Number.format(Number.parse(record.qtySalesGj),numFormat) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtyMeaGj'">
|
||||
{{ Number.format(Number.parse(record.qtyMeaGj || 0),numFormat) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtySalesM3'">
|
||||
{{ NP.divide(Number(record.qtySalesM3), 10000) }}
|
||||
{{ Number.format(Number.parse(NP.divide(Number(record.qtySalesM3), 10000)),numFormat) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtyMeaM3'">
|
||||
{{ NP.divide(Number(record.qtyMeaM3), 10000) }}
|
||||
{{ Number.format(Number.parse(NP.divide(Number(record.qtyMeaM3), 10000)),numFormat) }}
|
||||
</template>
|
||||
</template>
|
||||
</BasicTable>
|
||||
@ -43,7 +49,7 @@
|
||||
import NP from 'number-precision';
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
const numFormat = "###,###,###,###,###,###.000"
|
||||
const { bus, FORM_LIST_MODIFIED } = useEventBus();
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user