提交
This commit is contained in:
1 parent
31d3a044cf
commit
b7d0d4a4f8
373 files changed
+103998
-41299
No files matched your search
@@ -44,6 +44,8 @@
|
||||
placeholder?: string
|
||||
/** 透传车辆列表筛选,如 available */
|
||||
vehicleStatus?: string
|
||||
/** 透传车辆类型:self-自有 / carrier-三方;不传则两者都查 */
|
||||
vehicleType?: string
|
||||
}>(),
|
||||
{
|
||||
placeholder: '请选择车牌号(三方/自有车辆)'
|
||||
@@ -60,12 +62,13 @@
|
||||
return ''
|
||||
}
|
||||
|
||||
/** 三方车辆 + 山峡自有车辆,禁止手填新建 */
|
||||
/** 默认三方+自有;可按 vehicleType 收窄。禁止手填新建 */
|
||||
const loadOptions = async (keyword: string) => {
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await vehicleApi.list({
|
||||
...(props.vehicleStatus ? { vehicleStatus: props.vehicleStatus } : {}),
|
||||
...(props.vehicleType ? { vehicleType: props.vehicleType } : {}),
|
||||
...(keyword.trim() ? { q: keyword.trim() } : {}),
|
||||
page: 1,
|
||||
pageSize: 100
|
||||
|
||||
Reference in new issue
Block a user