bonus-material-app/src/services/back.js

147 lines
3.1 KiB
JavaScript
Raw Normal View History

2024-11-19 15:06:06 +08:00
import { http } from '@/utils/http'
// 退料任务列表接口
export const getBackList = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/list',
data:data,
})
}
2024-11-20 14:24:17 +08:00
// 退料任务详情接口
export const getBackInfo = (id) => {
return http({
method: 'GET',
url: '/material/back_apply_info/'+id
})
}
2024-11-19 15:06:06 +08:00
2024-11-20 14:24:17 +08:00
// 单位下拉选
export const getUnitList = (data) => {
return http({
method: 'POST',
url: '/material/select/getUnitList',
data:data,
})
}
// 工程下拉选
export const getProjectList = (data) => {
return http({
method: 'POST',
url: '/material/select/getProjectList',
data:data,
})
}
2024-11-21 09:22:25 +08:00
// 获取协议id
export const getAgreementInfoById = (data) => {
return http({
method: 'POST',
url: '/material/select/getAgreementInfoById',
data:data,
})
}
2024-11-19 15:06:06 +08:00
2024-12-31 15:37:54 +08:00
// 新增退料单-无设备
2024-11-21 09:22:25 +08:00
export const insertApp = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/insertApp',
data:data,
})
}
2024-12-31 15:37:54 +08:00
// 新增退料单-有设备
export const insertBack = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info',
data:data,
})
}
2024-11-19 15:06:06 +08:00
2024-11-22 09:40:01 +08:00
// 数量退料设备下拉选
export const getUseType = (data) => {
return http({
method: 'POST',
url: '/material/select/getUseType',
data:data,
})
}
// 数量删除
export const deleteNumType = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/delete',
data:data,
})
}
// 编码检索获取设备详情
export const getMachine = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/getMachine',
data:data,
})
}
2025-01-03 18:19:03 +08:00
export function getMachineApi(data) {
return http({
url: '/material/back_apply_info/getMachine',
method: 'GET',
params: data
})
}
2024-11-22 09:40:01 +08:00
// 获取已退料编码列表-查看
export const getMaCodeList = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/getMaCodeList',
data:data,
})
}
// 编码删除
export const deleteMaCode = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/delete',
data:data,
})
}
// 编码类型查看页面保存
export const saveCode = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/updateMaCode',
data:data,
})
}
// 提交
export const submitBackApply = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/submitBackApply',
data:data,
})
}
//删除
export const backApplyRemove = (data) => {
return http({
method: 'POST',
url: '/material/back_apply_info/deleteById',
data:data,
})
}
2024-12-31 15:37:54 +08:00
// 二维码扫码获取编码信息
export const getMachineByQrCodeApi = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/getMachine',
data:data,
})
}