完善客服工单关联与枚举中文展示
This commit is contained in:
@@ -902,7 +902,27 @@ export const resources: ResourceUiDefinition[] = [
|
||||
unknownValueLabel: '未知发布状态',
|
||||
}),
|
||||
]),
|
||||
define('cs_ticket', '客服工单', 'writable', [relation('user_account_identity', '/user_account', true), f('ticket_no', { required: true }), f('category', { required: true }), f('priority', { required: true })]),
|
||||
define('cs_ticket', '客服工单', 'writable', [
|
||||
relation('user_account_identity', '/user_account', true, {
|
||||
label: '用户', listLabel: '用户', listRelationNameOnly: true,
|
||||
listDisplayIdentityCopy: true, displayRelationLabel: true, showIdentityCopy: true,
|
||||
}),
|
||||
f('ticket_no', { required: true }),
|
||||
f('category', { required: true, type: 'select', options: [
|
||||
{ label: '配送', value: 'delivery' },
|
||||
{ label: '安装', value: 'installation' },
|
||||
{ label: '维修', value: 'repair' },
|
||||
{ label: '安检', value: 'inspection' },
|
||||
{ label: '复检', value: 'reinspection' },
|
||||
{ label: '客服咨询', value: 'customer_service' },
|
||||
], unknownValueLabel: '未知工单分类' }),
|
||||
f('priority', { required: true, type: 'select', defaultValue: 'normal', options: [
|
||||
{ label: '低', value: 'low' },
|
||||
{ label: '普通', value: 'normal' },
|
||||
{ label: '高', value: 'high' },
|
||||
{ label: '紧急', value: 'urgent' },
|
||||
], unknownValueLabel: '未知优先级' }),
|
||||
]),
|
||||
define('platform_account', '平台账户', 'writable', [f('username', { required: true }), f('password', { required: true }), f('display_name'), f('avatar'), f('platform_role_code', { required: true, unknownValueLabel: '未知角色' }), f('phone')]),
|
||||
define('platform_role', '平台角色', 'writable', [f('role_code', { required: true }), f('name', { required: true }), f('location_scope', { required: true, type: 'select', options: resourceSearchEnumOptions('platform_role', 'location_scope') })], 'list', [
|
||||
{ name: '分配菜单', resource: '/platform_role/:identity/menu', method: 'PUT', fields: [f('menu_identities', { type: 'identity-list', relation: '/platform_menu' })] },
|
||||
|
||||
Reference in New Issue
Block a user