Commit 94e39a70 by 杨北旺

售前权益

1 parent d25d3e34
...@@ -161,8 +161,8 @@ const getProListApi = params => { ...@@ -161,8 +161,8 @@ const getProListApi = params => {
// 获取无忧卡套餐列表 // 获取无忧卡套餐列表
const getPackageListApi = params => { const getPackageListApi = params => {
// params.method = `scrm.api.equity.service.package.dj.list.get` params.method = `scrm.api.equity.service.package.dj.list.get`
params.method = `scrm.api.equity.service.package.list.get` // params.method = `scrm.api.equity.service.package.list.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -283,7 +283,7 @@ const uploadImgApi = params => { ...@@ -283,7 +283,7 @@ const uploadImgApi = params => {
// 退保 // 退保
const backOrderApi = params => { const backOrderApi = params => {
params.method = `${orderPath}charge.back` params.method = `scrm.api.equity.service.channel.order.charge.back`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -328,9 +328,9 @@ const spaAgressData = params => { ...@@ -328,9 +328,9 @@ const spaAgressData = params => {
}) })
} }
// 提单 // 店铺信息
const sumbitOrder = params => { const merchantInfo = params => {
params.method = 'scrm.api.equity.service.channel.order.insert.or.update' params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -340,4 +340,4 @@ const sumbitOrder = params => { ...@@ -340,4 +340,4 @@ const sumbitOrder = 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, spaAgressData, sumbitOrder }
\ No newline at end of file \ No newline at end of file
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, merchantInfo }
\ No newline at end of file \ No newline at end of file
...@@ -21,9 +21,9 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -21,9 +21,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message Vue.prototype.$message = message
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: '48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '33c60c02-fbb9-480a-8b54-24b30fe30983' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9' } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// 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)
......
...@@ -17,12 +17,11 @@ export default { ...@@ -17,12 +17,11 @@ export default {
data() { data() {
return { return {
activeName: 'equityList', activeName: 'equityList',
status: 1 status: 0
} }
}, },
created() { created() {
this.isOpenSettin()
// this.isOpenSettin()
// this.$router.push('/beforeSale/equityList') // this.$router.push('/beforeSale/equityList')
}, },
mounted() {}, mounted() {},
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog> <pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
<glsx-dialog title="上传资料" :isVisible.sync="isFileVisible" width="547px" :noCancel="noCancel" btnOkLabel="关闭" @confirmDialog="handleUploadFileClose" @closeDialog="handleUploadFileClose"> <!-- <glsx-dialog title="上传资料" :isVisible.sync="isFileVisible" width="547px" :noCancel="noCancel" btnOkLabel="关闭" @confirmDialog="handleUploadFileClose" @closeDialog="handleUploadFileClose">
<div style="height: 284px; overflow-y: scroll"> <div style="height: 284px; overflow-y: scroll">
<glsx-combi-form labelWidth="300px" :isBlock="isBlock" ref="uploadFormRef" formRef="uploadChildRef" :formRules="uploadRule" :formObj.sync="uploadForm" :formData="uploadFormData"></glsx-combi-form> <glsx-combi-form labelWidth="300px" :isBlock="isBlock" ref="uploadFormRef" formRef="uploadChildRef" :formRules="uploadRule" :formObj.sync="uploadForm" :formData="uploadFormData"></glsx-combi-form>
</div> </div>
</glsx-dialog> </glsx-dialog> -->
<el-dialog :visible.sync="isTipVisible" width="400px" class="tips-dialog" top="30%" title="提示"> <el-dialog :visible.sync="isTipVisible" width="400px" class="tips-dialog" top="30%" title="提示">
<div class="f-size"> <div class="f-size">
<i v-show="editNotify.code == '0'" class="el-icon-success"></i> <i v-show="editNotify.code == '0'" class="el-icon-success"></i>
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
prop: 'cardSeqNo', prop: 'cardSeqNo',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.carNo || '-' return cellValue.cardSeqNo || '-'
} }
}, },
{ {
...@@ -454,23 +454,23 @@ export default { ...@@ -454,23 +454,23 @@ export default {
components: { components: {
glsxCombiForm, glsxCombiForm,
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')) {
this.isFirst = false // this.isFirst = false
this.isTipVisible = true // this.isTipVisible = true
clearTimeout(this.timer) // clearTimeout(this.timer)
this.timer = setTimeout( // this.timer = setTimeout(
() => { // () => {
this.isTipVisible = false // this.isTipVisible = false
}, // },
this.editNotify.code == '0' ? 1500 : 3000 // this.editNotify.code == '0' ? 1500 : 3000
) // )
} // }
this.$apis.beforeSale.getProListApi({}).then(res => { this.$apis.beforeSale.getProListApi({}).then(res => {
this.baseData.goodsStatusList = res this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -478,11 +478,11 @@ export default { ...@@ -478,11 +478,11 @@ export default {
this.getCountNoData() this.getCountNoData()
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res this.userInfo = res
if (res.merchantAccountLevel != 4) { // if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) // var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false // this.searchFormData[idx].isHide = false
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName) // this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
} // }
}) })
}, },
...@@ -596,20 +596,18 @@ export default { ...@@ -596,20 +596,18 @@ export default {
this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => { this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => {
// this.handleSecondCancel() // this.handleSecondCancel()
// this.isTipVisible = true // this.isTipVisible = true
if (this.secondObj.title == '退单') { this.$message({
this.$message({
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
}
this.editNotify = res this.editNotify = res
clearTimeout(this.timer) // clearTimeout(this.timer)
this.timer = setTimeout( // this.timer = setTimeout(
() => { // () => {
this.isTipVisible = false // this.isTipVisible = false
}, // },
this.editNotify.code == '0' ? 1500 : 3000 // this.editNotify.code == '0' ? 1500 : 3000
) // )
if (res.code == '0') { if (res.code == '0') {
this.handleSearch() this.handleSearch()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!