Commit d0b9cd16 by LJM

概况页-数据汇总问题

parent d2b0ffe3
<template>
<div id="app">
<keep-alive exclude="InquireDetail,ListDetail,orderTrackGoodsDetail,orderTrackPurAdd,enter">
<keep-alive exclude="InquireDetail,ListDetail,orderTrackGoodsDetail,orderTrackPurAdd,enter,list,inquire,quote">
<router-view class="router-view"></router-view>
</keep-alive>
</div>
......
......@@ -9,10 +9,6 @@
</p>
<p class="cen row rowCenter">
<span class="t1">上架</span>
<span class="t2">{{ data.weekly_sku_count }}</span>
</p>
<p class="bottom">
<span class="t1">总上传SKU数:</span>
<span class="t2">{{ data.all_sku_count }}</span>
</p>
</li>
......@@ -23,14 +19,10 @@
</p>
<p class="cen row rowCenter">
<span class="t1">型号</span>
<span class="t2 mr">{{ data.weekly_spu_count }}</span>
<span class="t2 mr">{{ data.all_spu_count }}</span>
<span class="t1">品牌</span>
<span class="t2">{{ data.brand_count }}</span>
</p>
<p class="bottom">
<span class="t1">总商品数:</span>
<span class="t2">{{ data.all_spu_count }}</span>
</p>
</li>
<li class="boxsiz">
<p class="top row bothSide verCenter">
......@@ -60,47 +52,34 @@
</li>
</ul>
<ul class="survey-show row avarage boxsiz">
<!-- <li class="boxsiz">
<a class="wrap boxsiz" href="/#/enter">
<i class="iconfont iconjinzhi"></i>
<p class="t1">未通过SKU</p>
</a>
<span class="color1 rowCenter verCenter">{{ data.reject_sku_count }}</span>
</li>-->
<li class="boxsiz">
<a class="wrap boxsiz" href="/#/list">
<a class="wrap boxsiz" href="/#/list?status=3">
<i class="iconfont iconclose"></i>
<p class="t1">下架SKU</p>
</a>
<span class="color2">{{ data.off_shelf_sku_count }}</span>
</li>
<li class="boxsiz">
<a class="wrap boxsiz" href="/#/inquire">
<a class="wrap boxsiz" href="/#/inquire?status=1">
<i class="iconfont iconjinzhi1"></i>
<p class="t1">待报价</p>
</a>
<span class="color3">{{ data.weekly_inquiry_ready_count || 0 }}</span>
<span class="color3">{{ data.quote_confirming_count || 0 }}</span>
</li>
<li class="boxsiz">
<a class="wrap boxsiz" href="/#/quote">
<a class="wrap boxsiz" href="/#/quote?status=2">
<i class="iconfont iconjinzhi2"></i>
<p class="t1">已选中报价</p>
</a>
<span class="color4">{{ data.weekly_quote_selected_count }}</span>
<span class="color4">{{ data.quote_selected_count }}</span>
</li>
<li class="boxsiz">
<a class="wrap boxsiz" href="/#/quote">
<a class="wrap boxsiz" href="/#/quote?status=3">
<i class="iconfont iconjinzhi2"></i>
<p class="t1">已成单报价</p>
</a>
<span class="color5">{{ data.weekly_quote_deal_count }}</span>
<span class="color5">{{ data.quote_deal_count }}</span>
</li>
<!-- <li class="boxsiz">
<a class="wrap boxsiz">
<i class="iconfont iconjinzhi3 "></i>
<p class="t2">未完待续</p>
</a>
</li>-->
</ul>
<div class="rate-box boxsiz">
<div class="rate-tab row bothSide verCenter">
......@@ -217,7 +196,6 @@ export default {
},
methods: {
change(index, type) {
console.log(index, type)
if (type == 'frqRates') {
this.getFrqRates(this.tabDate);
}
......@@ -305,7 +283,6 @@ export default {
]
};
myChart.setOption(option);
window.onresize = function () {
myChart.resize();
};
......
......@@ -109,6 +109,10 @@ export default {
};
},
created() {
let status = this.$route.query.status;
if (status) {
this.formParam.i_status = status;
}
this.getData();
},
methods: {
......
......@@ -124,7 +124,7 @@ Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(D
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Tag);
export default {
name: "inquire",
name: "quote",
data() {
return {
total: 0,
......@@ -133,7 +133,7 @@ export default {
tableData: [],
multipleSelection: [],
dialogVisible: false,
logs:[],
logs: [],
formParam: {
goods_name: '',
brand_name: "",
......@@ -143,6 +143,10 @@ export default {
};
},
created() {
let status = this.$route.query.status;
if (status) {
this.formParam.status = status;
}
this.getData();
},
methods: {
......@@ -232,7 +236,7 @@ export default {
})
},
resetForm(formName) {
this.formParam.date='';
this.formParam.date = '';
this.$refs[formName].resetFields();
},
onSubmit() {
......
......@@ -201,6 +201,10 @@ export default {
};
},
created() {
let status = this.$route.query.status;
if (status) {
this.formParam.status = status;
}
this.getData()
},
methods: {
......@@ -321,8 +325,9 @@ export default {
},
resetForm(formName) {
this.formParam.date='';
this.formParam.date = '';
this.$refs[formName].resetFields();
this.formParam.status='';
},
onSubmit() {
this.page = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment