<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>
          </tr>
        </template>
        <template partial='body'>
          <td ><nobr>{{$index + 1}}</nobr></td>
          <td ><nobr>{{row.f_fillcard_type}}</nobr></td>
          <td ><nobr>{{row.f_card_id}}</nobr></td>
          <td ><nobr>{{row.f_cardfees}}</nobr></td>
          <td ><nobr>{{row.f_operator}}</nobr></td>
          <td ><nobr>{{row.f_operate_date}}</nobr></td>
          <td ><nobr>{{row.f_state}}</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/newfillCardQuery', 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>

