fix: pay
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m0s

This commit is contained in:
sexygoat
2026-04-24 11:17:39 +08:00
parent 62851342c3
commit e4ed3784e3
5 changed files with 147 additions and 67 deletions

View File

@@ -280,7 +280,9 @@
})),
config: {
clearable: true,
filterable: true
filterable: true,
remote: true,
remoteMethod: (query: string) => searchShops(query)
}
},
{
@@ -534,6 +536,25 @@
}
}
// 搜索店铺(用于搜索表单远程搜索)
const searchShops = async (query: string) => {
try {
const params: any = {
page: 1,
page_size: 20
}
if (query) {
params.shop_name = query
}
const res = await ShopService.getShops(params)
if (res.code === 0) {
shopOptions.value = res.data.items || []
}
} catch (error) {
console.error('Search shops failed:', error)
}
}
// 处理店铺选择变化
const handleShopChange = (value: any) => {
if (Array.isArray(value) && value.length > 0) {