Commit f513f085 authored by zhanglongbao's avatar zhanglongbao

fix

parent e801990f
......@@ -11,6 +11,9 @@ node_modules
dist
dist-ssr
*.local
tsconfig.node.tsbuildinfo
vite.config.d.ts
vite.config.js
# Editor directories and files
.vscode/*
......
......@@ -7,10 +7,12 @@ import { computed } from "vue";
import DdComp from "./dd.vue";
interface Props {
name: string;
name?: string;
length?: number;
}
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
name: "--",
});
const renderCom = computed(() => DdComp);
......
......@@ -49,24 +49,43 @@
<div class="item">
<span class="label">工单编号</span>
<span class="value" style="color: var(--blue)">
<span style="color: var(--blue)">
{{ it.order_number || "--" }}
</span>
</div>
<div class="item">
<div class="item" v-if="it?.customer_id?.link_user_name">
<span class="label">客户名称</span>
<span class="value">
{{ it?.customer_id?.link_user_name || "--" }}
<span>
<nameComp :name="it?.customer_id?.link_user_name" />
</span>
</div>
<div class="item">
<div class="item" v-if="it.priority">
<span class="label">优先级</span>
<span
class="value"
:style="{ color: getPriority(it.priority)?.color }">
<span :style="{ color: getPriority(it.priority)?.color }">
{{ getPriority(it.priority)?.label }}
</span>
</div>
<div class="item" v-if="it?.fuze_user?.nickname">
<span class="label">负责人</span>
<span>
<nameComp :name="it?.fuze_user?.nickname" />
</span>
</div>
<div class="item" v-if="it?.xietong_user?.users?.length">
<span class="label">协同人</span>
<div>
<template
v-if="it?.xietong_user?.users"
v-for="(user, index) in it.xietong_user.users ||
[]">
<nameComp :name="user.nickname" />
<template
v-if="index + 1 != it.xietong_user.users.length"
></template
>
</template>
</div>
</div>
<div class="controls">
<template v-if="[1, 2].includes(+it.approve_status)">
......@@ -335,6 +354,7 @@ init();
.label {
width: 80px;
flex-shrink: 0;
}
}
......
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