Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jisu_gongdan_phone
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
zhanglongbao
jisu_gongdan_phone
Commits
868f29c9
Commit
868f29c9
authored
Sep 13, 2024
by
zhanglongbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9d9d0049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
hook.ts
src/view/work_order/hook.ts
+5
-5
index.vue
src/view/work_order/index.vue
+3
-3
No files found.
src/view/work_order/hook.ts
View file @
868f29c9
...
...
@@ -26,11 +26,11 @@ export const useOrderControls = (callBack = () => {}) => {
return
order_detail
.
status
==
14
&&
order_detail
.
approve_status
==
2
;
};
// 显示
操作
按钮
const
show
Controls
=
(
order_detail
:
any
)
=>
{
// 显示
评价
按钮
const
show
_approval
=
(
order_detail
:
any
)
=>
{
return
(
order_detail
.
no
w_node_id
!
=
order_detail
.
node_info
?.[
order_detail
.
node_info
.
length
-
1
]?.
id
order_detail
.
no
de_info
?.[
order_detail
.
node_info
.
length
-
1
]?.
id
=
=
"evaluate_order"
&&
order_detail
.
status
==
5
);
};
...
...
@@ -254,7 +254,7 @@ export const useOrderControls = (callBack = () => {}) => {
deleteOrder
,
show_approval_btn
,
show_reapproval_btn
,
show
Controls
,
show
_approval
,
};
};
...
...
src/view/work_order/index.vue
View file @
868f29c9
...
...
@@ -111,7 +111,7 @@
</
template
>
</template>
<
template
v-else
-if=
"showControls(it)"
>
<
template
v-else
>
<span
class=
"button green text"
v-if=
"
...
...
@@ -144,7 +144,7 @@
<span
class=
"button green text"
v-if=
"
it.status == 5
"
v-if=
"
show_approval(it)
"
@
click=
"evaluateOrder(it)"
>
评价
</span>
...
...
@@ -206,7 +206,7 @@ const {
deleteOrder
,
show_approval_btn
,
show_reapproval_btn
,
show
Controls
,
show
_approval
,
}
=
useOrderControls
(
init
);
// 切换工单类型
...
...
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