修改订单管理
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m12s

This commit is contained in:
sexygoat
2026-02-28 17:46:42 +08:00
parent 7b459b5c8d
commit 7e9acda1ab
3 changed files with 49 additions and 13 deletions

View File

@@ -338,6 +338,7 @@
payment_status: undefined,
order_type: undefined,
purchase_role: undefined,
is_expired: undefined,
start_time: '',
end_time: ''
}
@@ -410,6 +411,19 @@
clearable: true
}
},
{
label: '超时状态',
prop: 'is_expired',
type: 'select',
placeholder: '请选择超时状态',
options: [
{ label: '已超时', value: true },
{ label: '未超时', value: false }
],
config: {
clearable: true
}
},
{
label: t('orderManagement.searchForm.dateRange'),
prop: 'dateRange',
@@ -440,6 +454,8 @@
{ label: '购买备注', prop: 'purchase_remark' },
{ label: '操作者', prop: 'operator_name' },
{ label: t('orderManagement.table.paymentStatus'), prop: 'payment_status' },
{ label: '超时状态', prop: 'is_expired' },
{ label: '超时时间', prop: 'expires_at' },
{ label: t('orderManagement.table.totalAmount'), prop: 'total_amount' },
{ label: '实付金额', prop: 'actual_paid_amount' },
{ label: t('orderManagement.table.paymentMethod'), prop: 'payment_method' },
@@ -705,6 +721,25 @@
)
}
},
{
prop: 'is_expired',
label: '超时状态',
width: 100,
formatter: (row: Order) => {
if (row.is_expired === undefined || row.is_expired === null) return '-'
if (row.is_expired) {
return h(ElTag, { type: 'danger', size: 'small' }, () => '已超时')
} else {
return h(ElTag, { type: 'success', size: 'small' }, () => '未超时')
}
}
},
{
prop: 'expires_at',
label: '超时时间',
width: 180,
formatter: (row: Order) => (row.expires_at ? formatDateTime(row.expires_at) : '-')
},
{
prop: 'total_amount',
label: t('orderManagement.table.totalAmount'),
@@ -791,6 +826,7 @@
payment_status: searchForm.payment_status,
order_type: searchForm.order_type,
purchase_role: searchForm.purchase_role,
is_expired: searchForm.is_expired,
start_time: searchForm.start_time || undefined,
end_time: searchForm.end_time || undefined
}