自定义接口
This commit is contained in:
@ -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',
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -107,7 +107,7 @@
|
||||
let data = await getLngPngApproCompare(id) || {}
|
||||
spinning.value = false
|
||||
diffResultList.value = data.diffResultList || []
|
||||
let obj = changeData(data.oldBean)
|
||||
let obj = changeData(data.oldBean || {})
|
||||
Object.assign(formState, {...obj.params})
|
||||
Object.assign(dataList.value, obj.list || [])
|
||||
title.value = formState.verNo? ('版本V'+ formState.verNo) : ''
|
||||
@ -120,6 +120,7 @@
|
||||
|
||||
|
||||
} catch (error) {
|
||||
console.log(error, 'error')
|
||||
spinning.value = false
|
||||
}
|
||||
|
||||
@ -137,6 +138,10 @@
|
||||
}
|
||||
}
|
||||
const changeData = (obj) => {
|
||||
if (Object.keys(obj).length === 0) return {
|
||||
list : [],
|
||||
params: {}
|
||||
}
|
||||
let arr = obj.lngPngApproPurList || []
|
||||
obj.qtyContractM3 = NP.divide(Number(obj.qtyContractM3), 10000)
|
||||
obj.qtyPlanM3 = NP.divide(Number(obj.qtyPlanM3), 10000)
|
||||
|
||||
Reference in New Issue
Block a user