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
1835b334
Commit
1835b334
authored
Mar 20, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目费用申报销-编辑改bug
parent
126c9bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
add.vue
src/views/costManage/projectCostReimbursement/add.vue
+6
-8
No files found.
src/views/costManage/projectCostReimbursement/add.vue
View file @
1835b334
...
@@ -140,22 +140,20 @@ const resetForm = () => {
...
@@ -140,22 +140,20 @@ const resetForm = () => {
let
type
=
route
.
query
.
type
let
type
=
route
.
query
.
type
let
id
=
parseInt
(
route
.
query
.
id
)
let
id
=
parseInt
(
route
.
query
.
id
)
if
(
type
===
"新增"
){
if
(
type
===
"新增"
){
//新增页面
console
.
log
(
"type"
,
type
)
console
.
log
(
"路由"
,
id
)
getCostRequestDetail
(
id
).
then
(
res
=>
{
getCostRequestDetail
(
id
).
then
(
res
=>
{
console
.
log
(
"项目详情"
,
res
)
Object
.
assign
(
costReimbursementDetail
,
res
.
data
);
Object
.
assign
(
costReimbursementDetail
,
res
.
data
);
})
})
}
else
if
(
type
===
"编辑"
){
}
else
if
(
type
===
"编辑"
){
//编辑页面
//编辑页面
console
.
log
(
"type"
,
type
)
console
.
log
(
"路由"
,
id
)
console
.
log
(
"路由"
,
id
)
// 等后端把 少的两个字段返给我 直接调报销详情的接口
getReimbursementDetail
(
id
).
then
(
res
=>
{
getReimbursementDetail
(
id
).
then
(
res
=>
{
console
.
log
(
"报销详情"
,
res
)
console
.
log
(
"报销详情"
,
res
)
Object
.
assign
(
costReimbursementDetail
,
res
.
data
);
let
obj
=
res
.
data
getReimbursementDetail
()
//字典转换
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
);
})
})
}
}
...
...
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