Commit dbdc0d5e by 张权

Merge branch 'master' into 'V4.39.0-0603'

Master

See merge request !13
2 parents fbb5d121 cc49135c
...@@ -4,120 +4,135 @@ const getRulesData = () => { ...@@ -4,120 +4,135 @@ const getRulesData = () => {
return method return method
} }
const getRulesListData = () => { const getRulesListData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord' let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord'
return method return method
} }
// 客户评价 // 客户评价
const guestComTotal = () => { const guestComTotal = () => {
let method = 'dj.api.smartcarlife.orderCommentReport.total' let method = 'dj.api.smartcarlife.orderCommentReport.total'
return method return method
} }
// 是否开通精品升级 // 是否开通精品升级
const isOpenUpgrade = () => { const isOpenUpgrade = () => {
let method = 'dj.api.serviceMerchant.isOpenSmartcarlife' let method = 'dj.api.serviceMerchant.isOpenSmartcarlife'
return method return method
} }
// 订单统计 const isOpenInsurance = () => {
let method = 'dj.api.serviceMerchant.isOpenScene0'
return method
}
// 订单统计
const orderTotal = () => { const orderTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.total' let method = 'dj.api.smartcarlife.orderReport.total'
return method return method
} }
// 券统计 // 券统计
const couponsTotal = () => { const couponsTotal = () => {
let method = 'dj.api.smartcarlife.couponReport.total' let method = 'dj.api.smartcarlife.couponReport.total'
return method return method
} }
// 按天统计券 // 按天统计券
const couponsTotalByDay = () => { const couponsTotalByDay = () => {
let method = 'dj.api.smartcarlife.couponReport.countByDate' let method = 'dj.api.smartcarlife.couponReport.countByDate'
return method return method
} }
// 按天统计金额 // 按天统计金额
const moneyTotal = () => { const moneyTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByDay' let method = 'dj.api.smartcarlife.orderReport.totalByDay'
return method return method
} }
// 精品礼券订单查询 // 精品礼券订单查询
const findCoupons = () => { const findCoupons = () => {
let method = 'dj.api.life.customer.coupon.listFor4S' let method = 'dj.api.life.customer.coupon.listFor4S'
return method return method
} }
// 精品礼券升级订单查询 // 精品礼券升级订单查询
const findupGradeOrder = () => { const findupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page' let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return method return method
} }
// 查看礼券
const newFindupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.pageByMainOrder'
return method
}
// 查看礼券
const checkCoupons = () => { const checkCoupons = () => {
let method = 'dj.api.smartcarlife.merchant.coupon.page' let method = 'dj.api.smartcarlife.merchant.coupon.page'
return method return method
} }
// 我的分账 // 我的分账
const mydivision = () => { const mydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page' let method = 'dj.smartcarlife.api.shop.order.division.page'
return method return method
} }
// 精品礼券导出 // 精品礼券导出
const exportCoupons = () => { const exportCoupons = () => {
let method = 'dj.api.life.customer.coupon.exportExcelListFor4S' let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
return method return method
} }
// 精品礼券升级订单导出 // 精品礼券升级订单导出
const exportUpgrade = () => { const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export' let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method return method
} }
// 我的分账导出 // 延保订单导出
const exportInsurance = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.exportNew'
return method
}
// 我的分账导出
const exportMydivision = () => { const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export' let method = 'dj.smartcarlife.api.shop.order.division.export'
return method return method
} }
// 获取发券人/转化人列表 // 获取发券人/转化人列表
const getEmployName = () => { const getEmployName = () => {
let method = 'dj.api.life.customer.coupon.distinctColum' let method = 'dj.api.life.customer.coupon.distinctColum'
return method return method
} }
// 查看明细 // 查看明细
const checkDetail = () => { const checkDetail = () => {
let method = 'dj.api.smartcarlife.goodsOrder.detail' let method = 'dj.api.smartcarlife.goodsOrder.detail'
return method return method
} }
// 集团--订单统计 // 集团--订单统计
const orderTotalOfJT = () => { const orderTotalOfJT = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByMerchant' let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
return method return method
} }
// 集团--精品升级订单统计数 // 集团--精品升级订单统计数
const orderTotalNumOfJT = () => { const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count' let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method return method
} }
// 集团--我的分账统计数 // 集团--我的分账统计数
const myAccountTotalNumOfJT = () => { const myAccountTotalNumOfJT = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page.count' let method = 'dj.smartcarlife.api.shop.order.division.page.count'
return method return method
} }
// 获取4s店列表 // 获取4s店列表
const get4SList = params => { const get4SList = params => {
params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant` params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
return http({ return http({
url: 'rop-scrm-carlife/router', url: 'rop-scrm-carlife/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
// 服务介绍 // 服务介绍
const introConpute = params => { const introConpute = params => {
params.method = `scrm.api.boutiquecoupon.config.getModelParams` params.method = `scrm.api.boutiquecoupon.config.getModelParams`
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
// 获取商户列表 // 获取商户列表
const getMerchantList = params => { const getMerchantList = params => {
params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list` params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
return http({ return http({
...@@ -127,28 +142,4 @@ const getMerchantList = params => { ...@@ -127,28 +142,4 @@ const getMerchantList = params => {
sign: true 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
export { getRulesData, getRulesListData, guestComTotal, isOpenUpgrade, isOpenInsurance, orderTotal, couponsTotal, couponsTotalByDay, moneyTotal, findCoupons, findupGradeOrder, newFindupGradeOrder, checkCoupons, mydivision, exportMydivision, exportUpgrade, exportInsurance, exportCoupons, getEmployName, checkDetail, orderTotalOfJT, orderTotalNumOfJT, myAccountTotalNumOfJT, get4SList, introConpute, getMerchantList }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="order-container"> <div class="order-container">
<div class="tip_wrap flex_scb"> <div class="tip_wrap flex_scb">
<div class="tip_text"> <div class="tip_text">
<p class="h14_title">合作了精品升级业务且开启了自动分账功能的商户,在“线上分账”列表中可查看分账明细,未开启线上自动分账或者因各种</p> <p class="h14_title">合作了{{ pageName == 'insurance' ? '会员权益延保' : '精品升级' }}业务且开启了自动分账功能的商户,在“线上分账”列表中可查看分账明细,未开启线上自动分账或者因各种</p>
<div style="height: 10px"></div> <div style="height: 10px"></div>
<p class="h14_title">其他因素导致未分账成功的,在线下对账中查看,统一下个月月初结算上个月订单。</p> <p class="h14_title">其他因素导致未分账成功的,在线下对账中查看,统一下个月月初结算上个月订单。</p>
</div> </div>
...@@ -65,12 +65,13 @@ const SERCH_GOODSNAME = { ...@@ -65,12 +65,13 @@ const SERCH_GOODSNAME = {
type: 'input', type: 'input',
isClear: true isClear: true
} }
const DISABLE_MERCHANTID =[44191564,44191528,44191536,44184606,44209510] const DISABLE_MERCHANTID = [44191564, 44191528, 44191536, 44184606, 44209510]
export default { export default {
name: '', name: '',
props: { props: {
list: Array list: Array
}, },
inject: ['pageName'],
data() { data() {
return { return {
refreshKey1: new Date(), refreshKey1: new Date(),
...@@ -316,7 +317,7 @@ export default { ...@@ -316,7 +317,7 @@ export default {
created() { created() {
this.tableParams = this.tableParams2 this.tableParams = this.tableParams2
const { session } = this.$globalState const { session } = this.$globalState
this.merchantId = session.merchantId this.merchantId = session.merchantId
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
this.isAdmin = session.admin this.isAdmin = session.admin
// 1.工厂 2省代 3市代 4门店 // 1.工厂 2省代 3市代 4门店
...@@ -443,7 +444,7 @@ export default { ...@@ -443,7 +444,7 @@ export default {
let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00') let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59') let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59')
const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId)) const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
if(!ISEXIT){ if (!ISEXIT) {
params.paySuccessDateStartDate = startdate params.paySuccessDateStartDate = startdate
params.paySuccessDateEndDate = endDate params.paySuccessDateEndDate = endDate
} }
...@@ -533,10 +534,11 @@ export default { ...@@ -533,10 +534,11 @@ export default {
currentPage: this.$refs[`table${this.curDivisionType}`].page.pageNum, currentPage: this.$refs[`table${this.curDivisionType}`].page.pageNum,
pageSize: this.$refs[`table${this.curDivisionType}`].page.pageSize, pageSize: this.$refs[`table${this.curDivisionType}`].page.pageSize,
divisionType: this.curDivisionType, divisionType: this.curDivisionType,
...this.newHttpParam ...this.newHttpParam,
sceneType: this.pageName == 'insurance' ? 0 : 1
} }
converterApi(para).then(res => { converterApi(para).then(res => {
res.list = res&&res.list?res.list:[] res.list = res && res.list ? res.list : []
res.list.map(item => { res.list.map(item => {
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账' item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.successDate = item.paySuccessDate ? utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') : '--' item.successDate = item.paySuccessDate ? utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') : '--'
...@@ -586,7 +588,8 @@ export default { ...@@ -586,7 +588,8 @@ export default {
let method = myAccountTotalNumOfJT() let method = myAccountTotalNumOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
...params ...params,
sceneType: this.pageName == 'insurance' ? 0 : 1
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.mytotalNumData = res this.mytotalNumData = res
...@@ -598,7 +601,8 @@ export default { ...@@ -598,7 +601,8 @@ export default {
routerMethod: method, routerMethod: method,
currentPage: this.$refs[`table${this.curDivisionType}`].page.pageNum, currentPage: this.$refs[`table${this.curDivisionType}`].page.pageNum,
pageSize: this.$refs[`table${this.curDivisionType}`].page.pageSize, pageSize: this.$refs[`table${this.curDivisionType}`].page.pageSize,
...this.httpParam ...this.httpParam,
sceneType: this.pageName == 'insurance' ? 0 : 1
} }
converterApi(para).then(res => { converterApi(para).then(res => {
let tempaa = utils.getExplorer() let tempaa = utils.getExplorer()
......
...@@ -141,6 +141,7 @@ import util from '../../util/util' ...@@ -141,6 +141,7 @@ import util from '../../util/util'
// const openDdate = JSON.parse(localStorage.getItem('openInfo')) // const openDdate = JSON.parse(localStorage.getItem('openInfo'))
export default { export default {
name: '', name: '',
inject: ['pageName'],
components: { components: {
funnel, funnel,
'bar-chart': bar, 'bar-chart': bar,
...@@ -161,7 +162,10 @@ export default { ...@@ -161,7 +162,10 @@ export default {
dateplaceholder: '选择日期', dateplaceholder: '选择日期',
showMore: true, showMore: true,
// tabList: ['精品升级订单', '我的分账'], // tabList: ['精品升级订单', '我的分账'],
tabList: [{name:'精品升级订单',conId:'first'},{name:'我的分账',conId:'second'}], tabList: [
{ name: '精品升级订单', conId: 'first' },
{ name: '我的分账', conId: 'second' }
],
// tabList: ['精品礼券领取订单', '精品升级订单'], // tabList: ['精品礼券领取订单', '精品升级订单'],
curTabIndex: 'first', curTabIndex: 'first',
customName: '', customName: '',
...@@ -186,8 +190,17 @@ export default { ...@@ -186,8 +190,17 @@ export default {
created() { created() {
const { session } = this.$globalState const { session } = this.$globalState
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
if (this.pageName == 'insurance') {
this.tabList = [
{ name: '订单列表', conId: 'first' },
{ name: '我的分账', conId: 'second' }
]
}
if (session.accountLevel != 4) { if (session.accountLevel != 4) {
this.tabList = [{name:'订单明细',conId:'first'},{name:'分账明细',conId:'second'}] this.tabList = [
{ name: '订单明细', conId: 'first' },
{ name: '分账明细', conId: 'second' }
]
// this.tabList = ['订单明细'] // this.tabList = ['订单明细']
// this.toGet4SStore() // this.toGet4SStore()
} }
...@@ -391,7 +404,7 @@ export default { ...@@ -391,7 +404,7 @@ export default {
.new_tab_wrap { .new_tab_wrap {
margin-top: 8px; margin-top: 8px;
margin-bottom: 16px; margin-bottom: 16px;
/deep/ .el-tabs__item{ /deep/ .el-tabs__item {
font-size: 16px !important; font-size: 16px !important;
} }
} }
......
...@@ -5,29 +5,39 @@ ...@@ -5,29 +5,39 @@
<div class="text">该业务场景的优势介绍可点击</div> <div class="text">该业务场景的优势介绍可点击</div>
<div @click="toIntroductPage" class="btn_text">去查看</div> <div @click="toIntroductPage" class="btn_text">去查看</div>
</div> </div>
<not-open-con v-if="openType == 0"></not-open-con> <template v-if="!openType">
<not-open-con v-if="pageName != 'insurance'"></not-open-con>
<warranty v-else></warranty>
</template>
<open-con v-if="openType == 1"></open-con> <open-con v-if="openType == 1"></open-con>
</div> </div>
</template> </template>
<script> <script>
import notOpenCon from './upgradeIntro.vue' import notOpenCon from './upgradeIntro.vue'
import warranty from '@/views/publicity/warranty.vue'
import openCon from './open.vue' import openCon from './open.vue'
import { isOpenUpgrade } from '../../api/modules/rules' import { isOpenUpgrade, isOpenInsurance } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter' import { converterApi } from '../../api/modules/converter'
export default { export default {
name: 'index', name: 'index',
components: { components: {
'not-open-con': notOpenCon, 'not-open-con': notOpenCon,
'open-con': openCon 'open-con': openCon,
warranty
}, },
inject: ['pageName'],
data() { data() {
return { return {
openType: 2 // 0未开通 1已开通 openType: 2 // 0未开通 1已开通
} }
}, },
created() { created() {
this.judgeOpen() if (this.pageName == 'insurance') {
this.judgeShowInsurance()
} else {
this.judgeOpen()
}
// if(localStorage.getItem('openInfo')){ // if(localStorage.getItem('openInfo')){
// let info = JSON.parse(localStorage.getItem('openInfo')) // let info = JSON.parse(localStorage.getItem('openInfo'))
// this.openType = info.open // this.openType = info.open
...@@ -60,9 +70,29 @@ export default { ...@@ -60,9 +70,29 @@ export default {
loading.close() loading.close()
}) })
}, },
judgeShowInsurance() {
let method = isOpenInsurance()
let para = {
routerMethod: method
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
converterApi(para)
.then(res => {
this.openType = res
})
.finally(end => {
loading.close()
})
},
toIntroductPage() { toIntroductPage() {
const title = '业务介绍' const title = '业务介绍'
this.$router.push({ path: '/inSale/upgradeIntro', query: { $title: title } }) const pageUrl = this.pageName == 'insurance' ? '/publicity/warranty' : '/inSale/upgradeIntro'
this.$router.push({ path: pageUrl, query: { $title: title } })
} }
} }
} }
......
<template>
<div>
<upgrade></upgrade>
</div>
</template>
<script>
import upgrade from '@/views/inSale/upgrade.vue'
export default {
name: 'index',
components: {
upgrade: upgrade
},
provide() {
return {
pageName: 'insurance'
}
},
data() {
return {}
},
created() {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!