<template>
  <div class="div_charge_record_item">
    <div class="div_charge_record_item_content" @click="onClickRecordItem">
      <div class="div_title">
        <span class="span_title">{{recordItem.receivableTime}}</span>
        <span class="span_value" style="font-size: 13px">¥  {{recordItem.receivableMoney}}</span>
      </div>
      <div class="div_title" style="align-items: center;margin-top: 5px">
        <div class="div_content">
          <span class="span_value">{{recordItem.ownerName}}   {{recordItem.ownerPhone}}</span>
          <span class="span_value">{{recordItem.location}}</span>
        </div>
        <img src="../../assets/images/common/icon_left_arrow.png" width="11px" height="11px"/>
      </div>
    </div>

    <div class="line_h"></div>
  </div>

</template>

<script>
  export default {
    name: "chargeRecordItem",
    props:{
      recordItem:{
        type:Object,
      }
    },
    methods:{
      onClickRecordItem(){
        this.$router.push({
          path:'/chargeRecordDetail',
          query:{
            rhId:this.recordItem.rhId
          }
        })
      }
    }
  }
</script>

<style scoped>
  .div_charge_record_item{
    display: flex;
    flex-direction: column;

  }
  .div_charge_record_item_content{
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .div_title{
    display: flex;
    justify-content: space-between;
  }
  .div_content{
    display: flex;
    flex-direction: column;
  }

  .line_h{
    width: 100%;
    background-color: #e8e8e8;
    height: 1px;
    transform-origin: 0 100%;
    transform: scaleY(0.5);
  }
  .span_title{
    font-size: 13px;
    color: #999999;
  }
  .span_value{
    font-size: 14px;
    color: #333333;
  }
</style>
