访客项目展示人员详情
This commit is contained in:
parent
ad026ef8d5
commit
7ee76ff1ea
|
|
@ -225,7 +225,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getBltList();
|
// this.getBltList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//人员证书添加
|
//人员证书添加
|
||||||
|
|
@ -358,7 +358,7 @@ export default {
|
||||||
|
|
||||||
getBltList() {
|
getBltList() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.third.tdevice.list.req({ type: 30, page: 0 }).then((res) => {
|
that.$API.third.tdevice.list.req({ type: 30, page: 0, state: 'unused'}).then((res) => {
|
||||||
that.tdevice = res;
|
that.tdevice = res;
|
||||||
that.bltList = res.filter((item) => {
|
that.bltList = res.filter((item) => {
|
||||||
return item.employee_ === null;
|
return item.employee_ === null;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-drawer
|
<el-drawer title="查看" v-model="visible" :size="1000" destroy-on-close @closed="$emit('closed')"
|
||||||
title="查看"
|
:close-on-click-modal="false">
|
||||||
v-model="visible"
|
|
||||||
:size="1000"
|
|
||||||
destroy-on-close
|
|
||||||
@closed="$emit('closed')"
|
|
||||||
>
|
|
||||||
<el-container v-loading="loading">
|
<el-container v-loading="loading">
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
|
|
@ -21,21 +16,9 @@
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top:8px" shadow="hover">
|
<el-card style="margin-top:8px" shadow="hover">
|
||||||
<scTable
|
<scTable ref="fileTable" :data="rpjFileList" row-key="id" hidePagination stripe hideDo
|
||||||
ref="fileTable"
|
style="height:200px">
|
||||||
:data="rpjFileList"
|
<el-table-column label="#" fixed="left" type="index" width="50"></el-table-column>
|
||||||
row-key="id"
|
|
||||||
hidePagination
|
|
||||||
stripe
|
|
||||||
hideDo
|
|
||||||
style="height:200px"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
label="#"
|
|
||||||
fixed="left"
|
|
||||||
type="index"
|
|
||||||
width="50"
|
|
||||||
></el-table-column>
|
|
||||||
<el-table-column label="资质内容" prop="name">
|
<el-table-column label="资质内容" prop="name">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ scope.row.file_cate_.name }}
|
{{ scope.row.file_cate_.name }}
|
||||||
|
|
@ -44,22 +27,15 @@
|
||||||
<el-table-column label="文件资料" prop="name">
|
<el-table-column label="文件资料" prop="name">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-for="item in scope.row.files_" :key="item.id">
|
<div v-for="item in scope.row.files_" :key="item.id">
|
||||||
<el-link style="font-size:12px" type="primary" :href="item.path" target="_blank">{{item.name}}</el-link>
|
<el-link style="font-size:12px" type="primary" :href="item.path" target="_blank">
|
||||||
|
{{ item.name }}</el-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top:8px" shadow="hover">
|
<el-card style="margin-top:8px" shadow="hover">
|
||||||
<scTable
|
<scTable ref="table" :data="memeberList" row-key="id" height='auto' stripe hideDo hidePagination>
|
||||||
ref="table"
|
|
||||||
:data="memeberList"
|
|
||||||
row-key="id"
|
|
||||||
height='auto'
|
|
||||||
stripe
|
|
||||||
hideDo
|
|
||||||
hidePagination
|
|
||||||
>
|
|
||||||
<el-table-column label="#" fixed="left" type="index" width="50"></el-table-column>
|
<el-table-column label="#" fixed="left" type="index" width="50"></el-table-column>
|
||||||
<el-table-column label="姓名" prop="remployee_.name">
|
<el-table-column label="姓名" prop="remployee_.name">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|
@ -69,12 +45,8 @@
|
||||||
<el-table-column label="工作职责" prop="duty"></el-table-column>
|
<el-table-column label="工作职责" prop="duty"></el-table-column>
|
||||||
<el-table-column label="证书" prop="rcertificates">
|
<el-table-column label="证书" prop="rcertificates">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag
|
<el-tag v-for="item in scope.row.rcertificates_" :key="item.number" :label="item.name"
|
||||||
v-for="item in scope.row.rcertificates_"
|
:value="item.number">{{ item.name }}
|
||||||
:key="item.number"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.number"
|
|
||||||
>{{ item.name }}
|
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -86,22 +58,16 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="60">
|
<el-table-column label="操作" width="60">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link
|
<el-button link v-if="scope.row.blt_ == null" type="primary" size="small"
|
||||||
v-if="scope.row.blt_==null"
|
@click="bindCard(scope.row, 10)" v-auth="'blt_bind.create'">绑卡
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="bindCard(scope.row,10)"
|
|
||||||
v-auth="'blt_bind.create'"
|
|
||||||
>绑卡
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-main>
|
</el-main>
|
||||||
<ScBind v-model="showBindBlt" :bindBtl="bindBtl"
|
<ScBind v-model="showBindBlt" :bindBtl="bindBtl" :bindType="bindType" :bindName="bindName"
|
||||||
:bindType="bindType" :bindName="bindName" :bindEmployee="bindEmployee"
|
:bindEmployee="bindEmployee" @success="showBindBltSuccess" @closed="showBindBltClose"></ScBind>
|
||||||
@success="showBindBltSuccess" @closed="showBindBltClose"></ScBind>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-drawer
|
<el-drawer :title="titleMap[mode]" v-model="visible" :size="1000" destroy-on-close @closed="$emit('closed')"
|
||||||
:title="titleMap[mode]"
|
:close-on-click-modal="false">
|
||||||
v-model="visible"
|
|
||||||
:size="1000"
|
|
||||||
destroy-on-close
|
|
||||||
@closed="$emit('closed')"
|
|
||||||
>
|
|
||||||
<el-container v-loading="loading">
|
<el-container v-loading="loading">
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-card header="基本信息" shadow="hover">
|
<el-card header="基本信息" shadow="hover">
|
||||||
|
|
@ -20,12 +15,7 @@
|
||||||
<el-tag size="small">{{ form.count_people }}人</el-tag>
|
<el-tag size="small">{{ form.count_people }}人</el-tag>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="来访人员:">
|
<el-descriptions-item label="来访人员:">
|
||||||
<el-tag
|
<el-tag size="small" v-for="item in form.visitors_" :key="item.id">{{ item.visitor_.name }}</el-tag>
|
||||||
size="small"
|
|
||||||
v-for="item in form.visitors_"
|
|
||||||
:key="item.id"
|
|
||||||
>{{ item.visitor_.name }}</el-tag
|
|
||||||
>
|
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="状态:">{{
|
<el-descriptions-item label="状态:">{{
|
||||||
state_[form.state]
|
state_[form.state]
|
||||||
|
|
@ -49,63 +39,56 @@
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 8px" shadow="hover" header="访客信息">
|
<el-card style="margin-top: 8px" shadow="hover" header="访客信息">
|
||||||
<scTable
|
<scTable ref="table" :data="peoplelist" row-key="id" height="auto" stripe hideDo hidePagination>
|
||||||
ref="table"
|
<el-table-column label="#" type="expand">
|
||||||
:data="peoplelist"
|
<template #default="scope">
|
||||||
row-key="id"
|
<el-descriptions :column="3" style="margin-left:8px">
|
||||||
height="auto"
|
<el-descriptions-item label="返乡时间:">{{ scope.row.return_date }}</el-descriptions-item>
|
||||||
stripe
|
<el-descriptions-item label="来源地:">{{ scope.row.come_place }}</el-descriptions-item>
|
||||||
hideDo
|
<el-descriptions-item label="行程轨迹:">{{ scope.row.trip_desc }}</el-descriptions-item>
|
||||||
hidePagination
|
<el-descriptions-item label="管控措施:">{{ scope.row.measure }}</el-descriptions-item>
|
||||||
>
|
<el-descriptions-item label="核酸检测日期:">{{ scope.row.test_date }}</el-descriptions-item>
|
||||||
<el-table-column
|
<el-descriptions-item label="是否报备:">
|
||||||
label="#"
|
<el-space v-if="scope.row.is_reported == true">是</el-space>
|
||||||
fixed="left"
|
<el-space v-else>否</el-space>
|
||||||
type="index"
|
</el-descriptions-item>
|
||||||
width="50"
|
<el-descriptions-item label="健康码:">
|
||||||
></el-table-column>
|
<el-image style="width: 100px; height: 100px" :src="scope.row.health_code"
|
||||||
|
:preview-src-list="[scope.row.health_code]" fit="cover" />
|
||||||
<el-table-column
|
</el-descriptions-item>
|
||||||
label="访客姓名"
|
<el-descriptions-item label="行程码:">
|
||||||
prop="visitor_.name"
|
<el-image style="width: 100px; height: 100px" :src="scope.row.travel_code"
|
||||||
></el-table-column>
|
:preview-src-list="[scope.row.travel_code]" fit="cover" />
|
||||||
<el-table-column
|
</el-descriptions-item>
|
||||||
label="访客手机号"
|
<el-descriptions-item label="核酸报告:">
|
||||||
prop="visitor_.phone"
|
<el-image style="width: 100px; height: 100px" :src="scope.row.test_report"
|
||||||
></el-table-column>
|
:preview-src-list="[scope.row.test_report]" fit="cover" />
|
||||||
<el-table-column
|
</el-descriptions-item>
|
||||||
label="访客身份证号"
|
</el-descriptions>
|
||||||
prop="visitor_.id_number"
|
</template>
|
||||||
></el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="访客姓名" prop="visitor_.name"></el-table-column>
|
||||||
|
<el-table-column label="访客手机号" prop="visitor_.phone"></el-table-column>
|
||||||
|
<el-table-column label="访客身份证号" prop="visitor_.id_number"></el-table-column>
|
||||||
<el-table-column label="是否重要访客" prop="is_main">
|
<el-table-column label="是否重要访客" prop="is_main">
|
||||||
<template #default="scope"
|
<template #default="scope">
|
||||||
><el-space v-if="scope.row.is_main == true">是</el-space>
|
<el-space v-if="scope.row.is_main == true">是</el-space>
|
||||||
<el-space v-else>否</el-space>
|
<el-space v-else>否</el-space>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="创建时间" prop="create_time"></el-table-column>
|
||||||
label="创建时间"
|
|
||||||
prop="create_time"
|
|
||||||
></el-table-column>
|
|
||||||
<el-table-column label="操作" width="60">
|
<el-table-column label="操作" width="60">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link
|
<el-button link v-if="scope.row.blt_ == null" type="primary" size="small"
|
||||||
v-if="scope.row.blt_==null"
|
@click="bindCard(scope.row, 10)" v-auth="'blt_bind.create'">绑卡
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="bindCard(scope.row,10)"
|
|
||||||
v-auth="'blt_bind.create'"
|
|
||||||
>绑卡
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-main>
|
</el-main>
|
||||||
<ScBind v-model="showBindBlt" :bindBtl="bindBtl"
|
<ScBind v-model="showBindBlt" :bindBtl="bindBtl" :bindType="bindType" :bindName="bindName"
|
||||||
:bindType="bindType" :bindName="bindName"
|
:bindEmployee="bindEmployee" @success="showBindBltSuccess" @closed="showBindBltClose"></ScBind>
|
||||||
:bindEmployee="bindEmployee"
|
|
||||||
@success="showBindBltSuccess" @closed="showBindBltClose"></ScBind>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -162,6 +145,7 @@
|
||||||
30: "待入厂",
|
30: "待入厂",
|
||||||
40: "进行中",
|
40: "进行中",
|
||||||
50: "已完成",
|
50: "已完成",
|
||||||
|
60: "已关闭",
|
||||||
},
|
},
|
||||||
receptionistoptions: [],
|
receptionistoptions: [],
|
||||||
peoplelist: [],
|
peoplelist: [],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue