优化配送订单状态记录显示

This commit is contained in:
czl231
2026-08-15 12:07:55 +08:00
parent 45cf524df8
commit beb0e0f1af
4 changed files with 14 additions and 1 deletions

View File

@@ -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: '生产商唯一标识',

View File

@@ -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([