选煤厂生产管理平台前端代码
dongyukun
2024-12-10 5cc1d92af645c2f8f4f6d1d3777283b70df78ccd
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
39
40
41
42
43
44
45
46
47
48
49
import request from '@/config/axios'
 
export interface ProductStockVO {
 
}
 
export interface ProductStockPageReqVO extends PageParam {
 
}
 
// 查询ProductStock列表
export const getProductStockPage = (params: ProductStockPageReqVO) => {
  return request.get({ url: '/prod/productStock/page', params })
}
 
// 查询ProductStock列表
export const getPointList = (params: ProductStockPageReqVO) => {
  return request.get({ url: '/prod/productStock/list', params })
}
 
// 查询ProductStock详情
export const getProductStock = (id: number) => {
  return request.get({ url: `/prod/productStock/info/${id}`})
}
 
// 新增ProductStock
export const createProductStock = (data: ProductStockVO) => {
  return request.post({ url: '/prod/productStock/create', data })
}
 
// 修改ProductStock
export const updateProductStock = (data: ProductStockVO) => {
  return request.put({ url: '/prod/productStock/update', data })
}
 
// 删除ProductStock
export const deleteProductStock = (id: number) => {
  return request.delete({ url: '/prod/productStock/delete?id=' + id })
}
 
//导出ProductStockList
export const exportProductStock = (params) => {
  return request.download({ url: '/prod/productStock/export', params })
}
 
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/prod/productStock/get-import-template' })
}