Commit fc50ec20 authored by yanglilong's avatar yanglilong

Merge branch 'yll-fix' into 'master'

'增加保险公司搜索'

See merge request !42
parents 89df3f03 62a7f8cb
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorIds" placeholder="请选择保险公司" allowClear mode="multiple"> <a-select v-model="form.payorId" placeholder="请选择保险公司" allowClear show-search mode="multiple"
:filterOption="filterCode">
<a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id"> <a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id">
{{ item.longName }} {{ item.longName }}
</a-select-option> </a-select-option>
...@@ -233,6 +234,14 @@ export default { ...@@ -233,6 +234,14 @@ export default {
}, },
methods: { methods: {
moment, moment,
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
// 获取列表数据 // 获取列表数据
_getChargeList() { _getChargeList() {
const data = { const data = {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</a-col> </a-col>
<a-col :xl="5" :lg="6" :sm="12"> <a-col :xl="5" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorId" placeholder="请选择保险公司" allow-clear> <a-select v-model="form.payorId" placeholder="请选择保险公司" show-search allow-clear :filterOption="filterCode">
<a-select-option v-for="item in companyCode" :key="item.corpCode" :value="item.id">{{ item.longName }}</a-select-option> <a-select-option v-for="item in companyCode" :key="item.corpCode" :value="item.id">{{ item.longName }}</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
...@@ -124,6 +124,14 @@ export default { ...@@ -124,6 +124,14 @@ export default {
this._getPayorCode(); this._getPayorCode();
}, },
methods: { methods: {
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
//重置 //重置
resetEvt(){ resetEvt(){
this.form = {}; this.form = {};
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorCode" placeholder="请选择" allowClear> <a-select v-model="form.payorCode" placeholder="请选择" show-search allowClear :filterOption="filterCode">
<a-select-option v-for="item in companyOptions" :key="item.id" :value="item.payorCode"> <a-select-option v-for="item in companyOptions" :key="item.payorCode" :value="item.payorCode">
{{ item.longName }} {{ item.longName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
...@@ -134,6 +134,14 @@ export default { ...@@ -134,6 +134,14 @@ export default {
this._getCompanyOptions(); this._getCompanyOptions();
}, },
methods: { methods: {
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
// 获取列表数据 // 获取列表数据
getList() { getList() {
const data = { const data = {
......
...@@ -9,10 +9,12 @@ ...@@ -9,10 +9,12 @@
v-model="form.payorCode" v-model="form.payorCode"
placeholder="请选择保险公司" placeholder="请选择保险公司"
allowClear allowClear
show-search
:filterOption="filterCode"
> >
<a-select-option <a-select-option
v-for="item in companyOptions" v-for="item in companyOptions"
:key="item.id" :key="item.payorCode"
:value="item.payorCode" :value="item.payorCode"
> >
{{ item.longName }} {{ item.longName }}
...@@ -206,6 +208,14 @@ export default { ...@@ -206,6 +208,14 @@ export default {
receiptNo:"", // 账单编号 receiptNo:"", // 账单编号
}; };
}, },
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
// 获取保险公司下拉选项 // 获取保险公司下拉选项
_getCompanyOptions() { _getCompanyOptions() {
this.$apis.GETCOMPANYOPTIONS().then((res) => { this.$apis.GETCOMPANYOPTIONS().then((res) => {
......
...@@ -12,13 +12,15 @@ ...@@ -12,13 +12,15 @@
<a-select <a-select
v-model="form.payorCode" v-model="form.payorCode"
placeholder="请选择保险公司" placeholder="请选择保险公司"
allow-clear allow-clear
show-search
:disabled="!isEdit" :disabled="!isEdit"
@change="changePayor" @change="changePayor"
:filterOption="filterCode"
> >
<a-select-option <a-select-option
v-for="item in companyOptions" v-for="item in companyOptions"
:key="item.id" :key="item.payorCode"
:value="item.payorCode" :value="item.payorCode"
> >
{{ item.longName }} {{ item.longName }}
...@@ -538,6 +540,14 @@ export default { ...@@ -538,6 +540,14 @@ export default {
}, },
methods: { methods: {
moment, moment,
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
paneChange() { paneChange() {
this.panes.forEach((item) => { this.panes.forEach((item) => {
item.show = false; item.show = false;
...@@ -884,7 +894,7 @@ export default { ...@@ -884,7 +894,7 @@ export default {
} }
} }
.bill-content { .bill-content {
height: calc(100vh - 380px); height: calc(100vh - 185px);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
padding-right: 12px; padding-right: 12px;
......
Markdown is supported
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