import { baseUrl } from "../utils"; import http from "./http"; //分页获取物料 export const GetPageDataApi = (data) => http.post("api/GoodsInfo/GetPageData", data); //新增物料 export const AddGoodsAndDetailApi = (data) => http.post("api/GoodsInfo/AddGoodsAndDetail", data); //修改物料信息 export const UpdateDataApi = (data) => http.post("api/GoodsInfo/UpdateGoodsAndDetail", data); //修改物料信息 export const DelApi = (data) => http.post("api/GoodsInfo/Del", data); //查询所有物料 export const GetAllDataApi = () => http.post("api/GoodsInfo/GetAllData"); //导出 export const ExportApi = (data) => http.download("api/GoodsInfo/Export", data, "物料信息.xlsx"); export const PrintGoodsQrCodeApi = (data) => http.post( `api/GoodsInfo/GetGoodsQRCodePrint?id=${data.id}&count=${data.count}` ); //批量打印 export const GetGoodsQRCodesPrintApi = (data) => http.post(`api/GoodsInfo/GetGoodsQRCodesPrint?${data.keys}&count=${data.count}`,); //获取物料中的组件 export const GetModuleDataApi = (data) => http.post('/api/BomInfo/GetModuleData') //绑定组件清单 export const BingBomlApi = (data) => http.post('/api/BomInfo/BingBom', data)