From 1b4124b913df99fa4bebf97da28bf16f1d36d1e3 Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Thu, 31 Jul 2025 16:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/property/clean/cleanOrders/data.ts | 50 ++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/property/clean/cleanOrders/data.ts b/apps/web-antd/src/views/property/clean/cleanOrders/data.ts index 82edeb15..59d3a06d 100644 --- a/apps/web-antd/src/views/property/clean/cleanOrders/data.ts +++ b/apps/web-antd/src/views/property/clean/cleanOrders/data.ts @@ -5,6 +5,10 @@ import { resident_unitList } from '#/api/property/resident/unit'; import { useCleanStore } from '#/store'; import type { FormSchema } from '../../../../../../../packages/@core/ui-kit/form-ui/src/types'; import dayjs from 'dayjs'; +import {h} from "vue"; +import {Rate} from "ant-design-vue"; +import {getDictOptions} from "#/utils/dict"; +import {renderDict} from "#/utils/render"; const cleanStore = useCleanStore(); export const querySchema: (areaList: any[]) => FormSchema[] = (areaList) => [ @@ -111,7 +115,30 @@ export const columns: VxeGridProps['columns'] = [ field: 'phone', width: '250', }, - { + { + title: '保洁类型', + field: 'type', + width: 180, + slots: { + default: ({row}) => { + return renderDict(row.type, 'pro_cleaning_type'); + }, + }, + }, + { + title: '评价', + field: 'serviceEvalua', + width: 180, + slots: { + default: ({row}) => { + return h(Rate, { + value: row.serviceEvalua || 0, + disabled: true, + }); + }, + }, + }, + { title: '订单状态', field: 'state', width: 'auto', @@ -222,4 +249,25 @@ export const modalSchema: (isReadonly: boolean) => FormSchema[] = (isReadonly) = }, rules: 'required', }, + { + label: '保洁类型', + fieldName: 'type', + component: 'Select', + componentProps: { + options: getDictOptions('pro_cleaning_type'), + }, + rules: 'selectRequired', + }, + { + label: '评价', + fieldName: 'serviceEvalua', + component: 'Rate', + componentProps: { + allowHalf: false, + count: 5, + tooltips: ['1星', '2星', '3星', '4星', '5星'], + defaultValue: 0 + }, + rules: 'required', + }, ];