Commit 58b2f1c1 by cwq0219

首页;编辑商品-升级商品-阳光激励费

1 parent 407e3e66
......@@ -226,7 +226,7 @@
<i
slot="suffix"
class="input-suffix"
>元</i>
>%</i>
</el-input>
</el-form-item>
</div>
......@@ -387,7 +387,7 @@ export default {
this.oldVal.retailPrice = this.proInfo.retailPrice
},
handleIncentiveCost(newVal) {
this.proInfo.incentiveCost = limitPrice(newVal, this.oldVal.incentiveCost, 6, 2)
this.proInfo.incentiveCost = limitPrice(newVal, this.oldVal.incentiveCost, 3, 0, 0, 100)
this.oldVal.incentiveCost = this.proInfo.incentiveCost
}
}
......
......@@ -27,7 +27,7 @@
<div class="top_card">
<div class="top_card_title">今日待预约</div>
<div class="top_card_main">
<span class="red">该功能暂未开发</span>
<span class="red">待上线</span>
<!-- <span class="top_card_main_count top_card_primary">{{todayInviteCount}}</span>
<span class="top_card_main_unit">(人)</span> -->
</div>
......@@ -421,7 +421,7 @@ export default {
getCustomerTransList({
yqMerchantId: this.id,
beginDateStr: moment().startOf('month').format('YYYY-MM-DD'),
endDateStr: moment().endOf('month').format('YYYY-MM-DD'),
endDateStr: moment().endOf('month').format('YYYY-MM-DD')
}).then((res) => {
const data = res
......@@ -443,7 +443,7 @@ export default {
color: '#2B9AFF',
}) */
this.showChartLoading(this.funnelChart)
getTransferData({yqMerchantId: this.id}).then((res) => {
getTransferData({ yqMerchantId: this.id }).then((res) => {
funnelOption.series[0].data[0].tooltipValue = res.totalCustomerNums
funnelOption.series[0].data[1].tooltipValue = res.totalToShop
funnelOption.series[0].data[2].tooltipValue = res.totalUpgrade
......@@ -486,19 +486,20 @@ export default {
...(this.getDateFormatByType('thisWeek'))
}
getOrderProductData(params).then((res) => {console.log(res)
getOrderProductData(params).then((res) => {
console.log(res)
const data = res
const colors = ['rgba(0,110,214,0.4)', 'rgba(0,110,214,0.6)', 'rgba(0,110,214,1)']
let idObj = {}
for(let key in data) {
let index = moment(key).format('E')-1
let list = data[key]
var idObj = {}
for (var key in data) {
var index = moment(key).format('E') - 1
var list = data[key]
list.sort((a, b) => {
return b.goodsTotal - a.goodsTotal
})
list.forEach((item, i) => {
if (!(item.id in idObj)) {
idObj[item.id] = {
......@@ -511,12 +512,12 @@ export default {
})
}
let seriesArr = []
var seriesArr = []
for (const key in idObj) {
seriesArr.push({
name: idObj[key].name,
type: 'bar',
//stack: '总量',
// stack: '总量',
barGap: '-100%',
label: {
show: false,
......@@ -529,11 +530,11 @@ export default {
data: idObj[key].data
})
}
this.orderProductChart.clear()
orderProductOption.series = seriesArr
this.orderProductChart.setOption(orderProductOption)
this.hideChartLoading(this.orderProductChart)
})
},
......@@ -545,7 +546,7 @@ export default {
}).then((res) => {
const data = res
//incomeFlowOption.xAxis.data = data.map((item) => item.month)
// incomeFlowOption.xAxis.data = data.map((item) => item.month)
incomeFlowOption.series[0].data = data.map((item) => item.totalIncomeMoney)
// incomeFlowOption.series[1].data = data.map((item) => item.totalCost)
this.incomeFlowChart.setOption(incomeFlowOption)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!