完善配送端详情字段中文化

This commit is contained in:
czl231
2026-08-23 09:24:47 +08:00
parent bebf9b52b7
commit cbaedafaf1
8 changed files with 757 additions and 117 deletions

View File

@@ -93,6 +93,9 @@ assert(listPage.includes("field.key === 'staff_account_identity'"), '人员范
assert(recordPage.includes('已锁定,不可更换'), '人员资质独立页未锁定所属配送人员');
const attachmentApi = read('src/api/contract-attachment.ts');
const attachmentState = read('src/views/resource/use-contract-attachment.ts');
const detailContent = read('src/views/resource/ResourceDetailContent.vue');
const detailContract = read('src/api/resource-detail-contract.ts');
const resourceDisplay = read('src/api/resource-display.ts');
assert(definitions.includes("type: 'contract-file'"), '合同附件仍按普通文本字段渲染');
assert(recordPage.includes('title="合同附件"'), '合同详情页缺少附件状态卡片');
assert(recordPage.includes('downloadContractAttachment'), '合同详情页缺少独立下载入口');
@@ -101,5 +104,19 @@ assert(attachmentApi.includes('/gasorder_contract/attachment/upload'), '前端
assert(attachmentApi.includes('/:identity') === false, '前端附件接口不得拼接路由模板字面量');
assert(attachmentState.includes('delete payload.file_uri'), '新版管理端仍可能提交裸附件 URI');
assert(attachmentState.includes('payload.attachment_receipt'), '附件保存未提交签名收据');
assert(
detailContract.indexOf("'bound_at'") < detailContract.indexOf("'product_name'") &&
detailContract.indexOf("'product_name'") < detailContract.indexOf("'product_code'"),
'合同气瓶缺少固定业务列序',
);
assert(detailContract.includes("relationIdentityKeys: { product_name: 'product_info_identity' }"), '智能气阀名称未合并唯一标识');
assert(detailContract.includes("relationIdentityKeys: { operator_name: 'operator_identity' }"), '合同修订操作人未合并唯一标识');
assert(detailContent.includes("key.endsWith('_display_name')"), '详情页仍可能重复显示英文辅助名称字段');
assert(detailContent.includes('hasDetailFieldLabel'), '详情页未启用中文字段白名单');
assert(detailContent.includes('查看参数'), '关联记录缺少完整 JSON 查看入口');
assert(detailContent.includes('智能气阀名称取当前设备资料'), '合同气瓶名称与快照语义未说明');
assert(resourceDisplay.includes("user_service_active: '签约用户仍属合同气站'"), '签约服务关系缺少中文业务标签');
assert(resourceDisplay.includes("activate: '启用合同'"), '合同修订动作未中文化');
assert(recordPage.includes("record.value.user_service_active === false"), '失效服务关系下未限制合同动作');
console.log(`独立资源页面契约通过:详情 ${listResources.length},新建 ${creatable.size},编辑 ${editable.size}`);