fix some bugs

This commit is contained in:
2026-07-21 22:26:46 +03:30
parent 7c2248bb00
commit 2f64c6cce7
24 changed files with 707 additions and 16 deletions
@@ -7,10 +7,10 @@
{{ directionLabel }}
</span>
<span
v-if="item.order_metal_label"
v-if="item.product_title || item.order_metal_label"
class="shrink-0 rounded-md border border-amber-300 bg-amber-50 px-1.5 py-0.5 text-xs font-600 text-amber-700"
>
{{ item.order_metal_label }}
{{ item.product_title || item.order_metal_label }}
</span>
<span class="truncate text-sm font-700 text-gray-900">{{ customerName }}</span>
</div>
@@ -62,6 +62,17 @@ export function buildOrderColumns(_metals: OrderMetalColumn[] = []): BaseTableCo
key: 'customer.mobile',
type: 'Number'
},
{
title: 'محصول',
dataIndex: 'product_title',
key: 'product_title',
type: 'Text',
filterable: false,
customRender({ record }) {
const title = (record.product_title || record.product?.title || '').trim()
return title || '-'
}
},
{
title: 'نوع فلز',
dataIndex: 'order_metal_label',