Commit 6aa70bfc authored by godwithdh's avatar godwithdh

boss

parent beb8ffec
...@@ -12,8 +12,8 @@ function urlFun(name){ ...@@ -12,8 +12,8 @@ function urlFun(name){
/** /**
* 默认公司 * 默认公司
*/ */
default:`http://192.168.4.39:5001`, // default:`http://192.168.4.39:5001`,
// default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`, default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
/** /**
* 基本地址 * 基本地址
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
} }
</style> </style>
<template> <template>
<div class="Finance"> <div class="Finance" :style="list.length==0&&'background:#fff;height:100%;'">
<div v-for="(v,k) in list" :key='k'> <div v-for="(v,k) in list" :key='k' v-if="list.length>0">
<div class="title_">{{v.sName}}</div> <div class="title_">{{v.sName}}</div>
<div class="card"> <div class="card">
<div> <div>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
<XCircle <XCircle
style="width: 60px;height: 60px;" style="width: 60px;height: 60px;"
:percent="Number(v.nPercent)||70" :percent="Number(v.nPercent)||0"
:stroke-width="7" :stroke-width="7"
:stroke-color="color[k%4]" :stroke-color="color[k%4]"
:trail-width="5" :trail-width="5"
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
</div> </div>
</div> </div>
</div> </div>
<img src="@/assets/noData.jpg" style="width:100%;" v-if="list.length==0"/>
</div> </div>
</template> </template>
<script> <script>
...@@ -73,7 +74,7 @@ export default { ...@@ -73,7 +74,7 @@ export default {
}, },
data(){ data(){
return{ return{
list:{}, list:[],
color:['#FF6633','#5E9AFE','#9966CC','#46FC43'], color:['#FF6633','#5E9AFE','#9966CC','#46FC43'],
} }
}, },
......
...@@ -29,19 +29,19 @@ ...@@ -29,19 +29,19 @@
</style> </style>
<template> <template>
<div class="abnormal"> <div class="abnormal">
<table cellspacing="0"> <table cellspacing="0" >
<tr> <tr>
<td> <td style="width:100px;">
<div>销售退货</div> <div>销售退货</div>
</td> </td>
<td> <td>
<div>{{value['销售退货']}}</div> <div>{{value['销售退货']||0}}</div>
</td> </td>
<td> <td style="width:100px;">
<div>采购退货</div> <div>采购退货</div>
</td> </td>
<td> <td>
<div>{{value['采购退货']}}</div> <div>{{value['采购退货']||0}}</div>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -49,30 +49,30 @@ ...@@ -49,30 +49,30 @@
<div>加工回修</div> <div>加工回修</div>
</td> </td>
<td> <td>
<div>{{value['加工回修']}}</div> <div>{{value['加工回修']||0}}</div>
</td> </td>
<td> <td>
<div>疵品数量</div> <div>疵品数量</div>
</td> </td>
<td> <td>
<div>{{value['疵品汇总']}}</div> <div>{{value['疵品汇总']||0}}</div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan='4' style="text-align:left;padding:0 0 0 10px;color:#68A0FE;">拖期订单:{{value['拖期订单数量']}}</td> <td colspan='4' style="text-align:left;padding:0 0 0 10px;color:#68A0FE;">拖期订单:{{value['拖期订单数量']||0}}</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<div>数量</div> <div>数量</div>
</td> </td>
<td> <td>
<div>{{value['拖期订单总数量']}}</div> <div>{{value['拖期订单总数量']||0}}</div>
</td> </td>
<td> <td>
<div>金额</div> <div>金额</div>
</td> </td>
<td> <td>
<div>{{value['拖期订单总金额']}}</div> <div>{{value['拖期订单总金额']||0}}</div>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -80,13 +80,13 @@ ...@@ -80,13 +80,13 @@
<div>供应商赔款</div> <div>供应商赔款</div>
</td> </td>
<td> <td>
<div>{{value['供应商索赔']}}</div> <div>{{value['供应商索赔']||0}}</div>
</td> </td>
<td> <td>
<div>客户赔款</div> <div>客户赔款</div>
</td> </td>
<td> <td>
<div>{{value['客户索赔']}}</div> <div>{{value['客户索赔']||0}}</div>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -94,13 +94,13 @@ ...@@ -94,13 +94,13 @@
<div>超期应收额</div> <div>超期应收额</div>
</td> </td>
<td> <td>
<div>{{value['超期应收']}}</div> <div>{{value['超期应收']||0}}</div>
</td> </td>
<td> <td>
<div>超期应付额</div> <div>超期应付额</div>
</td> </td>
<td> <td>
<div>{{value['超期应付']}}</div> <div>{{value['超期应付']||0}}</div>
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -16,17 +16,18 @@ ...@@ -16,17 +16,18 @@
} }
</style> </style>
<template> <template>
<div class="capital"> <div class="capital" :style="list.length==0&&'background:#fff;height:100%;'">
<div class="card" v-for="(v,i) in list" :key="i"> <div class="card" v-if="list.length>0" v-for="(v,i) in list" :key="i">
<div> <div>
<div style="font-size:13px;margin-bottom:14px;">{{v.sName}}</div> <div style="font-size:13px;margin-bottom:14px;">{{v.sName}}</div>
<div style="font-size: 28px;font-weight: 600;">{{Number(v.sValue)||0}}</div> <div style="font-size: 28px;font-weight: 600;">{{Number(v.sValue)||0}}</div>
</div> </div>
<div style="align-self: flex-end;" > <div style="align-self: flex-end;" v-if="v.rate=0">
<div>{{v.rate}}</div> <div>{{v.rate>0?'↑':'↓'}}{{v.rate}}%</div>
<div>{{dateModeName}}</div> <div>{{dateModeName}}{{v.rate>0?'上':'下'}}</div>
</div> </div>
</div> </div>
<img src="@/assets/noData.jpg" style="width:100%;" v-if="list.length==0"/>
</div> </div>
</template> </template>
<script> <script>
...@@ -70,6 +71,8 @@ export default{ ...@@ -70,6 +71,8 @@ export default{
this.list=value.map(v=>{ this.list=value.map(v=>{
if(v.sValued==0){ if(v.sValued==0){
v.rate=100 v.rate=100
}else if(v.sValue==0){
v.rate=0
}else{ }else{
v.rate=Math.round((v.sValue-v.sValued)/v.sValued*100)/100 v.rate=Math.round((v.sValue-v.sValued)/v.sValued*100)/100
} }
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
} }
</style> </style>
<template> <template>
<div class="operate"> <div class="operate" :style="list.length==0&&'background:#fff;height:100%;'">
<table cellspacing="0"> <table cellspacing="0" v-if="list.length>0">
<tr> <tr>
<td></td> <td></td>
<td>米数</td> <td>米数</td>
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<img src="@/assets/noData.jpg" style="width:100%;" v-else/>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
<div class="CONTENT"> <div class="CONTENT">
<div class="iCard" v-for="(item,index) in chartData" :key="index" > <div class="iCard" v-for="(item,index) in chartData" :key="index" >
<div class="warehouse" :style="{'color':colorList[index]}">{{item.sStoreName}}</div> <div class="warehouse" :style="{'color':colorList[index]}">{{item.sStoreName}}</div>
<div class="piece"><span style="color:#8a8a8a;">总匹数:</span>{{item.nStockPieceQty}}</div> <div class="piece"><span style="color:#8a8a8a;">总匹数:</span>{{Number(item.nStockPieceQty).toLocaleString()}}</div>
<div class="qty"><span style="color:#8a8a8a;">总数量:</span>{{item.nStockQty}}</div> <div class="qty"><span style="color:#8a8a8a;">总数量:</span>{{Number(item.nStockQty).toLocaleString()}}</div>
</div> </div>
</div> </div>
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
const data = this.chartData; const data = this.chartData;
const map = {}; const map = {};
data.forEach(function(obj) { data.forEach(function(obj) {
map[obj.sStoreName] = obj.nAmount + '元'; map[obj.sStoreName] = (obj.nAmount||0) + '元';
}); });
this.myChart = new F2.Chart({ this.myChart = new F2.Chart({
id: 'myChart', id: 'myChart',
......
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