Commit 5fc1c0ad authored by 高滢's avatar 高滢

feat(年度): 字段的修改

parent db302cb2
...@@ -20,26 +20,42 @@ ...@@ -20,26 +20,42 @@
>删除项目</a-button >删除项目</a-button
> >
</template> </template>
<BasicForm :loading="loading" @register="item.Form[0]" /> <BasicForm :loading="loading" @register="item.Form[0]">
<div style="width: 500px"> <template #plan>
<div style="padding: 0 30px"> <BasicTable
<span style="color: #ed6f6f">{{ '* ' }}</span> @register="item.table"
<span>{{ '三年滚动投资计划' }}</span> @edit-change="
</div> (e) => {
<BasicTable beforeEditSubmit(item, index);
@register="item.table" }
@edit-change=" "
(e) => { :beforeEditSubmit="
beforeEditSubmit(item, index); (e) => {
} beforeEditSubmit(item, index);
" }
:beforeEditSubmit=" "
(e) => { />
beforeEditSubmit(item, index); </template>
} </BasicForm>
" <!-- <div style="width: 500px">-->
/> <!-- <div style="padding: 0 30px">-->
</div> <!-- <span style="color: #ed6f6f">{{ '* ' }}</span>-->
<!-- <span>{{ '三年滚动投资计划' }}</span>-->
<!-- </div>-->
<!-- <BasicTable-->
<!-- @register="item.table"-->
<!-- @edit-change="-->
<!-- (e) => {-->
<!-- beforeEditSubmit(item, index);-->
<!-- }-->
<!-- "-->
<!-- :beforeEditSubmit="-->
<!-- (e) => {-->
<!-- beforeEditSubmit(item, index);-->
<!-- }-->
<!-- "-->
<!-- />-->
<!-- </div>-->
</CollapseContainer> </CollapseContainer>
<a-button v-if="!disabled" type="dashed" @click="add" preIcon="ei:plus"> <a-button v-if="!disabled" type="dashed" @click="add" preIcon="ei:plus">
从项目库导入 从项目库导入
...@@ -434,4 +450,10 @@ ...@@ -434,4 +450,10 @@
padding-left: 10px; padding-left: 10px;
font-weight: bold; font-weight: bold;
} }
::v-deep :where(.css-dev-only-do-not-override-n9spb6).ant-input-textarea {
width: 50%;
}
::v-deep .page-card-body {
padding: 0 24px 24px 0;
}
</style> </style>
...@@ -230,29 +230,18 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -230,29 +230,18 @@ export function getformSchema(year, planType): FormSchema[] {
// labelWidth: 400, // labelWidth: 400,
// colProps: { span: 7, offset: 1 }, // colProps: { span: 7, offset: 1 },
// }, // },
{ // {
field: 'planOutputValue', // field: 'planOutputValue',
label: year + '年计划完成投资额', // label: year + '年计划完成投资额',
show: planType != '承建', // show: planType != '承建',
required: planType != '承建', // required: planType != '承建',
component: 'InputNumber', // component: 'InputNumber',
componentProps: { // componentProps: {
addonAfter: '万元', // addonAfter: '万元',
}, // },
labelWidth: 400, // labelWidth: 400,
colProps: { span: 7, offset: 1 }, // colProps: { span: 7, offset: 1 },
}, // },
{
field: 'planFunds',
label: `${year}` + '年计划资金',
required: true,
component: 'InputNumber',
componentProps: {
addonAfter: '万元',
},
labelWidth: 400,
colProps: { span: 7, offset: 1 },
},
{ {
field: 'attribute', field: 'attribute',
label: '建设性质', label: '建设性质',
...@@ -303,12 +292,29 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -303,12 +292,29 @@ export function getformSchema(year, planType): FormSchema[] {
{ {
label: '备注', label: '备注',
field: 'remarks', field: 'remarks',
// required: true,
component: 'InputTextArea', component: 'InputTextArea',
componentProps: { componentProps: {
maxlength: 100, maxlength: 100,
showCount: true, showCount: true,
}, },
colProps: { span: 14, offset: 1 },
},
{
field: 'plan',
slot: 'plan',
label: '三年滚动投资计划',
labelWidth: 400,
colProps: { span: 10, offset: 1 },
},
{
field: 'planFunds',
label: `${year}` + '年计划资金',
required: true,
component: 'InputNumber',
componentProps: {
addonAfter: '万元',
},
labelWidth: 400,
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
]; ];
......
...@@ -559,6 +559,7 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -559,6 +559,7 @@ export function formSchema(year, planType): FormSchema[] {
icon: 'healthicons:i-schedule-school-date-time-outline', icon: 'healthicons:i-schedule-school-date-time-outline',
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
componentProps: { componentProps: {
picker: 'month',
placeholder: ['开始日期', '结束日期'], placeholder: ['开始日期', '结束日期'],
style: { width: '100%' }, style: { width: '100%' },
valueFormat: 'YYYY-MM', valueFormat: 'YYYY-MM',
...@@ -658,14 +659,21 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -658,14 +659,21 @@ export function formSchema(year, planType): FormSchema[] {
{ {
field: 'contract', field: 'contract',
label: '合同方式', label: '合同方式',
component: 'Input', required: true,
component: 'Select',
componentProps: {
options: [
{ label: '总包', value: '总包' },
{ label: '分包', value: '分包' },
],
},
show: planType === '承建', show: planType === '承建',
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
label: '备注', label: '备注(未完成投资计划项目请备注原因)',
labelWidth:300,
field: 'completionRemarks', field: 'completionRemarks',
// required: true,
component: 'InputTextArea', component: 'InputTextArea',
componentProps: { componentProps: {
maxlength: 100, maxlength: 100,
......
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