审查视图

src/api/wms/uncodeAPI.js 1.0 KB
朱兆平 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
import http from "../http";

let baseServiceURL = 'wms-server-warehouse/common';

// 新增联合国危险品编码信息
export const insertUnCodeInfo = (data) => {
  return http.post(`${baseServiceURL}/unCode/insert`, data);
};

// 更新联合国危险品编码信息
export const updateUnCodeInfo = (data) => {
  return http.post(`${baseServiceURL}/unCode/update`, data);
};

// 删除单个联合国危险品编码信息
export const deleteUnCodeById = (params) => {
  return http.get(`${baseServiceURL}/unCode/delete`, { params: params });
};

// 查询单个联合国危险品编码信息
export const selectUnCodeById = (params) => {
    return http.get(`${baseServiceURL}/unCode/getById`, { params: params });
};

// 根据危险品编码进行查询
export const selectByUnCode = (params) => {
    return http.get(`${baseServiceURL}/unCode/getByUnCode`, params);
};

// 分页查询所有UN代码信息
export const getAllUnCodesByPage = (data,params) => {
    return http.post(`${baseServiceURL}/unCode/getAllByPage`, data,params);
};