import Vue from 'vue'

import echarts from 'echarts'
import MagLoadParams from './stores/MagLoadParams'
import MagGetSaleParam from './stores/MagGetSaleParams'

/** **************************收费组件注册******************************/

export default function () {
  Vue.prototype.$echarts = echarts
  Vue.use(MagLoadParams)
  Vue.use(MagGetSaleParam)

  /** **************************物联网表(WebReport)******************************/
  // 工单考核报表
  Vue.component('report-worklist', (resolve) => {
    require(['./components/WebReport/ReportWorklist'], resolve)
  })
  // 话务员考核报表
  Vue.component('teleman-list', (resolve) => {
    require(['./components/WebReport/Telemanlist'], resolve)
  })

  Vue.component('user-gas-all', (resolve) => {
    require(['./components/WebReport/UserGasAll'], resolve)
  })
  // 报表展示组件(异常统计报表)
  Vue.component('abnormal-info', (resolve) => {
    require(['./components/WebReport/AbnormalInfo'], resolve)
  })
  // 不用气用户查询
  Vue.component('owe-query', (resolve) => {
    require(['./components/WebReport/OweQuery'], resolve)
  })
  // 不用气用户查询
  Vue.component('not-upload', (resolve) => {
    require(['./components/WebReport/NotUpload'], resolve)
  })
  // 电量不足查询
  Vue.component('battery-low', (resolve) => {
    require(['./components/WebReport/BatteryLow'], resolve)
  })
  // 电磁干扰查询
  Vue.component('electro-magnetic', (resolve) => {
    require(['./components/WebReport/ElectroMagnetic'], resolve)
  })
  // 稽查查询
  Vue.component('inspect-query', (resolve) => {
    require(['./components/WebReport/InspectQuery'], resolve)
  })


  // /* 通信信息查询 */
  Vue.component('communication', (resolve) => {
    require(['./components/WebReport/Communication'], resolve)
  }
  )
  // /*阀门统计 */
  Vue.component('value-info', (resolve) => {
    require(['./components/WebReport/ValueInfo'], resolve)
  })

  Vue.component('handplanprint', (resolve) => {
    require(['./components/WebReport/HandplanPrint'], resolve)
  })

  // 付款方式饼图
  Vue.component('paymentpie', (resolve) => {
    require(['./components/WebReport/Paymentpie'], resolve)
  })
  // 用户类型饼图
  Vue.component('usertype-pie', (resolve) => {
    require(['./components/WebReport/UsertypePie'], resolve)
  })
  Vue.component('echarts-box', (resolve) => {
    require(['./components/WebReport/EchartsBox'], resolve)
  })
  Vue.component('gasprice-has', (resolve) => {
    require(['./components/WebReport/GaspriceHas'], resolve)
  })
  Vue.component('bussiness-type', (resolve) => {
    require(['./components/WebReport/BussinessType'], resolve)
  })
  // 银行代售气量金额散列图
  Vue.component('bank-manager', (resolve) => {
    require(['./components/SellReport/BankManager'], resolve)
  })
  // 各管理站气量金额散列图
  Vue.component('site-manager', (resolve) => {
    require(['./components/SellReport/SiteManager'], resolve)
  })

  /** **************************营收模块(SellReport)******************************/
  // 报表相关，所属为抄表员汇总表（实际为报表汇总表，功能名称后期改变）,调整找那个，尚未归类
  // 菜单组件，报表总组件
  Vue.component('report-pool', (resolve) => {
    require(['./components/SellReport/ReportPool'], resolve)
  })

  // 报表类型选项
  Vue.component('report-items', (resolve) => {
    require(['./components/SellReport/ReportItems'], resolve)
  })
  // 往期报表，扎帐后报表，
  Vue.component('report-history', (resolve) => {
    require(['./components/SellReport/ReportHistory'], resolve)
  })
  // 报表展示组件(收款日报表)
  Vue.component('bon-summary', (resolve) => {
    require(['./components/SellReport/BonSummary'], resolve)
  })
  // 报表展示组件（气价报表）
  Vue.component('manage-gas-price', (resolve) => {
    require(['./components/SellReport/ManageGasPrice'], resolve)
  })
  // 报表展示组件（收费汇总报表）
  Vue.component('manage-bus-summary', (resolve) => {
    require(['./components/SellReport/ManageBusSummary'], resolve)
  })
  // 报表展示组件（月用气量汇总表）
  Vue.component('manage-month-gas', (resolve) => {
    require(['./components/SellReport/ManageMonthGas'], resolve)
  })
  // 站点用气量
  Vue.component('manage-pot-gas', (resolve) => {
    require(['./components/SellReport/ManagePotGas'], resolve)
  })
  // 报表展示组件（用户统计报表）
  Vue.component('manage-user-collect', (resolve) => {
    require(['./components/SellReport/ManageUserCollect'], resolve)
  })
  // 报表展示组件（营业分析汇总报表）
  Vue.component('manage-sell-type', (resolve) => {
    require(['./components/SellReport/ManageSellType'], resolve)
  })
  // 报表展示组件(抄表汇总表)
  Vue.component('hand-collect', (resolve) => {
    require(['./components/SellReport/HandCollect'], resolve)
  })
  // 报表展示组件(日结账报表)
  Vue.component('bus-summary', (resolve) => {
    require(['./components/SellReport/BusSummary'], resolve)
  })
  // 报表展示组件(退款日报表)
  Vue.component('refund-query', (resolve) => {
    require(['./components/SellReport/RefundQuery'], resolve)
  })
  // 报表展示组件(气量统计表)
  Vue.component('volume-statistics', (resolve) => {
    require(['./components/SellReport/VolumeStatistics'], resolve)
  })
  // 报表展示组件(抄表员汇总表)
  Vue.component('meter-reader', (resolve) => {
    require(['./components/SellReport/MeterReader'], resolve)
  })
  // 报表展示组件(气价明细报表)
  Vue.component('gas-price-detail', (resolve) => {
    require(['./components/SellReport/GasPrice'], resolve)
  })
  // 报表展示组件(用户统计表)
  Vue.component('get-usernum', (resolve) => {
    require(['./components/SellReport/GetUserNum'], resolve)
  })
  // 报表展示组件(操作员日结账报表)
  Vue.component('get-summary', (resolve) => {
    require(['./components/SellReport/GetSummary'], resolve)
  })
  // 报表展示组件(抄表情况统计表)
  Vue.component('meter-bill', (resolve) => {
    require(['./components/SellReport/MeterBill'], resolve)
  })
  // 报表展示组件(预收款金额统计表)
  Vue.component('yushou-bill', (resolve) => {
    require(['./components/SellReport/YuShou'], resolve)
  })
  // 报表展示组件(收费统计)
  Vue.component('sells-bill', (resolve) => {
    require(['./components/SellReport/ChargeBill'], resolve)
  })
  // 报表展示组件(抄表员统计表)
  Vue.component('meter-input', (resolve) => {
    require(['./components/SellReport/MeterInput'], resolve)
  })
  // 抄表比率
  Vue.component('handplan-bili', (resolve) => {
    require(['./components/SellReport/HandplanBili'], resolve)
  })
  // ************************************************************************************8
  //长安新报表
  // ************************************************************************************8
  // 长安销售气量
  Vue.component('ca-sell-msg', (resolve) => {
    require(['./components/SellReport/ChanganSellMsg'], resolve)
  })
  // 长安月销售
  Vue.component('ca-sell-msg-month', (resolve) => {
    require(['./components/SellReport/ChanganSellMsg_Month'], resolve)
  })
  // 长安日结账日报表
  Vue.component('ca-day-sellgas', (resolve) => {
    require(['./components/SellReport/ChanganDaySellGAs'], resolve)
  })

}
