You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

50 lines
1.4 KiB

import request from '@/config/axios'
export interface ProductionlineVO {
code: string
name: string
description: string
type: string
workshopCode: string
rawLocationCode: string
fgLocationCode: string
available: number
activeTime: Date
expireTime: Date
remark: string
}
// 查询生产线列表
export const getProductionlinePage = async (params) => {
return await request.get({ url: `/wms/productionline/page`, params })
}
// 查询生产线详情
export const getProductionline = async (id: number) => {
return await request.get({ url: `/wms/productionline/get?id=` + id })
}
// 新增生产线
export const createProductionline = async (data: ProductionlineVO) => {
return await request.post({ url: `/wms/productionline/create`, data })
}
// 修改生产线
export const updateProductionline = async (data: ProductionlineVO) => {
return await request.put({ url: `/wms/productionline/update`, data })
}
// 删除生产线
export const deleteProductionline = async (id: number) => {
return await request.delete({ url: `/wms/productionline/delete?id=` + id })
}
// 导出生产线 Excel
export const exportProductionline = async (params) => {
return await request.download({ url: `/wms/productionline/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productionline/get-import-template' })
}