优化
This commit is contained in:
@@ -145,6 +145,7 @@ const detailFields = computed(() => {
|
||||
const current = detail.value as TransportDetail
|
||||
return [
|
||||
...(props.kind === 'looseboard' ? [
|
||||
['排车单号', current.dispatchNos?.length ? current.dispatchNos.join('、') : '暂未排车'],
|
||||
['商品名称', summary.productName], ['预计托数', summary.estimatedPalletCount],
|
||||
] : [['车辆类型', vehicleTypeLabel(summary.vehicleType)]]),
|
||||
[props.kind === 'trucking' ? '取货地' : '起运地', read(summary, 'origin')], [props.kind === 'trucking' ? '取货地址' : '起运地址', current.originAddress],
|
||||
@@ -253,8 +254,9 @@ function getRowActions(candidate: object): TableAction[] {
|
||||
return [{ key: 'detail', label: '详情', run: () => openDetail(candidate) }]
|
||||
}
|
||||
|
||||
/** 长地址和多张排车单保留完整单号,按详情已有网格换行展示。 */
|
||||
function detailFieldClass(label: unknown) {
|
||||
if (label === '备注') return 'is-full'
|
||||
if (label === '备注' || label === '排车单号') return 'is-full'
|
||||
return [props.kind === 'trucking' ? '取货地址' : '起运地址', props.kind === 'trucking' ? '送达地址' : '目的地址'].includes(String(label)) ? 'is-wide' : ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user