优化配送订单状态记录显示
This commit is contained in:
@@ -7,9 +7,11 @@ const listPage = fs.readFileSync(new URL('../src/views/shared/CrudListPage.vue',
|
||||
const detailPage = fs.readFileSync(new URL('../src/views/resource/ResourceDetailContent.vue', import.meta.url), 'utf8');
|
||||
|
||||
const assertions = [
|
||||
[resources.includes("gasorder_basic_identity: '配送订单唯一标识'"), '状态记录中的配送订单标识缺少中文名称'],
|
||||
[resources.includes("product_amount: '商品金额(元)'"), '订单商品金额缺少中文名称'],
|
||||
[resources.includes("payable_amount: '应付金额(元)'"), '订单应付金额缺少中文名称'],
|
||||
[detailPage.includes("'contract_display_name'"), '订单详情未隐藏重复的合同标题辅助字段'],
|
||||
[detailPage.includes("column.endsWith('_at')) return 150"), '关联记录的日期时间列未固定为 150px'],
|
||||
[resources.includes("listDisplayKey: 'creator_display_name'"), '创建方未配置可读名称字段'],
|
||||
[resources.includes('listDisplayIdentityCopy: true'), '创建方未保留唯一标识复制入口'],
|
||||
[resources.includes("detailDisplayKey: 'contract_display_name'"), '订单详情未配置合同标题展示字段'],
|
||||
|
||||
@@ -303,6 +303,7 @@ const fieldLabels: Record<string, string> = {
|
||||
ec_category_identity: '商品分类唯一标识',
|
||||
ec_product_identity: '商品唯一标识',
|
||||
gas_basic_identity: '气站唯一标识',
|
||||
gasorder_basic_identity: '配送订单唯一标识',
|
||||
gasorder_contract_identity: '配送合同唯一标识',
|
||||
gasorder_contract_product_identities: '合同气瓶唯一标识',
|
||||
producer_account_identity: '生产商唯一标识',
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
v-for="column in collection.columns"
|
||||
:key="column"
|
||||
:title="resourceFieldLabel(definition, column, collection.key)"
|
||||
:width="column.includes('identity') ? 220 : 160"
|
||||
:width="collectionColumnWidth(column)"
|
||||
ellipsis
|
||||
tooltip
|
||||
>
|
||||
@@ -78,6 +78,13 @@ type DetailEntry = {
|
||||
identityValue: string;
|
||||
};
|
||||
|
||||
/** 统一关联记录表列宽:日期时间列保持紧凑,唯一标识列保留完整复制空间。 */
|
||||
function collectionColumnWidth(column: string) {
|
||||
if (column.endsWith('_at')) return 150;
|
||||
if (column.includes('identity')) return 220;
|
||||
return 160;
|
||||
}
|
||||
|
||||
const entries = computed<DetailEntry[]>(() => {
|
||||
const row = primaryRecord(props.detail);
|
||||
const excluded = new Set([
|
||||
|
||||
Reference in New Issue
Block a user