import type {FormSchemaGetter} from '#/adapter/form'; import type {VxeGridProps} from '#/adapter/vxe-table'; import {renderDict} from "#/utils/render"; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'orderNo', label: '工单编号', }, { component: 'Input', fieldName: 'orderName', label: '工单名称', }, // { // component: 'Select', // componentProps: { // options: getDictOptions('wy_gdclzt'), // }, // fieldName: 'status', // label: '状态', // }, ]; export const columns: VxeGridProps['columns'] = [ { title: '工单编号', field: 'orderNo', }, { title: '工单名称', field: 'orderName', }, { title: '工单类型', field: 'typeName', }, { title: '状态', field: 'status', slots: { default: ({row}) => { return renderDict(row.status, 'wy_gdclzt'); }, }, }, { title: '地址', field: 'location', }, { title: '计划完成时间', field: 'planCompleTime', }, { field: 'action', fixed: 'right', slots: {default: 'action'}, title: '操作', width: 120, }, ];