Commit 58b2f1c1 by cwq0219

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

1 parent 407e3e66
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
<i <i
slot="suffix" slot="suffix"
class="input-suffix" class="input-suffix"
>元</i> >%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
this.oldVal.retailPrice = this.proInfo.retailPrice this.oldVal.retailPrice = this.proInfo.retailPrice
}, },
handleIncentiveCost(newVal) { 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 this.oldVal.incentiveCost = this.proInfo.incentiveCost
} }
} }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="top_card"> <div class="top_card">
<div class="top_card_title">今日待预约</div> <div class="top_card_title">今日待预约</div>
<div class="top_card_main"> <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_count top_card_primary">{{todayInviteCount}}</span>
<span class="top_card_main_unit">(人)</span> --> <span class="top_card_main_unit">(人)</span> -->
</div> </div>
...@@ -421,7 +421,7 @@ export default { ...@@ -421,7 +421,7 @@ export default {
getCustomerTransList({ getCustomerTransList({
yqMerchantId: this.id, yqMerchantId: this.id,
beginDateStr: moment().startOf('month').format('YYYY-MM-DD'), 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) => { }).then((res) => {
const data = res const data = res
...@@ -443,7 +443,7 @@ export default { ...@@ -443,7 +443,7 @@ export default {
color: '#2B9AFF', color: '#2B9AFF',
}) */ }) */
this.showChartLoading(this.funnelChart) 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[0].tooltipValue = res.totalCustomerNums
funnelOption.series[0].data[1].tooltipValue = res.totalToShop funnelOption.series[0].data[1].tooltipValue = res.totalToShop
funnelOption.series[0].data[2].tooltipValue = res.totalUpgrade funnelOption.series[0].data[2].tooltipValue = res.totalUpgrade
...@@ -486,19 +486,20 @@ export default { ...@@ -486,19 +486,20 @@ export default {
...(this.getDateFormatByType('thisWeek')) ...(this.getDateFormatByType('thisWeek'))
} }
getOrderProductData(params).then((res) => {console.log(res) getOrderProductData(params).then((res) => {
console.log(res)
const data = res const data = res
const colors = ['rgba(0,110,214,0.4)', 'rgba(0,110,214,0.6)', 'rgba(0,110,214,1)'] const colors = ['rgba(0,110,214,0.4)', 'rgba(0,110,214,0.6)', 'rgba(0,110,214,1)']
let idObj = {} var idObj = {}
for(let key in data) { for (var key in data) {
let index = moment(key).format('E')-1 var index = moment(key).format('E') - 1
let list = data[key] var list = data[key]
list.sort((a, b) => { list.sort((a, b) => {
return b.goodsTotal - a.goodsTotal return b.goodsTotal - a.goodsTotal
}) })
list.forEach((item, i) => { list.forEach((item, i) => {
if (!(item.id in idObj)) { if (!(item.id in idObj)) {
idObj[item.id] = { idObj[item.id] = {
...@@ -511,12 +512,12 @@ export default { ...@@ -511,12 +512,12 @@ export default {
}) })
} }
let seriesArr = [] var seriesArr = []
for (const key in idObj) { for (const key in idObj) {
seriesArr.push({ seriesArr.push({
name: idObj[key].name, name: idObj[key].name,
type: 'bar', type: 'bar',
//stack: '总量', // stack: '总量',
barGap: '-100%', barGap: '-100%',
label: { label: {
show: false, show: false,
...@@ -529,11 +530,11 @@ export default { ...@@ -529,11 +530,11 @@ export default {
data: idObj[key].data data: idObj[key].data
}) })
} }
this.orderProductChart.clear() this.orderProductChart.clear()
orderProductOption.series = seriesArr orderProductOption.series = seriesArr
this.orderProductChart.setOption(orderProductOption) this.orderProductChart.setOption(orderProductOption)
this.hideChartLoading(this.orderProductChart) this.hideChartLoading(this.orderProductChart)
}) })
}, },
...@@ -545,7 +546,7 @@ export default { ...@@ -545,7 +546,7 @@ export default {
}).then((res) => { }).then((res) => {
const data = 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[0].data = data.map((item) => item.totalIncomeMoney)
// incomeFlowOption.series[1].data = data.map((item) => item.totalCost) // incomeFlowOption.series[1].data = data.map((item) => item.totalCost)
this.incomeFlowChart.setOption(incomeFlowOption) 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!