Commit c06290aa by cwq0219

Merge branch 'v1.1.1' of http://192.168.3.233:8090/glsx-business/dj-car-life-system into v1.1.1

2 parents bade8428 2867e5f7
...@@ -85,7 +85,9 @@ ...@@ -85,7 +85,9 @@
</table> </table>
<table class="finnance_table"> <table class="finnance_table">
<tr> <tr>
<td colspan="7" class="finnance_table_title">订单分账详情</td> <td colspan="7" class="finnance_table_title">订单分账详情
<div style="float:right; font-size:14px;">分账规则:此笔订单按<strong>收入</strong>分成方法计算。</div>
</td>
</tr> </tr>
<tr> <tr>
<td rowspan="2" class="lb_total">收账明细</td> <td rowspan="2" class="lb_total">收账明细</td>
...@@ -140,8 +142,8 @@ ...@@ -140,8 +142,8 @@
<td>{{detail.allocationMoney}}</td> <td>{{detail.allocationMoney}}</td>
</tr> </tr>
</table> </table>
<p style="text-align:center;"> <p style="text-align:left;">
<el-button type="primary" @click="close({ tagName: '/financeDetail' })">关闭</el-button> <el-button type="primary" @click="close({ tagName: '/financeDetail' })">返回</el-button>
</p> </p>
</div> </div>
......
...@@ -257,11 +257,17 @@ ...@@ -257,11 +257,17 @@
align="center"> align="center">
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="成本费用" align="center" v-show="userInfo.beSuper">
v-show="userInfo.beSuper" <el-table-column
prop="goodsExtraCost" prop="goodsExtraCost"
label="额外成本" label="额外成本"
align="center"> align="center">
</el-table-column>
<el-table-column
prop="yqIncentiveTotal"
label="阳光激励费"
align="center">
</el-table-column>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="yqGrossProfit" prop="yqGrossProfit"
......
...@@ -28,7 +28,8 @@ const incomeProductOption = { ...@@ -28,7 +28,8 @@ const incomeProductOption = {
radius: ['40%', '60%'], radius: ['40%', '60%'],
center: ['50%', '60%'], center: ['50%', '60%'],
label:{ label:{
align: 'left', show: false,
/* align: 'left',
normal:{ normal:{
formatter(v) { formatter(v) {
let text = v.name let text = v.name
...@@ -37,7 +38,7 @@ const incomeProductOption = { ...@@ -37,7 +38,7 @@ const incomeProductOption = {
textStyle : { textStyle : {
fontSize : 10 fontSize : 10
} }
} } */
}, },
data: [ data: [
{ value: 335, name: '直接访问' }, { value: 335, name: '直接访问' },
......
...@@ -486,13 +486,14 @@ export default { ...@@ -486,13 +486,14 @@ export default {
...(this.getDateFormatByType('thisWeek')) ...(this.getDateFormatByType('thisWeek'))
} }
getOrderProductData(params).then((res) => { getOrderProductData(params).then((res) => {console.log(res)
const data = res const data = res
const colors = ['rgba(9,71,198,0.6)', 'rgba(9,71,198,0.8)', 'rgba(9,71,198,1)']
const colors = ['rgba(0,110,214,0.6)', 'rgba(0,110,214,0.8)', 'rgba(0,110,214,1)']
let idObj = {} let idObj = {}
for(let key in data) { for(let key in data) {
let index = moment(key).format('E')-1 let index = moment(key).format('E')-1
if(index == 5) continue
let list = data[key] let list = data[key]
list.sort((a, b) => { list.sort((a, b) => {
return b.goodsTotal - a.goodsTotal return b.goodsTotal - a.goodsTotal
...@@ -510,7 +511,7 @@ export default { ...@@ -510,7 +511,7 @@ export default {
}) })
} }
const seriesArr = [] let seriesArr = []
for (const key in idObj) { for (const key in idObj) {
seriesArr.push({ seriesArr.push({
name: idObj[key].name, name: idObj[key].name,
...@@ -529,8 +530,10 @@ export default { ...@@ -529,8 +530,10 @@ export default {
}) })
} }
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)
}) })
}, },
......
...@@ -8,7 +8,7 @@ const orderProductOption = { ...@@ -8,7 +8,7 @@ const orderProductOption = {
} }
}, },
legend: { legend: {
data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎'] data: []
}, },
grid: { grid: {
left: '3%', left: '3%',
...@@ -24,39 +24,7 @@ const orderProductOption = { ...@@ -24,39 +24,7 @@ const orderProductOption = {
type: 'category', type: 'category',
data: ['周一' ,'周二', '周三', '周四', '周五', '周六', '周日'] data: ['周一' ,'周二', '周三', '周四', '周五', '周六', '周日']
}, },
series: [ series: []
{
name: '直接访问',
type: 'bar',
stack: '总量',
label: {
show: true,
position: 'insideRight'
},
data: [[3, 23],]
},
{
name: '邮件营销',
type: 'bar',
stack: '总量',
label: {
show: true,
position: 'insideRight'
},
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '联盟广告',
type: 'bar',
stack: '总量',
label: {
show: true,
position: 'insideRight'
},
data: [220, 182, 191, 234, 290, 330, 310]
},
]
} }
export default orderProductOption export default orderProductOption
...@@ -35,7 +35,8 @@ const storeFlowOption = { ...@@ -35,7 +35,8 @@ const storeFlowOption = {
radius: '50%', radius: '50%',
center: ['40%', '65%'], center: ['40%', '65%'],
label:{ label:{
align: 'left', show:false,
/* align: 'left',
normal:{ normal:{
formatter(v) { formatter(v) {
let text = v.name let text = v.name
...@@ -44,7 +45,7 @@ const storeFlowOption = { ...@@ -44,7 +45,7 @@ const storeFlowOption = {
textStyle : { textStyle : {
fontSize : 10 fontSize : 10
} }
} } */
}, },
data: [ data: [
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!