Commit a684e9ab by zhouzy

1

1 parent dd88e42e
{ {
"name": "services", "name": "salepre",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.2.5", "glsx-components": "^1.3.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -29,17 +29,17 @@ export default { ...@@ -29,17 +29,17 @@ export default {
padding: 20px 0; padding: 20px 0;
line-height: 36px; line-height: 36px;
} }
#app { // #app {
background: #f4f5fa; // background: #f4f5fa;
padding: 0px 20px 20px 40px; // padding: 0px 20px 20px 40px;
position: absolute; // position: absolute;
box-sizing: border-box; // box-sizing: border-box;
width: 100%; // width: 100%;
top: 0px; // top: 0px;
left: 0px; // left: 0px;
overflow-y: auto; // overflow-y: auto;
height: 100%; // height: 100%;
} // }
// 分页全局 // 分页全局
.pagination_box { .pagination_box {
......
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.'
const getWorryBatcnList = params => {
params.method = `${defaultPath}service.cfcb.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const addCards = params => {
params.method = `${defaultPath}service.cfcb.create`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
const downLoads = params => {
params.method = `${defaultPath}service.cfcb.export`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
export default {
getWorryBatcnList,
addCards,
downLoads
}
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.'
const getAppointmentList = params => {
params.method = `${defaultPath}service.spa.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const modifyAppointment = params => {
params.method = `${defaultPath}service.spa.insert.or.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
const delAppointment = params => {
params.method = `${defaultPath}service.spa.delete`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const exportAppointment = params => {
params.method = `${defaultPath}service.spa.export`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
export default {
getAppointmentList,
modifyAppointment,
delAppointment,
exportAppointment
}
...@@ -44,7 +44,7 @@ const getMerchantApi = params => { ...@@ -44,7 +44,7 @@ const getMerchantApi = params => {
} }
const getExportApi = params => { const getExportApi = params => {
params.method = `${defaultPath}order.export.get` params.method = `scrm.api.equity.service.package.dj.order.export.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -55,7 +55,7 @@ const getExportApi = params => { ...@@ -55,7 +55,7 @@ const getExportApi = params => {
// 打印合同 // 打印合同
const getPriteApi = params => { const getPriteApi = params => {
params.method = `${defaultPath}order.prite` params.method = `scrm.api.equity.service.package.dj.order.print`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -116,6 +116,16 @@ const getHotlineApi = params => { ...@@ -116,6 +116,16 @@ const getHotlineApi = params => {
}) })
} }
const getDefaultCarbrandApi = params => {
params.method = 'scrm.api.equity.service.merchant.vehicle.default.detail'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateHotlineApi = params => { const updateHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.update` params.method = `${defaultPath}merchant.hotline.update`
return http({ return http({
...@@ -127,6 +137,17 @@ const updateHotlineApi = params => { ...@@ -127,6 +137,17 @@ const updateHotlineApi = params => {
}) })
} }
const updateCarBrandApi = params => {
params.method = 'scrm.api.equity.service.merchant.vehicle.default.insert.or.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取产品名称(套餐名称) // 获取产品名称(套餐名称)
const getProListApi = params => { const getProListApi = params => {
params.method = `${defaultPath}select.get` params.method = `${defaultPath}select.get`
...@@ -140,7 +161,8 @@ const getProListApi = params => { ...@@ -140,7 +161,8 @@ const getProListApi = params => {
// 获取无忧卡套餐列表 // 获取无忧卡套餐列表
const getPackageListApi = 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({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -150,7 +172,7 @@ const getPackageListApi = params => { ...@@ -150,7 +172,7 @@ const getPackageListApi = params => {
} }
const getEquityApi = params => { const getEquityApi = params => {
params.method = `${orderPath}detail` params.method = `scrm.api.equity.service.channel.order.detail`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -160,7 +182,7 @@ const getEquityApi = params => { ...@@ -160,7 +182,7 @@ const getEquityApi = params => {
} }
const updateEquityApi = params => { const updateEquityApi = params => {
params.method = `${orderPath}insert.or.update` params.method = `scrm.api.equity.service.channel.order.insert.or.update`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -193,8 +215,17 @@ const getOrderAttrApi = params => { ...@@ -193,8 +215,17 @@ const getOrderAttrApi = params => {
} }
// 获取套菜附件属性 // 获取套菜附件属性
const getOrderValueApi = params => { // const getOrderValueApi = params => {
params.method = `${defaultPath}order.attachment.value.get` // params.method = `${defaultPath}order.attachment.value.get`
// return http({
// url: 'rop-scrm-equity/router',
// method: 'GET',
// data: params,
// sign: true
// })
// }
const getAllOrderValueApi = params => {
params.method = `${defaultPath}order.attachments.value.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -203,6 +234,30 @@ const getOrderValueApi = params => { ...@@ -203,6 +234,30 @@ const getOrderValueApi = params => {
}) })
} }
// 校验
const verifyOrderApi = params => {
params.method = 'scrm.api.equity.service.order.verify'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 车架号
const checkOrderApi = params => {
params.method = 'scrm.api.equity.service.order.check'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 更新套菜附件属性 // 更新套菜附件属性
const updateOrderApi = params => { const updateOrderApi = params => {
params.method = `${orderPath}attachment.update` params.method = `${orderPath}attachment.update`
...@@ -228,7 +283,7 @@ const uploadImgApi = params => { ...@@ -228,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',
...@@ -238,4 +293,61 @@ const backOrderApi = params => { ...@@ -238,4 +293,61 @@ const backOrderApi = params => {
}) })
} }
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, updateHotlineApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getOrderValueApi, updateOrderApi, uploadImgApi, backOrderApi }
\ No newline at end of file \ No newline at end of file
// 审核
const aduitOrderApi = params => {
params.method = `${orderPath}aduit`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 是否开通配置
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
})
}
// 获取特别约定
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 merchantInfo = params => {
params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
// 卡号---获取期限
const dateBycarNo = params => {
params.method = 'scrm.api.equity.service.cfc.get.by.seqno'
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, merchantInfo, dateBycarNo }
\ No newline at end of file \ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getWarehousListApi = params => {
params.method = `${defaultPath}goods.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
const auditGoodApi = params => {
params.method = `${defaultPath}audit.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getGoodInfoApi = params => {
params.method = `${defaultPath}get.good.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const getGoodGroupInfoApi = params => {
params.method = `${defaultPath}get.good.group.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const insertGoodApi = params => {
params.method = `${defaultPath}insert.good`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const insertGoodGroupApi = params => {
params.method = `${defaultPath}insert.good.group`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteGoodApi = params => {
params.method = `${defaultPath}delete.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export { getWarehousListApi, auditGoodApi, getGoodInfoApi, getGoodGroupInfoApi, insertGoodApi, insertGoodGroupApi, deleteGoodApi }
import { http } from '@/main'
const converterApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
export { converterApi }
\ No newline at end of file \ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.service.package.'
const orderPath = 'scrm.api.equity.service.order.'
const getUserInfoApi = params => {
params.method = 'scrm.api.equity.common.merchant.current.det'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getCountNoDataApi = params => {
params.method = `${defaultPath}count.unDataEffective`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getListApi = params => {
params.method = `${defaultPath}order.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取门店
const getMerchantApi = params => {
params.method = 'scrm.api.equity.common.under.merchant.list.det'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getExportApi = params => {
params.method = `${defaultPath}order.export.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 打印合同
const getPriteApi = params => {
params.method = `${defaultPath}order.prite`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarBrandListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getCarBrandList'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarChildListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarSeriesListApi = params => {
params.method = 'scrm.api.carlife.common.getCarSeriesList'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarTypeListApi = params => {
params.method = 'scrm.api.carlife.common.getCarTypeList'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getDefaultCarbrandApi = params => {
params.method = 'scrm.api.equity.service.merchant.vehicle.default.detail'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateHotlineApi = params => {
params.method = `${defaultPath}merchant.hotline.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateCarBrandApi = params => {
params.method = 'scrm.api.equity.service.merchant.vehicle.default.insert.or.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取产品名称(套餐名称)
const getProListApi = params => {
params.method = `${defaultPath}select.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取无忧卡套餐列表
const getPackageListApi = params => {
params.method = `${defaultPath}list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
const getEquityApi = params => {
params.method = `${orderPath}detail`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const updateEquityApi = params => {
params.method = `${orderPath}insert.or.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取合同号
const createCodeApi = params => {
params.method = `${orderPath}code.create`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取套菜附件属性
const getOrderAttrApi = params => {
params.method = `${defaultPath}order.attachment.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取套菜附件属性
// const getOrderValueApi = params => {
// params.method = `${defaultPath}order.attachment.value.get`
// return http({
// url: 'rop-scrm-equity/router',
// method: 'GET',
// data: params,
// sign: true
// })
// }
const getAllOrderValueApi = params => {
params.method = `${defaultPath}order.attachments.value.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 校验
const verifyOrderApi = params => {
params.method = 'scrm.api.equity.service.order.verify'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 车架号
const checkOrderApi = params => {
params.method = 'scrm.api.equity.service.order.check'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 更新套菜附件属性
const updateOrderApi = params => {
params.method = `${orderPath}attachment.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const uploadImgApi = params => {
params.method = 'scrm.api.equity.common.upload.image'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// 退保
const backOrderApi = params => {
params.method = `${orderPath}charge.back`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 审核
const aduitOrderApi = params => {
params.method = `${orderPath}aduit`
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 }
\ No newline at end of file \ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getMerberList = params => {
params.method = `${defaultPath}get.member.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
export { getMerberList }
\ No newline at end of file \ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.'
const getConfigList = params => {
params.method = `${defaultPath}service.merchant.config.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const openConfigs = params => {
params.method = `${defaultPath}service.merchant.config.batch.open`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
const closeConfigs = params => {
params.method = `${defaultPath}service.merchant.config.batch.close`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
// 跳转后获取配置
const getConfig = params => {
params.method = `${defaultPath}service.merchant.config.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
// 配置导出
const exportConfig = params => {
params.method = `${defaultPath}service.merchant.config.export`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
//修改配置
const modifyConfig = params => {
params.method = `${defaultPath}service.merchant.config.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
//创建配置
const addConfig = params => {
params.method = `${defaultPath}service.merchant.config.create`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
//分页获取商户配置
const getStoreConfig = params => {
params.method = `${defaultPath}service.merchant.config.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
//查询商户配置
const selStoreConfig = params => {
params.method = `scrm.api.equity.service.merchant.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
export default {
getConfigList,
openConfigs,
closeConfigs,
getConfig,
exportConfig,
modifyConfig,
getStoreConfig,
addConfig,
selStoreConfig
}
import { http } from '@/main'
const getRulesData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
return method
}
const getRulesListData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord'
return method
}
// 客户评价
const guestComTotal = () => {
let method = 'dj.api.smartcarlife.orderCommentReport.total'
return method
}
// 是否开通精品升级
const isOpenUpgrade = () => {
let method = 'dj.api.serviceMerchant.isOpenSmartcarlife'
return method
}
// 订单统计
const orderTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.total'
return method
}
// 券统计
const couponsTotal = () => {
let method = 'dj.api.smartcarlife.couponReport.total'
return method
}
// 按天统计券
const couponsTotalByDay = () => {
let method = 'dj.api.smartcarlife.couponReport.countByDate'
return method
}
// 按天统计金额
const moneyTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByDay'
return method
}
// 精品礼券订单查询
const findCoupons = () => {
let method = 'dj.api.life.customer.coupon.listFor4S'
return method
}
// 精品礼券升级订单查询
const findupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return method
}
// 查看礼券
const checkCoupons = () => {
let method = 'dj.api.smartcarlife.merchant.coupon.page'
return method
}
// 我的分账
const mydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page'
return method
}
// 精品礼券导出
const exportCoupons = () => {
let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
return method
}
// 精品礼券升级订单导出
const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method
}
// 我的分账导出
const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export'
return method
}
// 获取发券人/转化人列表
const getEmployName = () => {
let method = 'dj.api.life.customer.coupon.distinctColum'
return method
}
// 查看明细
const checkDetail = () => {
let method = 'dj.api.smartcarlife.goodsOrder.detail'
return method
}
// 集团--订单统计
const orderTotalOfJT = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
return method
}
// 集团--精品升级订单统计数
const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method
}
// 集团--我的分账统计数
const myAccountTotalNumOfJT = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page.count'
return method
}
// 获取4s店列表
const get4SList = params => {
params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
// 服务介绍
const introConpute = params => {
params.method = `scrm.api.boutiquecoupon.config.getModelParams`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取商户列表
const getMerchantList = params => {
params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export {
getRulesData,
getRulesListData,
guestComTotal,
isOpenUpgrade,
orderTotal,
couponsTotal,
couponsTotalByDay,
moneyTotal,
findCoupons,
findupGradeOrder,
checkCoupons,
mydivision,
exportMydivision,
exportUpgrade,
exportCoupons,
getEmployName,
checkDetail,
orderTotalOfJT,
orderTotalNumOfJT,
myAccountTotalNumOfJT,
get4SList,
introConpute,
getMerchantList
}
\ No newline at end of file \ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.equity.'
const getWorryDetailList = params => {
params.method = `${defaultPath}service.cfc.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const getdetailTotal = params => {
params.method = `${defaultPath}service.cfc.statistics.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const selWorryDetailList = params => {
params.method = `${defaultPath}service.cfc.get.by.seqno`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
})
}
const modWorryDetailList = params => {
params.method = `${defaultPath}service.cfc.update`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
export default {
getWorryDetailList,
getdetailTotal,
selWorryDetailList,
modWorryDetailList
}
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
} }
.equity-wrap .contain { .equity-wrap .contain {
background: #FFFFFF; background: #FFFFFF;
margin: 0 20px 20px 40px; margin: 0 20px 20px 40px;
......
<template>
<div class="qr-code-components">
<div :style="[{bottom:bottom+'px'}]" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div>
</div>
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">{{phone}}</span>
</div>
</div>
</template>
<script>
export default {
name: '',
props: {
bottom: {
type: Number,
default: 64
},
codeUrl:{
type:String,
default:'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
phone:{
type:String,
default:'189 0000 1234'
}
},
data() {
return {
show: false
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.qr-code-components {
.left_code {
position: fixed;
right: 77px;
bottom: 64px;
width: 144px;
height: 201px;
background: #ffffff;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 124px;
height: 124px;
}
> span {
line-height: 20px;
}
}
.right_btn {
position: fixed;
right: 20px;
bottom: 64px;
cursor: pointer;
width: 52px;
height: 201px;
background: #5850ff;
border-radius: 4px;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text {
width: 14px;
line-height: 20px;
font-size: 14px;
font-weight: 400;
color: #ffffff;
}
}
}
</style>
<template>
<glsx-dialog title="选择商户" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<slot></slot>
<el-row>
<el-col :span="12">
<el-table ref="seletingTable" class="table hightline" :data="selectingData" height="464px" @select="handleChange" @select-all="handleAll">
<el-table-column fixed="left" width="5">
<template slot-scope="scope">
<span :scope="scope"></span>
</template>
</el-table-column>
<el-table-column type="selection" width="55" align="center" :selectable="selectable"></el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" :page-size="pageSize" layout="total, prev, pager, next" :total="total"></el-pagination>
</el-col>
<el-col :span="12">
<el-table :data="selectedData" class="table hightline" height="464px">
<el-table-column fixed="left" width="5">
<template slot-scope="scope">
<span :scope="scope"></span>
</template>
</el-table-column>
<el-table-column prop="merchantName" label="商户名称" align="center"></el-table-column>
<el-table-column label="删除" align="center" width="50">
<template slot-scope="scope">
<el-button style="padding: 0" class="el-icon-delete" @click="handleDelete(scope.row)" type="text"></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
</glsx-dialog>
</template>
<script>
import glsxDialog from '@/components/glsx-dialog'
export default {
name: 'relateStoreDialog',
data() {
return {
merchantIds: [],
selectedData: [],
selectingData: [],
// needTip: ['editProduct'],
// 分页
total: 0,
pageNum: 1,
pageSize: 20
}
},
props: {
relateStoreVisible: {
type: Boolean,
default: false
},
// 页面来源
// sourcePage: {
// type: String,
// default: ''
// },
storeApi: {
type: Function,
default: () => {}
},
storeSelected: {
type: Array,
default: () => []
},
storeSearchForm: {
type: Object,
default: () => {}
}
// 去掉表格中某些字段
// noTableField: {
// type: Array,
// default: () => []
// }
},
components: {
glsxDialog
},
mounted() {
this.selectedData = this.storeSelected
this.selectedData.forEach(item => {
item.merchantNo = item.merchantId ? item.merchantId + '' : item.merchantNo
})
this.getSelectingList()
},
methods: {
selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
return isSelect
},
recoverySelection() {
var exitIds = this.selectedData.map(item => item.merchantNo + '')
console.log(this.selectingData)
this.selectingData.forEach(item => {
if (exitIds.includes(item.merchantNo + '')) {
this.$refs.seletingTable.toggleRowSelection(item, true)
} else {
this.$refs.seletingTable.toggleRowSelection(item, false)
}
})
},
getSelectingList() {
var params = JSON.parse(JSON.stringify(this.storeSearchForm))
if (this.storeSearchForm.select == 1) {
params.merchantName = this.storeSearchForm.selectInput
params.merchantId = ''
} else {
params.merchantId = this.storeSearchForm.selectInput
params.merchantName = ''
}
this.storeApi({
...params,
pageNum: this.pageNum,
currentPage: this.pageNum,
pageSize: this.pageSize
}).then(res => {
console.log(res)
if(res.code == '33'){
this.$message.error('请正确输入商户号')
}
this.selectingData = res.data.list
for(var a= 0;a<this.selectingData.length;a++){
this.selectingData[a].merchantNo = this.selectingData[a].merchantId + ''
}
this.total = res.data.total
this.$nextTick(() => {
this.recoverySelection()
})
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find(item => item.merchantNo === row.merchantNo)
addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo))
},
handleAll(selection) {
console.log(selection,'112112');
// this.selectedData=[]
this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo)
// var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && isExit === -1) {
console.log(item)
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)
this.recoverySelection()
},
handleCurrentChange(val) {
this.pageNum = val
this.getSelectingList()
},
handleRelateStoreConfirm() {
if (!this.selectedData.length) {
this.$message({
message: '请选择关联门店',
type: 'warning',
showClose: true,
customClass: 'message-Z-zinde'
})
return true
}
this.$emit('handleRelateStoreConfirm', this.selectedData)
},
handleRelateStoreClose() {
this.$emit('handleRelateStoreClose')
}
}
}
</script>
<style>
.relateStore .table {
margin: 0 auto 20px !important;
width: 98%;
}
/* .service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell {
line-height: 26px !important;
} */
.service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important;
}
.relateStore .red {
color: red;
}
.relateStore .tip-icon {
position: absolute;
display: inline-block;
height: 10px;
width: 10px;
line-height: 10px;
color: #ffffff;
background-color: red;
border: 1px solid red;
border-radius: 50%;
cursor: pointer;
font-size: 6px;
margin-left: 2px;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -19,8 +19,8 @@ module.exports = { ...@@ -19,8 +19,8 @@ module.exports = {
}, },
request: { request: {
// baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/', // baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/',
baseURL: 'http://scrm.test.glsx.com.cn/', // baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.94:8115/rop-scrm-live/router', baseURL: 'http://192.168.2.60:7226/rop-scrm-equity/router',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -40,5 +40,29 @@ const staticRoutes = Object.freeze([{ ...@@ -40,5 +40,29 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/config/addConfig.vue`], resolve), component: resolve => require([`@/views/config/addConfig.vue`], resolve),
meta: {} meta: {}
}, },
{
name: 'editEquity',
path: '/beforeSale/editEquity',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
},
{
name: 'equityList',
path: '/beforeSale/equityList',
component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve),
meta: {}
},
{
name: 'pdfDialog',
path: '/beforeSale/pdfDialog',
component: resolve => require([`@/views/beforeSale/pdfDialog.vue`], resolve),
meta: {}
},
{
name: 'addConfig',
path: '/beforeSale/serviceSet',
component: resolve => require([`@/views/beforeSale/serviceSet.vue`], resolve),
meta: {}
},
]) ])
export default staticRoutes export default staticRoutes
\ No newline at end of file \ No newline at end of file
...@@ -10,10 +10,10 @@ let routes = [] ...@@ -10,10 +10,10 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable)
// Vue.use(Table) // Vue.use(Table)
// Vue.use(TableColumn) // Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { 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.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -22,7 +22,9 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -22,7 +22,9 @@ 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.$setGlobalState = globalState.actions.setGlobalState Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, 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.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
......
<!-- 权益订单 -->
<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
}
localStorage.setItem('preSetStatus', this.status)
})
}
}
}
</script>
<style>
</style>
\ No newline at end of file \ No newline at end of file
<!-- 权益订单 --> <!-- 权益订单 -->
<template> <template>
<div class="equity"> <div class="equity">
<el-tabs v-model="activeName" @tab-click="handleClick"> <!-- <open v-if="status==1"></open>
<el-tab-pane label="其他权益订单" name="equityList"> <not-open v-if="status==2"></not-open> -->
<equity-list v-if="activeName == 'equityList'"></equity-list>
</el-tab-pane>
<el-tab-pane label="店面服务设置" name="serviceSet">
<service-set v-if="activeName == 'serviceSet'"></service-set>
</el-tab-pane>
</el-tabs>
</div> </div>
</template> </template>
<script> <script>
import equityList from './equityList' // import equityList from './equityList.vue'
import serviceSet from './serviceSet' // 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() {
components: { this.isOpenSettin()
equityList,
serviceSet
}, },
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>
.equity .el-tabs__nav-wrap:after { </style>
opacity: 0;
}
.equity .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
font-weight: 400;
font-size: 16px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
<span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div>
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
</div>
</div>
<div class="content_two flex_scb">
<template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" />
<div class="box_title">{{ item.title }}</div>
</div>
</template>
</div>
<div class="label_title">无忧案例</div>
<div class="content_three">
<template v-for="(item, index) in localList2">
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div>
</div>
<div class="right_wrap">
<img :src="item.img" />
</div>
</div>
</template>
</div>
</div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
components: {
qrCode
},
data() {
return {
videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png',
phone:'134 8079 2980',
localList: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png',
title: '车生活权益、养车权益、自店权益'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_2.png',
title: '客户线上化、赚钱锁客促返厂'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_3.png',
title: '权益提单一键配置续费策略、提升门店权益续费增营收'
}
],
localList2: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_4.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case1.png',
title: '碰撞维修无忧案例',
desc1: '2020年12月3日,张先生驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废;张先生购车环节选购了“车载硬件+碰撞维修无忧套餐”。',
desc2: '通过嘀加SCRM平台触发预警推送消息到门店,门店及时联系车主进行救援并送修,为门店带来40000元回厂产值。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_5.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case2.png',
title: '整车全损无忧案例',
desc1: '2021年1月9日,李女生驾驶奔驰C级途径湖南张家界市出差,当晚留宿在朋友家小区,隔天早饭后想驾车回公司,发现车辆被盗了,报警后一直未找到爱车。李女士购车环节选购了“车载硬件+整车全损无忧套餐”。',
desc2: '李女士发起补偿申请,经核定,根据权益服务合同协议,最终合计补偿李女士365800元。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_6.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case3.png',
title: '轮胎置换无忧案例',
desc1: '2021年6月15日,赵先生驾驶本田雅阁在路上正常行驶,右侧前轮胎突然出现问题,因质量问题导致无法正常行驶,只好送4S店换胎。赵先生购车环节选购了4S店推荐的“轮胎置换无忧套餐”。',
desc2: '赵先生发起补偿申请,经核定,根据权益服务合同协议,补偿赵先生600元费用。'
}
]
}
},
mounted() {
// let [href] = window.location.href.split('/#/')
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.code = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
this.phone = '137 6013 7906'
}
},
methods: {
handleClose() {
this.videoShow = false
}
}
}
</script>
<style lang="scss" scoped>
.introduct_container {
margin-top: 17px;
}
.top_play_wrap {
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 50px;
.text_wrap {
box-sizing: border-box;
padding-left: 50px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
> span {
font-size: 16px;
font-weight: 400;
color: #666666;
}
.maxTitle {
font-size: 42px;
font-weight: 600;
color: #000000;
line-height: 60px;
}
.midTitle {
font-size: 24px;
font-weight: 600;
color: #000000;
line-height: 33px;
margin: 15px 0;
}
}
.bg_wrap {
width: 480px;
height: 270px;
position: relative;
.max_icon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.play_icon {
position: relative;
z-index: 2;
cursor: pointer;
}
}
}
.mid_wrapper {
background: #ffffff;
margin-top: 20px;
box-sizing: border-box;
padding: 20px;
.content_one {
box-sizing: border-box;
padding: 20px 0 14px 0;
border-bottom: 1px solid #e8e8e8;
.title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
position: relative;
}
.left {
width: 376px;
> i {
color: #5850ff;
width: 6px;
height: 6px;
position: absolute;
bottom: -11px;
left: -7px;
}
}
.right {
// width: calc(100% - 376px);
.icon_point {
width: 7px;
height: 7px;
background: #5850ff;
border-radius: 50%;
position: absolute;
bottom: -18px;
left: 0px;
}
}
}
.content_two {
margin-top: 15px;
.box_item_wrap {
width: 32%;
height: 80px;
background: #f7f6fd;
box-sizing: border-box;
padding: 19px 20px;
> img {
width: 42px;
height: 42px;
}
.box_title {
width: calc(100% - 82px);
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 20px;
margin-left: 10px;
}
}
}
.label_title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
margin-top: 40px;
margin-bottom: 10px;
}
.content_three {
.box_new_item_wrapper {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 20px 40px;
border: 1px solid #e8e8e8;
.left_wrap {
width: calc(100% - 330px);
height: 100%;
box-sizing: border-box;
// padding-right: 100px;
.image_wrap {
width: 42px;
height: 42px;
}
.new_title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
margin: 15px 0;
}
.con_wrap {
display: flex;
.point {
margin-right: 5px;
height: 17px;
width: 5px;
.icon_po {
background: #5850ff;
width: 5px;
height: 5px;
background: #5850ff;
border-radius: 50%;
}
}
.point_content {
width: calc(100% - 111px);
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
}
}
.right_wrap {
width: 330px;
}
}
.noborder {
border-top: 0;
border-bottom: 0;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 查看详情 --> <!-- 查看详情 -->
<template> <template>
<div class="pdfDialog"> <div class="pdfDialog">
<el-dialog <el-dialog :visible.sync="isVisible" :title="title" :before-close="handleClose" :close-on-click-modal="false" width="860px">
:visible.sync="isVisible"
:title="title"
:before-close="handleClose"
:close-on-click-modal="false"
width="860px"
>
<iframe width="100%" height="700px" scrolling="yes" frameborder="0" :src="pdfUrl"></iframe> <iframe width="100%" height="700px" scrolling="yes" frameborder="0" :src="pdfUrl"></iframe>
</el-dialog> </el-dialog>
</div> </div>
...@@ -17,8 +11,7 @@ ...@@ -17,8 +11,7 @@
export default { export default {
name: 'pdfDialog', name: 'pdfDialog',
data() { data() {
return { return {}
}
}, },
props: { props: {
...@@ -38,21 +31,20 @@ export default { ...@@ -38,21 +31,20 @@ export default {
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.pdfDialog{ .pdfDialog {
.el-dialog__header { .el-dialog__header {
padding: 10px 16px 4px; padding: 10px 16px 4px;
background-color: #141516; background-color: #141516;
.el-dialog__title{ .el-dialog__title {
color: #fff; color: #fff;
font-size: 16px; font-size: 16px;
} }
} }
.el-dialog__body { .el-dialog__body {
padding: 0; padding: 0;
background-color: #202223 background-color: #202223;
} }
} }
</style> </style>
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<template> <template>
<div class="before-sale edit-equity"> <div class="edit-equity">
<div class="container edit-container"> <template v-if="showPage == 1">
<p class="edit-title">{{ title }}</p> <div class="edit-container">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <p class="edit-title">{{ title }}</p>
</div> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<div class="footer" :style="{ width: '100%' }"> <template slot="vehicleBrandId">
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
<!-- <el-button type="default" @click="handleCancel">取消</el-button> --> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
</div>
<div
class="fixed_bottom"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
</template>
<template v-if="showPage==2">
<div class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通售前权益服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。</span>
</div>
</div> </div>
</template>
</div> </div>
</template> </template>
...@@ -20,15 +47,18 @@ export default { ...@@ -20,15 +47,18 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
isBlock: true,
title: '店面服务设置', title: '店面服务设置',
footerLeft: '0', footerLeft: '0',
footerWidth: '0', footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
editForm: { editForm: {
hotline: '' hotline: '',
vehicleBrandId: '',
vehicleSubBrandId: ''
}, },
editRule: { editRule: {
hotline: [{ required: true, message: '请输入服务热线', trigger: 'change' }] // hotline: [{ required: true, message: '请输入服务热线', trigger: 'change' }]
}, },
editFormData: [ editFormData: [
{ {
...@@ -38,7 +68,27 @@ export default { ...@@ -38,7 +68,27 @@ export default {
type: 'input', type: 'input',
maxlength: 20 maxlength: 20
} }
] ],
editFormDataCar: [
{
label: '品牌',
name: 'vehicleBrandId',
addHtml: 'vehicleBrandId'
},
{
label: '',
// label: '子品牌',
name: 'vehicleSubBrandId',
addHtml: 'vehicleSubBrandId'
}
],
// 公共数据
baseData: {
carBrandOptions: [],
carChildOptions: []
},
showPage: 0,
nodataHeight:0
} }
}, },
...@@ -46,8 +96,24 @@ export default { ...@@ -46,8 +96,24 @@ export default {
glsxCombiForm glsxCombiForm
}, },
created() {
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight *0.8
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
this.getAllVehicleBrand()
this.getCarChildList()
},
mounted() { mounted() {
this.getHotline() this.getHotline()
// this.getDefaultCarbrand()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}, },
methods: { methods: {
...@@ -56,15 +122,50 @@ export default { ...@@ -56,15 +122,50 @@ export default {
this.editForm.hotline = res this.editForm.hotline = res
}) })
}, },
getDefaultCarbrand() {
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
// console.log(res)
if (res) {
this.editForm.id = res.id
this.editForm.vehicleBrandId = res.vehicleBrandId
this.editForm.vehicleSubBrandId = res.vehicleSubBrandId
this.handleChangeBrand(this.editForm.vehicleBrandId, true)
}
})
},
// 获取品牌车型
getAllVehicleBrand(fn = () => {}) {
const params = {}
this.$apis.beforeSale.getCarBrandListApi(params).then(res => {
// console.log(res)
this.baseData.carBrandOptions = res || []
})
},
handleChangeBrand(brandId, isRecovery = false) {
!isRecovery && (this.editForm.vehicleSubBrandId = '')
this.baseData.carChildOptions = brandId ? this.allCarChildList.find(item => item.id == brandId).childs : []
},
// 获取子品牌
getCarChildList(isRecovery = false) {
this.$apis.beforeSale.getCarChildListApi({}).then(res => {
this.allCarChildList = res || []
if (isRecovery) {
this.baseData.carChildOptions = this.allCarChildList.find(item => item.id == this.editForm.vehicleBrandId).childs
}
this.getDefaultCarbrand()
})
},
handleConfirm() { handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
this.$apis.beforeSale.updateHotlineApi(params).then(res => { Promise.all([this.$apis.beforeSale.updateHotlineApi(params), this.$apis.beforeSale.updateCarBrandApi(params)]).then(([hotlineRes, carBrandRes]) => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : '操作失败', message: hotlineRes.code == '0' && carBrandRes.code == '0' ? '操作成功' : '操作失败',
type: res.code == '0' ? 'success' : 'error' type: hotlineRes.code == '0' && carBrandRes.code == '0' ? 'success' : 'error'
}) })
this.getHotline()
this.getDefaultCarbrand()
}) })
} }
}) })
...@@ -72,57 +173,62 @@ export default { ...@@ -72,57 +173,62 @@ export default {
} }
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.before-sale .container { .edit-equity {
padding: 0px 20px 20px 40px; margin-top: 17px;
width: 100%;
height: calc(100% - 108px);
}
.edit-container {
width: 100%;
height: 100%;
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);
padding: 20px;
} }
.edit-container /deep/ .el-form--inline .el-form-item {
.before-sale .edit-container { margin-right: 10px;
margin-bottom: 84px; }
/* .before-sale .edit-equity{
height: 100vh;
}
.before-sale .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.before-sale .edit-form-container { .before-sale .edit-form-container {
margin-top: 20px; margin-top: 20px;
} } */
.before-sale .txt-center { /* .before-sale .footer {
text-align: center;
}
.before-sale .footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 64px; height: 64px;
/* left: 220px; */
text-align: center; text-align: center;
line-height: 64px; line-height: 64px;
background: #ffffff; background: #ffffff;
z-index: 999; z-index: 999;
} } */
.before-sale .flex { /* .before-sale .flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.before-sale .flex-grow { .before-sale .flex-grow {
flex: 1; flex: 1;
} } */
.before-sale .edit-title { .edit-title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: 600;
height: 48px; border-bottom: 1px solid #e7eaec;
line-height: 48px; padding: 15px 20px;
border-bottom: 1px solid #E7EAEC; margin-bottom: 32px;
margin: 0 0;
} }
.before-sale .edit-sub-title { /* .before-sale .edit-sub-title {
position: relative; position: relative;
font-size: 13px; font-size: 13px;
font-weight: 700; font-weight: 700;
...@@ -132,21 +238,58 @@ export default { ...@@ -132,21 +238,58 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
padding-left: 8px; padding-left: 8px;
background-color: rgba(242, 242, 242, 1); background-color: rgba(242, 242, 242, 1);
} } */
.before-sale .message-Z-zinde { /* .before-sale .message-Z-zinde {
z-index: 3000 !important; z-index: 3000 !important;
} } */
.before-sale .txt-red { /* .before-sale .txt-red {
color: red; color: red;
} } */
.one-line-ellipsis { /* .one-line-ellipsis {
display: -webkit-box; display: -webkit-box;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} */
.fixed_bottom {
position: fixed;
width: 100%;
bottom: 0px;
height: 78px;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!