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)

  // 档案查询
  Vue.component('archives-manage', (resolve) => {
    require(['./components/sale/filesquery/ArchivesManage'], resolve)
  })
  // 用户查询
  Vue.component('user-query', (resolve) => {
    require(['./components/sale/filesquery/UserQuery'], resolve)
  })
  // 表具查询
  Vue.component('meter-query', (resolve) => {
    require(['./components/sale/filesquery/MeterQuery'], resolve)
  })
  // 设备查询
  Vue.component('equipment-query', (resolve) => {
    require(['./components/sale/filesquery/DeviceQuery'], resolve)
  })
  // 档案变更查询
  Vue.component('changeuser-query', (resolve) => {
    require(['./components/sale/businessquery/ChangeUserQuery'], resolve)
  })
  // 业务查询
  Vue.component('business-manage', (resolve) => {
    require(['./components/sale/businessquery/BusinessManage'], resolve)
  })
  Vue.component('rfcard-query', (resolve) => {
    require(['./components/sale/businessquery/RfCardReadBack'], resolve)
  })
  // 流水查询
  Vue.component('ls-query', (resolve) => {
    require(['./components/sale/businessquery/LiuShuiQuery'], resolve)
  })
  Vue.component('charge-query', (resolve) => {
    require(['./components/sale/businessquery/ChargeQuery'], resolve)
  })
  Vue.component('sellgas-query-day', (resolve) => {
    require(['./components/sale/businessquery/SellgasQuerybyDay'], resolve)
  })
  Vue.component('sellgas-groupprice', (resolve) => {
    require(['./components/sale/businessquery/SellGasGroupPrice'], resolve)
  })
  Vue.component('sellgas-query-dep', (resolve) => {
    require(['./components/sale/businessquery/SellgasQuerybyDep'], resolve)
  })
  Vue.component('sellgas-query-spot', (resolve) => {
    require(['./components/sale/businessquery/SellgasQuerybySpot'], resolve)
  })
  Vue.component('change-meter-query', (resolve) => {
    require(['./components/sale/businessquery/ChangeMeterQuery'], resolve)
  })
  Vue.component('disable-query', (resolve) => {
    require(['./components/sale/businessquery/DisableQuery'], resolve)
  })
  Vue.component('enable-query', (resolve) => {
    require(['./components/sale/businessquery/EnableQuery'], resolve)
  })
  Vue.component('fill-card-query', (resolve) => {
    require(['./components/sale/businessquery/FillCardQuery'], resolve)
  })
  Vue.component('fill-gas-query', (resolve) => {
    require(['./components/sale/businessquery/FillGasQuery'], resolve)
  })
  Vue.component('handplan-query', (resolve) => {
    require(['./components/sale/businessquery/HandplanQuery'], resolve)
  })
  Vue.component('other-charge-query', (resolve) => {
    require(['./components/sale/businessquery/OtherChargeQuery'], resolve)
  })
  Vue.component('reverse-query', (resolve) => {
    require(['./components/sale/businessquery/ReverseQuery'], resolve)
  })
  Vue.component('transfer-query', (resolve) => {
    require(['./components/sale/businessquery/TransferQuery'], resolve)
  })
  // 收费抄表
  Vue.component('selling-hand', (resolve) => {
    require(['./components/sale/businessquery/SellingHand'], resolve)
  })

  //用户基本信息
  Vue.component('meter-msg',(resolve) => { require(['./components/MeterManage/MeterMsg'], resolve)})
  // 表具列表
  Vue.component('meter-list',(resolve) => { require(['./components/MeterManage/MeterList'], resolve)})
  // 表具信息管理
  Vue.component('meter-info-manage',(resolve) => { require(['./components/MeterManage/MeterInfoManage'], resolve)})
  // 抄表查询
  Vue.component('meter-hand-query',(resolve) => { require(['./components/MeterManage/HandQuery'], resolve)})
  // 流水查询
  Vue.component('meter-ls-query',(resolve) => { require(['./components/MeterManage/LiushuiQuery'], resolve)})
  // 收费查询
  Vue.component('meter-charge-query',(resolve) => { require(['./components/MeterManage/ChargeQuery'], resolve)})
  // 冲正查询
  Vue.component('meter-reversal-query',(resolve) => { require(['./components/MeterManage/ReversalQuery'], resolve)})
  // 其他收费查询
  Vue.component('meter-other-charge-query',(resolve) => { require(['./components/MeterManage/OtherChargeQuery'], resolve)})
  // 过户查询
  Vue.component('meter-transfer-query',(resolve) => { require(['./components/MeterManage/TransferQuery'], resolve)})
  // 换表查询
  Vue.component('meter-change-meter-query',(resolve) => { require(['./components/MeterManage/ChangeMeterQuery'], resolve)})
  // 补卡查询
  Vue.component('meter-fill-card-query',(resolve) => { require(['./components/MeterManage/FillCardQuery'], resolve)})
  // 补气查询
  Vue.component('meter-fill-gas-query',(resolve) => { require(['./components/MeterManage/FillGasQuery'], resolve)})
}
