优化运行轨迹关联名称展示
This commit is contained in:
@@ -656,8 +656,22 @@ export const resources: ResourceUiDefinition[] = [
|
||||
f('from_status'), f('to_status'), f('operator_name'), f('operator_identity'), f('occurred_at'), f('reason'),
|
||||
]),
|
||||
define('gasorder_track', '运行轨迹', 'readonly', [
|
||||
relation('gasorder_basic_identity', '/gasorder_basic'),
|
||||
relation('staff_account_identity', '/staff_account'),
|
||||
relation('gasorder_basic_identity', '/gasorder_basic', false, {
|
||||
label: '配送订单',
|
||||
listLabel: '配送订单',
|
||||
listRelationNameOnly: true,
|
||||
displayRelationLabel: true,
|
||||
showIdentityCopy: true,
|
||||
}),
|
||||
relation('staff_account_identity', '/staff_account', false, {
|
||||
label: '配送人员',
|
||||
listLabel: '配送人员',
|
||||
listRelationNameOnly: true,
|
||||
displayRelationLabel: true,
|
||||
showIdentityCopy: true,
|
||||
// 历史轨迹只限定岗位,不按当前启用、在岗或资质状态过滤。
|
||||
staffRelation: { roles: ['delivery'] },
|
||||
}),
|
||||
f('attempt_no'), f('started_at'), f('completed_at'),
|
||||
]),
|
||||
define('gasorder_track_point', '轨迹点', 'readonly', [
|
||||
|
||||
Reference in New Issue
Block a user