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

116 lines
2.3 KiB
JavaScript

import { http } from '@/utils/http'
// 领用记录查询
export const getLeaseTaskList = (data) => {
return http({
method: 'GET',
url: '/material/leaseTask/list?isApp=1',
data,
})
}
// 领用记录详情
export const getLeaseTaskDetail = (id) => {
return http({
method: 'GET',
url: '/material/leaseTask/' + id,
})
}
// 领用记录-编辑
export const updateLeaseTask = (data) => {
return http({
method: 'PUT',
url: '/material/leaseTask',
data,
})
}
// 直转记录查询
export const getDirectRotationList = (data) => {
return http({
method: 'GET',
url: '/material/directRotation/appList?isApp=1',
data,
})
}
// 直转记录详情
export const getDirectRotationDetail = (data) => {
return http({
method: 'GET',
url: '/material/directRotation/getInfo/',
data,
})
}
// 直转记录详情-列表
export const getDirectRotationDetailList = (data) => {
return http({
method: 'GET',
url: '/material/directRotation/getInfoApp',
data,
})
}
// 结算减免记录查询
export const getDerateRecordList = (data) => {
return http({
method: 'GET',
url: '/material/derateRecordQuery/getAppList',
data,
})
}
// 结算减免记录详情
export const getDerateRecordDetail = (id) => {
return http({
method: 'GET',
url: '/material/derateRecordQuery/' + id,
})
}
// 结算减免记录-编辑
export const updateDerateRecord = (data) => {
return http({
method: 'POST',
url: '/material/slt_agreement_reduce/editApply',
data,
})
}
// 结算记录查询
export const getSltRecordQueryList = (data) => {
return http({
method: 'GET',
url: '/material/sltRecordQuery/getAppList',
data,
})
}
// 物资类型-3级tree
export const getEquipmentThreeType = (data = {}) => {
return http({
method: 'GET',
url: '/material/ma_type/equipmentThreeType',
data,
})
}
// 物资类型-3级tree-根据id查询
export const getEquipmentThreeTypeById = (data) => {
return http({
method: 'GET',
url: '/material/ma_type/equipmentThreeTypes',
data,
})
}
// 在用查询
export const getUseringData = (data) => {
return http({
method: 'GET',
url: '/material/directRotation/getUseringData',
data,
})
}