This commit is contained in:
@@ -238,7 +238,10 @@
|
||||
<span style="font-weight: bold; color: #409eff">{{ selectedDevices.length }}</span> 台
|
||||
</ElFormItem>
|
||||
<ElFormItem label="选设备方式" prop="selection_type">
|
||||
<ElRadioGroup v-model="seriesBindingForm.selection_type">
|
||||
<ElRadioGroup
|
||||
v-model="seriesBindingForm.selection_type"
|
||||
@change="handleDeviceBatchSelectionTypeChange"
|
||||
>
|
||||
<ElRadio label="list">设备ID列表</ElRadio>
|
||||
<ElRadio label="range">设备号范围</ElRadio>
|
||||
<ElRadio label="filter">筛选条件</ElRadio>
|
||||
@@ -736,7 +739,10 @@
|
||||
</ElSelect>
|
||||
</ElFormItem>
|
||||
<ElFormItem label="选设备方式" prop="selection_type">
|
||||
<ElRadioGroup v-model="enterpriseDeviceAuthorizeForm.selection_type">
|
||||
<ElRadioGroup
|
||||
v-model="enterpriseDeviceAuthorizeForm.selection_type"
|
||||
@change="handleDeviceBatchSelectionTypeChange"
|
||||
>
|
||||
<ElRadio label="list">设备号列表</ElRadio>
|
||||
<ElRadio label="filter">筛选条件</ElRadio>
|
||||
</ElRadioGroup>
|
||||
@@ -842,7 +848,10 @@
|
||||
</ElSelect>
|
||||
</ElFormItem>
|
||||
<ElFormItem label="选设备方式" prop="selection_type">
|
||||
<ElRadioGroup v-model="enterpriseDeviceRecallForm.selection_type">
|
||||
<ElRadioGroup
|
||||
v-model="enterpriseDeviceRecallForm.selection_type"
|
||||
@change="handleDeviceBatchSelectionTypeChange"
|
||||
>
|
||||
<ElRadio label="list">设备号列表</ElRadio>
|
||||
<ElRadio label="filter">筛选条件</ElRadio>
|
||||
</ElRadioGroup>
|
||||
@@ -1355,7 +1364,7 @@
|
||||
// 搜索表单
|
||||
const searchForm = reactive<Record<string, any>>({ ...initialSearchState })
|
||||
|
||||
// 搜索批次号(用于搜索表单)
|
||||
// 批次号仅在用户切换至筛选条件或输入批次号搜索时加载。
|
||||
const loadSearchBatchNoOptions = async (batchNo?: string) => {
|
||||
try {
|
||||
const params: any = {
|
||||
@@ -1374,11 +1383,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 搜索批次号
|
||||
const handleSearchBatchNo = (query: string) => {
|
||||
if (query) {
|
||||
loadSearchBatchNoOptions(query)
|
||||
} else {
|
||||
loadSearchBatchNoOptions(query || undefined)
|
||||
}
|
||||
|
||||
const handleDeviceBatchSelectionTypeChange = (
|
||||
selectionType: string | number | boolean | undefined
|
||||
) => {
|
||||
if (selectionType === DeviceSelectionType.FILTER) {
|
||||
loadSearchBatchNoOptions()
|
||||
}
|
||||
}
|
||||
@@ -2517,7 +2529,6 @@
|
||||
resetEnterpriseDeviceAuthorizeForm()
|
||||
await Promise.all([
|
||||
handleSearchEnterprise(),
|
||||
loadSearchBatchNoOptions(),
|
||||
loadTopLevelShopCascadeOptions()
|
||||
])
|
||||
enterpriseDeviceAuthorizeDialogVisible.value = true
|
||||
@@ -2526,7 +2537,7 @@
|
||||
|
||||
const showEnterpriseDeviceRecallDialog = async () => {
|
||||
resetEnterpriseDeviceRecallForm()
|
||||
await Promise.all([handleSearchEnterprise(), loadSearchBatchNoOptions()])
|
||||
await handleSearchEnterprise()
|
||||
enterpriseDeviceRecallDialogVisible.value = true
|
||||
enterpriseDeviceRecallFormRef.value?.clearValidate()
|
||||
}
|
||||
@@ -2667,7 +2678,7 @@
|
||||
selection_type:
|
||||
selectedDevices.value.length > 0 ? DeviceSelectionType.LIST : DeviceSelectionType.FILTER
|
||||
})
|
||||
await Promise.all([loadPackageSeriesList(), loadSearchBatchNoOptions()])
|
||||
await loadPackageSeriesList()
|
||||
seriesBindingDialogVisible.value = true
|
||||
seriesBindingFormRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user