Commit 564d0795 authored by godwithdh's avatar godwithdh

boss

parent ff6834b6
......@@ -95,11 +95,11 @@ export default {
methods:{
async search(){
var value=await this.request("getBoss",{
data:[{key:"url",value:"Financial Summary"}],
params:{
begin_date:util.dateFormat(this.start,"yyyy-MM-dd"),
end_date:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59',
},
data:[
{key:"url",value:"Financial Summary"},
{key:"begin_date",value:util.dateFormat(this.start,"yyyy-MM-dd")},
{key:"end_date",value:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59'},
]
},"加载中",{})
if(typeof value=='object'&&value.length>0){
this.list=value
......
......@@ -15,7 +15,7 @@
justify-content: center;
align-items: center;
background:#fff;
padding:5px 0;
padding:5px 2px;
}
&:first-child>div{
border-left:2px solid #8D90FF;
......@@ -39,13 +39,13 @@
<div>销售退货</div>
</td>
<td>
<div>{{value['销售退货']||0}}</div>
<div>{{Number(value['销售退货']||0).toLocaleString()}}</div>
</td>
<td style="width:100px;">
<div>采购退货</div>
</td>
<td>
<div>{{value['采购退货']||0}}</div>
<div>{{Number(value['采购退货']||0).toLocaleString()}}</div>
</td>
</tr>
<tr>
......@@ -53,13 +53,13 @@
<div>加工回修</div>
</td>
<td>
<div>{{value['加工回修']||0}}</div>
<div>{{Number(value['加工回修']||0).toLocaleString()}}</div>
</td>
<td>
<div>疵品数量</div>
</td>
<td>
<div>{{value['疵品汇总']||0}}</div>
<div>{{Number(value['疵品汇总']||0).toLocaleString()}}</div>
</td>
</tr>
<tr>
......@@ -70,13 +70,13 @@
<div>数量</div>
</td>
<td>
<div>{{value['拖期订单总数量']||0}}</div>
<div>{{Number(value['拖期订单总数量']||0).toLocaleString()}}</div>
</td>
<td>
<div>金额</div>
</td>
<td>
<div>{{value['拖期订单总金额']||0}}</div>
<div>{{Number(value['拖期订单总金额']||0).toLocaleString()}}</div>
</td>
</tr>
<tr>
......@@ -84,13 +84,13 @@
<div>供应商赔款</div>
</td>
<td>
<div>{{value['供应商索赔']||0}}</div>
<div>{{Number(value['供应商索赔']||0).toLocaleString()}}</div>
</td>
<td>
<div>客户赔款</div>
</td>
<td>
<div>{{value['客户索赔']||0}}</div>
<div>{{Number(value['客户索赔']||0).toLocaleString()}}</div>
</td>
</tr>
<tr>
......@@ -98,13 +98,13 @@
<div>超期应收额</div>
</td>
<td>
<div>{{value['超期应收']||0}}</div>
<div>{{Number(value['超期应收']||0).toLocaleString()}}</div>
</td>
<td>
<div>超期应付额</div>
</td>
<td>
<div>{{value['超期应付']||0}}</div>
<div>{{Number(value['超期应付']||0).toLocaleString()}}</div>
</td>
</tr>
</table>
......@@ -139,11 +139,11 @@ export default {
methods:{
async search(){
var value= await this.request('getBoss',{
data:[{key:"url",value:"Abnormal early warning"}],
params:{
begin_date:util.dateFormat(this.start,"yyyy-MM-dd"),
end_date:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59',
},
data:[
{key:"url",value:"Abnormal early warning"},
{key:"begin_date",value:util.dateFormat(this.start,"yyyy-MM-dd")},
{key:"end_date",value:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59'},
]
},"加载中",{})
if(typeof value=="object"&&value.length>0){
this.value=value[0]
......
......@@ -22,7 +22,7 @@
<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;" v-if="v.rate=0">
<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>
......@@ -69,16 +69,16 @@ export default{
methods:{
async search(){
var value=await this.request("getBoss",{
data:[{key:"url",value:"Summary of funds"}],
params:{
begin_date:util.dateFormat(this.start,"yyyy-MM-dd"),
end_date:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59',
}
data:[
{key:"url",value:"Summary of funds"},
{key:"begin_date",value:util.dateFormat(this.start,"yyyy-MM-dd")},
{key:"end_date",value:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59'},
]
},"加载中",{})
if(typeof value=='object'&&value.length>0){
this.list=value.map(v=>{
if(v.sValued==0){
v.rate=100
if(v.sValued==0&&v.sValue!=0){
v.rate=v.sValue>0?100:-100
}else if(v.sValue==0){
v.rate=0
}else{
......
......@@ -96,11 +96,11 @@ export default {
methods:{
async search(){
var value= await this.request('getBoss',{
data:[{key:"url",value:"Operation gai"}],
params:{
begin_date:util.dateFormat(this.start,"yyyy-MM-dd"),
end_date:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59',
},
data:[
{key:"url",value:"Operation gai"},
{key:"begin_date",value:util.dateFormat(this.start,"yyyy-MM-dd")},
{key:"end_date",value:(this.end?util.dateFormat(this.end,"yyyy-MM-dd"):util.dateFormat(new Date,"yyyy-MM-dd"))+' 23:59'},
],
},"加载中",{})
if(typeof value=='object'&&value.length>0){
this.list=value
......
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