<template>

  <app-base>
    <div id="content"></div>

    <modal :show.sync="stat.isUpload" width="500px" title="文件导入" v-ref:modal large backdrop="false">
      <article slot="modal-body" class="modal-body">
        <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
                     action="rs/file/uploadFile" tagname="导入抄表册" v-ref:file :headers="headers" multiple></file-upload>
      </article>
      <footer slot="modal-footer" class="modal-footer">
      </footer>
    </modal>

  </app-base>
</template>

<script>
import Comp from "./comp"
import {HttpResetClass} from 'vue-client'
import Vue from "vue"

export default {
  data() {
    return {
      // show: false
      stat: null
    }
  },

  events: {
    onFileUpload: function (file, res) {
      let data = {
        filepath: res.f_downloadpath
      }
      new HttpResetClass().load('POST','/rs/logic/upLoadBookFile', {data: data}, {
        resolveMsg: '导入成功',
        rejectMsg: '导入失败'
      }).then((res) => {
        this.stat.isUpload = false
      })
    }
  },
  ready() {

      // 设置模板为测试,,
      global.canvas = "TestDataComponent";
      global.myjson = Object.assign(global.myjson, {
        TestDataComponent:
          {"template":{"Column":"@300,1*","children":[{"children":[{"Name":"@上边","type":"Grid","PaddingTop":"@3","Column":"@*,*","PaddingBottom":"@4","Classes":"@BorderRect","Bottom":"@1","PaddingLeft":"@5","PaddingRight":"@5","StrokeStyle":"@#dce0e3","Pos":"@Top","Row":"@*,*","children":[{"type":"Button","Text":"@查询","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg"}}},{"PaddingTop":"@8","type":"Stack","PaddingBottom":"@4"}]},{"children":[{"type":"Scroll","Slots":{"item":{"Name":"@安检计划","Data":"stat.Data.meterbook.list.data","@Change":"stat.Call($openBook$, e.Value.self)","Slots":{"item":{"Background":"data.id==stat.Data.selectBook.id: $#d8eafb$, this.MouseIn: $#f5f6f7$, $$","PaddingBottom":"@1","children":[{"@DragOver":"stat.DragOver()","children":[{"type":"Text","Font":"@15px 微软雅黑","Text":"data.f_book_name","ColSpan":"@2"},{"Name":"@编辑","Classes":"@BorderRound","@Click":"stat.Call($editBook$,data.self),stat.ShowModal($upPlan$,$编辑抄表册$,$editBookSave$,$cancel$)","Slots":{"item":{"Name":"Button_Image","Path":"@edit","type":"Image"}},"type":"Button"},{"Name":"@删除","@Click":"stat.Call($deleteBook$,data.self),stat.ShowModal($deleteMsg$,$$,$delete$,$cancel$)","Slots":{"item":{"Path":"@delete","Name":"Button_Image","type":"Image"}},"type":"Button","Classes":"@BorderRound"},{"FillStyle":"@#4792de","Text":"$所属公司：{data.f_filiale_name}$","type":"Text","ColSpan":"@2","Top":"@12"},{"ColSpan":"@2","HAlign":"@Right","Top":"@10","children":[{"StrokeStyle":"@#cfdce8","Text":"$抄表员：{data.f_inputtor}$","Classes":"@BorderRound","PaddingLeft":"@5","PaddingRight":"@5","type":"Text","PaddingTop":"@2","Font":"@12px 微软雅黑","FillStyle":"@#4792de","Background":"@#ffffff","ColSpan":"@3","PaddingBottom":"@2","Radius":"@8"}],"type":"Stack"},{"Text":"$创建人: {data.f_operator}$","Top":"@12","ColSpan":"@2","type":"Text","Classes":"@NormalFontLighter"},{"type":"Text","Text":"@人数","Top":"@12","Left":"@10","Classes":"@NormalFontLighter"},{"Text":"data.num","Top":"@12","Classes":"@NormalFontHeavy","type":"Text","ColSpan":"@1","Name":"@总数","HAlign":"@Center"},{"Text":"@公司","Top":"@12","type":"Text","Classes":"@NormalFontLighter"},{"Classes":"@NormalFontHeavy","Top":"@12","type":"Text","Text":"data.f_orgname","Left":"@5"},{"Left":"@10","Top":"@12","type":"Text","Text":"@部门","Classes":"@NormalFontLighter"},{"Top":"@12","Classes":"@NormalFontHeavy","type":"Text","HAlign":"@Right","Text":"data.f_depname"},{"Top":"@12","Text":"$抄表周期：{data.f_period}$","ColSpan":"@4","type":"Text"},{"Text":"@备注","type":"Text","Top":"@12"},{"Text":"data.f_book_remark","ColSpan":"@3","type":"Text","Top":"@12"}],"type":"Grid","Row":"@*,*,*,*,*,*","Column":"@42,1*,42,1*","PaddingBottom":"@20","PaddingLeft":"@10","PaddingRight":"@10","@Drop":"stat.Call($moveOneBook$,data.id,stat.GetDrag())","PaddingTop":"@20"},{"type":"Stack","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Left":"@5","Right":"@5"}],"type":"Stack","Width":"@300","Original":"@V"}},"type":"List"}}},{"Left":"@5","Right":"@5","type":"Stack","StrokeStyle":"@#dfe4e7","Classes":"@BorderRect"},{"PaddingRight":"@20","PaddingTop":"@10","PaddingBottom":"@10","Column":"@1*,1*","children":[{"type":"Text","Text":"$共{stat.Data.meterbook.list.count}条$"},{"@Click":"stat.Call($loadMore$,$meterbook$)","Slots":{"item":{"children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Text":"@更多","Left":"@4","type":"Text"}],"type":"Stack","Name":"LoadMoreButton_Stack"}},"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","HAlign":"@Right"}],"type":"Grid","Row":"@1*","PaddingLeft":"@20"},{"Right":"@5","Left":"@5","Classes":"@BorderRect","type":"Stack","StrokeStyle":"@#dfe4e7"},{"type":"Button","Bottom":"@20","HAlign":"@Center","Top":"@20","Classes":"@BorderRound","@Click":"stat.ShowModal($NewPlan$,$添加抄表册$,$addNewBook$,$cancel$)","Slots":{"item":{"Path":"this.MouseIn:$addnewhover$,$addnew$","type":"Image","Name":"Button_Image"}}}],"type":"Grid","Classes":"@NormalFontlight","Column":"@1*","Row":"@1*,0,*,0,*","Pos":"@Center"}],"type":"Dock","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Name":"@左边","Background":"@#ffffff"},{"Background":"@#f5f7f9","Classes":"@BorderRect","children":[{"Row":"@1*","Column":"@*,1*,*","children":[{"VAlign":"@Center","PaddingLeft":"@40","Text":"stat.Data.selectBook.f_book_name","type":"Text","HAlign":"@Center"},{"type":"Text","Text":"@"},{"type":"Stack","Bottom":"@4","Top":"@4","children":[{"Text":"@导出","Classes":"@Button2","Right":"@24","@Click":"stat.Call($downFile$)","type":"Button"},{"Right":"@10","Text":"@导入","Classes":"@Button2","@Click":"stat.Call($upLoad$)","type":"Button"}]}],"type":"Grid","Pos":"@Top"},{"type":"Grid","Column":"@1*","Pos":"@Center","Row":"@1*,1*","children":[{"PaddingTop":"@12","Column":"@1*","Row":"@*,*,1*,*","children":[{"Bottom":"@17","children":[{"Text":"@册内用户","VAlign":"@Center","type":"Text"},{"Left":"@10","PlaceHolder":"@用户编号","@Change":"stat.Call($setProperty$, $bookuser$, $f_userinfo_code$, e.Value)","type":"Input","Value":"stat.Data.bookuser.search.model.f_userinfo_code","Width":"@130"},{"Classes":"@BorderRect","@Change":"stat.Call($setProperty$, $bookuser$, $f_user_name$, e.Value)","type":"Input","Value":"stat.Data.bookuser.search.model.f_user_name","Left":"@10","Width":"@130","PlaceHolder":"@客户姓名"},{"@Change":"stat.Call($setProperty$, $bookuser$, $f_address$, e.Value)","type":"Input","Width":"@130","Classes":"@BorderRect","PlaceHolder":"@客户地址","Value":"stat.Data.bookuser.search.model.f_address","Left":"@10"},{"Width":"@100","Left":"@10","Classes":"@BorderRect","@Change":"stat.Call($setProperty$, $bookuser$, $f_price_name$, e.Value)","type":"Input","PlaceHolder":"@气价名称","Value":"stat.Data.bookuser.search.model.f_price_name"},{"Value":"stat.Data.bookuser.search.model.f_user_phone","@Change":"stat.Call($setProperty$, $bookuser$, $f_user_phone$, e.Value)","type":"Input","Width":"@130","Left":"@10","PlaceHolder":"@客户电话"},{"PlaceHolder":"@客户类型","Width":"@130","Left":"@10","Value":"stat.Data.bookuser.search.model.f_user_type","@Change":"stat.Call($setProperty$, $bookuser$, $f_user_type$, e.Value)","type":"Input"},{"Width":"@130","Value":"stat.Data.bookuser.search.model.f_gasproperties","@Change":"stat.Call($setProperty$, $bookuser$, $f_gasproperties$, e.Value)","type":"Input","Left":"@10","PlaceHolder":"@用气性质"},{"Width":"@130","Left":"@10","Value":"stat.Data.bookuser.search.model.f_meter_brand","@Change":"stat.Call($setProperty$, $bookuser$, $f_meter_brand$, e.Value)","type":"Input","PlaceHolder":"@气表品牌"},{"Value":"stat.Data.bookuser.search.model.f_meter_style","@Change":"stat.Call($setProperty$, $bookuser$, $f_meter_style$, e.Value)","type":"Input","Width":"@120","Left":"@10","PlaceHolder":"@气表型号"},{"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchBookUser$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}}}],"type":"Stack"},{"type":"Stack","children":[{"Classes":"@BorderRect","@Change":"stat.Call($setProperty$, $bookuser$, $f_residential_area$, e.Value)","type":"Input","Height":"@30","PlaceHolder":"@小区名称","Width":"@130","Left":"@65","Bottom":"@5","Value":"stat.Data.bookuser.search.model.f_residential_area"},{"PlaceHolder":"@楼栋号","@Change":"stat.Call($setProperty$, $bookuser$, $f_building$, e.Value)","type":"Input","Value":"stat.Data.bookuser.search.model.f_building","Classes":"@BorderRect","Left":"@10","Width":"@130","Height":"@30"},{"Left":"@10","Width":"@130","@Change":"stat.Call($setProperty$, $bookuser$, $f_unit$, e.Value)","type":"Input","Height":"@30","PlaceHolder":"@单元","Value":"stat.Data.bookuser.search.model.f_unit","Classes":"@BorderRect"},{"Width":"@100","Height":"@30","@Change":"stat.Call($setProperty$, $bookuser$, $f_adjustable_id$, e.Value)","type":"Input","Left":"@10","Classes":"@BorderRect","PlaceHolder":"@表箱号","Value":"stat.Data.bookuser.search.model.f_adjustable_id"}]},{"@Drop":"stat.Call($userInToBook$,stat.Data.selectBook.id,stat.GetDrag())","@DragStart":"stat.SetDrag($in$)","@DragOver":"stat.DragOver()","Slots":{"head":{"type":"Grid","Row":"@1*","children":[{"children":[{"@Change":"stat.Call($setCheckAll$, $bookuser$)","type":"CheckBox"},{"type":"Text","Text":"@全选","Left":"@9"}],"type":"Stack","HAlign":"@Center","Classes":"@DataGridHead"},{"type":"Text","Classes":"@DataGridHead","Text":"@用户编号","Name":"@用户编号"},{"Text":"@客户姓名","type":"Text","Classes":"@DataGridHead"},{"Text":"@客户地址","type":"Text","Classes":"@DataGridHead"},{"Text":"@表箱号","type":"Text","Classes":"@DataGridHead"},{"type":"Text","Classes":"@DataGridHead","Text":"@表底数"},{"Text":"@用户类型","Classes":"@DataGridHead","type":"Text"},{"type":"Text","Text":"@用气类型","Classes":"@DataGridHead"},{"type":"Text","Text":"@气表品牌","Classes":"@DataGridHead"},{"type":"Text","Classes":"@DataGridHead","Text":"@气表型号"},{"type":"Text","Text":"@上次抄表时间","Classes":"@DataGridHead"},{"type":"Text","Text":"@表号","Classes":"@DataGridHead"}]},"item":{"type":"Grid","Row":"@1*","children":[{"type":"CheckBox","Classes":"@DataGridBody","HAlign":"@Center","IsSelected":"stat.Data.bookuser.check.Call($isChecked$, data.f_userfiles_id)","@Change":"stat.Call($setCheck$, $bookuser$, data.f_userfiles_id)"},{"type":"Text","Name":"@用户编号","Classes":"@DataGridBody","Text":"data.f_userinfo_code"},{"Text":"data.f_user_name","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_address"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_adjustable_id"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_meter_base"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_user_type"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_gasproperties"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_meter_brand"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_meter_style"},{"type":"Text","Text":"data.f_hand_date","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_meternumber"}]}},"type":"DataGrid","Data":"stat.Data.bookuser.list.data","Classes":"@BorderRect","Column":"@100,100,100,270,100,100,100,100,100,100,150,100"},{"Top":"@12","Row":"@1*","Column":"@*,*,1*,*","PaddingTop":"@5","Classes":"@NormalFontlight","children":[{"type":"Text","Text":"@"},{"type":"Text","VAlign":"@Center","Text":"$共{stat.Data.bookuser.list.count}条$","Left":"@20"},{"Text":"@ ","type":"Text"},{"Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Left":"@4","Text":"@更多","type":"Text"}]}},"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$bookuser$)"}],"type":"Grid"}],"PaddingRight":"@24","PaddingBottom":"@20","PaddingLeft":"@10","type":"Grid","StrokeStyle":"@#dfe4e7","Classes":"@BorderRect"},{"PaddingTop":"@12","PaddingLeft":"@10","PaddingBottom":"@20","PaddingRight":"@24","Classes":"@BorderRect","children":[{"type":"Stack","Bottom":"@17","children":[{"type":"Text","Text":"@未在册内用户","VAlign":"@Center"},{"@Change":"stat.Call($setProperty$, $notinbookuser$, $f_userinfo_code$, e.Value)","type":"Input","Left":"@10","PlaceHolder":"@用户编号","Value":"stat.Data.notinbookuser.search.model.f_userinfo_code","Width":"@120"},{"type":"Input","Classes":"@BorderRect","Left":"@10","Width":"@125","PlaceHolder":"@客户姓名","Value":"stat.Data.notinbookuser.search.model.f_user_name","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_user_name$, e.Value)"},{"Classes":"@BorderRect","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_address$, e.Value)","type":"Input","Left":"@10","Width":"@125","PlaceHolder":"@客户地址","Value":"stat.Data.notinbookuser.search.model.f_address"},{"type":"Input","Left":"@10","Classes":"@BorderRect","PlaceHolder":"@气价名称","Value":"stat.Data.notinbookuser.search.model.f_price_name","Width":"@100","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_price_name$, e.Value)"},{"@Change":"stat.Call($setProperty$, $notinbookuser$, $f_user_phone$, e.Value)","type":"Input","Value":"stat.Data.notinbookuser.search.model.f_user_phone","Left":"@10","Width":"@125","PlaceHolder":"@客户电话"},{"@Change":"stat.Call($setProperty$, $notinbookuser$, $f_user_type$, e.Value)","type":"Input","Value":"stat.Data.notinbookuser.search.model.f_user_type","Width":"@125","Left":"@10","PlaceHolder":"@客户类型"},{"Width":"@130","Left":"@10","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_gasproperties$, e.Value)","type":"Input","PlaceHolder":"@用气性质","Value":"stat.Data.notinbookuser.search.model.f_gasproperties"},{"type":"Input","Left":"@10","PlaceHolder":"@气表品牌","Value":"stat.Data.notinbookuser.search.model.f_meter_brand","Width":"@130","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_meter_brand$, e.Value)"},{"type":"Input","PlaceHolder":"@气表型号","Value":"stat.Data.notinbookuser.search.model.f_meter_style","Width":"@130","Left":"@10","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_meter_style$, e.Value)"},{"@Click":"stat.Call($searchNotInBookUser$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button","Classes":"@SearchButton BorderRound","Left":"@10"}]},{"type":"Stack","children":[{"Width":"@130","Bottom":"@5","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_residential_area$, e.Value)","type":"Input","PlaceHolder":"@小区名称","Value":"stat.Data.notinbookuser.search.model.f_residential_area","Height":"@30","Left":"@90"},{"Height":"@30","PlaceHolder":"@楼栋号","Value":"stat.Data.notinbookuser.search.model.f_building","Width":"@130","Left":"@10","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_building$, e.Value)","type":"Input"},{"Left":"@10","PlaceHolder":"@单元","Value":"stat.Data.notinbookuser.search.model.f_unit","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_unit$, e.Value)","type":"Input","Width":"@130","Height":"@30"},{"Left":"@10","PlaceHolder":"@表箱号","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_adjustable_id$, e.Value)","type":"Input","Value":"stat.Data.notinbookuser.search.model.f_adjustable_id","Width":"@100","Height":"@30"}]},{"@DragStart":"stat.SetDrag($out$)","@DragOver":"stat.DragOver()","Slots":{"item":{"children":[{"HAlign":"@Center","@Change":"stat.Call($setCheck$, $notinbookuser$, data.f_userfiles_id)","type":"CheckBox","IsSelected":"stat.Data.notinbookuser.check.Call($isChecked$, data.f_userfiles_id)","Classes":"@DataGridBody","VAlign":"@Center"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_userinfo_code","Name":"@用户编号"},{"Text":"data.f_user_name","type":"Text","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_address"},{"Classes":"@DataGridBody","Text":"data.f_price_name","type":"Text"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_adjustable_id"},{"Classes":"@DataGridBody","Text":"data.f_user_phone","type":"Text"},{"type":"Text","Text":"data.f_user_type","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_gasproperties","Classes":"@DataGridBody"},{"Text":"data.f_meter_brand","type":"Text","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_meter_style"}],"type":"Grid","Row":"@*"},"head":{"type":"Grid","Row":"@*","children":[{"Classes":"@DataGridHead","children":[{"type":"CheckBox","@Change":"stat.Call($setCheckAll$, $notinbookuser$)"},{"type":"Text","Left":"@9","Text":"@全选"}],"type":"Stack"},{"Classes":"@DataGridHead","type":"Text","Text":"@用户编号","Name":"@用户编号"},{"type":"Text","Text":"@客户姓名","Classes":"@DataGridHead"},{"Text":"@客户地址","type":"Text","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","Text":"@气价名称","type":"Text"},{"type":"Text","Classes":"@DataGridHead","Text":"@表箱号"},{"Text":"@客户电话","Classes":"@DataGridHead","type":"Text"},{"type":"Text","Classes":"@DataGridHead","Text":"@客户类型"},{"type":"Text","Text":"@用气类型","Classes":"@DataGridHead"},{"type":"Text","Text":"@气表品牌","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","Text":"@气表型号","type":"Text"}]}},"type":"DataGrid","Column":"@100,100,100,270,130,100,150,100,100,100,100","Classes":"@BorderRect","Data":"stat.Data.notinbookuser.list.data","@Drop":"stat.Call($userOutBook$,stat.Data.selectBook.id,stat.GetDrag())"},{"type":"Grid","Row":"@1*","Column":"@*,*,1*,*","Classes":"@NormalFontlight","Top":"@12","children":[{"type":"Text","Text":"@"},{"type":"Text","Left":"@20","Text":"$共{stat.Data.notinbookuser.list.count}条$"},{"type":"Text","Text":"@ "},{"Slots":{"item":{"type":"Stack","children":[{"Path":"@doubledown","VAlign":"@Bottom","type":"Image"},{"Left":"@4","Text":"@更多","type":"Text"}]}},"type":"Button","Text":"@加载更多","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$notinbookuser$)"}]}],"type":"Grid","Row":"@*,*,1*,*","Column":"@1*","StrokeStyle":"@#dfe4e7"}]}],"type":"Dock","Name":"@右边"}],"type":"Grid","Row":"@1*","Background":"@#f5f7f9"},"Drag":{"start":{"Path":"@drag","type":"Image"},"NewPlan":{"children":[{"Classes":"@NormalFontlight","PaddingRight":"@36","PaddingLeft":"@20","Background":"@#ffffff","Row":"@*,*,*","Column":"@80,170,80,170,80,170","PaddingBottom":"@20","Pos":"@Center","PaddingTop":"@20","children":[{"HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Text":"@* 抄表册名称"},{"type":"Input","@Change":"stat.Call($addNewBookInfo$, $f_book_name$, e.Value)"},{"VAlign":"@Center","type":"Text","Right":"@10","Text":"@抄表员","HAlign":"@Right"},{"Data":"stat.Data.inputtorInfo","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($addNewBookInfo$, $f_inputtor$, e.Value)","type":"Select"},{"type":"Text","Text":"@所属公司","HAlign":"@Right","VAlign":"@Center","Right":"@10"},{"Selected":"stat.Data.newBookInfo.f_filiale_name","@Change":"stat.Call($addNewBookInfo$, $f_filiale_name$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Data.orgInfo"},{"Top":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text","PaddingTop":"@6","PaddingBottom":"@6","Right":"@10","Text":"@公司"},{"type":"Text","HAlign":"@Center","VAlign":"@Center","Top":"@10","Text":"stat.Data.loginInfo.orgs"},{"Right":"@10","Text":"@部门","HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10"},{"HAlign":"@Center","VAlign":"@Center","Top":"@10","type":"Text","Text":"stat.Data.loginInfo.deps"},{"Right":"@10","Top":"@10","Text":"@登陆人","HAlign":"@Right","type":"Text","VAlign":"@Center"},{"HAlign":"@Center","VAlign":"@Center","Text":"stat.Data.loginInfo.name","type":"Text","Top":"@10"},{"Right":"@10","PaddingTop":"@6","type":"Text","PaddingBottom":"@6","HAlign":"@Right","VAlign":"@Center","Text":"@抄表周期","Top":"@10"},{"Selected":"$1$","Classes":"@SelectWhite BorderRound","Top":"@10","@Change":"stat.Call($addNewBookInfo$, $f_period$, e.Value)","type":"Select","Data":"stat.Data.bookPeriod"},{"Right":"@10","HAlign":"@Right","VAlign":"@Center","Text":"@执行时间","type":"Text","Top":"@10"},{"Date":"stat.Data.bookBeginDate","@Change":"stat.Call($addNewBookInfo$, $f_hand_begin_date$, e.Value)","type":"DateInput","ShowDateAndTime":"@All","Classes":"@SelectWhite BorderRound","Top":"@10"},{"PaddingBottom":"@6","HAlign":"@Right","VAlign":"@Center","Right":"@10","Top":"@10","Text":"@备注","type":"Text","PaddingTop":"@6"},{"type":"Input","ColSpan":"@1","Top":"@10","@Change":"stat.Call($addNewBookInfo$, $f_book_remark$, e.Value)"}],"type":"Grid"}],"type":"Grid","Column":"@*","Row":"@*"},"deleteMsg":{"Column":"@*","Row":"@*","children":[{"Column":"@*","Background":"@#ffffff","Classes":"@NormalFontlight","HAlign":"@Center","VAlign":"@Center","Row":"@*","children":[{"PaddingLeft":"@100","PaddingRight":"@100","type":"Text","PaddingTop":"@70","PaddingBottom":"@70","VAlign":"@Center","Text":"$确认删除{stat.Data.deleteBookInfo.f_book_name}？$","HAlign":"@Center"}],"type":"Grid"}],"type":"Grid"},"upPlan":{"children":[{"PaddingBottom":"@20","Column":"@80,170,80,170","Classes":"@NormalFontlight","type":"Grid","children":[{"type":"Text","HAlign":"@Right","VAlign":"@Center","Text":"@* 抄表册名","Right":"@10"},{"@Change":"stat.Call($editBookInfos$,$f_book_name$,e.Value)","type":"Input","Value":"stat.Data.editBookInfo.f_book_name"},{"Text":"@抄表员","Right":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text"},{"@Change":"stat.Call($editBookInfos$,$f_inputtor$,e.Value)","type":"Select","Selected":"stat.Data.editBookInfo.f_inputtor","Data":"stat.Data.inputtorInfo","Classes":"@SelectWhite BorderRound"},{"Top":"@10","Text":"@所属公司","Right":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text"},{"type":"Select","Selected":"stat.Data.editBookInfo.f_filiale_name","Data":"stat.Data.orgInfo","Classes":"@SelectWhite BorderRound","Top":"@10","@Change":"stat.Call($editBookInfos$,$f_filiale_name$,e.Value)"},{"type":"Text","Text":"@备注","Right":"@10","HAlign":"@Right","VAlign":"@Center","Top":"@10"},{"Top":"@10","Value":"stat.Data.editBookInfo.f_book_remark","@Change":"stat.Call($editBookInfos$,$f_book_remark$,e.Value)","type":"Input"},{"type":"Text","HAlign":"@Right","VAlign":"@Center","Text":"@抄表周期","Top":"@10","Right":"@10"},{"Selected":"stat.Data.editBookInfo.f_period","Classes":"@SelectWhite BorderRound","Top":"@10","Data":"stat.Data.bookPeriod","@Change":"stat.Call($editBookInfos$,$f_period$,e.Value)","type":"Select"},{"VAlign":"@Center","Text":"@执行时间","Top":"@10","Right":"@10","type":"Text","HAlign":"@Right"},{"Top":"@10","@Change":"stat.Call($editBookInfos$,$f_hand_begin_date$,e.Value)","type":"DateInput","ShowDateAndTime":"@All","Date":"stat.Data.editBookInfo.f_hand_begin_date","Classes":"@SelectWhite BorderRound"}],"Background":"@#ffffff","PaddingLeft":"@20","PaddingTop":"@20","Row":"@*,*,*","PaddingRight":"@36"}],"type":"Grid","Row":"@*","Column":"@*"},"SearchPlan":{"Column":"@1*","Classes":"@PopupSearch PopupShadow","Row":"@1*","children":[{"children":[{"Text":"@抄表册名","PaddingBottom":"@6","Classes":"@GridLabel","type":"Text"},{"Value":"stat.Data.meterbook.search.model.f_book_name","@Change":"stat.Call($setProperty$, $meterbook$, $f_book_name$, e.Value)","type":"Input"},{"Text":"@抄表员","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","PaddingTop":"@6"},{"type":"Input","PaddingTop":"@6","Value":"stat.Data.meterbook.search.model.f_inputtor","@Change":"stat.Call($setProperty$, $meterbook$, $f_inputtor$, e.Value)"},{"Classes":"@GridLabel","Text":"@抄表周期","type":"Text","PaddingTop":"@6","PaddingBottom":"@6"},{"@Change":"stat.Call($setProperty$, $meterbook$, $f_period$, e.Value)","type":"Select","Top":"@10","Data":"stat.Data.searchBookPeriod","Selected":"stat.Data.meterbook.search.model.f_period","Classes":"@SelectWhite BorderRound"},{"Top":"@20","children":[{"Right":"@50","Text":"@取消","@Click":"stat.RestorePopup(this,e.draw)","type":"Button","Classes":"@Button2"},{"@Click":"stat.Call($searchMeterBook$),stat.RestorePopup(this,e.draw)","type":"Button","Text":"@查询","FillStyle":"@#ffffff","Classes":"@Button"}],"type":"Stack","ColSpan":"@2","HAlign":"@Center"}],"PaddingLeft":"@10","Classes":"@BorderRound NormalFont PopupSearch","PaddingTop":"@10","type":"Grid","Row":"@*,*,*,*,*,*","PaddingRight":"@20","PaddingBottom":"@10","Column":"@70,170"}],"type":"Grid"},"drag":{"Text":"@","type":"Text"}}}
      });
      let imgs = ["drag.png"];
      global.getImages(imgs, "./images/meterBook/");
      loadWasm().then(() => {
        global.stat = new Comp()
        this.stat = global.stat
        if (this.$login) {
          global.stat.loginInfo = this.$login.f
          console.log('登录信息', this.$login.f)
          console.log('stat',global.stat)
          console.log('login',global.stat.loginInfo)
        }
        global.stat.changeMethed = () => {
          this.show = !this.show
        }
        global.stat.ready().then(() => {
          console.log(global.stat)
          console.log('开始的上传组件'+global.stat.isUpload)
          console.log('开始的上传组件'+this.stat.isUpload)
          run()
        })

      })
    }


}
</script>
