common.js 873 Bytes
import request from '@/utils/request'

const portal = context.portal

//添加货柜补货员  post请求
export function getBatchSaveList(alias, param) {
  return request({
    url: `${portal}/form/customDialog/v1/getListData?alias=${alias}&mapParam=`,
    data: param,
    method: 'post',
  })
}
// 获取数据字典
export function getDictionaryByKey(key) {
  return request({
    url: `${portal}/sys/dataDict/v1/getByTypeKeyForComBo?typeKey=${key}`,
    method: 'post',
  })
}
//通用字典
export function getDict(data) {
  return request({
    url: `${context.bpmModel}/form/customQuery/v1/doQuery?alias=tyzd&page=1&pageSize=500`,
    method: 'post',
    data
  })
}
//获取询当前登录人企业及厂站信息
export function getCurrentEnterpriseAndStation(data) {
  return request({
    url: `${context.portal}/admin/qyqz/qyList`,
    method: 'get',
  })
}