<template>
  <div class="flex bg-white p-10  datapanel" v-show="(!echarts)&&(!isActiveTotalForm)">
    <criteria-paged :model="model" :pager='true' v-ref:paged>
      <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
        <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
          <div class="row" width="100%">
            <div  class="form-horizontal select-overspread container-fluid auto">
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">组织机构</label>
                <right-tree :userid.sync='$parent.$parent.obj.userid' :source.sync='$parent.$parent.obj.source'
                            :multiple="true"
                            @re-res="$parent.$parent.getRes"></right-tree>
              </div>

              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">月份</label>
                <datepicker placeholder="开始时间"
                            v-model="model.startDate"
                            :value.sync="model.startDate"
                            condition="f_hand_date = '{}'"
                            :disabled-days-of-Week="[]"
                            :format="'yyyy-MM-01'"
                            :show-reset-button="reset">
                </datepicker>
              </div>
            </div>

            <div class="col-sm-3 form-group ">
              <label class="control-label"></label>
              <button class="btn btn-success" @click="search()">查询</button>
              <label class="control-label"></label>
              <button class="btn btn-default" @click="$parent.$parent.clearmsg">清空</button>
              <label class="control-label" v-if="!$parent.$parent.excelTable">超过十万条限制导出</label>
              <export-excel v-if="$parent.$parent.excelTable"
                            :data="{condition: $parent.$parent.condition,startDate: model.startDate, endDate: model.endDate}"
                            :field="$parent.$parent.getfield"
                            sqlurl="rs/logic/exportfile" sql-name="manage_gasUseMonthByOrg"
                            template-name='工业用气汇总'
                            :choose-col="true"></export-excel>

            </div>
            <div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
                 style="position: relative;float: right;margin-right: 1%;">
              <img src="../../../static/webMeter/shousuo.png"><span>展开</span>
            </div>
            <div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
                 style="position: relative;float: right;margin-right: 1%;">
              <img src="../../../static/webMeter/shangsheng.png"><span>收缩</span>
            </div>

          </div>
        </div>
      </criteria>
      <data-grid id="lostuserlist" class="list_area table_sy" :model="model" partial='list' v-ref:grid>
        <template partial='head'>
          <tr>
            <th colspan="2" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>基础信息</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>1号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>2号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>3号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>4号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>5号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>6号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>7号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>8号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>9号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>10号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>11号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>12号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>13号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>14号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>15号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>16号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>17号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>18号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>19号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>20号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>21号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>22号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>23号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>24号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>25号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>26号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>27号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>28号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>29号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>30号</nobr></th>
            <th colspan="3" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>31号</nobr></th>
            <th colspan="2" style="text-align:center;border-right: 1.5px solid white;border-left: 1.5px solid white"><nobr>总计</nobr></th>
          </tr>
          <tr>
            <th style="text-align:center"><nobr>组织机构</nobr></th>
            <th style="text-align:center"><nobr>上报月份</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
            <th style="text-align:center"><nobr>余额</nobr></th>
            <th style="text-align:center"><nobr>气量</nobr></th>
            <th style="text-align:center"><nobr>金额</nobr></th>
          </tr>

        </template>
        <template partial='body'>
          <td style="text-align:center"><nobr>{{row.f_filiale}}</nobr></td>
          <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
          <th style="text-align:center"><nobr>{{row.f_oughtamount1}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee1}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance1}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount2}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee2}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance2}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount3}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee3}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance3}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount4}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee4}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance4}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount5}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee5}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance5}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount6}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee6}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance6}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount7}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee7}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance7}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount8}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee8}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance8}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount9}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee9}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance9}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount10}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee10}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance10}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount11}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee11}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance11}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount12}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee12}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance12}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount13}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee13}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance13}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount14}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee14}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance14}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount15}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee15}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance15}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount16}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee16}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance16}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount17}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee17}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance17}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount18}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee18}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance18}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount19}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee19}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance19}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount20}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee20}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance20}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount21}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee21}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance21}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount22}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee22}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance22}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount23}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee23}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance23}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount24}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee24}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance24}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount25}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee25}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance25}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount26}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee26}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance26}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount27}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee27}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance27}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount28}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee28}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance28}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount29}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee29}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance29}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount30}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee30}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance30}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount31}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee31}}</nobr></th>
          <th style="text-align:center"><nobr> {{row.f_daybalance31}}</nobr></th>
          <th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
          <th style="text-align:center"><nobr>   {{row.f_oughtfee}}</nobr></th>


        </template>
      </data-grid>
    </criteria-paged>
  </div>
</template>

<script>
  import {PagedList} from 'vue-client'
  import * as Util from '../../Util'
  import getLodop from '../../plugins/LodopFuncs'
  import {HttpResetClass} from 'vue-client'

  export default {
    title: '月用气量查询',
    data() {
      return {
        model: new PagedList('rs/sql/manage_gasUseMonthByOrg', 20, {
          startDate: 'this.model.startDate'
        }),
        reportStr: null,
        show: false,
        startDate: '',
        endDate: '',
        Gasusertype: [],
        Gasproperties: [],
        Gasproperties2: [],
        outlets: [],
        operator: [],
        filename: '',
        echarts: false,
        searchshow: false,
        isActiveTotalForm: false,
        condition: '1=1',
        filialeCodeStr: '',
        excelTable: true,
        getfield: {},
        config: {
          excelHeaders: {
            'f_filiale': '组织机构',
            'f_hand_date': '上报月份',
            'f_oughtamount1': '1号用气量',
            'f_oughtfee1': '1号用气金额',
            'f_daybalance1': '1号余额',
            'f_oughtamount2': '2号用气量',
            'f_oughtfee2': '2号用气金额',
            'f_daybalance2': '2号余额',
            'f_oughtamount3': '3号用气量',
            'f_oughtfee3': '3号用气金额',
            'f_daybalance3': '3号余额',
            'f_oughtamount4': '4号用气量',
            'f_oughtfee4': '4号用气金额',
            'f_daybalance4': '4号余额',
            'f_oughtamount5': '5号用气量',
            'f_oughtfee5': '5号用气金额',
            'f_daybalance5': '5号余额',
            'f_oughtamount6': '6号用气量',
            'f_oughtfee6': '6号用气金额',
            'f_daybalance6': '6号余额',
            'f_oughtamount7': '7号用气量',
            'f_oughtfee7': '7号用气金额',
            'f_daybalance7': '7号余额',
            'f_oughtamount8': '8号用气量',
            'f_oughtfee8': '8号用气金额',
            'f_daybalance8': '8号余额',
            'f_oughtamount9': '9号用气量',
            'f_oughtfee9': '9号用气金额',
            'f_daybalance9': '9号余额',
            'f_oughtamount10': '10号用气量',
            'f_oughtfee10': '10号用气金额',
            'f_daybalance10': '10号余额',
            'f_oughtamount11': '11号用气量',
            'f_oughtfee11': '11号用气金额',
            'f_daybalance11': '11号余额',
            'f_oughtamount12': '12号用气量',
            'f_oughtfee12': '12号用气金额',
            'f_daybalance12': '12号余额',
            'f_oughtamount13': '13号用气量',
            'f_oughtfee13': '13号用气金额',
            'f_daybalance13': '13号余额',
            'f_oughtamount14': '14号用气量',
            'f_oughtfee14': '14号用气金额',
            'f_daybalance14': '14号余额',
            'f_oughtamount15': '15号用气量',
            'f_oughtfee15': '15号用气金额',
            'f_daybalance15': '15号余额',
            'f_oughtamount16': '16号用气量',
            'f_oughtfee16': '16号用气金额',
            'f_daybalance16': '16号余额',
            'f_oughtamount17': '17号用气量',
            'f_oughtfee17': '17号用气金额',
            'f_daybalance17': '17号余额',
            'f_oughtamount18': '18号用气量',
            'f_oughtfee18': '18号用气金额',
            'f_daybalance18': '18号余额',
            'f_oughtamount19': '19号用气量',
            'f_oughtfee19': '19号用气金额',
            'f_daybalance19': '19号余额',
            'f_oughtamount20': '20号用气量',
            'f_oughtfee20': '20号用气金额',
            'f_daybalance20': '20号余额',
            'f_oughtamount21': '21号用气量',
            'f_oughtfee21': '21号用气金额',
            'f_daybalance21': '21号余额',
            'f_oughtamount22': '22号用气量',
            'f_oughtfee22': '22号用气金额',
            'f_daybalance22': '22号余额',
            'f_oughtamount23': '23号用气量',
            'f_oughtfee23': '23号用气金额',
            'f_daybalance23': '23号余额',
            'f_oughtamount24': '24号用气量',
            'f_oughtfee24': '24号用气金额',
            'f_daybalance24': '24号余额',
            'f_oughtamount25': '25号用气量',
            'f_oughtfee25': '25号用气金额',
            'f_daybalance25': '25号余额',
            'f_oughtamount26': '26号用气量',
            'f_oughtfee26': '26号用气金额',
            'f_daybalance26': '26号余额',
            'f_oughtamount27': '27号用气量',
            'f_oughtfee27': '27号用气金额',
            'f_daybalance27': '27号余额',
            'f_oughtamount28': '28号用气量',
            'f_oughtfee28': '28号用气金额',
            'f_daybalance28': '28号余额',
            'f_oughtamount29': '29号用气量',
            'f_oughtfee29': '29号用气金额',
            'f_daybalance29': '29号余额',
            'f_oughtamount30': '30号用气量',
            'f_oughtfee30': '30号用气金额',
            'f_daybalance30': '30号余额',
            'f_oughtamount31': '31号用气量',
            'f_oughtfee31': '31号用气金额',
            'f_daybalance31': '31号余额',
            'f_oughtamount': '用气量',
            'f_oughtfee': '用气金额'
          }
        },
        obj: {
          userid: this.$login.f.id,
          source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
          res: this.$login.f.f_fengongsi,
          resids: this.$login.f.f_orgids
        }
      }
    },
    ready() {
      this.$refs.paged.$refs.cri.model.startDate = Util.toStandardYearMonth() + '-01'
      this.getfield = this.config.excelHeaders
    },
    methods: {
      clickshow() {
        this.searchshow = !this.searchshow
      },
      search(args) {
        let start = this.$refs.paged.$refs.cri.model.startDate
        if (start == null || start == '' ) {
          return this.$showMessage("年月不能为空！")
        }
        this.startDate = start
        const filialeCondition = this.filialeCodeStr || this.getDefaultOrgCondition()
        if (filialeCondition) {
          args.condition = `${args.condition} and ${filialeCondition}`
        }
        let str = args.condition
        this.model.search(args.condition, args.model)
        console.log(str + "str")
        this.condition = str
      },
      getRes(obj) {
        this.obj.res = obj.res
        this.obj.resids = obj.resids
        const ids = (obj.resids || '').split(',').map(item => item.trim()).filter(item => item)
        if (ids.length <= 1) {
          this.filialeCodeStr = ids[0] ? `ui.f_filialeids like '${ids[0]}%'` : ''
        } else {
          const parts = ids.map(code => `ui.f_filialeids like '${code}%'`)
          this.filialeCodeStr = `(${parts.join(' or ')})`
        }
      },
      getDefaultOrgCondition () {
        const defaultOrg = this.$login.f.f_orgids || ''
        return defaultOrg ? `ui.f_filialeids like '${defaultOrg}%'` : ''
      },
      clearmsg() {
        this.$refs.paged.$refs.cri.model = {}
      },
      close() {
        this.show = false
      },

    },
    watch: {
    },
    computed: {
      Gasusertype() {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
      },
      Gasproperties() {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
      }
    }
  }
</script>
<style>
  .form-input-group label {
    text-align: right;
    width: auto;
  }

  .mystyle {
    float: right;
    padding-right: 10%;
  }

  .mystyle1 {
    padding-top: 10px;

  }

  .mystyle2 {
    width: 100%;
    height: 35px;
    padding-left: 15px;
    float: left;
  }

  .datapanel {
    color: #333;
    background-color: white;
    box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
    padding: 10px 30px 10px 30px;
    border-radius: 15px;
  }
</style>
