Commit 564d0795 authored by godwithdh's avatar godwithdh

boss

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