Commit fa12b31c authored by duxinyuan's avatar duxinyuan

123

parent 23d32e61
......@@ -23,4 +23,4 @@
if(!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);</script><link href=./static/css/app.980fef8e836aed3bb723a12a84f9488f.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e7cc7b16dfb54c1cefae.js></script><script type=text/javascript src=./static/js/app.d0d67a1bd5d4664fe818.js></script></body></html>
\ No newline at end of file
})(document, window);</script><link href=./static/css/app.e30c5b7f1f48b9c24e2bdd0b7b2fb35d.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e7cc7b16dfb54c1cefae.js></script><script type=text/javascript src=./static/js/app.dc93cebc8f808aa8e99f.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -33,9 +33,9 @@
</nav>
<main>
<div style="width:7.50rem;height:.76rem;background:rgba(255,128,24,0.0479);text-align:center;overflow:hidden;">
<div style="width:7.50rem;height:.76rem;background:rgba(255,128,24,0.0479);text-align:center;overflow:hidden;" v-show="initTabNumMain != 0">
<div style="margin-left:.79rem;float:left;width:2.52rem;font-size:.28rem;font-weight:400;color:rgba(51,51,51.1);line-height:.76rem;">
部门
{{initTabNumMain == 1 ? '门店' : '部门'}}
</div>
<div style="float:left;width:1.9rem;font-size:.28rem;font-weight:400;color:rgba(51,51,51.1);line-height:.76rem;">
业绩
......@@ -55,7 +55,7 @@
</ul>
<ul v-show="initTabNumMain === 1">
<li v-for="(item2, index2) in item.listData">
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="false"></achieve-fork-li-new>
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="false" :dataValue="1"></achieve-fork-li-new>
</li>
<li class="self-achieve-li" v-if="(item.listData.length>0) && (mainData[index].selfData)">
<achieve-fork-li-new :data="mainData[index].selfData" :dataindex="mainData[index].selfData.index_-1"></achieve-fork-li-new>
......@@ -63,7 +63,7 @@
</ul>
<ul v-show="initTabNumMain === 2">
<li v-for="(item2, index2) in item.listData">
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="true"></achieve-fork-li-new>
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="true" :dataValue="2"></achieve-fork-li-new>
</li>
</ul>
<div class="no-data-block" v-show="item.listData.length===0">暂无数据...</div>
......@@ -81,7 +81,7 @@
</footer>
</section>
<div v-show="initTabNumMain === 2" style="width:7.5rem;height:.78rem;background-color:rgba(255,147,24,1);text-align:center;color:rgba(255,255,255,1);font-size:.28rem;line-height:.78rem">
该时段总计:业绩 345,970 实收 345,970
该时段总计:业绩 {{total1}} 实收 {{total2}}
</div>
<div class="loading-gif-block" v-show="isLoadFlag">正在加载...</div>
</main>
......@@ -140,7 +140,9 @@
linkAchieveYwy: '',
linkAchieveQy: '',
linkAchieveQy: '',
isLoadFlag: false
isLoadFlag: false,
total2 : 0,
total1 : 0
}),
created() {
let _this = this;
......@@ -161,6 +163,10 @@
_this.common.h5PageC(_token, _this.loadMain);
},
methods: {
dealJine(v) {
let _this = this;
return _this.common.jineComma(v, 2);
},
loadMain() {
let _this = this;
_this.token = localStorage.getItem('token');
......@@ -254,6 +260,8 @@
if(Array.isArray(response.data.data)){
}else{
_this.total1 = _this.dealJine(response.data.data.all_performance_total) ;
_this.total2 = _this.dealJine(response.data.data.all_official_receipts_total);
_this.mainData[_index].isLoad = true;
_this.statisticsStartTime = response.data.data.start_time.replace(/-/g, '.');
_this.statisticsEndTime = response.data.data.end_time.replace(/-/g, '.');
......
......@@ -6,9 +6,9 @@
<img :src="third" style="width:80%;margin-top:.3rem;" v-else-if="dataindex == 2">
<span style="text-align:center" v-else>{{dataindex+1}}</span>
</div>
<div class="nameSpan">{{data.name}}</div>
<div class="priceSpan">{{dealJine(data.performance_total)}}</div>
<div class="nameSpan">{{dataValue == 1 ? data.store_name : data.district_name}}</div>
<div class="priceSpan">{{dealJine(data.performance_total)}}</div>
<div class="priceSpan">{{dealJine(data.official_receipts_total)}}</div>
<img :src="more" style="flot:left; width:.1rem;" v-show="data.is_boss == 0"/>
</div>
</template>
......@@ -36,6 +36,10 @@
moreShow :{
type : Boolean,
default : ()=> false
},
dataValue :{
type: [Number, String],
default: () => 1
}
},
data: () => ({
......
......@@ -276,6 +276,8 @@
}).then(function(res) {
if (res.data.code == 200 ){
layer.tipsX('提交成功');
} else {
layer.tipsX(res.data.msg);
}
}).catch(function(error) {
layer.tipsX(error);
......
......@@ -195,6 +195,8 @@
}).then(function(res) {
if (res.data.code == 200 ){
layer.tipsX('提交成功');
} else {
layer.tipsX(res.data.msg);
}
}).catch(function(error) {
layer.tipsX(error);
......
......@@ -197,6 +197,8 @@
if (res.data.code == 200 ){
console.log(res);
that.agent = res.data.data.superintendent_name;
} else {
layer.tipsX(res.data.msg);
}
}).catch(function(error) {
layer.tipsX(error);
......@@ -243,6 +245,8 @@
console.log(res)
if (res.data.code == 200 ){
layer.tipsX('提交成功');
} else {
layer.tipsX(res.data.msg);
}
}).catch(function(error) {
layer.tipsX(error);
......
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 to comment