Commit cfa06e23 by 前端

Merge branch 'kuangyq_v2.8.0' into 'v2.8.0'

Kuangyq v2.8.0

See merge request !20
2 parents 4d9a1949 4404fe87
import request from './request' import request from './request'
import Vue from 'vue'
const path = 'merchants.api.'
const addNamelistApi = { const addNamelistApi = {
// 根据商户名称和渠道类型查询商户列表 // 根据商户名称和渠道类型查询商户列表
getMerchantsList(data = {}) { getMerchantsList(data = {}) {
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data.method = 'merchants.api.open.findMerchantList' data.method = 'merchants.api.open.findMerchantList'
return request(data, 'merchants.api.open.findMerchantList', [], Vue.prototype.otherUrl) return request(data, 'merchants.api.open.findMerchantList', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
}, },
// 根据商户名称和渠道类型查询商户列表-分页查询 // 根据商户名称和渠道类型查询商户列表-分页查询
getMerchantsListByPages(data = {}) { getMerchantsListByPages(data = {}) {
data.method = `${path}menu.findMerchantByPage` // 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
return request(data, `${path}menu.findMerchantByPage`, [], Vue.prototype.otherUrl) data.method = 'merchants.api.menu.findMerchantByPage'
return request(data, 'merchants.api.menu.findMerchantByPage', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
}, },
// 根据商户号查询商户详情 // 根据商户号查询商户详情
findMerchantDetailByMerchantNo(data = {}) { findMerchantDetailByMerchantNo(data = {}) {
data.method = `${path}open.findMerchantDetailByMerchantNo` // 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
return request(data, `${path}open.findMerchantDetailByMerchantNo`, [], Vue.prototype.otherUrl) data.method = 'merchants.api.open.findMerchantDetailByMerchantNo'
return request(data, 'merchants.api.open.findMerchantDetailByMerchantNo', [], 'http://rop-merchant.test.glsx.com.cn/rop-merchants')
} }
} }
......
...@@ -2,57 +2,51 @@ import request from './request' ...@@ -2,57 +2,51 @@ import request from './request'
const path = 'scrm.api.renewal.insurance.customer.name.list.' const path = 'scrm.api.renewal.insurance.customer.name.list.'
const defaultPath = 'scrm.api.renewal.order.' const defaultPath = 'scrm.api.renewal.order.'
const customerApi = { const customerApi = {
// 客户名单列表查询 // 客户名单列表查询
searchCustomerList(data = {}) { searchCustomerList(data = {}) {
data.method = `${path}get` data.method = `${path}get`
return request(data) return request(data)
}, },
// 客户名单同步 // 客户名单同步
synchroCustomerList(data = {}) { synchroCustomerList(data = {}) {
data.method = `${path}sync` data.method = `${path}sync`
return request(data) return request(data)
}, },
// 客户名单删除 // 客户名单删除
deleteCustomerList(data = {}) { deleteCustomerList(data = {}) {
data.method = `${path}delete` data.method = `${path}delete`
return request(data) return request(data)
}, },
// 客户名单查看-门店信息 // 客户名单查看-门店信息
infoCustomerList(data = {}) { infoCustomerList(data = {}) {
data.method = `${path}merchant.info` data.method = `${path}merchant.info`
return request(data) return request(data)
}, },
// 客户名单查看-导入名单数据详情列表 // 客户名单列表导出
detailsCustomerList(data = {}) { exportCustomerList(data = {}) {
data.method = `${path}details` data.method = `${path}export`
return request(data) return request(data)
}, },
// 添加客户名单
// 客户名单列表导出 addCustomerList(data = {}) {
exportCustomerList(data = {}) { data.method = `${path}get`
data.method = `${path}export` return request(data)
return request(data) },
}, // 获取订单列表
// 添加客户名单 getOrderList(data = {}) {
addCustomerList(data = {}) { data.method = `${defaultPath}list`
data.method = `${path}add` return request(data)
return request(data, 'post') },
}, // 获取订单详情
// 获取订单列表 getOrderDetail(data = {}) {
getOrderList(data = {}) { data.method = `${defaultPath}detail`
data.method = `${defaultPath}list` return request(data)
return request(data) },
}, // 订单列表导出
// 获取订单详情 orderListExport(data = {}) {
getOrderDetail(data = {}) { data.method = `${defaultPath}list.export`
data.method = `${defaultPath}detail` return request(data)
return request(data) }
},
// 订单列表导出
orderListExport(data = {}) {
data.method = `${defaultPath}list.export`
return request(data)
}
} }
export { customerApi }
\ No newline at end of file \ No newline at end of file
export { customerApi }
...@@ -3,9 +3,8 @@ const uploadApi = { ...@@ -3,9 +3,8 @@ const uploadApi = {
// 多文件上传接口 // 多文件上传接口
multipleUpload(data = {}) { multipleUpload(data = {}) {
// 'http://192.168.1.182:8561/rop-scrm-renewal' // 'http://192.168.1.182:8561/rop-scrm-renewal'
data.method = 'scrm.api.renewal.common.upload.common.multiple' data.method = 'scrm.api.equity.common.upload.common.multiple'
// return request(data, 'scrm.api.equity.common.upload.common.multiple', [], 'http://scrm.test.glsx.com.cn/rop-scrm-renewal') return request(data)
return request(data, 'post')
}, },
} }
export { uploadApi } export { uploadApi }
\ No newline at end of file \ No newline at end of file
import App from './index.vue' import App from './index.vue'
import base from '@/base' import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common' import GlsxVueCommon from 'glsx-vue-common'
import Vue from 'vue'
base.getConfig().then(data => { base.getConfig().then(data => {
const { vue, config } = data
Vue.prototype.otherUrl = config.axios.otherURL
vue.use(GlsxVueCommon, config)
base.render(App)
})
\ No newline at end of file \ No newline at end of file
const { vue, config } = data
vue.use(GlsxVueCommon, config)
base.render(App)
})
...@@ -63,15 +63,15 @@ export default { ...@@ -63,15 +63,15 @@ export default {
merchantName: '', merchantName: '',
mainBrandName: '', mainBrandName: '',
merchantAddress: '', merchantAddress: '',
remark: '', remark: ''
}, },
pageConf: { pageConf: {
pageSize: 'pageSize', pageSize: 'pageSize',
pageNum: 'pageNum', pageNum: 'pageNum',
totalCount: 'data.total', totalCount: 'data.total'
}, },
customerDetailSearchForm: { customerDetailSearchForm: {
id: '', id: ''
}, },
getListApi: customerApi.detailsCustomerList, getListApi: customerApi.detailsCustomerList,
customerDetailTableParams: { customerDetailTableParams: {
...@@ -81,115 +81,115 @@ export default { ...@@ -81,115 +81,115 @@ export default {
{ {
label: '投保人名称', label: '投保人名称',
prop: 'policyHolderName', prop: 'policyHolderName',
width: '120px', width: '120px'
}, },
{ {
label: '投保人身份证号', label: '投保人身份证号',
prop: 'policyHolderIdCard', prop: 'policyHolderIdCard',
width: '170px', width: '170px'
}, },
{ {
label: '常用电话', label: '常用电话',
prop: 'policyHolderPhone', prop: 'policyHolderPhone',
width: '170px', width: '170px'
}, },
{ {
label: '备用电话', label: '备用电话',
prop: 'sparePhone', prop: 'sparePhone',
width: '170px', width: '170px'
}, },
{ {
label: '其他电话', label: '其他电话',
prop: 'otherPhone', prop: 'otherPhone',
width: '170px', width: '170px'
}, },
{ {
label: '车牌号', label: '车牌号',
prop: 'plateNo', prop: 'plateNo'
}, },
{ {
label: '车架号', label: '车架号',
prop: 'carVin', prop: 'carVin',
width: '170px', width: '170px'
}, },
{ {
label: '发动机号', label: '发动机号',
prop: 'engine', prop: 'engine'
}, },
{ {
label: '车辆初登日期', label: '车辆初登日期',
prop: 'registerDateStr', prop: 'registerDateStr',
width: '170px', width: '170px'
}, },
{ {
label: '最新保单日期', label: '最新保单日期',
prop: 'policyDateStr', prop: 'policyDateStr',
width: '170px', width: '170px'
}, },
{ {
label: '公共型号', label: '公共型号',
prop: 'publicModel', prop: 'publicModel'
}, },
{ {
label: '车辆价值', label: '车辆价值',
prop: 'vehicleValue', prop: 'vehicleValue'
}, },
{ {
label: '厂家型号', label: '厂家型号',
prop: 'brandModel', prop: 'brandModel'
}, },
{ {
label: '车主', label: '车主',
prop: 'vehicleOwner', prop: 'vehicleOwner'
}, },
{ {
label: '车主证件号码', label: '车主证件号码',
prop: 'vehicleOwnerIdNo', prop: 'vehicleOwnerIdNo',
width: '170px', width: '170px'
}, },
{ {
label: '最新保单商业险保单号', label: '最新保单商业险保单号',
prop: 'businessPolicyNo', prop: 'businessPolicyNo',
width: '170px', width: '170px'
}, },
{ {
label: '最新保单交强险保单号', label: '最新保单交强险保单号',
prop: 'compulsoryPolicyNo', prop: 'compulsoryPolicyNo',
width: '170px', width: '170px'
}, },
{ {
label: '最新保单下的商业险出险次数', label: '最新保单下的商业险出险次数',
prop: 'businessAccidentsNum', prop: 'businessAccidentsNum',
width: '220px', width: '220px'
}, },
{ {
label: '最新保单下的交强险出险次数', label: '最新保单下的交强险出险次数',
prop: 'compulsoryAccidentsNum', prop: 'compulsoryAccidentsNum',
width: '220px', width: '220px'
}, },
{ {
label: '备注', label: '备注',
prop: 'remark', prop: 'remark'
}, },
{ {
label: '年化里程', label: '年化里程',
prop: 'annualMileage', prop: 'annualMileage'
}, },
{ {
label: '车龄', label: '车龄',
prop: 'vehicleAge', prop: 'vehicleAge'
}, },
{ {
label: '客户状态', label: '客户状态',
prop: 'customerStatus', prop: 'customerStatus',
addHtml: 'customerStatus', addHtml: 'customerStatus'
}, }
], ]
}, }
} }
}, },
mounted() { mounted() {
this.$root.eventBus.$on('params', (params) => { this.$root.eventBus.$on('params', params => {
let merchantId = params.merchantId let merchantId = params.merchantId
this.customerDetailSearchForm.id = merchantId this.customerDetailSearchForm.id = merchantId
this.getcustomerInfo(merchantId) this.getcustomerInfo(merchantId)
...@@ -204,11 +204,11 @@ export default { ...@@ -204,11 +204,11 @@ export default {
}, },
// 客户名单查看-导入门店信息 // 客户名单查看-导入门店信息
getcustomerInfo(merchantId) { getcustomerInfo(merchantId) {
customerApi.infoCustomerList({ id: `${merchantId}` }).then((res) => { customerApi.infoCustomerList({ id: `${merchantId}` }).then(res => {
this.merchantBaseInfo = res.data this.merchantBaseInfo = res.data
}) })
}, }
}, }
} }
</script> </script>
......
...@@ -191,6 +191,7 @@ export default { ...@@ -191,6 +191,7 @@ export default {
<style scoped> <style scoped>
.order-contentbox { .order-contentbox {
margin: 16px; margin: 16px;
padding-bottom: 8px;
} }
.table-top { .table-top {
height: 50px; height: 50px;
......
...@@ -293,6 +293,7 @@ export default { ...@@ -293,6 +293,7 @@ export default {
<style scoped> <style scoped>
.certificate-box { .certificate-box {
margin: 16px; margin: 16px;
padding-bottom: 8px;
} }
.integral-box { .integral-box {
display: flex; display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!