text: import request from '@/utils/request'
  
  export function fetchList(tab, query) {
    return request({
      url: tab + 'ajaxList',
      method: 'get',
      params: query
    })
  }
  
  export function create(tab, data) {
    return request({
      url: tab + 'create',
      method: 'post',
      data
    })
  }
  
  export function update(tab, data) {
    return request({
      url: tab + data.id + '/update',
      method: 'post',
      data
    })
  }
  
  export function del(tab, id) {
    return request({
      url: tab + id + '/delete',
      method: 'post'
    })
  }
  
  export function deteils(tab, id) {
    return request({
      url: tab + id + '/get',
      method: 'get',
      id
    })
  }
  
  export function batchDelete(tab, data) {
    return request({
      url: tab + 'batch/delete',
      method: 'post',
      data
    })
  }
  
  export function fetchEcharts(id) {
    return request({
      url: '/oven/ovnbatchlot/' + id + '/get',
      method: 'get',
      id
    })
  }
  
  export function fetchDict(dictcode) {
    return request({
      url: '/sys/dict/' + dictcode + '/finddict',
      method: 'get',
      dictcode
    })
  }
  
  export function exportLoginLog(tab, query) {
    return request({
      url: tab + 'export',
      method: 'get',
      params: query
    })
  }
  
  export function batchUpdate(tab, data) {
    return request({
      url: tab + 'batchUpdate',
      method: 'post',
      data
    })
  }
  
  export function rpteqpstateday(data) {
    return request({
      url: 'edc/rpteqpstateday/eqp',
      method: 'get',
      params: data
    })
  }
  
  export function rtplotyieldday(data) {
    return request({
      url: 'edc/rptlotyieldday/pdtChart',
      method: 'get',
      params: data
    })
  }
  
  export function tempbytime(eqpId, data) {
    return request({
      url: 'oven/ovnbatchlot/tempbytime/' + eqpId,
      method: 'get',
      params: data
    })
  }
  
  export function tempbytimeOther(data) {
    return request({
      url: 'oven/ovnbatchlot/tempbytimeOther',
      method: 'get',
      params: data
    })
  }
  
  export function selectAlarmCountByLine(data) {
    return request({
      url: 'edc/edcamsrecord/selectAlarmCountByLine',
      method: 'get',
      params: data
    })
  }
  
  export function selectAlarmCountByEqp(data) {
    return request({
      url: 'edc/edcamsrecord/selectAlarmCountByEqp',
      method: 'get',
      params: data
    })
  }
  
  export function selectEqp(data) {
    return request({
      url: 'edc/rptlotyieldday/findEqp',
      method: 'get',
      params: data
    })
  }
  
  export function findAllEqp(data) {
    return request({
      url: 'edc/rptlotyieldday/findAllEqp',
      method: 'get',
      params: data
    })
  }
  
  export function eqpStateTime(data) {
    return request({
      url: 'edc/edceqpstate/eqpStateTime',
      method: 'get',
      params: data
    })
  }
  
  export function findSxNumber(data) {
    return request({
      url: 'ms/measuresx/findSxNumber',
      method: 'get',
      params: data
    })
  }
  