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
9fd6988d
Commit
9fd6988d
authored
Apr 02, 2025
by
qiyaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增报销初始化bug修复
parent
e54963d7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
39 deletions
+35
-39
add.vue
src/views/costManage/projectCostReimbursement/add.vue
+28
-23
waitReimbursement.vue
...costManage/projectCostReimbursement/waitReimbursement.vue
+6
-15
index.vue
src/views/costManage/projectCostRequest/index.vue
+1
-1
No files found.
src/views/costManage/projectCostReimbursement/add.vue
View file @
9fd6988d
...
...
@@ -136,10 +136,12 @@ const resetForm = () => {
costReimbursementDetail
.
actualAmount
=
''
costReimbursementDetail
.
description
=
''
}
//获取编辑详情
//初始化 获取编辑详情
let
type
=
route
.
query
.
type
let
id
=
parseInt
(
route
.
query
.
id
)
if
(
type
===
"新增"
){
const
initData
=
()
=>
{
if
(
type
===
"新增"
){
getCostRequestDetail
(
id
).
then
(
res
=>
{
let
obj
=
res
.
data
//字典转换
...
...
@@ -148,7 +150,7 @@ if (type === "新增"){
Object
.
assign
(
costReimbursementDetail
,
obj
);
})
}
else
if
(
type
===
"编辑"
){
}
else
if
(
type
===
"编辑"
){
//编辑页面
console
.
log
(
"路由"
,
id
)
getReimbursementDetail
(
id
).
then
(
res
=>
{
...
...
@@ -160,8 +162,10 @@ if (type === "新增"){
Object
.
assign
(
costReimbursementDetail
,
obj
);
})
}
}
//提交按钮
const
handleSubmit
=
()
=>
{
formRef
.
value
.
validate
((
valid
)
=>
{
...
...
@@ -223,8 +227,9 @@ onMounted(() => {
//项目状态字典
getDicts
(
"project_status"
).
then
(
response
=>
{
Object
.
assign
(
projectStatusOptions
,
response
.
data
);
});
//初始化
initData
()
})
...
...
src/views/costManage/projectCostReimbursement/waitReimbursement.vue
View file @
9fd6988d
...
...
@@ -57,33 +57,24 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
align=
"center"
>
<
template
#
default=
"{row}"
>
<span
@
mouseenter=
"handleHover(row)"
@
mouseleave=
"handleLeave"
>
{{
row
.
projectName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"projectType"
label=
"项目类型"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<dict-tag
:options=
"project_type"
:value=
"row.projectType"
@
mouseenter=
"handleHover(row)"
@
mouseleave=
"handleLeave"
/>
<dict-tag
:options=
"project_type"
:value=
"row.projectType"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"userName"
label=
"事业部负责人"
align=
"center"
>
<
template
#
default=
"{row}"
>
<span
@
mouseenter=
"handleHover(row)"
@
mouseleave=
"handleLeave"
>
{{
row
.
userName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"expenseType"
label=
"费用类型"
align=
"center"
width=
"200px"
>
<
template
#
default=
"scope"
>
<dict-tag
:options=
"project_cost_type"
:value=
"scope.row.costType"
@
mouseenter=
"handleHover(scope.row)"
@
mouseleave=
"handleLeave"
/>
<dict-tag
:options=
"project_cost_type"
:value=
"scope.row.costType"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"sumMoney"
label=
"预计金额(元)"
align=
"center"
>
<
template
#
default=
"{row}"
>
<div
@
mouseenter=
"handleHover(row)"
@
mouseleave=
"handleLeave"
>
{{
row
.
sumMoney
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"approvalStatus"
label=
"审批状态"
align=
"center"
>
<
template
#
default=
"scope"
>
<dict-tag
:options=
"project_cost_request_status"
:value=
"scope.row.approveStatus"
@
mouseenter=
"handleHover(scope.row)"
@
mouseleave=
"handleLeave"
/>
<dict-tag
:options=
"project_cost_request_status"
:value=
"scope.row.approveStatus"
/>
</
template
>
</el-table-column>
...
...
@@ -91,17 +82,17 @@
<el-table-column
label=
"操作"
align=
"center"
width=
"200px"
>
<
template
#
default=
"scope"
>
<el-tooltip
content=
"详情"
placement=
"top"
>
<el-button
link
type=
"text"
@
click=
"handleView(scope.row)"
@
mouseenter=
"handleHover(scope.row)"
@
mouseleave=
"handleLeave"
>
<el-button
link
type=
"text"
@
click=
"handleView(scope.row)"
>
<img
src=
"@/assets/icons/common/check.png"
height=
"32"
width=
"32"
/>
</el-button>
</el-tooltip>
<el-tooltip
content=
"申请报销"
placement=
"top"
>
<el-button
link
type=
"text"
@
click=
"handleToAdd(scope.row)"
@
mouseenter=
"handleHover(scope.row)"
@
mouseleave=
"handleLeave"
>
<el-button
link
type=
"text"
@
click=
"handleToAdd(scope.row)"
>
<img
src=
"@/assets/icons/common/reimbursement.png"
height=
"32"
width=
"32"
/>
</el-button>
</el-tooltip>
<el-tooltip
content=
"删除"
placement=
"top"
>
<el-button
link
type=
"text"
@
click=
"handleDelete(scope.row)"
@
mouseenter=
"handleHover(scope.row)"
@
mouseleave=
"handleLeave"
>
<el-button
link
type=
"text"
@
click=
"handleDelete(scope.row)"
>
<img
src=
"@/assets/icons/common/delete.png"
height=
"32"
width=
"32"
/>
</el-button>
</el-tooltip>
...
...
src/views/costManage/projectCostRequest/index.vue
View file @
9fd6988d
...
...
@@ -330,7 +330,7 @@ const handleDelete=(row)=> {
getList
();
proxy
.
$modal
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{
proxy
.
$modal
.
msgError
(
"删除失败"
);
//
proxy.$modal.msgError("删除失败");
});
}
...
...
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