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
Show 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 = () => {}) => {
...
@@ -26,11 +26,11 @@ export const useOrderControls = (callBack = () => {}) => {
return
order_detail
.
status
==
14
&&
order_detail
.
approve_status
==
2
;
return
order_detail
.
status
==
14
&&
order_detail
.
approve_status
==
2
;
};
};
// 显示
操作
按钮
// 显示
评价
按钮
const
show
Controls
=
(
order_detail
:
any
)
=>
{
const
show
_approval
=
(
order_detail
:
any
)
=>
{
return
(
return
(
order_detail
.
no
w_node_id
!
=
order_detail
.
no
de_info
?.[
order_detail
.
node_info
.
length
-
1
]?.
id
=
=
order_detail
.
node_info
?.[
order_detail
.
node_info
.
length
-
1
]?.
id
"evaluate_order"
&&
order_detail
.
status
==
5
);
);
};
};
...
@@ -254,7 +254,7 @@ export const useOrderControls = (callBack = () => {}) => {
...
@@ -254,7 +254,7 @@ export const useOrderControls = (callBack = () => {}) => {
deleteOrder
,
deleteOrder
,
show_approval_btn
,
show_approval_btn
,
show_reapproval_btn
,
show_reapproval_btn
,
show
Controls
,
show
_approval
,
};
};
};
};
...
...
src/view/work_order/index.vue
View file @
868f29c9
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</
template
>
</
template
>
</template>
</template>
<
template
v-else
-if=
"showControls(it)"
>
<
template
v-else
>
<span
<span
class=
"button green text"
class=
"button green text"
v-if=
"
v-if=
"
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<span
<span
class=
"button green text"
class=
"button green text"
v-if=
"
it.status == 5
"
v-if=
"
show_approval(it)
"
@
click=
"evaluateOrder(it)"
>
@
click=
"evaluateOrder(it)"
>
评价
评价
</span>
</span>
...
@@ -206,7 +206,7 @@ const {
...
@@ -206,7 +206,7 @@ const {
deleteOrder
,
deleteOrder
,
show_approval_btn
,
show_approval_btn
,
show_reapproval_btn
,
show_reapproval_btn
,
show
Controls
,
show
_approval
,
}
=
useOrderControls
(
init
);
}
=
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