Commit 6aa70bfc authored by godwithdh's avatar godwithdh

boss

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