完善气站客服工单详情展示
This commit is contained in:
@@ -17,6 +17,10 @@ const fieldFormSource = readFileSync(
|
||||
resolve(root, 'src/views/resource/ResourceFieldForm.vue'),
|
||||
'utf8',
|
||||
);
|
||||
const relationLoaderSource = readFileSync(
|
||||
resolve(root, 'src/views/resource/load-resource-record-relations.ts'),
|
||||
'utf8',
|
||||
);
|
||||
const contract = JSON.parse(
|
||||
readFileSync(resolve(root, 'src/contracts/gas-resources.json'), 'utf8'),
|
||||
);
|
||||
@@ -89,6 +93,25 @@ for (const option of [
|
||||
]) {
|
||||
if (!source.includes(option)) throw new Error(`客服工单枚举缺失:${option}`);
|
||||
}
|
||||
for (const display of [
|
||||
"label: '配送点'",
|
||||
"emptyText: '尚未分配配送点'",
|
||||
"label: '处理人员'",
|
||||
"emptyText: '尚未分配处理人员'",
|
||||
"label: '服务气站'",
|
||||
"emptyText: '尚未关联服务气站'",
|
||||
"label: '问题描述'",
|
||||
"emptyText: '未填写问题描述'",
|
||||
"label: '预约时间'",
|
||||
"emptyText: '未预约'",
|
||||
"label: '处理结果'",
|
||||
"emptyText: '尚未提交处理结果'",
|
||||
]) {
|
||||
if (!source.includes(display))
|
||||
throw new Error(`客服工单详情展示契约缺失:${display}`);
|
||||
}
|
||||
if (!relationLoaderSource.includes('relationDisplayName(field, options.record)'))
|
||||
throw new Error('详情关系已有可读名称时不得重复请求关联资源');
|
||||
|
||||
const forbidden = [
|
||||
'/platform/platform_', '/gas/gas_', '/delivery/delivery_', '/staff/',
|
||||
|
||||
Reference in New Issue
Block a user