Commit f9b967a9 authored by “yiyousong”'s avatar “yiyousong”

perf:优化样表、排号、呼叫报表

parent 959b329c
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<a-tag <a-tag
class="cursor-pointer" class="cursor-pointer"
color="blue" color="blue"
@click="checkInfo(record.id)" @click="checkInfo(record.id, record)"
> >
详细信息 详细信息
</a-tag> </a-tag>
...@@ -421,14 +421,17 @@ export default { ...@@ -421,14 +421,17 @@ export default {
}, },
// 查看详细信息 // 查看详细信息
async checkInfo(id) { async checkInfo(id, row) {
this.loading = true; this.loading = true;
let res = await getQueueInfo({ let res = await getQueueInfo({
id, id,
}); });
if (res.code == 1) { if (res.code == 1) {
let { data } = res; let { data } = res;
this.detailsInfo = data; this.detailsInfo = {
...data,
business: row.business,
};
this.detailsVisible = true; this.detailsVisible = true;
} }
this.loading = false; this.loading = false;
......
...@@ -98,14 +98,27 @@ ...@@ -98,14 +98,27 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="[0, 8]"> <a-row :gutter="[0, 8]">
<a-col :span="12"> <span>注册方式:</span>身份证注册 </a-col> <a-col :span="12">
<span>注册方式:</span
>{{
detailsInfo.register_type == "Applets"
? "小程序"
: detailsInfo.register_type == "wechat"
? "公众号"
: detailsInfo.register_type == "app"
? "自助服务终端"
: "--"
}}
</a-col>
<a-col :span="12"> <a-col :span="12">
<span>取号设备:</span>{{ detailsInfo.take_name }} <span>取号设备:</span>{{ detailsInfo.take_name }}
</a-col> </a-col>
</a-row> </a-row>
<!-- <a-row :gutter="[0, 8]"> <a-row :gutter="[0, 8]">
<a-col :span="12"> <span>健康状态:</span>绿码 </a-col> <a-col :span="24">
</a-row> --> <span>办理业务:</span>{{ detailsInfo.business || "--" }}
</a-col>
</a-row>
<!-- 当前办理步骤标识 --> <!-- 当前办理步骤标识 -->
<div class="transact-tips2" v-if="detailsInfo.style === 0"> <div class="transact-tips2" v-if="detailsInfo.style === 0">
<span class="tips-text"> 排队中 </span> <span class="tips-text"> 排队中 </span>
...@@ -140,7 +153,7 @@ ...@@ -140,7 +153,7 @@
</a-row> </a-row>
<a-row :gutter="[0, 8]"> <a-row :gutter="[0, 8]">
<a-col :span="12"> <a-col :span="12">
<span>叫号设备:</span>{{ detailsInfo.call_name }} <span>叫号设备:</span>{{ detailsInfo.call_name || "--" }}
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<a-tag <a-tag
class="cursor-pointer" class="cursor-pointer"
color="blue" color="blue"
@click="checkInfo(record.id)" @click="checkInfo(record.id, record)"
> >
详细信息 详细信息
</a-tag> </a-tag>
...@@ -414,14 +414,17 @@ export default { ...@@ -414,14 +414,17 @@ export default {
}, },
// 查看详细信息 // 查看详细信息
async checkInfo(id) { async checkInfo(id, row) {
this.loading = true; this.loading = true;
let res = await getQueueInfo({ let res = await getQueueInfo({
id, id,
}); });
if (res.code == 1) { if (res.code == 1) {
let { data } = res; let { data } = res;
this.detailsInfo = data; this.detailsInfo = {
...data,
business: row.business,
};
this.detailsVisible = true; this.detailsVisible = true;
} }
this.loading = false; this.loading = false;
......
...@@ -78,8 +78,8 @@ const filterVal = [ ...@@ -78,8 +78,8 @@ const filterVal = [
"materialName", "materialName",
"materialFullName", "materialFullName",
"deviceName", "deviceName",
"createTime",
"operTime", "operTime",
"createTime",
]; // 导出的表头字段名,需要导出表格字段名 ]; // 导出的表头字段名,需要导出表格字段名
export default { export default {
data() { data() {
...@@ -117,11 +117,11 @@ export default { ...@@ -117,11 +117,11 @@ export default {
}, },
{ {
title: "操作时间", title: "操作时间",
dataIndex: "createTime", dataIndex: "operTime",
}, },
{ {
title: "查看时间", title: "查看时间",
dataIndex: "operTime", dataIndex: "createTime",
customRender: (text) => { customRender: (text) => {
return text ? text : "--"; return text ? text : "--";
}, },
......
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