diff --git a/src/views/zh/housingestateInfo/xqHyxzIndex.vue b/src/views/zh/housingestateInfo/xqHyxzIndex.vue index 95c28a7..305ff5d 100644 --- a/src/views/zh/housingestateInfo/xqHyxzIndex.vue +++ b/src/views/zh/housingestateInfo/xqHyxzIndex.vue @@ -62,11 +62,6 @@ const detailVisible = ref(false); const detailData = ref([]); - const pagination = { - current: 1, - pageSize: 10, - }; - const parmas = reactive({ beginTime: '', endTime: '', diff --git a/src/views/zh/hy/hy.data.ts b/src/views/zh/hy/hy.data.ts new file mode 100644 index 0000000..5f86ae7 --- /dev/null +++ b/src/views/zh/hy/hy.data.ts @@ -0,0 +1,237 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +import {ref} from "vue"; +//列表数据 + +export const xzrsColumns : BasicColumn[] =[ + { + title: '序号', + dataIndex: 'rowNumber', + key: 'rowNumber', + align: 'center' + }, + { + title: '日期', + dataIndex: 'name', + key: 'name', + align: 'center' + }, + { + title: '新增会员', + dataIndex: 'value', + key: 'value', + align: 'center' + }, + { + title: '操作', + key: 'action', + align: 'center', + width: '150px', + } +] + +export const detailXzhyColumns : BasicColumn[] =[ + { + title: '序号', + dataIndex: 'rowNumber', + key: 'rowNumber', + align: 'center' + }, + { + 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 tdcsColumns : BasicColumn[] =[ + { + title: '序号', + dataIndex: 'rowNumber', + key: 'rowNumber', + align: 'center' + }, + { + title: '会员', + dataIndex: 'name', + key: 'name', + align: 'center' + }, + { + title: '投递次数', + dataIndex: 'value', + key: 'value', + align: 'center' + }, + { + title: '操作', + key: 'action', + align: 'center', + width: '150px', + } +] + +export const tdzlColumns : BasicColumn[] =[ + { + title: '序号', + dataIndex: 'rowNumber', + key: 'rowNumber', + align: 'center' + }, + { + title: '小区名称', + dataIndex: 'name', + key: 'name', + align: 'center' + }, + { + title: '投递重量(公斤)', + dataIndex: 'value', + key: 'value', + align: 'center' + }, + { + title: '操作', + key: 'action', + align: 'center', + width: '150px', + } +] + +export const detailTdcsColumns : BasicColumn[] =[ + { + title: '序号', + dataIndex: 'rowNumber', + key: 'rowNumber', + align: 'center' + }, + { + 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: 'money', + key: 'money', + align: 'center', + customRender: function ({ text, record, index}) { + return (record.money - record.deductMoney).toFixed(2) + } + }, + // { + // title: '扣除金额', + // dataIndex: 'deductMoney', + // key: 'deductMoney', + // align: 'center' + // }, + { + title: '订单状态', + dataIndex: 'invalid', + key: 'invalid', + align: 'center', + customRender: function ({ text }) { + 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' + }, +] + diff --git a/src/views/zh/hy/tdcs/index.vue b/src/views/zh/hy/tdcs/index.vue index 274a4c6..7c48401 100644 --- a/src/views/zh/hy/tdcs/index.vue +++ b/src/views/zh/hy/tdcs/index.vue @@ -2,7 +2,7 @@
- + 当天 近3天 @@ -20,20 +20,8 @@ item.housingestateName }} - - - - - - - - - 查询 - 重置 - - + 统计图 列表页 @@ -42,25 +30,38 @@ - -