Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
5fc1c0ad
Commit
5fc1c0ad
authored
Nov 15, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(年度): 字段的修改
parent
db302cb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
47 deletions
+83
-47
engineeringEdit.vue
...ws/engineeringProject/engineeringEdit/engineeringEdit.vue
+42
-20
tableData.tsx
src/views/engineeringProject/engineeringEdit/tableData.tsx
+30
-24
data.tsx
src/views/performance/data.tsx
+11
-3
No files found.
src/views/engineeringProject/engineeringEdit/engineeringEdit.vue
View file @
5fc1c0ad
...
@@ -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
>
src/views/engineeringProject/engineeringEdit/tableData.tsx
View file @
5fc1c0ad
...
@@ -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
},
},
},
];
];
...
...
src/views/performance/data.tsx
View file @
5fc1c0ad
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment