Compare commits

...

2 Commits

Author SHA1 Message Date
FLL
c847bd29e1 Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2025-07-31 16:41:47 +08:00
FLL
1b4124b913 访客修改 2025-07-31 16:41:32 +08:00

View File

@ -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',
},
];