bonus-ui/src/api/lease/apply.js

157 lines
2.9 KiB
JavaScript

import request from '@/utils/request'
//领料申请-列表
export function getListLeaseApply(query) {
return request({
url: '/material/lease_apply_info/list',
method: 'get',
params: query,
})
}
// 领料申请-新增
export function addApplyInfo(data) {
return request({
url: '/material/lease_apply_info',
method: 'post',
data: data,
})
}
// 领料申请-编辑
export function updateApplyInfo(data) {
return request({
url: '/material/lease_apply_info',
method: 'put',
data: data,
})
}
// 领料申请-详情信息
export function getApplyInfo(id) {
return request({
url: '/material/lease_apply_info/' + id,
method: 'get'
})
}
// 领料申请租赁单位下拉框
export function getListUnite(data) {
return request({
url: '/material/select/getUnitList',
method: 'post',
data: data,
})
}
// 领料申请租赁工程下拉框
export function getListProject(data) {
return request({
url: '/material/select/getProjectList',
method: 'post',
data: data,
})
}
// 领料申请获取协议单id
export function getAgreement(data) {
return request({
url: '/material/select/getAgreementInfoById',
method: 'post',
data: data,
})
}
// 领料申请-删除
export function applyRemove(data) {
return request({
url: '/material/scrap_apply_details/delete',
method: 'post',
data,
})
}
// 领料申请-发布
export function applySend(data) {
return request({
url: '/material/lease_apply_info/publish',
method: 'post',
data: data,
})
}
// 领用申请发布-终止
export function applyEnd(data) {
return request({
url: '/material/leaseTask/endPublish',
method: 'post',
data: data,
})
}
// 领料申请-批量发布
export function applySendAll(data) {
return request({
url: '/material/lease_apply_info/publishBatch',
method: 'post',
data: data,
})
}
//新购到货-二级列表详情
export function getPurchaseCheckInfo(query) {
return request({
url: '/material/purchase_check_info/getInfo',
method: 'get',
params: query,
})
}
// 新购到货-新增
export function addPurchaseCheckInfo(data) {
return request({
url: '/material/purchase_check_info',
method: 'post',
data: data,
})
}
// 新购到货-编辑
export function updatePurchaseCheckInfo(data) {
return request({
url: '/material/purchase_check_info',
method: 'put',
data: data,
})
}
// 新购到货--删除
export function purchaseCheckInfoRemove(ids) {
return request({
url: '/material/purchase_check_info/' + ids,
method: 'post',
})
}
// 上传报告附件
export function uploadPurchaseFile(data) {
return request({
url: '/material/bm_file_info',
method: 'post',
data: data
})
}
// 出库检验单-详情信息
export function getCheckInfo(data) {
return request({
url: '/material/lease_apply_info/getInfo',
method: 'get',
params: data
})
}