Commit e2cac335 by cwq0219
2 parents 0e059011 6f6de6f2
...@@ -3673,6 +3673,11 @@ ...@@ -3673,6 +3673,11 @@
"assert-plus": "^1.0.0" "assert-plus": "^1.0.0"
} }
}, },
"dayjs": {
"version": "1.10.7",
"resolved": "https://registry.nlark.com/dayjs/download/dayjs-1.10.7.tgz",
"integrity": "sha1-LPX5Gt0oEWdIRAhmoKHSbzps5Gg="
},
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
this.initTIme() this.initTIme()
}, },
methods: { methods: {
getOptions() { getOptions(len) {
var chartDom = document.getElementById(this.echartId) var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var labelOption = { var labelOption = {
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
start: 0, //默认为0 start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100 end: 100 - 1500 / 31, //默认为100
type: 'slider', type: 'slider',
show: true, show: len>5?true:false,
xAxisIndex: [0], xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小 handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 1, //组件高度 height: 1, //组件高度
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate) // let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -174,7 +175,7 @@ export default { ...@@ -174,7 +175,7 @@ export default {
return item return item
}) })
} }
this.getOptions() this.getOptions(arr.length)
}) })
} }
} }
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<div> <div>
<div v-if="!nodata" :id="echartId" class="chart-container"></div> <div class="chart-container flex_cc">
<div v-else class="chart-container flex_cc h19_title">暂无数据</div> <div class="wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
<div class="text_box1">
<p class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</p>
</div>
<div class="text_box2">
<p class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</p>
</div>
<div class="text_box3">
<p class="h13_title">核销转化率:{{chartInfo.usedPer || 0}}%</p>
<p class="h13_title spc">同行平均转化率:{{chartInfo.totalUsedPer || 0}}%</p>
</div>
<div class="text_box4">
<p class="h13_title">精品升级转化率:{{chartInfo.upgradePer || 0}}%</p>
<p class="h13_title spc">同行平均转化率:{{chartInfo.totalUpgradePer || 0}}%</p>
</div>
<img src="../../assets/funnel_icon.png" />
</div>
</div>
</div> </div>
</template> </template>
...@@ -15,7 +35,16 @@ export default { ...@@ -15,7 +35,16 @@ export default {
name: '', name: '',
data() { data() {
return { return {
nodata: false nodata: false,
chartInfo: {
getTotal:0,
usedTotal:0,
upgradeTotal:0,
usedPer:0,
totalUsedPer:0,
upgradePer:0,
totalUpgradePer:0,
}
} }
}, },
...@@ -89,7 +118,7 @@ export default { ...@@ -89,7 +118,7 @@ export default {
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate) // let startDate = utils.dateFormat(openInfo.openDate)
let startDate = '2020-01-01' let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -106,14 +135,65 @@ export default { ...@@ -106,14 +135,65 @@ export default {
this.nodata = true this.nodata = true
return return
} }
this.getOptions(res) res.usedPer = utils.decimal(res.usedPer,2)
res.totalUsedPer = utils.decimal(res.totalUsedPer,2)
res.upgradePer = utils.decimal(res.upgradePer,2)
res.totalUpgradePer = utils.decimal(res.totalUpgradePer,2)
this.chartInfo = res
// this.getOptions(res)
}) })
} }
} }
} }
</script> </script>
<style> <style lang="scss" scoped>
.chart-container { .chart-container {
height: 258px; height: 258px;
} }
.wrap {
width: 100%;
height: 100%;
position: relative;
.text_box {
position: absolute;
top: 70px;
left: 38px;
}
.text_box1 {
position: absolute;
top: 123px;
left: 56px;
}
.text_box2 {
position: absolute;
top: 176px;
left: 66px;
}
.text_box3 {
position: absolute;
top: 82px;
right: 15px;
> p {
line-height: 20px;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
}
.text_box4 {
position: absolute;
top: 146px;
right: 29px;
> p {
line-height: 20px;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
}
}
</style> </style>
...@@ -91,7 +91,8 @@ export default { ...@@ -91,7 +91,8 @@ export default {
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate) // let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -115,8 +116,8 @@ export default { ...@@ -115,8 +116,8 @@ export default {
this.divisionMoney.push(item.divisionMoney) this.divisionMoney.push(item.divisionMoney)
this.profitMoney.push(item.profitMoney) this.profitMoney.push(item.profitMoney)
}) })
this.getOptions()
} }
this.getOptions()
}) })
} }
} }
......
<!-- 选择商品弹窗 -->
<template>
<div :id="echartId" class="pie-line"></div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'piechart',
data() {
return {}
},
props: {
echartId: {
type: String,
default: ''
}
},
mounted() {
this.getOptions()
},
methods: {
getOptions() {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option
option = {
series: {
type: 'pie',
radius: [20, 60],
height: '33.33%',
top:'center',
left: 'center',
width: 400,
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
label: {
alignTo: 'edge',
formatter: '{name|{b}}\n{time|{c} 小时}',
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich: {
time: {
fontSize: 10,
color: '#999'
}
}
},
labelLine: {
length: 15,
length2: 0,
maxSurfaceAngle: 80
},
labelLayout: function (params) {
const isLeft = params.labelRect.x < myChart.getWidth() / 2
const points = params.labelLinePoints
// Update the end point.
points[2][0] = isLeft ? params.labelRect.x : params.labelRect.x + params.labelRect.width
return {
labelLinePoints: points
}
},
data: [
{ name: '圣彼得堡来客', value: 5.6 },
{ name: '陀思妥耶夫斯基全集', value: 1 },
{ name: '史记精注全译(全6册)', value: 0.8 },
{ name: '加德纳艺术通史', value: 0.5 },
{ name: '表象与本质', value: 0.5 },
{ name: '其它', value: 3.8 }
]
}
}
option && myChart.setOption(option)
}
}
}
</script>
<style>
.pie-line{
height: 400px;
}
</style>
...@@ -20,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -20,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
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.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
<template> <template>
<div class="service-home"> <div class="service-home">
<div class="header_widget"> <!-- <div class="header_widget">
<span class="title">【嘀加企微管家】</span> <span class="title">【嘀加企微管家】</span>
<div class="tip">给您一套帮您变现的服务系统</div> <div class="tip">给您一套帮您变现的服务系统</div>
</div> </div>
...@@ -37,145 +37,145 @@ ...@@ -37,145 +37,145 @@
<div class="line_widget">服务收益在线预估</div> <div class="line_widget">服务收益在线预估</div>
<div class="echart_wrapper"> <div class="echart_wrapper">
<PieChart echartId="introduce"></PieChart> <PieChart echartId="introduce"></PieChart>
</div> </div> -->
</div> </div>
</template> </template>
<script> <script>
import PieChart from '../../components/service-echart/pie.vue' // import PieChart from '../../components/service-echart/pie.vue'
export default { export default {
name: 'home', name: 'home',
components: { // components: {
PieChart // PieChart
}, // },
data() { data() {
return { return {
currentClickIndex: -1, // currentClickIndex: -1,
localList: [ // localList: [
{ // {
title: '新车售前打包增值方案', // title: '新车售前打包增值方案',
message: '4S店会员权益服务——赚钱、锁客两不误', // message: '4S店会员权益服务——赚钱、锁客两不误',
tip: '帮您年增值50万' // tip: '帮您年增值50万'
}, // },
{ // {
title: '精品售中升级', // title: '精品售中升级',
message: '驻店升级转化精品——帮助门店新车流量托管式增值变现', // message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
tip: '帮门店年度产值增加70W+' // tip: '帮门店年度产值增加70W+'
}, // },
{ // {
title: '售后代运营服务', // title: '售后代运营服务',
message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现', // message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
tip: '帮您售后产值增加20W/年' // tip: '帮您售后产值增加20W/年'
} // }
] // ]
} }
}, },
methods: { methods: {
toShowCase(index) { // toShowCase(index) {
this.currentClickIndex = index // this.currentClickIndex = index
this.$refs[`animation${index + 1}`].style.opacity = 1 // this.$refs[`animation${index + 1}`].style.opacity = 1
this.$refs[`animation${index + 1}`].style['z-index'] = 20 // this.$refs[`animation${index + 1}`].style['z-index'] = 20
}, // },
closeAnimation() { // closeAnimation() {
let index = this.currentClickIndex // let index = this.currentClickIndex
this.$refs[`animation${index + 1}`].style.opacity = 0 // this.$refs[`animation${index + 1}`].style.opacity = 0
this.$refs[`animation${index + 1}`].style['z-index'] = -999 // this.$refs[`animation${index + 1}`].style['z-index'] = -999
}, // },
computed() {} // computed() {}
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex-fac { // .flex-fac {
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
align-items: center; // align-items: center;
} // }
.flex-fsc { // .flex-fsc {
display: flex; // display: flex;
} // }
.header_widget { // .header_widget {
.title { // .title {
font-size: 20px; // font-size: 20px;
color: blue; // color: blue;
} // }
} // }
.fc_widget { // .fc_widget {
margin-top: 16px; // margin-top: 16px;
display: flex; // display: flex;
justify-content: space-between; // justify-content: space-between;
position: relative; // position: relative;
.fc_wrapper { // .fc_wrapper {
flex: 1; // flex: 1;
height: 200px; // height: 200px;
background: #fff; // background: #fff;
border-radius: 16px; // border-radius: 16px;
margin: 0 16px; // margin: 0 16px;
position: relative; // position: relative;
padding: 20px 0; // padding: 20px 0;
.title { // .title {
font-size: 20px; // font-size: 20px;
color: #333; // color: #333;
} // }
.btn { // .btn {
width: 60%; // width: 60%;
position: absolute; // position: absolute;
bottom: 20px; // bottom: 20px;
left: 50%; // left: 50%;
transform: translate(-50%, 0); // transform: translate(-50%, 0);
padding: 8px 11px; // padding: 8px 11px;
background: rgb(148, 142, 142); // background: rgb(148, 142, 142);
border-radius: 12px; // border-radius: 12px;
font-size: 15px; // font-size: 15px;
cursor: pointer; // cursor: pointer;
display: flex; // display: flex;
justify-content: space-around; // justify-content: space-around;
.btn_go { // .btn_go {
margin-left: 10px; // margin-left: 10px;
} // }
} // }
} // }
.animation_one { // .animation_one {
position: absolute; // position: absolute;
left: 0; // left: 0;
right: 0; // right: 0;
top: 0; // top: 0;
bottom: 0; // bottom: 0;
opacity: 0; // opacity: 0;
z-index: -999; // z-index: -999;
.close_icon { // .close_icon {
position: absolute; // position: absolute;
right: 10px; // right: 10px;
top: 10px; // top: 10px;
cursor: pointer; // cursor: pointer;
color: #999; // color: #999;
z-index: 999; // z-index: 999;
} // }
.content_wrap { // .content_wrap {
flex: 1; // flex: 1;
background: #fff; // background: #fff;
.bg { // .bg {
width: 110px; // width: 110px;
height: 100px; // height: 100px;
} // }
} // }
.content_two_wrap { // .content_two_wrap {
flex: 1; // flex: 1;
background: rgb(204, 197, 102); // background: rgb(204, 197, 102);
} // }
.bg2 { // .bg2 {
background: greenyellow; // background: greenyellow;
} // }
} // }
} // }
.line_widget { // .line_widget {
width: 100%; // width: 100%;
text-align: center; // text-align: center;
font-size: 20px; // font-size: 20px;
margin-top: 20px; // margin-top: 20px;
} // }
.echart_wrapper{ // .echart_wrapper{
height: 250px; // height: 250px;
padding: 20px; // padding: 20px;
} // }
</style> </style>
<template> <template>
<div v-if="accountLevel == 4" class="rule-container"> <div v-if="accountLevel == 4" class="rule-container">
<div v-if="!nodata" class="top_wrapper"> <div v-if="nodata==1" class="top_wrapper">
<div v-if="updateTime" class="tip_line"> <div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" /> <img class="icon" src="../../assets/notice.png" />
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRule1.updatedBy }}。</span> <span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRule1.updatedBy }}。</span>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<rule-table :division="divisionRule1" :settle="settleRule1" :bankData="bankInfo"></rule-table> <rule-table :division="divisionRule1" :settle="settleRule1" :bankData="bankInfo"></rule-table>
</div> </div>
</div> </div>
<div v-if="!noList" class="list_wrapper"> <div v-if="noList==1" class="list_wrapper">
<div class="find_wrap"> <div class="find_wrap">
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker> <el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker>
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<img class="icon" src="../../assets/down_icon.png" /> <img class="icon" src="../../assets/down_icon.png" />
</div> </div>
</div> </div>
<div v-if="noList" class="no_data h19_title">暂无数据</div> <div v-if="noList==0" class="no_data h19_title">暂无数据</div>
</div> </div>
<div v-if="nodata && noList" class="nodata_widget"> <div v-if="nodata==0 && noList==0" class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper"> <div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" /> <img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通精品升级服务</span> <span class="nodata_tip_1">您暂未开通精品升级服务</span>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="nodata && noList" class="qrcode_wrap"> <div v-if="nodata==0 && noList==0" class="qrcode_wrap">
<div class="imag_wrap"> <div class="imag_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" /> <img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<span class="h18_title">联系电话</span> <span class="h18_title">联系电话</span>
...@@ -164,8 +164,8 @@ export default { ...@@ -164,8 +164,8 @@ export default {
currentPage: 1, currentPage: 1,
computeShow: false, computeShow: false,
accountLevel: 1, accountLevel: 1,
nodata: true, nodata: 2,
noList: true, noList: 2,
nodataHeight: 460, nodataHeight: 460,
stepHeight: 288 stepHeight: 288
} }
...@@ -199,9 +199,10 @@ export default { ...@@ -199,9 +199,10 @@ export default {
this.settleRule1 = res.settleRule1 this.settleRule1 = res.settleRule1
this.settleRule2 = res.settleRule2 this.settleRule2 = res.settleRule2
if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) { if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) {
this.nodata = true this.nodata = 0
return return
} }
this.nodata = 1
// 广播时间比较: // 广播时间比较:
if (res.divisionRule2 && res.settleRule2) { if (res.divisionRule2 && res.settleRule2) {
let updatedDateTemp1 = res.divisionRule2.updatedDate let updatedDateTemp1 = res.divisionRule2.updatedDate
...@@ -239,10 +240,10 @@ export default { ...@@ -239,10 +240,10 @@ export default {
return item return item
}) })
this.noteList[0].show = true this.noteList[0].show = true
this.noList = false this.noList = 1
} else { } else {
this.noteList = [] this.noteList = []
this.noList = true this.noList = 0
} }
}) })
}, },
......
<template>
<div class="bloc-container">集团端已开通</div>
</template>
<script>
export default {
name: 'bloc',
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<div class="top_line flex_scb"> <div class="top_line flex_scb">
<span :style="[{'font-size':todayName.length>20?'12px':''}]" class="h7_title">{{ todayName }},各门店明细</span> <span :style="[{ 'font-size': todayName.length > 20 ? '12px' : '' }]" class="h7_title">{{ todayName }},各门店明细</span>
<div class="right_wrap flex_scb"> <div class="right_wrap flex_scb">
<el-radio size="mini" v-model="orderByType" :label="1" @change="changeType(1)"> <el-radio size="mini" v-model="orderByType" :label="1" @change="changeType(1)">
<span class="h15_title">按分账金额排序</span> <span class="h15_title">按分账金额排序</span>
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
<GLTable ref="table" :hasPage="false" :hasNum="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable> <GLTable ref="table" :hasPage="false" :hasNum="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
</div> </div>
</div> </div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer">展开详情</div> <div v-if="!show" class="openBtn h18_title" @click="showContainer">
<span>展开详情</span>
<img src="../../assets/down_icon.png" />
</div>
</div> </div>
</template> </template>
...@@ -34,10 +37,10 @@ export default { ...@@ -34,10 +37,10 @@ export default {
components: { components: {
'line-chart': line 'line-chart': line
}, },
props:{ props: {
show:{ show: {
type:Boolean, type: Boolean,
default:false default: false
} }
}, },
data() { data() {
...@@ -62,7 +65,7 @@ export default { ...@@ -62,7 +65,7 @@ export default {
todayName: '', todayName: '',
orderByType: 1, orderByType: 1,
productValueInfo: [], productValueInfo: [],
productList: [], productList: []
} }
}, },
mounted() { mounted() {
...@@ -70,21 +73,21 @@ export default { ...@@ -70,21 +73,21 @@ export default {
this.today = utils.dateFormat(new Date()) this.today = utils.dateFormat(new Date())
const { session } = this.$globalState const { session } = this.$globalState
if (session.accountLevel != 4) { if (session.accountLevel != 4) {
this.orderDataInfoOfJT(this.today,this.today) this.orderDataInfoOfJT(this.today, this.today)
} }
}, },
methods: { methods: {
showContainer(){ showContainer() {
this.show = true this.show = true
this.$emit('showRanking',true) this.$emit('showRanking', true)
}, },
// 切换radio // 切换radio
changeType(type) { changeType(type) {
this.orderByType = type this.orderByType = type
this.orderDataInfoOfJT(this.curStartTime,this.curEndTime) this.orderDataInfoOfJT(this.curStartTime, this.curEndTime)
}, },
// 集团统计 // 集团统计
orderDataInfoOfJT(start,end) { orderDataInfoOfJT(start, end) {
let method = orderTotalOfJT() let method = orderTotalOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
...@@ -94,8 +97,8 @@ export default { ...@@ -94,8 +97,8 @@ export default {
orderByType: this.orderByType //1 分账 2分润 orderByType: this.orderByType //1 分账 2分润
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.productValueInfo = res.map(item=>{ this.productValueInfo = res.map(item => {
item.money = `${item.profitMoney}/${item.divisionMoney}` item.money = `¥${item.profitMoney} / ¥${item.divisionMoney}`
return item return item
}) })
this.curStartTime = start this.curStartTime = start
...@@ -103,9 +106,9 @@ export default { ...@@ -103,9 +106,9 @@ export default {
}) })
}, },
// 更换时间折线图 // 更换时间折线图
changeTimeForLine(start,end){ changeTimeForLine(start, end) {
this.$refs.myline.couponsChartData(start,end) this.$refs.myline.couponsChartData(start, end)
this.todayName = `${utils.dateFormat(start,'YYYY年MM月DD日')}至${utils.dateFormat(end,'YYYY年MM月DD日')}` this.todayName = `${utils.dateFormat(start, 'YYYY年MM月DD日')}至${utils.dateFormat(end, 'YYYY年MM月DD日')}`
} }
} }
} }
...@@ -153,6 +156,13 @@ export default { ...@@ -153,6 +156,13 @@ export default {
transform: translate(-50%, 0); transform: translate(-50%, 0);
bottom: 10px; bottom: 10px;
cursor: pointer; cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
} }
.bloc-chart-container /deep/ .el-table__body-wrapper { .bloc-chart-container /deep/ .el-table__body-wrapper {
height: 270px; height: 270px;
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
routerMethod: method, routerMethod: method,
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1, currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10, pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId: 44209532 merchantId,
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.tabletotal1 = res.total this.tabletotal1 = res.total
......
<template>
<div class="not-open-container">
<div v-if="accountLevel == 4" class="store-tab-con">
<el-tabs v-model="activeName" @tab-click="handleClick">
<template v-for="(item, index) in tabList">
<el-tab-pane :key="index" :label="item.label" :name="item.name">
<!-- <custom v-if="activeName == 'custom'"></custom>
<rule v-if="activeName == 'rule'"></rule>
<Demo v-if="activeName == 'upgrade'"></Demo> -->
</el-tab-pane>
</template>
</el-tabs>
</div>
<div v-if="accountLevel!=4" class="bloc-page">
<!-- <Demo></Demo> -->
</div>
</div>
</template>
<script>
// import custom from './guestComments.vue'
// import rule from './accountRules.vue'
// import Demo from './demo.vue'
export default {
name: 'bloc',
// components: {
// custom,
// rule,
// Demo
// },
data() {
return {
accountLevel: 4,
activeName: 'upgrade',
tabList: [
{
name: 'upgrade',
label: '精品升级'
},
{
name: 'custom',
label: '客户评价'
},
{
name: 'rule',
label: '分账规则'
}
]
}
},
mounted() {
// const { session } = this.$globalState
// this.accountLevel = session.accountLevel
},
methods: {
handleClick(tab) {
console.log(tab.name)
}
}
}
</script>
<style lang="scss" scoped>
.store-tab-con {
width: 100%;
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
<div class="mid_line"></div> <div class="mid_line"></div>
<div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)"> <div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
<span>{{ showMore ? '收缩详情' : '查看详情' }}</span> <span>{{ showMore ? '收缩详情' : '查看详情' }}</span>
<img class="icon" src="../../assets/down_icon.png" /> <img v-if="showMore" class="icon" src="../../assets/updown_icon.png" />
<img v-else class="icon" src="../../assets/down_icon.png" />
</div> </div>
</div> </div>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
...@@ -206,7 +207,7 @@ export default { ...@@ -206,7 +207,7 @@ export default {
judgeOpen() { judgeOpen() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// this.bengintime = utils.dateFormat(openInfo.openDate) // this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = '2020-01-01' this.bengintime = this.$defaultStartDate
this.endtime = utils.dateFormat(new Date()) this.endtime = utils.dateFormat(new Date())
this.orderDataInfo() this.orderDataInfo()
}, },
......
...@@ -34,7 +34,10 @@ ...@@ -34,7 +34,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="openBtn h18_title" @click="showContainer">收缩详情</div> <div class="openBtn h18_title" @click="showContainer">
<span>收缩详情</span>
<img src="../../assets/updown_icon.png" />
</div>
</div> </div>
</template> </template>
...@@ -69,10 +72,11 @@ export default { ...@@ -69,10 +72,11 @@ export default {
orderAll() { orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate) this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT() let method = orderTotalOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
beginDateStr: '2020-01-01', beginDateStr: this.bengintime,
endDateStr: this.today, endDateStr: this.today,
reportType: 2, reportType: 2,
orderByType: 1 //1 分账 2分润 orderByType: 1 //1 分账 2分润
...@@ -123,6 +127,11 @@ export default { ...@@ -123,6 +127,11 @@ export default {
transform: translate(-50%, 0); transform: translate(-50%, 0);
bottom: 10px; bottom: 10px;
cursor: pointer; cursor: pointer;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
} }
.page_title { .page_title {
padding: 15px 20px 10px 20px; padding: 15px 20px 10px 20px;
......
<template>
<div class="store-container">门店端</div>
</template>
<script>
export default {
name: 'index',
data() {
return {
}
},
mounted() {
},
methods: {}
}
</script>
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span> <span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span>
</div> </div>
<div class="info_text"> <div class="info_text">
<span>评价:</span> <span>评价:{{orderDetail.comment?'':'--'}}</span>
<span class="h19_title"></span> <span class="h19_title"></span>
</div> </div>
</div> </div>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
</div> </div>
<div class="box_info"></div> <div class="box_info"></div>
</div> </div>
<div class="comment_wrap"> <div v-if="orderDetail.comment" class="comment_wrap">
<div class="comment_line h20_title"> <div class="comment_line h20_title">
<span>产品与描述相符:</span> <span>产品与描述相符:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate> <el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!