From f93b6d356be07984700bf9cdde1bc40254f444e6 Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Wed, 9 Jul 2025 18:12:28 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=B7=A5=E5=8D=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../businessManagement/workOrders/data.ts | 60 ++++-------- .../businessManagement/workOrders/index.vue | 75 +++++++++++--- .../workOrders/work-orders-detail.vue | 98 +++++++++++++++++++ .../workOrders/workOrders-modal.vue | 27 ++++- .../conferenceReservations-modal.vue | 5 +- .../conferenceSettings-modal.vue | 5 +- 6 files changed, 214 insertions(+), 56 deletions(-) create mode 100644 apps/web-antd/src/views/property/businessManagement/workOrders/work-orders-detail.vue diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts index b6a1479f..2cc814ab 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts @@ -2,6 +2,8 @@ import type {FormSchemaGetter} from '#/adapter/form'; import type {VxeGridProps} from '#/adapter/vxe-table'; import {renderDict} from "#/utils/render"; import {getDictOptions} from "#/utils/dict"; +import {h} from "vue"; +import {Rate} from "ant-design-vue"; export const querySchema: FormSchemaGetter = () => [ @@ -15,12 +17,6 @@ export const querySchema: FormSchemaGetter = () => [ fieldName: 'orderName', label: '工单名称', }, - { - component: 'Select', - componentProps: {}, - fieldName: 'type', - label: '工单类型', - }, { component: 'Select', componentProps: { @@ -44,13 +40,8 @@ export const columns: VxeGridProps['columns'] = [ minWidth: 180, }, { - title: '工单类型', - field: 'type', - slots: { - default: ({row}) => { - return renderDict(row.type, 'wy_gdlx'); - }, - }, + title: '派单时间', + field: 'dispatchTime', width: 100, }, { @@ -63,26 +54,6 @@ export const columns: VxeGridProps['columns'] = [ }, width: 100, }, - { - title: '派单时间', - field: 'dispatchTime', - width: 100, - }, - { - title: '发起人姓名', - field: 'initiatorName', - width: 100, - }, - { - title: '发起人手机号', - field: 'initiatorPhone', - width: 100, - }, - { - title: '处理人姓名', - field: 'handler', - width: 100, - }, { title: '地址', field: 'location', @@ -101,12 +72,26 @@ export const columns: VxeGridProps['columns'] = [ { title: '评价', field: 'serviceEvalua', - width: 100, + width: 180, + slots:{ + default: ({ row }) => { + return h(Rate, { + value: row.serviceEvalua || 0, + disabled: true, + }); + }, + }, + }, { title: '是否超时', field: 'isTimeOut', width: 100, + slots: { + default: ({row}) => { + return renderDict(row.status, 'wy_sf'); + }, + }, }, { field: 'action', @@ -136,7 +121,7 @@ export const modalSchema: FormSchemaGetter = () => [ { label: '工单类型', fieldName: 'type', - component: 'Select', + component: 'ApiSelect', componentProps: {}, rules: 'selectRequired', }, @@ -169,11 +154,6 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'selectRequired', }, - // { - // label: '发起人手机号', - // fieldName: 'initiatorPhone', - // component: 'Input', - // }, { label: '处理人', fieldName: 'handler', diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue b/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue index 0f88e535..b07e1cc2 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue @@ -1,8 +1,8 @@