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">
|
||||
|
||||
@@ -202,7 +202,7 @@ export const conditionalOrdersPageIntro =
|
||||
'سفارش شرطی: وقتی قیمت به هدف برسد سیستم خودکار سفارش میزند. فعال/غیرفعال و ویرایش از همین لیست.'
|
||||
|
||||
export const colleagueOrdersPageIntro =
|
||||
'تراکنشهای پوشششده با اپ همکار. برای ثبت درست سند حسابداری، کد حساب همکار را هم در همین صفحه تنظیم کنید.'
|
||||
'تراکنشهای پوشششده با اپ همکار. وضعیت هر ردیف بعد از ارسال به همکار بهروز میشود (در انتظار، موفق، ناموفق). برای ثبت درست سند حسابداری، کد حساب همکار را هم در همین صفحه تنظیم کنید.'
|
||||
|
||||
export const colleagueAccountingCodeHelp =
|
||||
'کدی که سند خرید/فروش پوشششدهٔ همکار روی آن در سیستم حسابداری فعال ثبت میشود. فقط فیلد مربوط به حسابداری فعال را پر کنید.'
|
||||
|
||||
Reference in New Issue
Block a user