Commit 868f29c9 authored by zhanglongbao's avatar zhanglongbao

fix

parent 9d9d0049
...@@ -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 showControls = (order_detail: any) => { const show_approval = (order_detail: any) => {
return ( 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 = () => {}) => { ...@@ -254,7 +254,7 @@ export const useOrderControls = (callBack = () => {}) => {
deleteOrder, deleteOrder,
show_approval_btn, show_approval_btn,
show_reapproval_btn, show_reapproval_btn,
showControls, show_approval,
}; };
}; };
......
...@@ -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,
showControls, show_approval,
} = useOrderControls(init); } = 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