客户服务

This commit is contained in:
FLL
2025-07-23 15:23:57 +08:00
parent 34d50c58af
commit 187f10bdc0
7 changed files with 287 additions and 41 deletions

View File

@@ -1,6 +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";
export const querySchema: FormSchemaGetter = () => [
{
@@ -62,4 +63,37 @@ export const columns: VxeGridProps['columns'] = [
},
];
export const ordersModalSchema: FormSchemaGetter = () => [
{
label: 'id',
fieldName: 'id',
component: 'Input',
dependencies: {
show: () => false,
triggerFields: [''],
},
},
{
label: '状态',
fieldName: 'status',
component: 'Select',
componentProps: {
options: getDictOptions('wy_gdclzt'),
},
rules: 'selectRequired',
disabled: true
},
{
label: '处理人',
fieldName: 'handler',
component: 'ApiSelect',
formItemClass: 'col-span-2',
rules: 'selectRequired',
dependencies: {
disabled: (formValue) =>formValue.status === '2' ,
triggerFields: ['status'],
},
},
]

View File

@@ -10,7 +10,7 @@ import {defaultFormValueGetter, useBeforeCloseDiff} from '#/utils/popup';
import {ordersModalSchema} from './data';
import {personList} from "#/api/property/resident/person";
import {renderDictValue} from "#/utils/render";
import {onMounted, ref} from "vue";
import {ref} from "vue";
import { useUserStore } from '@vben/stores';
const userStore = useUserStore();