<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_operate_date}}</nobr></td>
          <td ><nobr>{{row.f_state}}</nobr></td>
          <td ><nobr>{{row.f_type}}</nobr></td>
          <td ><nobr>{{row.f_payment}}</nobr></td>
          <td ><nobr>{{row.f_pregas}}</nobr></td>
          <td ><nobr>{{row.f_preamount}}</nobr></td>
          <td ><nobr>{{row.f_collection}}</nobr></td>
          <td ><nobr>{{row.f_last_tablebase}}</nobr></td>
          <td ><nobr>{{row.f_tablebase}}</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/newsellQuery', 15,{})
      }
    },
    props: ['data'],
    ready () {
      console.log('收费明细查询',this.data)
      this.model.search(`f_userinfo_code = '${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
      //this.model.search(`f_userinfo_code = '${this.data.f_userinfo_code}'`)
    }
  }

</script>
