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
d93e37dd
Commit
d93e37dd
authored
Oct 25, 2024
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
cf3e335f
454c708f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
277 additions
and
381 deletions
+277
-381
addChangeSignature.vue
src/views/changeSignature/addChangeSignature.vue
+252
-365
changeSignatrue.data.ts
src/views/changeSignature/changeSignatrue.data.ts
+16
-8
index.vue
src/views/changeSignature/index.vue
+9
-8
No files found.
src/views/changeSignature/addChangeSignature.vue
View file @
d93e37dd
This diff is collapsed.
Click to expand it.
src/views/changeSignature/changeSignatrue.data.ts
View file @
d93e37dd
...
@@ -52,7 +52,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -52,7 +52,7 @@ export const searchFormSchema: FormSchema[] = [
label
:
''
,
label
:
''
,
component
:
'DatePicker'
,
component
:
'DatePicker'
,
componentProps
:
{
componentProps
:
{
placeholder
:
'
选择填报周期
'
,
placeholder
:
'
年份
'
,
picker
:
'year'
,
picker
:
'year'
,
style
:
{
width
:
'100%'
},
style
:
{
width
:
'100%'
},
valueFormat
:
'YYYY'
,
valueFormat
:
'YYYY'
,
...
@@ -97,7 +97,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -97,7 +97,7 @@ export const searchFormSchema: FormSchema[] = [
colProps
:
{
span
:
4
},
colProps
:
{
span
:
4
},
},
},
];
];
// 前半部分
export
const
formSchema
:
FormSchema
[]
=
[
export
const
formSchema
:
FormSchema
[]
=
[
{
{
field
:
'projectName'
,
field
:
'projectName'
,
...
@@ -106,6 +106,7 @@ export const formSchema: FormSchema[] = [
...
@@ -106,6 +106,7 @@ export const formSchema: FormSchema[] = [
component
:
'Input'
,
component
:
'Input'
,
componentProps
:
{
componentProps
:
{
readonly
:
true
,
readonly
:
true
,
disabled
:
true
,
style
:
{
border
:
'none'
},
style
:
{
border
:
'none'
},
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
...
@@ -117,6 +118,7 @@ export const formSchema: FormSchema[] = [
...
@@ -117,6 +118,7 @@ export const formSchema: FormSchema[] = [
component
:
'Input'
,
component
:
'Input'
,
componentProps
:
{
componentProps
:
{
readonly
:
true
,
readonly
:
true
,
disabled
:
true
,
style
:
{
border
:
'none'
},
style
:
{
border
:
'none'
},
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
...
@@ -132,12 +134,18 @@ export const formSchema: FormSchema[] = [
...
@@ -132,12 +134,18 @@ export const formSchema: FormSchema[] = [
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
];
];
export
const
Content
:
FormSchema
[]
=
[
// 后半部分
export
const
subFormSchema
:
FormSchema
[]
=
[
{
{
field
:
'contractName'
,
field
:
'contractName'
,
label
:
' 合同名称'
,
label
:
' 合同名称'
,
required
:
tru
e
,
required
:
fals
e
,
component
:
'Input'
,
component
:
'Input'
,
componentProps
:
{
readonly
:
true
,
disabled
:
true
,
style
:
{
border
:
'none'
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
},
{
{
...
@@ -206,7 +214,7 @@ export const Content: FormSchema[] = [
...
@@ -206,7 +214,7 @@ export const Content: FormSchema[] = [
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
addonAfter
:
'元'
,
addonAfter
:
'
万
元'
,
onChange
:
(
value
)
=>
{
onChange
:
(
value
)
=>
{
formModel
.
contractAmount
=
value
;
formModel
.
contractAmount
=
value
;
updateAmountRatio
(
formModel
,
formActionType
);
updateAmountRatio
(
formModel
,
formActionType
);
...
@@ -223,7 +231,7 @@ export const Content: FormSchema[] = [
...
@@ -223,7 +231,7 @@ export const Content: FormSchema[] = [
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
addonAfter
:
'元'
,
addonAfter
:
'
万
元'
,
onChange
:
(
value
)
=>
{
onChange
:
(
value
)
=>
{
formModel
.
changeAmount
=
value
;
formModel
.
changeAmount
=
value
;
updateAmountRatio
(
formModel
,
formActionType
);
updateAmountRatio
(
formModel
,
formActionType
);
...
@@ -286,7 +294,7 @@ export const Content: FormSchema[] = [
...
@@ -286,7 +294,7 @@ export const Content: FormSchema[] = [
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
addonAfter
:
'元'
,
addonAfter
:
'
万
元'
,
onChange
:
(
value
)
=>
{
onChange
:
(
value
)
=>
{
formModel
.
updateAmount
=
value
;
formModel
.
updateAmount
=
value
;
updateContractValueRatio
(
formModel
,
formActionType
);
updateContractValueRatio
(
formModel
,
formActionType
);
...
@@ -334,7 +342,7 @@ export const Content: FormSchema[] = [
...
@@ -334,7 +342,7 @@ export const Content: FormSchema[] = [
required
:
true
,
required
:
true
,
component
:
'InputNumber'
,
component
:
'InputNumber'
,
componentProps
:
({
formModel
,
formActionType
})
=>
({
componentProps
:
({
formModel
,
formActionType
})
=>
({
addonAfter
:
'元'
,
addonAfter
:
'
万
元'
,
onChange
:
(
value
)
=>
{
onChange
:
(
value
)
=>
{
formModel
.
visaAmount
=
value
;
formModel
.
visaAmount
=
value
;
updateEstimatedAmountRatio
(
formModel
,
formActionType
);
updateEstimatedAmountRatio
(
formModel
,
formActionType
);
...
...
src/views/changeSignature/index.vue
View file @
d93e37dd
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
:actions=
"[
:actions=
"[
{
{
label: '修改',
label: '修改',
onClick: handleEdit.bind(null, record,
true
),
onClick: handleEdit.bind(null, record,
0
),
},
},
{
{
label: '审核',
label: '审核',
...
@@ -49,11 +49,11 @@
...
@@ -49,11 +49,11 @@
:actions=
"[
:actions=
"[
{
{
label: '修改',
label: '修改',
onClick: handleEdit.bind(null, record,
true
),
onClick: handleEdit.bind(null, record,
0
),
},
},
{
{
label: '详情',
label: '详情',
onClick: handleEdit.bind(null, record,
false
),
onClick: handleEdit.bind(null, record,
1
),
},
},
{
{
label: '删除',
label: '删除',
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
import
{
getDepartmentList
}
from
'@/api/project/settlementManage'
;
import
{
getDepartmentList
}
from
'@/api/project/settlementManage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
yearModal
from
'@/components/yearModal/yearModal.vue'
;
import
yearModal
from
'@/components/yearModal/yearModal.vue'
;
import
{
useUserStore
}
from
"@/store/modules/user"
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
}
=
useMessage
();
const
{
push
}
=
useRouter
();
const
{
push
}
=
useRouter
();
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
}
}
});
});
const
data
=
await
getDepartmentList
();
const
data
=
await
getDepartmentList
();
console
.
log
(
'data'
,
data
)
console
.
log
(
'data'
,
data
);
searchFormSchema
[
2
].
componentProps
.
options
=
data
;
searchFormSchema
[
2
].
componentProps
.
options
=
data
;
});
});
...
@@ -143,13 +143,14 @@
...
@@ -143,13 +143,14 @@
};
};
//修改
//修改
function
handleEdit
(
record
:
Recordable
,
isUpdate
:
boolean
)
{
function
handleEdit
(
record
:
Recordable
,
disabled
:
number
)
{
push
({
push
({
path
:
'/changeSignature/edit'
,
path
:
'/changeSignature/edit'
,
query
:
{
query
:
{
id
:
record
.
id
,
id
:
record
.
id
,
statusResult
:
record
.
statusResult
,
givenYear
:
record
.
givenYear
,
isUpdate
:
isUpdate
,
quarter
:
record
.
quarter
,
disabled
:
String
(
disabled
),
},
},
});
});
}
}
...
...
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