Commit 459d4ac0 by 杨北旺

添加售前开发环境配置

1 parent f9f7cc2c
import { http } from '@/main'
import { http, http_brand } from '@/main'
const defaultPath = 'scrm.api.equity.service.package.'
const orderPath = 'scrm.api.equity.service.order.'
......@@ -67,7 +67,7 @@ const getPriteApi = params => {
const getCarBrandListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getCarBrandList'
return http({
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
......@@ -78,7 +78,7 @@ const getCarBrandListApi = params => {
const getCarChildListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
return http({
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
......@@ -88,7 +88,7 @@ const getCarChildListApi = params => {
const getCarSeriesListApi = params => {
params.method = 'scrm.api.carlife.common.getCarSeriesList'
return http({
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
......@@ -98,7 +98,7 @@ const getCarSeriesListApi = params => {
const getCarTypeListApi = params => {
params.method = 'scrm.api.carlife.common.getCarTypeList'
return http({
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
......@@ -161,7 +161,8 @@ const getProListApi = params => {
// 获取无忧卡套餐列表
const getPackageListApi = params => {
params.method = `${defaultPath}list.get`
// params.method = `scrm.api.equity.service.package.dj.list.get`
params.method = `scrm.api.equity.service.package.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......@@ -316,4 +317,27 @@ const judgeSetting = params => {
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting }
\ No newline at end of file
// 获取特别约定
const spaAgressData = params => {
params.method = 'scrm.api.equity.service.spa.list.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
// 提单
const sumbitOrder = params => {
params.method = 'scrm.api.equity.service.channel.order.insert.or.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, sumbitOrder }
\ No newline at end of file
......@@ -13,7 +13,7 @@ Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret } = await fetchConfig()
const { response, request, request_brand, sign, secret } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......@@ -23,6 +23,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
......@@ -17,11 +17,12 @@ export default {
data() {
return {
activeName: 'equityList',
status: 0
status: 1
}
},
created() {
this.isOpenSettin()
// this.isOpenSettin()
// this.$router.push('/beforeSale/equityList')
},
mounted() {},
......
......@@ -53,7 +53,6 @@
</div>
<template v-for="(ele, indexs) in curSelectPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<!-- <glsx-combi-form class="edit-form-container" ref="editProductFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editProductChildRefPro" :isBlock="isBlock" :formObj="editProductObj" :formData="item.groupAttributeList" :formRules="item.rules"></glsx-combi-form> -->
<div v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
......@@ -65,8 +64,8 @@
<el-input class="arrt_pannel" v-model="productModal[item.idName][attr.groupName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" size="small" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" v-model="productModal[item.idName][attr.groupName]" :key="option.value" :label="option.label" :value="item.value"></el-option>
<el-select class="arrt_pannel" size="small" v-model="productModal[item.idName][attr.groupName]" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
......@@ -101,8 +100,8 @@
<el-input class="arrt_pannel" v-model="productModal[item.idName][attr.groupName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" size="small" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" v-model="productModal[item.idName][attr.groupName]" :key="option.value" :label="option.label" :value="item.value"></el-option>
<el-select class="arrt_pannel" size="small" v-model="productModal[item.idName][attr.groupName]" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
......@@ -613,7 +612,14 @@ export default {
carBrandOptions: [],
carChildOptions: [],
carSeriesOptions: [],
carTypeOptions: []
carTypeOptions: [],
buyCarTypeList:[{
value:0,
label:'贷款车'
},{
value:1,
label:'全款车'
},]
},
allCarChildList: [],
qrcodUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/beforesale_equity_code.png',
......@@ -643,7 +649,8 @@ export default {
this.getAllVehicleBrand()
this.getCarChildList(false, true)
// 测试时使用
this.getPackageList()
// this.getPackageList()
// this.getSpeAgreeOptions()
},
mounted() {
......@@ -665,6 +672,12 @@ export default {
},
methods: {
// 获取特别约定列表
getSpeAgreeOptions(){
this.$apis.beforeSale.spaAgressData({}).then(res => {
this.agreeList= res || []
})
},
// 模拟获取产品的数据
toTestProductData(arr) {
arr.forEach(item => {
......@@ -689,6 +702,8 @@ export default {
ele.attributeList.map(e => {
if(e.attributeDesc=='服务期限'){
e.optionList = this.baseData.servicePeriodList
}else if(e.attributeDesc=="购车类型"){
e.optionList = this.baseData.buyCarTypeList
}
ele.tempobj = { ...e }
})
......@@ -1099,7 +1114,7 @@ export default {
return true
}
this.submit = true
var list = ['Car', 'Brand', 'User', 'Pro', 'Other']
var list = ['Car', 'Brand', 'User', 'Shop', 'Other']
var flag = true
var errorObjList = []
for (var i = 0; i < list.length; i++) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!