From ddff38973d39f430c3841f6977010983967938ab Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 3 Jul 2025 19:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8F=8A=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HousingestateInfo.api.ts | 6 +- .../HousingestateInfo.data.ts | 125 ++++++++++++++++++ .../zh/housingestateInfo/xqHyxzIndex.vue | 26 +++- .../zh/housingestateInfo/xqTdcsIndex.vue | 26 +++- .../zh/housingestateInfo/xqTdzlIndex.vue | 24 +++- 5 files changed, 199 insertions(+), 8 deletions(-) diff --git a/src/views/zh/housingestateInfo/HousingestateInfo.api.ts b/src/views/zh/housingestateInfo/HousingestateInfo.api.ts index 33d1420..d8e4956 100644 --- a/src/views/zh/housingestateInfo/HousingestateInfo.api.ts +++ b/src/views/zh/housingestateInfo/HousingestateInfo.api.ts @@ -16,6 +16,9 @@ enum Api { queryXqHyTdcsList = '/zh/blHousingestateInfo/queryXqHyTdcsList', queryXqHyTdzlList = '/zh/blHousingestateInfo/queryXqHyTdzlList', housingestateList = '/zh/hy/queryHousingestateList', + + queryXzhyDetailList = '/zh/blHousingestateInfo/queryXzhyDetailList', + queryTdcsDetailList = '/zh/blHousingestateInfo/queryTdcsDetailList', } /** @@ -23,7 +26,8 @@ enum Api { * @param params */ export const housingestateList = (params) => defHttp.get({ url: Api.housingestateList, params }); -export const queryXqHyTdcsPageList = (params) => defHttp.get({ url: Api.queryXqHyTdcsPageList, params }); +export const queryXzhyDetailList = (params) => defHttp.get({ url: Api.queryXzhyDetailList, params }); +export const queryTdcsDetailList = (params) => defHttp.get({ url: Api.queryTdcsDetailList, params }); /** * 导出api * @param params diff --git a/src/views/zh/housingestateInfo/HousingestateInfo.data.ts b/src/views/zh/housingestateInfo/HousingestateInfo.data.ts index 9ca136d..895ecd3 100644 --- a/src/views/zh/housingestateInfo/HousingestateInfo.data.ts +++ b/src/views/zh/housingestateInfo/HousingestateInfo.data.ts @@ -114,3 +114,128 @@ export const tdzlColumns : BasicColumn[] =[ width: '150px', } ] + + + +export const detailXzhyColumns : BasicColumn[] =[ + { + title: '小区名称', + dataIndex: 'housingestateName', + key: 'housingestateName', + align: 'center' + }, + { + title: '设备地点', + dataIndex: 'content', + key: 'content', + align: 'center' + }, + { + title: '电话', + dataIndex: 'phone', + key: 'phone', + align: 'center' + }, + { + title: '注册时间', + dataIndex: 'registerDate', + key: 'registerDate', + align: 'center' + }, + { + title: '投递次数', + dataIndex: 'deliveries', + key: 'deliveries', + align: 'center' + }, + { + title: '违规次数', + dataIndex: 'violations', + key: 'violations', + align: 'center' + }, + { + title: '注册时间', + dataIndex: 'deliveredAt', + key: 'deliveredAt', + align: 'center' + }, + { + title: '用户状态', + dataIndex: 'status', + key: 'status', + align: 'center', + customRender: function ({ text }) { + //0:拉黑 1:正常 + if (text == '0') { + return '拉黑'; + } else { + return '正常'; + } + }, + }, +] + + +export const detailTdcsColumns : BasicColumn[] =[ + { + title: '小区名称', + dataIndex: 'housingestateName', + key: 'housingestateName', + align: 'center' + }, + { + title: '设备地点', + dataIndex: 'content', + key: 'content', + align: 'center' + }, + { + title: '电话', + dataIndex: 'phone', + key: 'phone', + align: 'center' + }, + { + title: '投递时间', + dataIndex: 'addTime', + key: 'addTime', + align: 'center' + }, + { + title: '投递重量', + dataIndex: 'weight', + key: 'weight', + align: 'center' + }, + { + title: '投递状态', + dataIndex: 'invalid', + key: 'invalid', + align: 'center', + customRender: function ({ text }) { + //0正常 1违规 2部分违规 3待审核 4异常 5忽略 + if(text == '0'){ + return "正常" + }else if(text == '1'){ + return "违规" + }else if(text == '2'){ + return "部分违规" + }else if(text == '3'){ + return "待审核" + }else if(text == '4'){ + return "异常" + }else if(text == '5'){ + return "忽略" + }else{ + return "未知" + } + }, + }, + { + title: '原因', + dataIndex: 'cause', + key: 'cause', + align: 'center' + }, +] \ No newline at end of file diff --git a/src/views/zh/housingestateInfo/xqHyxzIndex.vue b/src/views/zh/housingestateInfo/xqHyxzIndex.vue index c63d41c..3545628 100644 --- a/src/views/zh/housingestateInfo/xqHyxzIndex.vue +++ b/src/views/zh/housingestateInfo/xqHyxzIndex.vue @@ -40,20 +40,27 @@ + + + + +