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