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

283 lines
6.0 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
// 退料任务详情接口
2025-01-17 15:58:54 +08:00
export const getBackInfo = (id,keyWord) => {
2024-11-20 14:24:17 +08:00
return http({
method: 'GET',
2025-01-17 15:58:54 +08:00
url: `/material/back_apply_info/${id}?keyWord=${keyWord}`,
2024-11-20 14:24:17 +08:00
})
}
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',
2025-07-10 18:02:22 +08:00
url: '/material/select/getProjectInfo',
2024-11-20 14:24:17 +08:00
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',
2025-06-20 15:35:54 +08:00
url: '/material/back_apply_info/deleteByApp',
2024-11-22 09:40:01 +08:00
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,
})
2025-01-14 17:56:14 +08:00
}
// 获取退料明细(退料人退料时间)
export const getDetailsByIdApi = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/getDetailsById',
data:data,
})
}
2025-02-19 09:08:35 +08:00
// 标准配置下拉选
export const getConfigList = (data) => {
return http({
method: 'POST',
url: '/material/select/getConfigList',
data:data,
})
}
// 数量退料设备下拉选
export const getLevelThreeType = (data) => {
return http({
method: 'POST',
url: '/material/select/getMaType',
data:data,
})
}
// 标准配置下拉选选择事件
export const getListsByConfigId = (data) => {
return http({
method: 'GET',
url: '/material/standardConfig/getListsByConfigId',
data:data,
})
}
// 四级下拉选选择事件
export const getTypeDataList = (data) => {
return http({
method: 'GET',
url: '/material/leaseTask/getTypeDataList',
data:data,
})
}
// 提交
export const leaseTask = (data) => {
return http({
method: 'POST',
url: '/material/leaseTask',
data:data,
})
}
2025-01-14 17:56:14 +08:00
2025-02-19 09:08:35 +08:00
// 直转申请下拉选
export const getParentType = (data) => {
return http({
method: 'POST',
url: '/material/directRotation/getTypeNameList',
data:data,
})
}
// 直转申请提交
export const directSubmit = (data) => {
return http({
method: 'POST',
url: '/material/directRotation/submit',
data:data,
})
}
2025-02-20 19:08:43 +08:00
// 直转申请提交-编辑
export const directEdit = (data) => {
return http({
method: 'POST',
url: '/material/directRotation/edit',
data,
})
}
2025-02-19 09:08:35 +08:00
// 费用减免物资类型下拉选择事件
export const getThreeType = (data) => {
return http({
method: 'GET',
url: '/material/slt_agreement_reduce/selectByMaType',
data:data,
})
}
// 费用减免规格型号下拉选择事件
export const getFourType = (data) => {
return http({
method: 'GET',
url: '/material/slt_agreement_reduce/selectByMaModel',
data:data,
})
}
// 费用减免数据列表
export const getDirefList = (data) => {
return http({
method: 'GET',
url: '/material/slt_agreement_reduce/applyByParam',
data:data,
})
}
2025-02-20 10:49:52 +08:00
// 减免费用申请提交
export const discountSubmit = (data) => {
return http({
method: 'POST',
url: '/material/slt_agreement_reduce/addApply',
data:data,
})
2025-06-20 11:25:17 +08:00
}
// 退料编码-下拉
export const getSelectMachineByIdApi = (data) => {
return http({
method: 'GET',
url: '/material/back_apply_info/selectMachineById',
data:data,
})
2025-06-21 17:46:03 +08:00
}
// 退料编码-下拉
export const getLeaseCode = (data) => {
return http({
method: 'GET',
url: '/material/leaseTask/getCode',
data:data,
})
2025-02-20 10:49:52 +08:00
}