客户查询添加操作功能
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
import type { Batch } from "@/models/batch"
|
||||
|
||||
type APIFilterParams = {
|
||||
phone?: string
|
||||
user_phone?: string
|
||||
batch_no?: string
|
||||
resource_no?: string
|
||||
prov?: string
|
||||
@@ -84,7 +84,7 @@ export default function BatchPage() {
|
||||
|
||||
const onFilter = handleSubmit(data => {
|
||||
const result: APIFilterParams = {}
|
||||
if (data.user_phone?.trim()) result.phone = data.user_phone.trim()
|
||||
if (data.user_phone?.trim()) result.user_phone = data.user_phone.trim()
|
||||
if (data.batch_no?.trim()) result.batch_no = data.batch_no.trim()
|
||||
if (data.resource_no?.trim()) result.resource_no = data.resource_no.trim()
|
||||
if (data.prov?.trim()) result.prov = data.prov.trim()
|
||||
|
||||
Reference in New Issue
Block a user