Commit db494373 by 杨北旺

售前联调开始

1 parent 1704c20f
......@@ -304,4 +304,16 @@ const aduitOrderApi = 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 }
\ No newline at end of file
// 是否开通配置
const judgeSetting = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: 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 }
\ No newline at end of file
......@@ -52,5 +52,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
},
{
name: 'checkSet',
path: '/beforeSale/checkSet',
component: resolve => require([`@/views/beforeSale/checkSet.vue`], resolve),
meta: {}
},
])
export default staticRoutes
\ No newline at end of file
......@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox
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: globalState.session.token } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'f518259d-1edc-4695-a1cd-a3487567e0af' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
<!-- 权益订单 -->
<template>
<div class="equity">
<open v-if="status == 1"></open>
<not-open v-if="status == 2"></not-open>
</div>
</template>
<script>
import equityList from './equityList.vue'
import introduct from './introduct.vue'
export default {
name: 'index',
components: {
open: equityList,
'not-open': introduct
},
data() {
return {
activeName: 'equityList',
status: 0
}
},
created() {
this.isOpenSettin()
// this.$router.push('/beforeSale/equityList')
},
mounted() {},
methods: {
// 判断是否开通
isOpenSettin() {
localStorage.removeItem('preSetStatus')
const { merchantId } = this.$globalState.session
this.$apis.beforeSale.judgeSetting({ merchantId }).then(res => {
// data != null 且data.openFlag == 1 为开通,其他的都是未开通
const { code, data } = res
if (code == 0 && data != null && data.openFlag == 1) {
this.status = 1
} else {
this.status = 2
}
})
}
}
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -102,7 +102,7 @@
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" size="small" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="item in []" v-model="productModal[item.idName][attr.groupName]" :key="item.value" :label="item.label" :value="item.value"></el-option>
<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>
</template>
<template v-if="attr.attributeType == 'datePicker'">
......@@ -210,12 +210,7 @@ export default {
size: 'small',
submit: false,
isBlock: true,
// title: '新增权益',
// titleObj: {
// 1: '新增权益',
// 2: '编辑权益',
// 3: '查看权益'
// },
footerLeft: '0',
footerWidth: '0',
editCarChildRef: 'editChildRef',
......@@ -251,7 +246,6 @@ export default {
},
// 车辆信息
editRuleCar: {
// licensing: [{ required: true, message: '请选择是否上牌', trigger: 'change' }],
licensePlate: [
{
validator: (rule, value, callback) => {
......@@ -669,10 +663,6 @@ export default {
this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled()
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate'])
// this.title = this.titleObj[this.routeInfo.addOrEdit]
// console.log(this.routeInfo, '-------------')
// 获取套餐列表
// this.getPackageList()
},
methods: {
......@@ -878,12 +868,9 @@ export default {
this.customProductList.push(item)
}
})
console.log(this.productList);
},
setDisabled(partDisabledList = []) {
var list = ['Car', 'User', 'Pro', 'Other']
var flag = true
var errorObjList = []
var list = ['Car', 'User', 'Shop', 'Other']
for (var i = 0; i < list.length; i++) {
this['editFormData' + list[i]].forEach((item, idx) => {
if (!partDisabledList.length) {
......@@ -896,7 +883,8 @@ export default {
})
}
},
handleCancelBubble(e) {},
// handleCancelBubble(e) {},
// 获取默认车牌
getDefaultCarbrand() {
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
// 获取套餐列表
......@@ -1228,6 +1216,7 @@ export default {
}
return params
},
// 草稿
handleDraft() {
if (this.submit) {
return true
......
......@@ -538,7 +538,7 @@ export default {
glsxDialog,
pdfDialog
},
mounted() {
this.editNotify = this.$route.params
if (this.isFirst && this.editNotify.hasOwnProperty('code')) {
......
<!-- 权益订单 -->
<template>
<div class="equity"></div>
<div class="equity">
<!-- <open v-if="status==1"></open>
<not-open v-if="status==2"></not-open> -->
</div>
</template>
<script>
// import equityList from './equityList.vue'
// import introduct from './introduct.vue'
export default {
name: 'index',
// components: {
// open: equityList,
// 'not-open': introduct
// },
data() {
return {
activeName: 'equityList'
activeName: 'equityList',
status: 0
}
},
created() {
this.$router.push('/beforeSale/equityList')
this.isOpenSettin()
},
mounted() {},
methods: {}
methods: {
// 判断是否开通
isOpenSettin() {
localStorage.removeItem('preSetStatus')
const { merchantId } = this.$globalState.session
this.$apis.beforeSale.judgeSetting({ merchantId }).then(res => {
// data != null 且data.openFlag == 1 为开通,其他的都是未开通
const { code, data } = res
if (code == 0 && data != null && data.openFlag == 1) {
this.status = 1
} else {
this.status = 2
}
localStorage.setItem('preSetStatus', this.status)
this.$router.push('/beforeSale/checkSet')
})
}
// 页面跳转
// handleEdit(path,title) {
// this.$router.push({
// path,
// query: {
// $title: encodeURI(title)
// }
// })
// }
}
}
</script>
<style>
......
......@@ -135,9 +135,9 @@ export default {
}
</script>
<style lang="scss" scoped>
// .introduct_container {
// margin-top: 17px;
// }
.introduct_container {
margin-top: 17px;
}
.top_play_wrap {
height: 360px;
background: #ffffff;
......
......@@ -168,6 +168,9 @@ export default {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.edit-container /deep/ .el-form--inline .el-form-item {
margin-right: 10px;
}
/* .before-sale .edit-equity{
height: 100vh;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!