Commit 868f29c9 authored by zhanglongbao's avatar zhanglongbao

fix

parent 9d9d0049
......@@ -26,11 +26,11 @@ export const useOrderControls = (callBack = () => {}) => {
return order_detail.status == 14 && order_detail.approve_status == 2;
};
// 显示操作按钮
const showControls = (order_detail: any) => {
// 显示评价按钮
const show_approval = (order_detail: any) => {
return (
order_detail.now_node_id !=
order_detail.node_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 = () => {}) => {
deleteOrder,
show_approval_btn,
show_reapproval_btn,
showControls,
show_approval,
};
};
......
......@@ -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,
showControls,
show_approval,
} = useOrderControls(init);
// 切换工单类型
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment