Commit 6e681226 by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents 867f9fe7 f922bc54
......@@ -70,7 +70,7 @@ export default {
this.openMessage('获取采购进度占比失败')
return
}
this.progressData = res.data.dataList || []
this.progressData = res.data.dataList.slice(0, 3) || []
})
}
}
......
......@@ -59,21 +59,25 @@ export default {
},
shopmallLegend: [
{
name: 'goodsname'
name: 'goodsname',
width: '7vw'
},
{
name: 'rate',
type: 'decimal'
type: 'decimal',
width: '3vw'
},
{
name: 'purchaseamount',
hasIcon: '¥',
type: 'number'
type: 'number',
width: '5vw'
},
{
name: 'averprice',
hasIcon: '均价¥',
type: 'number'
type: 'number',
width: '5vw'
}
],
// 自采饼图结构
......@@ -85,21 +89,25 @@ export default {
},
selfPickLegend: [
{
name: 'goodsname'
name: 'goodsname',
width: '7vw'
},
{
name: 'rate',
type: 'decimal'
type: 'decimal',
width: '3vw'
},
{
name: 'purchaseamount',
hasIcon: '¥',
type: 'number'
type: 'number',
width: '5vw'
},
{
name: 'averprice',
hasIcon: '均价¥',
type: 'number'
type: 'number',
width: '5vw'
}
]
}
......
......@@ -112,12 +112,11 @@ export default {
methods: {
async init() {
this.tabObject = this.$route.query
const { year } = this.$route.query
this.defaultYear = year
const { merchantid, purchaseType } = this.$route.query
const { merchantid, purchaseType, year } = this.$route.query
const _merchantList = await this.getAllRanking(purchaseType)
this.merchantList = _merchantList
this.purchaseType = purchaseType
this.defaultYear = year
this.getMerchantGoodsRatio(merchantid)
this.getMerchantPurchase(merchantid)
this.getMerchantPurchaseTrend(merchantid)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!