feat(web-admin): show recharge pending status as 发放中
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f75d36e1ff
commit
553c1ef316
5 files changed
+5
-3
No files matched your search
@@ -661,7 +661,7 @@ export function buildFuelRegisterCopyText(row: {
|
||||
export function getPlRechargeApplyStatusLabel(status: string) {
|
||||
const map: Record<string, string> = {
|
||||
draft: '草稿',
|
||||
pending: '待发放',
|
||||
pending: '发放中',
|
||||
in_approval: '审批中',
|
||||
rejected: '已驳回',
|
||||
disbursed: '已发放',
|
||||
|
||||
@@ -5,6 +5,7 @@ const RECHARGE_TYPE_OPTIONS = [{ value: 'etc', label: 'ETC' }]
|
||||
const RECHARGE_STATUS_OPTIONS = [
|
||||
{ value: 'draft', label: '草稿' },
|
||||
{ value: 'in_approval', label: '审批中' },
|
||||
{ value: 'pending', label: '发放中' },
|
||||
{ value: 'rejected', label: '已驳回' },
|
||||
{ value: 'disbursed', label: '已发放' },
|
||||
{ value: 'cancelled', label: '已作废' }
|
||||
|
||||
@@ -1089,7 +1089,7 @@ async function handleSubmit() {
|
||||
|
||||
async function handleDelete(row: VehicleRechargeDisburseBoardItem) {
|
||||
if (!row.recordId) return
|
||||
await ElMessageBox.confirm('确定撤销该发放登记吗?关联申请将回退为待发放。', '提示', { type: 'warning' })
|
||||
await ElMessageBox.confirm('确定撤销该发放登记吗?关联申请将回退为发放中。', '提示', { type: 'warning' })
|
||||
deleteLoadingMap[row.recordId] = true
|
||||
try {
|
||||
await vehicleRechargeRecordApi.delete(row.recordId)
|
||||
|
||||
@@ -9,6 +9,7 @@ const RECHARGE_TYPE_OPTIONS = [
|
||||
const RECHARGE_STATUS_OPTIONS = [
|
||||
{ value: 'draft', label: '草稿' },
|
||||
{ value: 'in_approval', label: '审批中' },
|
||||
{ value: 'pending', label: '发放中' },
|
||||
{ value: 'rejected', label: '已驳回' },
|
||||
{ value: 'disbursed', label: '已发放' },
|
||||
{ value: 'cancelled', label: '已作废' }
|
||||
|
||||
@@ -1148,7 +1148,7 @@ async function handleSubmit() {
|
||||
|
||||
async function handleDelete(row: VehicleRechargeDisburseBoardItem) {
|
||||
if (!row.recordId) return
|
||||
await ElMessageBox.confirm('确定撤销该发放登记吗?关联申请将回退为待发放。', '提示', { type: 'warning' })
|
||||
await ElMessageBox.confirm('确定撤销该发放登记吗?关联申请将回退为发放中。', '提示', { type: 'warning' })
|
||||
deleteLoadingMap[row.recordId] = true
|
||||
try {
|
||||
await vehicleRechargeRecordApi.delete(row.recordId)
|
||||
|
||||
Reference in new issue
Block a user