Commit 8b04d9d0 authored by 季圣华's avatar 季圣华
Browse files

优化下拉框,改为可以搜索

parent c6a1a7b4
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item label="仓库"> <a-form-item label="仓库">
<a-select <a-select
showSearch optionFilterProp="children"
style="width: 100%" style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotId"> v-model="queryParam.depotId">
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item label="仓库"> <a-form-item label="仓库">
<a-select <a-select
showSearch optionFilterProp="children"
style="width: 100%" style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotId"> v-model="queryParam.depotId">
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
<a-select placeholder="选择客户" v-model="queryParam.organId" :dropdownMatchSelectWidth="false"> <a-select placeholder="选择客户" v-model="queryParam.organId"
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
...@@ -18,6 +19,7 @@ ...@@ -18,6 +19,7 @@
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item label="仓库"> <a-form-item label="仓库">
<a-select <a-select
showSearch optionFilterProp="children"
style="width: 100%" style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotId"> v-model="queryParam.depotId">
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
<a-select placeholder="选择客户" v-model="queryParam.organId" :dropdownMatchSelectWidth="false"> <a-select placeholder="选择客户" v-model="queryParam.organId"
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
...@@ -18,6 +19,7 @@ ...@@ -18,6 +19,7 @@
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item label="仓库"> <a-form-item label="仓库">
<a-select <a-select
showSearch optionFilterProp="children"
style="width: 100%" style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotId"> v-model="queryParam.depotId">
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item label="仓库"> <a-form-item label="仓库">
<a-select <a-select
showSearch optionFilterProp="children"
style="width: 100%" style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotId"> v-model="queryParam.depotId">
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
<a-select placeholder="选择供应商" v-model="queryParam.organId" :dropdownMatchSelectWidth="false"> <a-select placeholder="选择供应商" v-model="queryParam.organId"
:dropdownMatchSelectWidth="false" showSearch optionFilterProp="children">
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment