From 9404ed2d6eaffbe06c09d1a8b13b0ba48221a4b5 Mon Sep 17 00:00:00 2001
From: fyy <2717885210@qq.com>
Date: Fri, 29 Aug 2025 21:10:53 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A5=E5=8D=95=E7=B1=BB=E5=9E=8B?=
=?UTF-8?q?=E5=8A=A0=E9=83=A8=E9=97=A8=E5=90=8D=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../workOrdersType/model.d.ts | 7 +-
.../businessManagement/workOrdersType/data.ts | 31 +++++--
.../workOrdersType/workOrdersType-detail.vue | 67 ++++++++++----
.../workOrdersType/workOrdersType-modal.vue | 87 ++++++++++++-------
4 files changed, 132 insertions(+), 60 deletions(-)
diff --git a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts
index 65b12b3b..b9316446 100644
--- a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts
+++ b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts
@@ -1,4 +1,4 @@
-import type {PageQuery, BaseEntity} from '#/api/common';
+import type { PageQuery, BaseEntity } from '#/api/common';
export interface WorkOrdersTypeVO {
/**
@@ -41,7 +41,10 @@ export interface WorkOrdersTypeVO {
* 处理优先级
*/
processingWeight: string;
-
+ /**
+ * 部门名称
+ */
+ deptName?: string;
}
export interface WorkOrdersTypeForm extends BaseEntity {
diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts
index b2accd85..c9c20b4c 100644
--- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts
+++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts
@@ -1,7 +1,7 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
-import {renderDict} from "#/utils/render";
-import {getDictOptions} from "#/utils/dict";
+import { renderDict } from '#/utils/render';
+import { getDictOptions } from '#/utils/dict';
export const querySchema: FormSchemaGetter = () => [
// {
@@ -34,7 +34,12 @@ export const columns: VxeGridProps['columns'] = [
title: '类型名称',
field: 'orderTypeName',
treeNode: true,
- minWidth:180,
+ minWidth: 180,
+ },
+ {
+ title: '部门名称',
+ field: 'deptName',
+ width: 180,
},
{
title: '运作模式',
@@ -44,14 +49,16 @@ export const columns: VxeGridProps['columns'] = [
return renderDict(row.operationMode, 'pro_operation_pattern');
},
},
- width:180,
+ width: 180,
},
{
title: '处理优先级',
field: 'processingWeight',
slots: {
- default: ({row}) => {
- return row.processingWeight!=null?renderDict(row.processingWeight, 'pro_processing_weight'):'';
+ default: ({ row }) => {
+ return row.processingWeight != null
+ ? renderDict(row.processingWeight, 'pro_processing_weight')
+ : '';
},
},
width: 100,
@@ -59,12 +66,12 @@ export const columns: VxeGridProps['columns'] = [
{
title: '排序值',
field: 'sort',
- width:180,
+ width: 180,
},
{
title: '累计工单数量',
field: 'number',
- width:180,
+ width: 180,
},
{
title: '是否支持转单',
@@ -74,7 +81,7 @@ export const columns: VxeGridProps['columns'] = [
return renderDict(row.isTransfers, 'support_transferring_orders');
},
},
- width:180,
+ width: 180,
},
{
field: 'action',
@@ -101,6 +108,12 @@ export const modalSchema: FormSchemaGetter = () => [
component: 'Input',
rules: 'required',
},
+ {
+ label: '部门名称',
+ fieldName: 'deptId',
+ component: 'TreeSelect',
+ rules: 'required',
+ },
{
label: '父级类型',
fieldName: 'parentId',
diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue
index c1f8e772..2831fc0c 100644
--- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue
+++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-detail.vue
@@ -1,10 +1,10 @@
-
-
+
+
{{ workOrdersTypeInfoDetail.orderTypeName }}
-
-
+ {{ workOrdersTypeInfoDetail.deptName }}
+
+
+
-
@@ -53,9 +78,17 @@ async function handleOpenChange(open: boolean) {
{{ workOrdersTypeInfoDetail.number }}
-
+
diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-modal.vue b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-modal.vue
index 86d7ea95..7045a7b6 100644
--- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-modal.vue
+++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/workOrdersType-modal.vue
@@ -1,16 +1,18 @@
-
+
-