fix(colleague): show pending and failed partner-cover status on order tables
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,6 +50,48 @@ export function getColleagueOrderColumns(): BaseTableColumn[] {
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'وضعیت',
|
||||
dataIndex: 'sts',
|
||||
key: 'sts',
|
||||
filterable: false,
|
||||
customRender: ({ record }) => {
|
||||
const label = record.sts_str || '-'
|
||||
if (record.sts === 2) {
|
||||
return (
|
||||
<div class="flex justify-center">
|
||||
<CustomTag textColor="#25855A" bgColor="#E3F4E9">
|
||||
{label}
|
||||
</CustomTag>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (record.sts === 4) {
|
||||
return (
|
||||
<div class="flex justify-center">
|
||||
<CustomTag textColor="#ca8a04" bgColor="#fef3c7">
|
||||
{label}
|
||||
</CustomTag>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div class="flex justify-center">
|
||||
<CustomTag textColor="#C53030" bgColor="#FECACA">
|
||||
{label}
|
||||
</CustomTag>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'شرح وضعیت',
|
||||
dataIndex: 'description',
|
||||
key: 'description',
|
||||
type: 'Text',
|
||||
filterable: false,
|
||||
customRender: ({ record }) => record.description || '-'
|
||||
},
|
||||
{
|
||||
title: 'مشتری',
|
||||
dataIndex: 'customer.name',
|
||||
|
||||
@@ -63,6 +63,8 @@ const statusValueClass = computed(() => {
|
||||
return 'text-amber-700'
|
||||
case 2:
|
||||
return 'text-green-700'
|
||||
case 4:
|
||||
return 'text-amber-700'
|
||||
default:
|
||||
return 'text-red-600'
|
||||
}
|
||||
|
||||
@@ -159,6 +159,14 @@ export function buildOrderColumns(_metals: OrderMetalColumn[] = []): BaseTableCo
|
||||
</CustomTag>
|
||||
</div>
|
||||
)
|
||||
case 4:
|
||||
return (
|
||||
<div class="flex justify-center">
|
||||
<CustomTag textColor="#ca8a04" bgColor="#fef3c7">
|
||||
{record.sts_str}
|
||||
</CustomTag>
|
||||
</div>
|
||||
)
|
||||
default:
|
||||
return (
|
||||
<div class="flex justify-center">
|
||||
|
||||
Reference in New Issue
Block a user