提交 5a54b655 authored 作者: yuanyufei's avatar yuanyufei

统计图显示数据的解决

上级 d9ff1dba
...@@ -427,7 +427,7 @@ ...@@ -427,7 +427,7 @@
}, },
//跳转到订单列表 //跳转到订单列表
goovertime(){ goovertime(){
this.$router.push('/system/order/index') this.$router.push({path:'/system/order/index',query:{userId:123}})
}, },
//获取默认数据 //获取默认数据
async GetDefaultData(){ async GetDefaultData(){
...@@ -478,12 +478,12 @@ ...@@ -478,12 +478,12 @@
const result=await getStoreData(query) const result=await getStoreData(query)
let storeObject={} let storeObject={}
storeObject.date=result.data.date storeObject.date=result.data.date
let catePrice = this.storeOrder.customer_price.map(item=>{ let catePrice = result.data.customer_price.map(item=>{
return item / 100 return item / 100
}) })
storeObject.customerprice=catePrice storeObject.customerprice=catePrice
storeObject.ordercount=result.data.order_count storeObject.ordercount=result.data.order_count
let orderPrice= this.storeOrder.order_total.map(item=>{ let orderPrice= result.data.order_total.map(item=>{
return item / 100 return item / 100
}) })
storeObject.ordertotal=orderPrice storeObject.ordertotal=orderPrice
...@@ -493,7 +493,13 @@ ...@@ -493,7 +493,13 @@
query.start_time=this.value1[0] / 1000 query.start_time=this.value1[0] / 1000
query.end_time=this.value1[1] / 1000 query.end_time=this.value1[1] / 1000
const result=await getGoodsSale(query) const result=await getGoodsSale(query)
this.storeGoods=result.data //对金额进行除以100修改
let arr=result.data
for(let i = 0;i<arr.length;i++){
const item=arr[i]
item.total_price=item.total_price/100
}
this.storeGoods=arr
}else{ }else{
return return
} }
......
...@@ -598,12 +598,14 @@ ...@@ -598,12 +598,14 @@
}, },
// 获取订单列表 // 获取订单列表
getListOrder() { getListOrder() {
console.log(this.$route,'看看路由跳的是哪个?')
this.tableDataList = [] this.tableDataList = []
let params = { let params = {
page: this.currentPage, page: this.currentPage,
limit: this.pageSize, limit: this.pageSize,
seller_id: this.sellerId, seller_id: this.sellerId,
status: this.goodsStatus, status: this.goodsStatus,
// is_time_out:true
} }
if(this.form.order_sn != '') { if(this.form.order_sn != '') {
...@@ -648,7 +650,6 @@ ...@@ -648,7 +650,6 @@
// 每次订单 查询成功,保存查询参数,供商品导出接口使用(入参) // 每次订单 查询成功,保存查询参数,供商品导出接口使用(入参)
this.exportParams = params; this.exportParams = params;
//console.log("初始赋值:",this.exportParams); //console.log("初始赋值:",this.exportParams);
this.total = res.data.count || 0 this.total = res.data.count || 0
this.tableDataList = res.data.data this.tableDataList = res.data.data
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论