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
7c3a787d
Commit
7c3a787d
authored
Apr 01, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出差申请-通过
parent
6e06efbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
21 deletions
+12
-21
examineAndApprove.js
src/api/examineAndApprove/examineAndApprove.js
+2
-9
tripApplicationApprove.vue
...e/examineAndApprove/components/tripApplicationApprove.vue
+10
-12
No files found.
src/api/examineAndApprove/examineAndApprove.js
View file @
7c3a787d
...
...
@@ -80,6 +80,8 @@ export function projectCostReimbursementNotPass(query) {
})
}
// 3.出差申请审批
//出差申请-通过
export
function
tripApplicationApproval
(
query
)
{
return
request
({
...
...
@@ -88,15 +90,6 @@ export function tripApplicationApproval(query) {
data
:
query
})
}
// 3.出差申请审批
//出差申请审批-通过
export
function
tripApplicationPass
(
query
)
{
return
request
({
url
:
'/expenseApproval/tripApplicationApproval'
,
method
:
'post'
,
data
:
query
})
}
//出差申请审批-驳回
export
function
tripApplicationPassNotPass
(
query
)
{
return
request
({
...
...
src/views/costManage/examineAndApprove/components/tripApplicationApprove.vue
View file @
7c3a787d
...
...
@@ -167,24 +167,23 @@
<!-- 驳回弹出框-->
<el-dialog
style=
"width: 745px;height: 300px;margin-top: 300px"
:fullscreen=
"true"
v-model=
"dialogFormVisible"
title=
"驳回"
>
<el-dialog
style=
"width: 745px;height: 300px;margin-top: 300px"
:fullscreen=
"true"
v-model=
"dialogFormVisible"
title=
"驳回"
>
<
template
#
header
>
<div
class=
"text_weight"
>
驳回
<el-divider
/></div>
</
template
>
<div
style=
"padding: 5px;display: flex;flex-direction:column;"
>
<div
class=
"text"
>
驳回原因
</div>
<div
style=
"width: 95%;margin-top:10px"
>
<el-input
:rows=
"3"
type=
"textarea"
v-model=
"form.name
"
placeholder=
"请输入驳回原因"
/></div>
<div
style=
"width: 95%;margin-top:10px"
>
<el-input
v-model=
"rejectObj.groundsForRejection"
:rows=
"3"
type=
"textarea
"
placeholder=
"请输入驳回原因"
/></div>
</div>
<
template
#
footer
>
<div
style=
"position: absolute;left: 35%;display: flex"
>
<el-button
@
click=
"
dialogFormVisible = false
"
class=
"btn-B"
>
取消
</el-button>
<el-button
@
click=
"
dialogFormVisible
"
class=
"btn-A"
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"
cancelReject
"
class=
"btn-B"
>
取消
</el-button>
<el-button
@
click=
"
sureReject
"
class=
"btn-A"
type=
"primary"
>
确定
</el-button>
</div>
</
template
>
</el-dialog>
</template>
<
script
setup
>
...
...
@@ -196,8 +195,9 @@ import {ElMessage} from "element-plus";
import
{
getApproveNodeList
,
getProjectName
,
getRoleId
,
projectCostReimbursementNotPass
,
tripApplicationApproval
getRoleId
,
tripApplicationApproval
,
tripApplicationPassNotPass
}
from
"../../../../api/examineAndApprove/examineAndApprove.js"
;
const
{
project_status
,
cost_daily_status
,
project_type
}
=
proxy
.
useDict
(
'project_status'
,
'cost_daily_status'
,
'project_type'
);
...
...
@@ -356,7 +356,6 @@ const handleHover = (row, column, cell, event) => {
if
(
timer
)
{
clearTimeout
(
timer
);
}
console
.
log
(
row
)
timer
=
setTimeout
(()
=>
{
changProjectNumber
.
value
=
row
.
projectNumber
let
i
=
allList
.
value
.
findIndex
((
item
)
=>
item
.
nodeId
===
row
.
currentAuditRoleId
)
...
...
@@ -389,7 +388,6 @@ const oneClickPass = ()=>{
}
//通过
const
passProjectCost
=
(
row
)
=>
{
console
.
log
(
row
)
let
currentAuditRoleId
=
row
.
currentAuditRoleId
//获取currentAuditRoleId的下标
let
index
=
allList
.
value
.
findIndex
(
item
=>
item
.
nodeId
===
currentAuditRoleId
)
...
...
@@ -435,19 +433,19 @@ const sureReject = ()=>{
//如果是一键驳回
let
list
=
passObjList
.
map
((
item
)
=>
{
return
{
tripApplicationId
:
item
.
i
d
,
tripApplicationId
:
item
.
tripApplicationI
d
,
groundsForRejection
:
rejectObj
.
groundsForRejection
}
})
projectCostReimbursement
NotPass
(
list
).
then
(
res
=>
{
tripApplicationPass
NotPass
(
list
).
then
(
res
=>
{
dialogFormVisible
.
value
=
false
cancelReject
()
getList
()
})
}
else
{
//不是一键驳回
projectCostReimbursement
NotPass
([
rejectObj
]).
then
(
res
=>
{
tripApplicationPass
NotPass
([
rejectObj
]).
then
(
res
=>
{
dialogFormVisible
.
value
=
false
cancelReject
()
getList
()
...
...
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