Commit f513f085 authored by zhanglongbao's avatar zhanglongbao

fix

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