<template>
<div>
  <el-descriptions :column="5"  size="mini">
    <el-descriptions-item label="付款单">{{record.paymentNo}}</el-descriptions-item>
    <el-descriptions-item label="客户名称">{{record.customerName}}</el-descriptions-item>
    <el-descriptions-item label="创建时间">{{parseTime(record.createTime)}}</el-descriptions-item>
    <el-descriptions-item label="业务员">{{record.salesmanName}}</el-descriptions-item>
    <el-descriptions-item label="付款金额">{{record.totalAmount}}rmb</el-descriptions-item>
  </el-descriptions>
  <router-link :to="{path:'/financial/commission-requestFunds',query:{lookId: this.id}}">
    <el-button>查看详情</el-button>
  </router-link>
</div>
</template>

<script>

import {getCommissionPayment} from "@/api/ecw/financial";
import {parseTime} from "../../../../utils/ruoyi";

export default {
  name: "commissionPaymentDetails",
  methods: {parseTime},
  props:{
    id:{
      type:[Number, String],
      default:()=>0
    },
  },
  data(){
    return {
      record:{}
    }
  },
  watch:{
    id:{
      handler:function (newVal){
        getCommissionPayment({id:newVal}).then(r => {
          console.log(r.data, '审批')
          this.record = r.data;
        })
      },
      immediate:true,
    }
  }
}
</script>

<style scoped lang="scss">

</style>
