Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-web
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
高滢
psa-web
Commits
ed88a5b4
Commit
ed88a5b4
authored
Mar 20, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目费用申报销-编辑改bug
parent
1835b334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
add.vue
src/views/costManage/projectCostReimbursement/add.vue
+17
-7
No files found.
src/views/costManage/projectCostReimbursement/add.vue
View file @
ed88a5b4
...
...
@@ -141,7 +141,12 @@ let type = route.query.type
let
id
=
parseInt
(
route
.
query
.
id
)
if
(
type
===
"新增"
){
getCostRequestDetail
(
id
).
then
(
res
=>
{
Object
.
assign
(
costReimbursementDetail
,
res
.
data
);
let
obj
=
res
.
data
//字典转换
obj
.
projectType
=
projectTypeOptions
.
find
(
item
=>
item
.
dictValue
===
String
(
obj
.
projectType
)).
dictLabel
obj
.
projectStatus
=
projectStatusOptions
.
find
(
item
=>
item
.
dictValue
===
String
(
obj
.
projectStatus
)).
dictLabel
Object
.
assign
(
costReimbursementDetail
,
obj
);
})
}
else
if
(
type
===
"编辑"
){
//编辑页面
...
...
@@ -163,13 +168,13 @@ const handleSubmit = ()=>{
if
(
valid
)
{
//验证通过
console
.
log
(
'表单验证通过'
);
let
obj
=
{
rid
:
id
,
actualAmount
:
costReimbursementDetail
.
actualAmount
,
description
:
costReimbursementDetail
.
description
}
if
(
type
===
"新增"
)
{
if
(
type
===
"新增"
)
{
let
obj
=
{
rid
:
id
,
actualAmount
:
costReimbursementDetail
.
actualAmount
,
description
:
costReimbursementDetail
.
description
}
// 发 新增报销 请求
addReimbursement
(
obj
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
...
...
@@ -182,6 +187,11 @@ const handleSubmit = ()=>{
});
}
else
if
(
type
===
"编辑"
)
{
let
obj
=
{
id
:
id
,
actualAmount
:
costReimbursementDetail
.
actualAmount
,
description
:
costReimbursementDetail
.
description
}
console
.
log
(
"修改后数据"
,
obj
)
// 发 修改报销 请求
updateReimbursement
(
obj
).
then
(
response
=>
{
...
...
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