优化
This commit is contained in:
@ -101,7 +101,7 @@ export const columns: BasicColumn[] = [
|
||||
|
||||
{
|
||||
dataIndex: 'qtySalesM3',
|
||||
title: '批复量(方)',
|
||||
title: '批复量(万方)',
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
@ -119,7 +119,7 @@ export const columns: BasicColumn[] = [
|
||||
|
||||
{
|
||||
dataIndex: 'qtyMeaM3',
|
||||
title: '完成量(方)',
|
||||
title: '完成量(万方)',
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
|
||||
@ -10,7 +10,16 @@
|
||||
</a-button>
|
||||
</div>
|
||||
<searchForm @search="onSearch" @reset="onReset" ></searchForm>
|
||||
<BasicTable @register="registerTable"></BasicTable>
|
||||
<BasicTable @register="registerTable">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'qtySalesM3'">
|
||||
{{ NP.divide(Number(record.qtySalesM3), 10000) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtyMeaM3'">
|
||||
{{ NP.divide(Number(record.qtyMeaM3), 10000) }}
|
||||
</template>
|
||||
</template>
|
||||
</BasicTable>
|
||||
</div>
|
||||
</a-spin>
|
||||
</template>
|
||||
@ -31,6 +40,7 @@
|
||||
import { getLngPngMeasureSalesPurPageAdd, addLngPngMeasureSalesPur } from '/@/api/dayPlan/PngMeasureSalesPur';
|
||||
import {formConfig, searchFormSchema, columns } from './config';
|
||||
import searchForm from './searchForm.vue';
|
||||
import NP from 'number-precision';
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user