fix(admin): Jalali dates in grids and legacy order-status tags
The API sends ISO timestamps where legacy sent formatted Jalali strings, so every grid printed "2026-07-25T12:32:29.000Z". Date columns now render 1405/5/3-16:02. The order-status column is a green/red «فعال/عدم سفارش» tag again (Customer::$STS), not bare «مجاز». Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
29084904e9
commit
38ce3d2488
@@ -31,8 +31,9 @@
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
|
||||
<!-- legacy OmdeList.vue:182-185: a green/red tag, not bare text -->
|
||||
<template #sts="{ record }">
|
||||
{{ record.sts_str }}
|
||||
<a-tag :color="record.sts === 1 ? 'green' : 'red'">{{ record.sts_str }}</a-tag>
|
||||
</template>
|
||||
|
||||
<template #active="{ record }">
|
||||
|
||||
@@ -32,8 +32,9 @@
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
|
||||
<!-- legacy ReagentList.vue:75-78: a green/red tag, not bare text -->
|
||||
<template #sts="{ record }">
|
||||
{{ record.sts_str }}
|
||||
<a-tag :color="record.sts === 1 ? 'green' : 'red'">{{ record.sts_str }}</a-tag>
|
||||
</template>
|
||||
|
||||
<template #active="{ record }">
|
||||
|
||||
Reference in New Issue
Block a user