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',
|
||||
|
||||
Reference in New Issue
Block a user