feat(api): 添加质检方案子、机台工艺参数配置子、机台物料主数据及物料分类API接口
This commit is contained in:
parent
71708f31fc
commit
d6df78be93
47
mes-ui/mes-ui-admin-vue3/src/api/tba/inspplanitem/index.ts
Normal file
47
mes-ui/mes-ui-admin-vue3/src/api/tba/inspplanitem/index.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface InspPlanItemVO {
|
||||
id: string
|
||||
schemeId: string
|
||||
itemId: string
|
||||
unit: string
|
||||
standardValue: string
|
||||
upperLimit: string
|
||||
lowerLimit: string
|
||||
remark: string
|
||||
itemName: string
|
||||
seqNo: number
|
||||
printMergeYn: string
|
||||
printItem: string
|
||||
printNum: number
|
||||
}
|
||||
|
||||
// 查询质检方案子分页
|
||||
export const getInspPlanItemPage = async (params) => {
|
||||
return await request.get({ url: `/tba/insp-plan-item/page`, params })
|
||||
}
|
||||
|
||||
// 查询质检方案子详情
|
||||
export const getInspPlanItem = async (id: number) => {
|
||||
return await request.get({ url: `/tba/insp-plan-item/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增质检方案子
|
||||
export const createInspPlanItem = async (data: InspPlanItemVO) => {
|
||||
return await request.post({ url: `/tba/insp-plan-item/create`, data })
|
||||
}
|
||||
|
||||
// 修改质检方案子
|
||||
export const updateInspPlanItem = async (data: InspPlanItemVO) => {
|
||||
return await request.put({ url: `/tba/insp-plan-item/update`, data })
|
||||
}
|
||||
|
||||
// 删除质检方案子
|
||||
export const deleteInspPlanItem = async (id: number) => {
|
||||
return await request.delete({ url: `/tba/insp-plan-item/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出质检方案子 Excel
|
||||
export const exportInspPlanItem = async (params) => {
|
||||
return await request.download({ url: `/tba/insp-plan-item/export-excel`, params })
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface MachineParamDetailVO {
|
||||
id: number
|
||||
enabledStatus: number
|
||||
remark: string
|
||||
procParamName: string
|
||||
procParamUnit: string
|
||||
procParamId: number
|
||||
standardValue: number
|
||||
upperLimit: number
|
||||
lowerLimit: number
|
||||
dev: string
|
||||
isAlert: string
|
||||
machineParamId: number
|
||||
}
|
||||
|
||||
// 查询机台工艺参数配置子分页
|
||||
export const getMachineParamDetailPage = async (params) => {
|
||||
return await request.get({ url: `/tba/machine-param-detail/page`, params })
|
||||
}
|
||||
|
||||
// 查询机台工艺参数配置子详情
|
||||
export const getMachineParamDetail = async (id: number) => {
|
||||
return await request.get({ url: `/tba/machine-param-detail/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增机台工艺参数配置子
|
||||
export const createMachineParamDetail = async (data: MachineParamDetailVO) => {
|
||||
return await request.post({ url: `/tba/machine-param-detail/create`, data })
|
||||
}
|
||||
|
||||
// 修改机台工艺参数配置子
|
||||
export const updateMachineParamDetail = async (data: MachineParamDetailVO) => {
|
||||
return await request.put({ url: `/tba/machine-param-detail/update`, data })
|
||||
}
|
||||
|
||||
// 删除机台工艺参数配置子
|
||||
export const deleteMachineParamDetail = async (id: number) => {
|
||||
return await request.delete({ url: `/tba/machine-param-detail/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出机台工艺参数配置子 Excel
|
||||
export const exportMachineParamDetail = async (params) => {
|
||||
return await request.download({ url: `/tba/machine-param-detail/export-excel`, params })
|
||||
}
|
||||
43
mes-ui/mes-ui-admin-vue3/src/api/tba/machmat/index.ts
Normal file
43
mes-ui/mes-ui-admin-vue3/src/api/tba/machmat/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface MachMatVO {
|
||||
id: number
|
||||
machineCd: string
|
||||
machineName: string
|
||||
enabledStatus: number
|
||||
remark: string
|
||||
machineId: number
|
||||
lineId: number
|
||||
proLineCd: string
|
||||
proLineName: string
|
||||
}
|
||||
|
||||
// 查询机台物料主数据主分页
|
||||
export const getMachMatPage = async (params) => {
|
||||
return await request.get({ url: `/tba/mach-mat/page`, params })
|
||||
}
|
||||
|
||||
// 查询机台物料主数据主详情
|
||||
export const getMachMat = async (id: number) => {
|
||||
return await request.get({ url: `/tba/mach-mat/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增机台物料主数据主
|
||||
export const createMachMat = async (data: MachMatVO) => {
|
||||
return await request.post({ url: `/tba/mach-mat/create`, data })
|
||||
}
|
||||
|
||||
// 修改机台物料主数据主
|
||||
export const updateMachMat = async (data: MachMatVO) => {
|
||||
return await request.put({ url: `/tba/mach-mat/update`, data })
|
||||
}
|
||||
|
||||
// 删除机台物料主数据主
|
||||
export const deleteMachMat = async (id: number) => {
|
||||
return await request.delete({ url: `/tba/mach-mat/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出机台物料主数据主 Excel
|
||||
export const exportMachMat = async (params) => {
|
||||
return await request.download({ url: `/tba/mach-mat/export-excel`, params })
|
||||
}
|
||||
45
mes-ui/mes-ui-admin-vue3/src/api/tba/machmatdetail/index.ts
Normal file
45
mes-ui/mes-ui-admin-vue3/src/api/tba/machmatdetail/index.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface MachMatDetailVO {
|
||||
id: number
|
||||
enabledStatus: number
|
||||
remark: string
|
||||
materialId: number
|
||||
materialCode: string
|
||||
materialName: string
|
||||
unit: string
|
||||
machMatId: number
|
||||
isInputMtrl: string
|
||||
isInvoke: string
|
||||
ruleType: string
|
||||
}
|
||||
|
||||
// 查询机台物料主数据子分页
|
||||
export const getMachMatDetailPage = async (params) => {
|
||||
return await request.get({ url: `/tba/mach-mat-detail/page`, params })
|
||||
}
|
||||
|
||||
// 查询机台物料主数据子详情
|
||||
export const getMachMatDetail = async (id: number) => {
|
||||
return await request.get({ url: `/tba/mach-mat-detail/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增机台物料主数据子
|
||||
export const createMachMatDetail = async (data: MachMatDetailVO) => {
|
||||
return await request.post({ url: `/tba/mach-mat-detail/create`, data })
|
||||
}
|
||||
|
||||
// 修改机台物料主数据子
|
||||
export const updateMachMatDetail = async (data: MachMatDetailVO) => {
|
||||
return await request.put({ url: `/tba/mach-mat-detail/update`, data })
|
||||
}
|
||||
|
||||
// 删除机台物料主数据子
|
||||
export const deleteMachMatDetail = async (id: number) => {
|
||||
return await request.delete({ url: `/tba/mach-mat-detail/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出机台物料主数据子 Excel
|
||||
export const exportMachMatDetail = async (params) => {
|
||||
return await request.download({ url: `/tba/mach-mat-detail/export-excel`, params })
|
||||
}
|
||||
42
mes-ui/mes-ui-admin-vue3/src/api/tba/materialcat/index.ts
Normal file
42
mes-ui/mes-ui-admin-vue3/src/api/tba/materialcat/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface MaterialCatVO {
|
||||
id: number
|
||||
remark: string
|
||||
cateCode: string
|
||||
cateName: string
|
||||
parentId: number
|
||||
cateLevel: string
|
||||
sort: number
|
||||
status: number
|
||||
}
|
||||
|
||||
// 查询物料分类分页
|
||||
export const getMaterialCatPage = async (params) => {
|
||||
return await request.get({ url: `/tba/material-cat/page`, params })
|
||||
}
|
||||
|
||||
// 查询物料分类详情
|
||||
export const getMaterialCat = async (id: number) => {
|
||||
return await request.get({ url: `/tba/material-cat/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增物料分类
|
||||
export const createMaterialCat = async (data: MaterialCatVO) => {
|
||||
return await request.post({ url: `/tba/material-cat/create`, data })
|
||||
}
|
||||
|
||||
// 修改物料分类
|
||||
export const updateMaterialCat = async (data: MaterialCatVO) => {
|
||||
return await request.put({ url: `/tba/material-cat/update`, data })
|
||||
}
|
||||
|
||||
// 删除物料分类
|
||||
export const deleteMaterialCat = async (id: number) => {
|
||||
return await request.delete({ url: `/tba/material-cat/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出物料分类 Excel
|
||||
export const exportMaterialCat = async (params) => {
|
||||
return await request.download({ url: `/tba/material-cat/export-excel`, params })
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user