This commit is contained in:
@@ -1023,6 +1023,8 @@
|
||||
import PollingBatchDialog from '@/components/business/polling/PollingBatchDialog.vue'
|
||||
import { SCHEDULER_PERMISSIONS } from '@/config/constants/pollingScheduler'
|
||||
import { canPollingBatch, pollingScope } from '@/utils/business/pollingScheduler'
|
||||
import { firstPurchaseRange } from '@/utils/business/packageSilence'
|
||||
import FirstPurchaseCell from '@/components/business/package-silence/FirstPurchaseCell.vue'
|
||||
import { formatDateTime } from '@/utils/business/format'
|
||||
import {
|
||||
getExpiryEstimateText,
|
||||
@@ -1370,6 +1372,7 @@
|
||||
|
||||
// 搜索表单初始值
|
||||
const initialSearchState = {
|
||||
first_purchase_range: [] as string[],
|
||||
enable_polling: undefined as boolean | undefined,
|
||||
virtual_no: '',
|
||||
imei: '',
|
||||
@@ -1433,6 +1436,18 @@
|
||||
|
||||
// 搜索表单配置
|
||||
const searchFormItems: SearchFormItem[] = [
|
||||
{
|
||||
label: '首次购买起止',
|
||||
prop: 'first_purchase_range',
|
||||
type: 'datetimerange',
|
||||
config: {
|
||||
rangeSeparator: '至',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
valueFormat: 'YYYY-MM-DDTHH:mm:ssZ',
|
||||
clearable: true
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '设备号',
|
||||
prop: 'virtual_no',
|
||||
@@ -1650,6 +1665,7 @@
|
||||
|
||||
// 列配置
|
||||
const columnOptions = [
|
||||
{ label: '首次购买套餐时间', prop: 'first_purchase_at' },
|
||||
{ label: '是否轮询', prop: 'enable_polling' },
|
||||
{ label: '设备号', prop: 'virtual_no' },
|
||||
{ label: 'IMEI', prop: 'imei' },
|
||||
@@ -1910,6 +1926,13 @@
|
||||
|
||||
// 动态列配置
|
||||
const { columnChecks, columns } = useCheckedColumns(() => [
|
||||
{
|
||||
prop: 'first_purchase_at',
|
||||
label: '首次购买套餐时间',
|
||||
width: 180,
|
||||
formatter: (row: Device) =>
|
||||
h(FirstPurchaseCell, { assetId: row.id, assetType: 'device', time: row.first_purchase_at })
|
||||
},
|
||||
{
|
||||
prop: 'virtual_no',
|
||||
label: '设备号',
|
||||
@@ -2248,6 +2271,7 @@
|
||||
device_name: searchForm.device_name || undefined,
|
||||
status: searchForm.status,
|
||||
enable_polling: searchForm.enable_polling ?? undefined,
|
||||
...firstPurchaseRange(searchForm.first_purchase_range),
|
||||
activation_status: searchForm.activation_status ?? undefined,
|
||||
real_name_status: searchForm.real_name_status ?? undefined,
|
||||
batch_no: searchForm.batch_no || undefined,
|
||||
@@ -2275,6 +2299,7 @@
|
||||
|
||||
const exportQuery = computed(() => {
|
||||
const query: Record<string, unknown> = {
|
||||
...firstPurchaseRange(searchForm.first_purchase_range),
|
||||
virtual_no: searchForm.virtual_no || undefined,
|
||||
imei: searchForm.imei || undefined,
|
||||
device_name: searchForm.device_name || undefined,
|
||||
|
||||
Reference in New Issue
Block a user