pengwei
2025-03-12 18fcb8ad28f583e3e1b99b23e4f7d9e1833dcd83
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
34
35
36
37
38
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)