自定义接口

This commit is contained in:
‘huanghaiixia’
2026-01-28 18:21:33 +08:00
parent 06aa85caee
commit 22fdadc17d
25 changed files with 59 additions and 33 deletions

View File

@ -92,7 +92,7 @@ export const columns: BasicColumn[] = [
},
{
dataIndex: 'priceSalesGj',
dataIndex: 'qtySalesGj',
title: '批复量 (吉焦)',
componentType: 'input',
align: 'left',
@ -101,7 +101,7 @@ export const columns: BasicColumn[] = [
},
{
dataIndex: 'priceSalesM3',
dataIndex: 'qtySalesM3',
title: '批复量 (万方)',
componentType: 'input',
align: 'left',
@ -110,7 +110,7 @@ export const columns: BasicColumn[] = [
},
{
dataIndex: 'ksName',
dataIndex: 'kName',
title: '合同',
componentType: 'input',
align: 'left',

View File

@ -15,7 +15,7 @@
</template>
</div>
<Card :title="title" :bordered="false" v-if="pageType=='compare'&&titleNew">
<Card :title="titleNew" :bordered="false" v-if="pageType=='compare'&&titleNew">
<basicForm :formObj="formStateNew" :changeList="diffResultList" :list="dataListNew" :disable="true"></basicForm>
</Card>
<Card :title="title" :bordered="false" v-if="title">
@ -127,6 +127,10 @@
}
}
const changeData = (obj) => {
if (Object.keys(obj).length === 0) return {
list : [],
params: {}
}
let arr = obj.lngPngDemandPurList || []
obj.datePlan = obj.datePlan ? dayjs(obj.datePlan) : null
obj.qtyContractM3 = NP.divide(Number(obj.qtyContractM3), 10000)

View File

@ -18,6 +18,12 @@
<template v-if="column.dataIndex === 'action'">
<TableAction :actions="getActions(record)" />
</template>
<template v-if="column.dataIndex === 'qtySalesM3'">
{{ NP.divide(Number(record.qtySalesM3), 10000) }}
</template>
<template v-if="column.dataIndex === 'qtyDemandM3'">
{{ NP.divide(Number(record.qtyDemandM3), 10000) }}
</template>
</template>
</BasicTable>
<DemandModal @register="registerModal" @success="handleSuccess" />
@ -31,9 +37,7 @@
const logId = ref('')
const logPath = ref('/dayPlan/demand/datalog');
import { DataLog } from '/@/components/pcitc';
import { ref, computed, onMounted, onUnmounted, createVNode,
} from 'vue';
import { ref, computed, onMounted, onUnmounted, createVNode} from 'vue';
import { Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
@ -63,6 +67,7 @@
import useEventBus from '/@/hooks/event/useEventBus';
import { cloneDeep } from 'lodash-es';
import NP from 'number-precision';
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
@ -570,7 +575,7 @@
display: none !important;
}
:deep( .ant-col-8:nth-child(2)) {
width: 360px !important;
width: 320px !important;
max-width: 320px !important;;
}
:deep(.ant-col-8:nth-child(2) .ant-form-item-label) {