<template>
  <div class="auto">
    <partial-view v-ref:pv>
      <div class="row">
        <label class = "col-sm-4">过户前姓名:</label>
        <span class = "col-sm-8">{{model.f_user_name}}</span>

      </div>
      <div class="row">
        <label class = "col-sm-4">过户后姓名:</label>
        <span class = "col-sm-8">{{model.f_newuser_name}}</span>
      </div>
      <div class="row">
        <label class = "col-sm-4">过户费:</label>
        <span style="padding:0" class = "col-sm-8">{{model.f_transfer_fees}}</span>
      </div>
      <div class="row">
        <label class = "col-sm-4">备注:</label>
        <span style="padding:0" class = "col-sm-8">{{model.f_comments}}</span>
      </div>
      <div class="row">
        <label class = "col-sm-4">操作人:</label>
        <span class = "col-sm-8" style="text-align:left">{{model.f_operator}}</span>
      </div>
      <div class="row">
        <label class = "col-sm-4">操作时间:</label>
        <span class = "col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
      </div>
    </partial-view>
  </div>
</template>

<script>
export default {
  title: '过户详情',
  props: ['data'],
  data () {
    return {
      model: {}
    }
  },
  ready () {
    let sql = 'getTransfer'
    let condition = {
      id: this.data.id,
      f_userinfo_id: this.data.f_userinfo_id
    }
    this.$info(`加载数据中..., sql:${sql}`)
    this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: condition}}).then((a) => {
      this.$info(`成功获取到数据！, data:${JSON.stringify(a.data)}`)
      this.model = a.data
    }).catch((error) => {
      if (error.status) {
        this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
        return
      }
      throw error
    })
  }
}
</script>
