liabilities_detail.vue 1.83 KB
Newer Older
godwithdh's avatar
godwithdh committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<style lang="less">
    @import url('../../../styles/common.less');
    #liabilitiesDetail{

    }
</style>
<template>
    <div id="liabilitiesDetail">
        <div class="Table">
            <customerTable :columns="columns" :list="list" :tableStyle="tableStyle" />
        </div>
    </div>
</template>
<script>
import Util from '@/libs/util.js';
import customerTable from '@/components/Table'
export default {
    name:"liabilitiesDetail",
    components:{customerTable},
    data(){
        return{
            list:[],
            columns:[
                {
                    width:"50%",
                    name:"日期",
                    align:"center",
                    field:"dBillDate",
                },
                {
                    width:'50%',
                    name:'金额',
                    align:'center',
                    field:'应收',
                }
            ],
            tableStyle:{
                theadBgColor:'rgba(223,238,253,1)',
                complexTrBgColor:'white',
                singleTrBgColor:'#eef4fe',
                theadTdBorder:false,
                tbodyTdBorder:false,
                tbodyHeight:'calc(100vh)',
                tbodyTrBorderBottom:'1px solid #dbe9f8',
                width:'100%'
            },
        }
    },
    mounted(){
        this.$nextTick(()=>{
            this.getDetail();
        })
    },
    methods:{
        async getDetail(){
godwithdh's avatar
godwithdh committed
56
            this.columns[1].field=this.$route.params.sCustomerType=='客户'?'应收':'应付'
godwithdh's avatar
godwithdh committed
57 58 59 60 61 62 63 64 65 66 67
            this.list=await this.request("getTiipLiabilities",{
                params:{
                    iCustomerId:this.$route.params.iCustomerId,
                    sType:'Details',
                    sCustomerType:this.$route.params.sCustomerType,
                }
            },"加载中",{})
        }
    },
}
</script>