Commit 1ac55143 authored by 张锡奇's avatar 张锡奇
parents 8bd9ebf1 b56690ba
...@@ -54,17 +54,19 @@ export default { ...@@ -54,17 +54,19 @@ export default {
methods:{ methods:{
async getDetail(){ async getDetail(){
this.columns[1].field=this.$route.params.sCustomerType=='客户'?'应收':'应付' this.columns[1].field=this.$route.params.sCustomerType=='客户'?'应收':'应付'
this.list=await this.request("getTiipLiabilities",{ var value=await this.request("getTiipLiabilities",{
params:{ params:{
iCustomerId:this.$route.params.iCustomerId, iCustomerId:this.$route.params.iCustomerId,
sType:'Details', sType:'Details',
sCustomerType:this.$route.params.sCustomerType, sCustomerType:this.$route.params.sCustomerType,
} }
},"加载中",{}) },"加载中",{})
this.list.map(x=>{ this.list=value.filter(v=>v[this.columns[1].field]).map(v=>{
x['应收'] = ((Math.round(x['应收']*100)/100)||"").toLocaleString(); v[this.columns[1].field] = ((Math.round(v[this.columns[1].field]*100)/100)).toLocaleString();
return v;
}) })
} }
}, },
} }
</script> </script>
\ No newline at end of file
...@@ -300,7 +300,8 @@ export default { ...@@ -300,7 +300,8 @@ export default {
{key:"url",value: 'Operation gai sType-material'}, {key:"url",value: 'Operation gai sType-material'},
{key:"sType",value:"销售"}, {key:"sType",value:"销售"},
{key:"begin_date",value:Util.dateFormat(this.DateValue[0],"yyyy-MM-dd")}, {key:"begin_date",value:Util.dateFormat(this.DateValue[0],"yyyy-MM-dd")},
{key:"end_date",value:Util.dateFormat(this.DateValue[1]||this.DateValue[0],"yyyy-MM-dd 23:59")} {key:"end_date",value:Util.dateFormat(this.DateValue[1]||this.DateValue[0],"yyyy-MM-dd 23:59")},
{key:"upbCustomerGUID",value:this.upbCustomerGUID}
] ]
}else if(/^1$|^2$/.test(this.mode)){ }else if(/^1$|^2$/.test(this.mode)){
if(this.per_page<50)return; if(this.per_page<50)return;
......
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