Commit 521a9f8d authored by zhanglongbao's avatar zhanglongbao

fix

parent e91c3f91
......@@ -13,7 +13,6 @@
<div class="box">
<div class="label">
<span class="required" v-if="required">*</span>
<span class="title">详细地址</span>
</div>
<div class="content">
......
......@@ -22,7 +22,6 @@
<div class="box">
<div class="label">
<span class="required" v-if="required">*</span>
<span class="title">联系人</span>
</div>
<div class="content">
......@@ -32,7 +31,6 @@
<div class="box">
<div class="label">
<span class="required" v-if="required">*</span>
<span class="title">联系电话</span>
</div>
<div class="content">
......
......@@ -14,7 +14,6 @@
<div class="box">
<div class="label">
<span class="required" v-if="required">*</span>
<span class="title">产品编号</span>
</div>
<div class="content">
......@@ -24,7 +23,6 @@
<div class="box">
<div class="label">
<span class="required" v-if="required">*</span>
<span class="title">规格型号</span>
</div>
<div class="content">
......
......@@ -12,6 +12,13 @@ import { useUserStore } from "@/store/user";
export const useOrderControls = (callBack = () => {}) => {
const USER = useUserStore();
// 显示审批的操作按钮
const show_approval_group = (order_detail: any) => {
return (
order_detail.approve_status == 1 ||
show_reapproval_btn(order_detail)
);
};
// 显示审批按钮
const show_approval_btn = (order_detail: any) => {
return (
......@@ -255,6 +262,7 @@ export const useOrderControls = (callBack = () => {}) => {
show_approval_btn,
show_reapproval_btn,
show_approval,
show_approval_group,
};
};
......
......@@ -88,7 +88,7 @@
</div>
<div class="controls">
<template v-if="[1, 2].includes(+it.approve_status)">
<template v-if="show_approval_group(it)">
<template v-if="show_approval_btn(it)">
<span
class="button green text"
......@@ -207,6 +207,7 @@ const {
show_approval_btn,
show_reapproval_btn,
show_approval,
show_approval_group,
} = 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