mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 01:36:43 +08:00
【修改】:【优化】修改投保人信息获取工作单位名称的接口
This commit is contained in:
@@ -36,3 +36,12 @@ export function getSchemePics(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 开门红方案图片查询
|
||||||
|
export function getcompany(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/sale/product/getcompany', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ let sale = [
|
|||||||
'/ppf/check',
|
'/ppf/check',
|
||||||
'/sale/insure/selfToHuman',
|
'/sale/insure/selfToHuman',
|
||||||
'/sale/insure/orderPayStatusQuery',
|
'/sale/insure/orderPayStatusQuery',
|
||||||
'/sale/order/revokeOrder'
|
'/sale/order/revokeOrder',
|
||||||
|
'/sale/product/getcompany'
|
||||||
] //在线投保
|
] //在线投保
|
||||||
let agentEnter = [
|
let agentEnter = [
|
||||||
'/agent/enter/share',
|
'/agent/enter/share',
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
/>
|
/>
|
||||||
<transition name="slide-in">
|
<transition name="slide-in">
|
||||||
<div ref="picker" class="content_info" v-show="showCustomer">
|
<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)">
|
<div class="border_item" v-for="(item, index) in computedCustomerList" :value="item.asscompanies" :key="index" @click="chooseCustomer(item)">
|
||||||
{{ item.label }}
|
{{ item.asscompanies }}
|
||||||
</div>
|
</div>
|
||||||
<div class="border_item" v-show="computedCustomerList == 0">无结果</div>
|
<div class="border_item" v-show="computedCustomerList == 0">无结果</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Field } from 'vant'
|
import { Field } from 'vant'
|
||||||
import { getTreasureMenus } from '@/api/ebiz/goodStart'
|
import { getcompany } from '@/api/ebiz/goodStart'
|
||||||
export default {
|
export default {
|
||||||
name: 'SearchField',
|
name: 'SearchField',
|
||||||
props: {
|
props: {
|
||||||
@@ -58,7 +58,7 @@ export default {
|
|||||||
computedCustomerList() {
|
computedCustomerList() {
|
||||||
let searchStr = this.value.trim()
|
let searchStr = this.value.trim()
|
||||||
return this.customerList.filter((item) => {
|
return this.customerList.filter((item) => {
|
||||||
return item.label.includes(searchStr)
|
return item.asscompanies.includes(searchStr)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchContent() {
|
searchContent() {
|
||||||
@@ -67,7 +67,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
const param = { operateType: 'insure_company' }
|
const param = { operateType: 'insure_company' }
|
||||||
const result = await getTreasureMenus(param)
|
const result = await getcompany(param)
|
||||||
if (result.result === '0') {
|
if (result.result === '0') {
|
||||||
this.customerList = result.content
|
this.customerList = result.content
|
||||||
this.$emit('workcompanys', result.content)
|
this.$emit('workcompanys', result.content)
|
||||||
@@ -102,7 +102,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
chooseCustomer(item) {
|
chooseCustomer(item) {
|
||||||
this.$emit('input', item.label)
|
this.$emit('input', item.asscompanies)
|
||||||
this.showCustomer = false
|
this.showCustomer = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user