规范气站客服工单枚举
This commit is contained in:
@@ -69,6 +69,26 @@ for (const option of [
|
||||
}
|
||||
if (!fieldFormSource.includes(':disabled="option.disabled"'))
|
||||
throw new Error('未开通的提现渠道必须在下拉框中禁用');
|
||||
if (!source.includes("unknownValueLabel: '未知工单分类'"))
|
||||
throw new Error('客服工单分类必须保留历史未知值提示');
|
||||
if (!source.includes("unknownValueLabel: '未知优先级'"))
|
||||
throw new Error('客服工单优先级必须保留历史未知值提示');
|
||||
if (!source.includes("defaultValue: 'normal'"))
|
||||
throw new Error('客服工单优先级必须默认选择普通');
|
||||
for (const option of [
|
||||
"{ label: '配送', value: 'delivery' }",
|
||||
"{ label: '安装', value: 'installation' }",
|
||||
"{ label: '维修', value: 'repair' }",
|
||||
"{ label: '安检', value: 'inspection' }",
|
||||
"{ label: '复检', value: 'reinspection' }",
|
||||
"{ label: '客服咨询', value: 'customer_service' }",
|
||||
"{ label: '低', value: 'low' }",
|
||||
"{ label: '普通', value: 'normal' }",
|
||||
"{ label: '高', value: 'high' }",
|
||||
"{ label: '紧急', value: 'urgent' }",
|
||||
]) {
|
||||
if (!source.includes(option)) throw new Error(`客服工单枚举缺失:${option}`);
|
||||
}
|
||||
|
||||
const forbidden = [
|
||||
'/platform/platform_', '/gas/gas_', '/delivery/delivery_', '/staff/',
|
||||
|
||||
Reference in New Issue
Block a user