增加筛选

This commit is contained in:
wuweihua
2026-10-16 11:27:44 +08:00
parent 2689138b6a
commit 2431a5caac
4 changed files with 36 additions and 0 deletions
@@ -9,6 +9,8 @@
:search-per-row="4"
row-key="billId"
selection
:page-sizes="[100, 200, 300, 400]"
:page-size="100"
>
<template #search-orderNos="{ model }">
<multi-value-input v-model="model.orderNos" placeholder="订单号" width="100%" :search-method="searchOrderNoOptions" />
@@ -318,6 +320,13 @@ const refundStatusOptions = [
{ label: '未退费', value: 'NONE' },
{ label: '已退费', value: 'REFUNDED' }
]
/** billing_fail_status: 0 success / 1 product / 2 country / 3 weight */
const billingFailStatusOptions = [
{ label: '\u8ba1\u8d39\u6210\u529f', value: 0 },
{ label: '\u672a\u5339\u914d\u4ea7\u54c1', value: 1 },
{ label: '\u672a\u5339\u914d\u56fd\u5bb6', value: 2 },
{ label: '\u672a\u5339\u914d\u91cd\u91cf\u6bb5', value: 3 }
]
const searchColumns = [
{ label: '订单号', prop: 'orderNos', placeholder: '订单号' },
@@ -333,6 +342,19 @@ const searchColumns = [
placeholder: '请选择',
props: { clearable: true }
},
{
label: '\u8ba1\u8d39\u5931\u8d25',
prop: 'billingFailStatuses',
component: 'select',
options: billingFailStatusOptions,
placeholder: '\u8bf7\u9009\u62e9',
props: {
multiple: true,
clearable: true,
collapseTags: true,
collapseTagsTooltip: true
}
},
{
label: '计费时间',
prop: 'bizDateRange',
@@ -426,6 +448,7 @@ function hasBatchFeeQuery(q) {
|| hasArr(q.transferNos)
|| hasArr(q.customerCodes)
|| hasArr(q.productCodes)
|| hasArr(q.billingFailStatuses)
|| hasArr(q.bizDateRange)
|| !!(q.creditArrearsStatus && String(q.creditArrearsStatus).trim())
}