Commit db494373 by 杨北旺

售前联调开始

1 parent 1704c20f
...@@ -304,4 +304,16 @@ const aduitOrderApi = params => { ...@@ -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 \ 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 \ No newline at end of file
...@@ -52,5 +52,11 @@ const staticRoutes = Object.freeze([{ ...@@ -52,5 +52,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve), component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {} meta: {}
}, },
{
name: 'checkSet',
path: '/beforeSale/checkSet',
component: resolve => require([`@/views/beforeSale/checkSet.vue`], resolve),
meta: {}
},
]) ])
export default staticRoutes export default staticRoutes
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01' 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: 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 // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) 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 \ No newline at end of file
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</template> </template>
<template v-if="attr.attributeType == 'select'"> <template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" size="small" clearable :placeholder="'请选择' + attr.attributeDesc"> <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> </el-select>
</template> </template>
<template v-if="attr.attributeType == 'datePicker'"> <template v-if="attr.attributeType == 'datePicker'">
...@@ -210,12 +210,7 @@ export default { ...@@ -210,12 +210,7 @@ export default {
size: 'small', size: 'small',
submit: false, submit: false,
isBlock: true, isBlock: true,
// title: '新增权益',
// titleObj: {
// 1: '新增权益',
// 2: '编辑权益',
// 3: '查看权益'
// },
footerLeft: '0', footerLeft: '0',
footerWidth: '0', footerWidth: '0',
editCarChildRef: 'editChildRef', editCarChildRef: 'editChildRef',
...@@ -251,7 +246,6 @@ export default { ...@@ -251,7 +246,6 @@ export default {
}, },
// 车辆信息 // 车辆信息
editRuleCar: { editRuleCar: {
// licensing: [{ required: true, message: '请选择是否上牌', trigger: 'change' }],
licensePlate: [ licensePlate: [
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
...@@ -669,10 +663,6 @@ export default { ...@@ -669,10 +663,6 @@ export default {
this.getOptionsList('editFormDataOther', false) this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled() this.disabled && this.setDisabled()
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate']) this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate'])
// this.title = this.titleObj[this.routeInfo.addOrEdit]
// console.log(this.routeInfo, '-------------')
// 获取套餐列表
// this.getPackageList()
}, },
methods: { methods: {
...@@ -878,12 +868,9 @@ export default { ...@@ -878,12 +868,9 @@ export default {
this.customProductList.push(item) this.customProductList.push(item)
} }
}) })
console.log(this.productList);
}, },
setDisabled(partDisabledList = []) { setDisabled(partDisabledList = []) {
var list = ['Car', 'User', 'Pro', 'Other'] var list = ['Car', 'User', 'Shop', 'Other']
var flag = true
var errorObjList = []
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
this['editFormData' + list[i]].forEach((item, idx) => { this['editFormData' + list[i]].forEach((item, idx) => {
if (!partDisabledList.length) { if (!partDisabledList.length) {
...@@ -896,7 +883,8 @@ export default { ...@@ -896,7 +883,8 @@ export default {
}) })
} }
}, },
handleCancelBubble(e) {}, // handleCancelBubble(e) {},
// 获取默认车牌
getDefaultCarbrand() { getDefaultCarbrand() {
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => { this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
// 获取套餐列表 // 获取套餐列表
...@@ -1228,6 +1216,7 @@ export default { ...@@ -1228,6 +1216,7 @@ export default {
} }
return params return params
}, },
// 草稿
handleDraft() { handleDraft() {
if (this.submit) { if (this.submit) {
return true return true
......
...@@ -538,7 +538,7 @@ export default { ...@@ -538,7 +538,7 @@ export default {
glsxDialog, glsxDialog,
pdfDialog pdfDialog
}, },
mounted() { mounted() {
this.editNotify = this.$route.params this.editNotify = this.$route.params
if (this.isFirst && this.editNotify.hasOwnProperty('code')) { if (this.isFirst && this.editNotify.hasOwnProperty('code')) {
......
<!-- 权益订单 --> <!-- 权益订单 -->
<template> <template>
<div class="equity"></div> <div class="equity">
<!-- <open v-if="status==1"></open>
<not-open v-if="status==2"></not-open> -->
</div>
</template> </template>
<script> <script>
// import equityList from './equityList.vue'
// import introduct from './introduct.vue'
export default { export default {
name: 'index', name: 'index',
// components: {
// open: equityList,
// 'not-open': introduct
// },
data() { data() {
return { return {
activeName: 'equityList' activeName: 'equityList',
status: 0
} }
}, },
created() { created() {
this.$router.push('/beforeSale/equityList') this.isOpenSettin()
}, },
mounted() {}, 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> </script>
<style> <style>
......
...@@ -135,9 +135,9 @@ export default { ...@@ -135,9 +135,9 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// .introduct_container { .introduct_container {
// margin-top: 17px; margin-top: 17px;
// } }
.top_play_wrap { .top_play_wrap {
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
......
...@@ -168,6 +168,9 @@ export default { ...@@ -168,6 +168,9 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); 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{ /* .before-sale .edit-equity{
height: 100vh; height: 100vh;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!