Commit 85a6b7b0 authored by godwithdh's avatar godwithdh

隐藏0

parent 297bdb4a
...@@ -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
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