Commit 191472a5 authored by godwithdh's avatar godwithdh

经营分析

parent d46a388e
...@@ -15,8 +15,8 @@ function urlFun(name){ ...@@ -15,8 +15,8 @@ function urlFun(name){
// default:`http://192.168.4.34:5001`, // default:`http://192.168.4.34:5001`,
// default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`, // default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
// default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`, // default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
default:`https://weixin.huansi.net/apiproxy/huansi/Tip`, // default:`https://weixin.huansi.net/apiproxy/huansi/Tip`,
// default:`https://weixin.huansi.net/apiproxy/huansi/TIP_Test`, default:`https://weixin.huansi.net/apiproxy/huansi/TIP_Test`,
/** /**
* 基本地址 * 基本地址
*/ */
......
...@@ -65,14 +65,14 @@ ...@@ -65,14 +65,14 @@
<div class="Finance" :style="list.length==0&&'background:#fff;height:100%;'"> <div class="Finance" :style="list.length==0&&'background:#fff;height:100%;'">
<div class="card" v-if="list.length>0"> <div class="card" v-if="list.length>0">
<span class="title">应收应付</span> <span class="title">应收应付</span>
<span class="more" @click="more(1)">更多</span> <span class="more" @click="more(1,0)">更多</span>
<div class="should"> <div class="should">
<div> <div @click="more(1,0)">
<span>应收账款</span> <span>应收账款</span>
<span>{{(list.filter(v=>v.sName=="应收")[0]&&list.filter(v=>v.sName=="应收")[0].nAmount||0).toLocaleString()}}</span> <span>{{(list.filter(v=>v.sName=="应收")[0]&&list.filter(v=>v.sName=="应收")[0].nAmount||0).toLocaleString()}}</span>
<span>余额:{{(list.filter(v=>v.sName=="应收")[0]&&list.filter(v=>v.sName=="应收")[0].nCloseAmount||0).toLocaleString()}}</span> <span>余额:{{(list.filter(v=>v.sName=="应收")[0]&&list.filter(v=>v.sName=="应收")[0].nCloseAmount||0).toLocaleString()}}</span>
</div> </div>
<div> <div @click="more(1,1)">
<span>应付账款</span> <span>应付账款</span>
<span style="color:red;">{{(list.filter(v=>v.sName=="应付")[0]&&list.filter(v=>v.sName=="应付")[0].nAmount||0).toLocaleString()}}</span> <span style="color:red;">{{(list.filter(v=>v.sName=="应付")[0]&&list.filter(v=>v.sName=="应付")[0].nAmount||0).toLocaleString()}}</span>
<span>余额:{{(list.filter(v=>v.sName=="应付")[0]&&list.filter(v=>v.sName=="应付")[0].nCloseAmount||0).toLocaleString()}}</span> <span>余额:{{(list.filter(v=>v.sName=="应付")[0]&&list.filter(v=>v.sName=="应付")[0].nCloseAmount||0).toLocaleString()}}</span>
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
</div> </div>
<div class="card" v-if="list.length>0"> <div class="card" v-if="list.length>0">
<span class="title">实收实付</span> <span class="title">实收实付</span>
<span class="more" @click="more(2)">更多</span> <span class="more" @click="more(2,0)">更多</span>
<div class="actual"> <div class="actual">
<div> <div @click="more(2,0)">
<span>{{(list.filter(v=>v.sName=="实付")[0]&&list.filter(v=>v.sName=="实付")[0].nAmount||0).toLocaleString()}}</span> <span>{{(list.filter(v=>v.sName=="实付")[0]&&list.filter(v=>v.sName=="实付")[0].nAmount||0).toLocaleString()}}</span>
<span>实收账款</span> <span>实收账款</span>
</div> </div>
<div> <div @click="more(2,1)">
<span style="color:red;">{{(list.filter(v=>v.sName=="实付")[0]&&list.filter(v=>v.sName=="实付")[0].nAmount||0).toLocaleString()}}</span> <span style="color:red;">{{(list.filter(v=>v.sName=="实付")[0]&&list.filter(v=>v.sName=="实付")[0].nAmount||0).toLocaleString()}}</span>
<span>实付账款</span> <span>实付账款</span>
</div> </div>
...@@ -153,8 +153,8 @@ export default { ...@@ -153,8 +153,8 @@ export default {
}) })
} }
}, },
more(val){ more(val,tabIndex){
this.$router.push({name:"financeDetail",params:{mode:val}}) this.$router.push({name:"financeDetail",params:{mode:val,tabIndex:tabIndex}})
}, },
}, },
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
flex-grow:1; flex-grow:1;
overflow: auto; overflow: auto;
height:1px; height:1px;
font-size:15px;
>.list{ >.list{
background:#fff; background:#fff;
display:flex; display:flex;
...@@ -110,7 +111,7 @@ export default { ...@@ -110,7 +111,7 @@ export default {
} }
}, },
activated(){ activated(){
this.tabIndex=this.$route.params.tabIndex
this.global.$off('searchData'); this.global.$off('searchData');
//查询条件触发加载 //查询条件触发加载
this.global.$on('searchData',async ()=>{ this.global.$on('searchData',async ()=>{
......
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