
import axios from 'axios'

export const wsuri = 'ws://localhost:8247//WebMoudule//websocket'
export const opname = 'SCADAMain' // TOBS??SCADAMain?MES|Current|opName|电流^电压
export const opname1 = 'SCADADetailed' // TOBS??SCADADetailed?MES|Current|opName|平均电流^平均电压
export const opname2 = 'SCADAPart1' // TOBS??SCADAPart1?MES|Current|opName|电流^电压^有功功率^无功功率^累计有功功率^累计无功功率^平均电流^平均电压
export const opname3 = 'SCADAPart2' // TOBS??SCADAPart2?MES|Current|opName|电流^电压^有功功率^无功功率^累计有功功率^累计无功功率^平均电流^平均电压
export const opname4 = 'SCADAPart3' // TOBS??SCADAPart3?MES|Current|opName|电流^电压^有功功率^无功功率^累计有功功率^累计无功功率^平均电流^平均电压

export const getPayToken = 'http://192.168.199.237:8001/submit/MESgetToken.ashx' // token地址
export const getMachineInfo = 'http://192.168.199.237:8001/submit/MESgetMachineInfo.ashx' // 产品查询
export const getPurchase = 'http://192.168.199.237:8001/submit/MESpurchase.ashx' // 产品下单
export const searchResult = 'http://192.168.199.237:8001/submit/MESsearchResult.ashx' // 支付结果查询
export const orderInquiry = 'http://192.168.199.237:8001/submit/MESorderInquiry.ashx' // 订单查询
const service = axios.create({
  baseURL: window.dt_Config.serverAddress,
  timeout: 1500000 // 请求超时时
})
export default service
axios.defaults.headers.post['Content-Type'] = 'application/json'
export const ExcelDownLoad = 'http://192.168.199.237:8001/submit/MESCommonBase.ashx' // 导出excel

export const servicePlc_1 = axios.create({
  baseURL: window.dt_Config.servicePlc_1_url,
  timeout: 1500000, // 请求超时间 default service,
  method: 'GET'
})

