Commit 37a826c5 authored by 高滢's avatar 高滢

feat(完成): 提交

parent 2f48f71b
......@@ -531,7 +531,7 @@ export function formSchema(year, planType): FormSchema[] {
},
{
field: 'totalInvestment',
label: '总投资',
label: '立项总投资',
required: planType != '承建',
show: planType != '承建',
component: 'InputNumber',
......@@ -541,10 +541,10 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 },
},
{
field: 'contractAmount',
label: '合同总额',
show: planType === '承建',
required: planType === '承建',
field: 'projectApproval',
label: '实际控制总投资',
required: false,
show: planType != '承建',
component: 'InputNumber',
componentProps: {
addonAfter: '万元',
......@@ -552,19 +552,15 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 },
},
{
field: 'time',
component: 'RangePicker',
label: '开竣工时间',
required: true,
icon: 'healthicons:i-schedule-school-date-time-outline',
colProps: { span: 7, offset: 1 },
field: 'contractAmount',
label: '合同总额',
show: planType === '承建',
required: planType === '承建',
component: 'InputNumber',
componentProps: {
picker: 'month',
placeholder: ['开始日期', '结束日期'],
style: { width: '100%' },
valueFormat: 'YYYY-MM',
format: 'YYYY-MM',
addonAfter: '万元',
},
colProps: { span: 7, offset: 1 },
},
{
field: 'completionSchedule',
......@@ -656,6 +652,21 @@ export function formSchema(year, planType): FormSchema[] {
component: 'Input',
colProps: { span: 7, offset: 1 },
},
{
field: 'time',
component: 'RangePicker',
label: '开竣工时间',
required: true,
icon: 'healthicons:i-schedule-school-date-time-outline',
colProps: { span: 7, offset: 1 },
componentProps: {
picker: 'month',
placeholder: ['开始日期', '结束日期'],
style: { width: '100%' },
valueFormat: 'YYYY-MM',
format: 'YYYY-MM',
},
},
{
field: 'contract',
label: '合同方式',
......
......@@ -270,6 +270,7 @@
{ field: 'actualOutputValue', required: false },
{ field: 'planFunds', required: false },
{ field: 'actualPay', required: false },
{ field: 'contract', required: false },
]);
} else {
updateSchema([
......@@ -291,6 +292,7 @@
{ field: 'actualOutputValue', required: true },
{ field: 'planFunds', required: true },
{ field: 'actualPay', required: true },
{ field: 'contract', required: planType.value === '承建' },
]);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment