<template>
  <div class="auto">
    <criteria-paged :model="model" v-ref:paged>
      <data-grid  :model="model" partial='list' v-ref:grid >
        <template partial='head'>
          <tr>
            <th><nobr>序号</nobr></th>
            <th><nobr>原用户姓名</nobr></th>
            <th><nobr>现用户姓名</nobr></th>
            <th><nobr>现银行开户名</nobr></th>
            <th><nobr>现开户账号</nobr></th>
            <th><nobr>过户费</nobr></th>
            <th><nobr>付款方式</nobr></th>
            <th><nobr>操作人</nobr></th>
            <th><nobr>过户日期</nobr></th>
            <th><nobr></nobr></th>
          </tr>
        </template>
        <template partial='body'>
          <td ><nobr>{{$index + 1}}</nobr></td>
          <td ><nobr>{{row.f_user_name}}</nobr></td>
          <td ><nobr>{{row.f_newuser_name}}</nobr></td>
          <td ><nobr>{{row.f_newbank_accopen}}</nobr></td>
          <td ><nobr>{{row.f_newbank_account}}</nobr></td>
          <td ><nobr>{{row.f_transfer_fees}}</nobr></td>
          <td ><nobr>{{row.f_payment}}</nobr></td>
          <td ><nobr>{{row.f_operator}}</nobr></td>
          <td ><nobr>{{row.f_operate_date}}</nobr></td>
        </template>
        <template partial='foot'>
        </template>
      </data-grid>
    </criteria-paged>
  </div>
</template>

<script>
  import { PagedList } from 'vue-client'

  export default {
    title: '过户信息',
    data () {
      return {
        model: new PagedList('rs/sql/newtranQuery', 15,{})
      }
    },
    props: ['data'],
    ready () {
      console.log('过户信息',this.data)
      //u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
      this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
    }
  }

</script>
