选煤厂生产管理平台前端代码
dongyukun
2024-12-11 0b04a185a54444b72151eabf71164008712fb80d
提交 | 用户 | 时间
5cc1d9 1 import request from '@/config/axios'
D 2
3 export interface ProductStockVO {
4
5 }
6
7 export interface ProductStockPageReqVO extends PageParam {
8
9 }
10
11 // 查询ProductStock列表
12 export const getProductStockPage = (params: ProductStockPageReqVO) => {
0b04a1 13   return request.get({ url: '/xmcpms/prod/productStock/page', params })
5cc1d9 14 }
D 15
16 // 查询ProductStock列表
17 export const getPointList = (params: ProductStockPageReqVO) => {
0b04a1 18   return request.get({ url: '/xmcpms/prod/productStock/list', params })
5cc1d9 19 }
D 20
21 // 查询ProductStock详情
22 export const getProductStock = (id: number) => {
0b04a1 23   return request.get({ url: `/xmcpms/prod/productStock/info/${id}`})
5cc1d9 24 }
D 25
26 // 新增ProductStock
27 export const createProductStock = (data: ProductStockVO) => {
0b04a1 28   return request.post({ url: '/xmcpms/prod/productStock/create', data })
5cc1d9 29 }
D 30
31 // 修改ProductStock
32 export const updateProductStock = (data: ProductStockVO) => {
0b04a1 33   return request.put({ url: '/xmcpms/prod/productStock/update', data })
5cc1d9 34 }
D 35
36 // 删除ProductStock
37 export const deleteProductStock = (id: number) => {
0b04a1 38   return request.delete({ url: '/xmcpms/prod/productStock/delete?id=' + id })
5cc1d9 39 }
D 40
41 //导出ProductStockList
42 export const exportProductStock = (params) => {
0b04a1 43   return request.download({ url: '/xmcpms/prod/productStock/export', params })
5cc1d9 44 }
D 45
46 // 下载用户导入模板
47 export const importPointTemplate = () => {
0b04a1 48   return request.download({ url: '/xmcpms/prod/productStock/get-import-template' })
5cc1d9 49 }