【修改】:【优化】修改投保人信息获取工作单位名称的接口

This commit is contained in:
zhangqi1
2021-07-13 19:08:05 +08:00
parent 88afab9c1b
commit 2cd2d8be81
3 changed files with 17 additions and 7 deletions

View File

@@ -36,3 +36,12 @@ export function getSchemePics(data) {
data
})
}
// 开门红方案图片查询
export function getcompany(data) {
return request({
url: getUrl('/sale/product/getcompany', 1),
method: 'post',
data
})
}

View File

@@ -51,7 +51,8 @@ let sale = [
'/ppf/check',
'/sale/insure/selfToHuman',
'/sale/insure/orderPayStatusQuery',
'/sale/order/revokeOrder'
'/sale/order/revokeOrder',
'/sale/product/getcompany'
] //在线投保
let agentEnter = [
'/agent/enter/share',

View File

@@ -13,8 +13,8 @@
/>
<transition name="slide-in">
<div ref="picker" class="content_info" v-show="showCustomer">
<div class="border_item" v-for="(item, index) in computedCustomerList" :value="item.label" :key="index" @click="chooseCustomer(item)">
{{ item.label }}
<div class="border_item" v-for="(item, index) in computedCustomerList" :value="item.asscompanies" :key="index" @click="chooseCustomer(item)">
{{ item.asscompanies }}
</div>
<div class="border_item" v-show="computedCustomerList == 0">无结果</div>
</div>
@@ -25,7 +25,7 @@
</template>
<script>
import { Field } from 'vant'
import { getTreasureMenus } from '@/api/ebiz/goodStart'
import { getcompany } from '@/api/ebiz/goodStart'
export default {
name: 'SearchField',
props: {
@@ -58,7 +58,7 @@ export default {
computedCustomerList() {
let searchStr = this.value.trim()
return this.customerList.filter((item) => {
return item.label.includes(searchStr)
return item.asscompanies.includes(searchStr)
})
},
searchContent() {
@@ -67,7 +67,7 @@ export default {
},
async created() {
const param = { operateType: 'insure_company' }
const result = await getTreasureMenus(param)
const result = await getcompany(param)
if (result.result === '0') {
this.customerList = result.content
this.$emit('workcompanys', result.content)
@@ -102,7 +102,7 @@ export default {
}
},
chooseCustomer(item) {
this.$emit('input', item.label)
this.$emit('input', item.asscompanies)
this.showCustomer = false
},
},