From 4ea50fcab31648c92dcf9712836f6c476bc46dc2 Mon Sep 17 00:00:00 2001
From: "1378012178@qq.com" <1378012178@qq.com>
Date: Tue, 10 Mar 2026 17:11:04 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E5=A4=84=E7=90=86?=
=?UTF-8?q?=E4=BA=BA=E3=80=81=E5=8F=8D=E9=A6=88=E6=97=B6=E9=97=B4=E5=9B=9E?=
=?UTF-8?q?=E6=98=BE=202=E3=80=81=E5=B7=A5=E5=8D=95=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E4=B8=AD=E5=8E=BB=E6=8E=89=E5=A4=84=E7=90=86=E4=BA=BA=E3=80=81?=
=?UTF-8?q?=E5=8F=8D=E9=A6=88=E6=97=B6=E9=97=B4=E6=B2=A1=E6=9C=89=E5=80=BC?=
=?UTF-8?q?=E7=9A=84=E7=89=B9=E6=AE=8A=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/admin/workorder/WorkOrder.data.ts | 76 +++++++++++--------
.../workorder/components/WorkOrderForm.vue | 4 +-
.../workorder/components/WorkOrderModal.vue | 2 +-
3 files changed, 47 insertions(+), 35 deletions(-)
diff --git a/src/views/admin/workorder/WorkOrder.data.ts b/src/views/admin/workorder/WorkOrder.data.ts
index 4f52bcd..9468120 100644
--- a/src/views/admin/workorder/WorkOrder.data.ts
+++ b/src/views/admin/workorder/WorkOrder.data.ts
@@ -1,31 +1,31 @@
-import {BasicColumn} from '/@/components/Table';
-import {FormSchema} from '/@/components/Table';
-import { rules} from '/@/utils/helper/validator';
+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';
//列表数据
export const columns: BasicColumn[] = [
{
title: '机构名称',
- align: "center",
+ align: 'center',
dataIndex: 'orgName',
- width:260
+ width: 260,
},
{
title: '机构编码',
- align: "center",
+ align: 'center',
dataIndex: 'orgCode',
- width:120
+ width: 120,
},
{
title: '平台类型',
- align: "center",
- dataIndex: 'platType_dictText'
+ align: 'center',
+ dataIndex: 'platType_dictText',
},
{
title: '工单类型',
- align: "center",
- dataIndex: 'workType_dictText'
+ align: 'center',
+ dataIndex: 'workType_dictText',
},
// {
// title: '标题',
@@ -35,42 +35,54 @@ export const columns: BasicColumn[] = [
// },
{
title: '工单状态',
- align: "center",
- dataIndex: 'status_dictText'
+ align: 'center',
+ dataIndex: 'status_dictText',
},
{
title: '提交人',
- align: "center",
- dataIndex: 'createBy'
+ align: 'center',
+ dataIndex: 'createBy',
},
{
title: '提交时间',
- align: "center",
- dataIndex: 'createTime'
+ align: 'center',
+ dataIndex: 'createTime',
},
{
title: '处理人',
- align: "center",
- dataIndex: 'handleBy'
+ align: 'center',
+ dataIndex: 'handleBy',
+ customRender: ({ text }) => {
+ if (!!text) {
+ return text;
+ }
+ return '-';
+ },
},
{
title: '反馈时间',
- align: "center",
- dataIndex: 'replyTime'
+ align: 'center',
+ dataIndex: 'replyTime',
+ customRender: ({ text }) => {
+ if (!!text) {
+ return text;
+ }
+ return '-';
+ },
},
];
// 高级查询数据
export const superQuerySchema = {
- orgId: {title: '机构ID',order: 0,view: 'text', type: 'string',},
- orgCode: {title: '机构编码',order: 1,view: 'text', type: 'string',},
- orgName: {title: '机构名称',order: 2,view: 'text', type: 'string',},
- platType: {title: '平台类型pc wechat pad',order: 3,view: 'text', type: 'string',},
- title: {title: '标题',order: 4,view: 'text', type: 'string',},
- content: {title: '描述',order: 5,view: 'text', type: 'string',},
- status: {title: '状态 0待接收 1处理中 3已解决 4工单异常 5外部原因',order: 6,view: 'text', type: 'string',},
- createBy: {title: '创建人',order: 7,view: 'text', type: 'string',},
- createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',},
- replyTime: {title: '反馈时间',order: 9,view: 'datetime', type: 'string',},
- handleBy: {title: '处理人',order: 10,view: 'text', type: 'string',},
+ orgId: { title: '机构ID', order: 0, view: 'text', type: 'string' },
+ orgCode: { title: '机构编码', order: 1, view: 'text', type: 'string' },
+ orgName: { title: '机构名称', order: 2, view: 'text', type: 'string' },
+ platType: { title: '平台类型pc wechat pad', order: 3, view: 'text', type: 'string' },
+ title: { title: '标题', order: 4, view: 'text', type: 'string' },
+ content: { title: '描述', order: 5, view: 'text', type: 'string' },
+ status: { title: '状态 0待接收 1处理中 3已解决 4工单异常 5外部原因', order: 6, view: 'text', type: 'string' },
+ createBy: { title: '创建人', order: 7, view: 'text', type: 'string' },
+ createTime: { title: '创建时间', order: 8, view: 'datetime', type: 'string' },
+ replyTime: { title: '反馈时间', order: 9, view: 'datetime', type: 'string' },
+ handleBy: { title: '处理人', order: 10, view: 'text', type: 'string' },
};
diff --git a/src/views/admin/workorder/components/WorkOrderForm.vue b/src/views/admin/workorder/components/WorkOrderForm.vue
index a5ed7f9..26156c0 100644
--- a/src/views/admin/workorder/components/WorkOrderForm.vue
+++ b/src/views/admin/workorder/components/WorkOrderForm.vue
@@ -63,13 +63,13 @@
-
+
-
+
diff --git a/src/views/admin/workorder/components/WorkOrderModal.vue b/src/views/admin/workorder/components/WorkOrderModal.vue
index 6a49b05..4ec54be 100644
--- a/src/views/admin/workorder/components/WorkOrderModal.vue
+++ b/src/views/admin/workorder/components/WorkOrderModal.vue
@@ -89,7 +89,7 @@ function add() {
* @param record
*/
function edit(record) {
- title.value = disableSubmit.value ? '详情' : '编辑';
+ title.value = disableSubmit.value ? '工单详情' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);