From 9b928f794f99f7dc686f086c9f4dc06c1fd5bee3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com>
Date: Mon, 7 Jul 2025 16:23:32 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/zh/shebei/shebei.data.ts | 155 +++++++++++++++++++++
src/views/zh/shebei/tdcs/index.vue | 210 ++++++++---------------------
src/views/zh/shebei/tdzl/index.vue | 208 ++++++++--------------------
3 files changed, 270 insertions(+), 303 deletions(-)
create mode 100644 src/views/zh/shebei/shebei.data.ts
diff --git a/src/views/zh/shebei/shebei.data.ts b/src/views/zh/shebei/shebei.data.ts
new file mode 100644
index 0000000..7675cdc
--- /dev/null
+++ b/src/views/zh/shebei/shebei.data.ts
@@ -0,0 +1,155 @@
+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 tdcsColumns : BasicColumn[] =[
+ {
+ title: '序号',
+ dataIndex: 'rowNumber',
+ key: 'rowNumber',
+ align: 'center'
+ },
+ {
+ title: '小区名称',
+ dataIndex: 'housingestateName',
+ key: 'housingestateName',
+ align: 'center'
+ },
+ {
+ title: '设备地点',
+ dataIndex: 'content',
+ key: 'content',
+ 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: 'housingestateName',
+ key: 'housingestateName',
+ align: 'center'
+ },
+ {
+ title: '设备地点',
+ dataIndex: 'content',
+ key: 'content',
+ 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/shebei/tdcs/index.vue b/src/views/zh/shebei/tdcs/index.vue
index e57246b..b1c5d86 100644
--- a/src/views/zh/shebei/tdcs/index.vue
+++ b/src/views/zh/shebei/tdcs/index.vue
@@ -19,20 +19,8 @@
{{item.housingestateName }}
-
-
-
-
- 至
-
-
-
- 查询
- 重置
-
-
+
统计图
列表页
@@ -43,25 +31,38 @@
:itemStyle="{ normal: { label: { show: true, position: 'top' } } }"
:axisLabel="{ rotate: 45}"
:seriesName="'投递次数'">
-
-
-
- 查看
+
-
-
-
-
-
- 标记
- 屏蔽
-
-
-
+
+
+
+ 订单状态
+
+ 全部
+ 正常
+ 违规
+ 部分违规
+ 待审核
+ 异常
+ 忽略
+
+
+
+
+
@@ -70,7 +71,8 @@