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

157 lines
2.9 KiB
JavaScript
Raw Normal View History

2024-11-11 16:16:55 +08:00
import request from '@/utils/request'
//领料申请-列表
export function getListLeaseApply(query) {
return request({
url: '/material/lease_apply_info/list',
method: 'get',
params: query,
})
}
2024-11-12 15:05:17 +08:00
// 领料申请-新增
2024-11-12 10:28:11 +08:00
export function addApplyInfo(data) {
return request({
url: '/material/lease_apply_info',
method: 'post',
data: data,
})
}
2024-11-12 15:05:17 +08:00
// 领料申请-编辑
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,
})
}
2024-11-13 14:40:58 +08:00
// 领料申请获取协议单id
export function getAgreement(data) {
return request({
url: '/material/select/getAgreementInfoById',
method: 'post',
data: data,
})
}
2024-11-12 15:05:17 +08:00
2024-11-13 16:05:29 +08:00
// 领料申请-删除
2025-06-18 15:23:12 +08:00
export function applyRemove(data) {
2024-11-13 16:05:29 +08:00
return request({
2025-06-18 15:23:12 +08:00
url: '/material/scrap_apply_details/delete',
method: 'post',
data,
2024-11-13 16:05:29 +08:00
})
}
2024-11-12 15:05:17 +08:00
2024-11-13 16:05:29 +08:00
// 领料申请-发布
2024-11-14 08:49:14 +08:00
export function applySend(data) {
2024-11-13 16:05:29 +08:00
return request({
2024-11-14 08:49:14 +08:00
url: '/material/lease_apply_info/publish',
method: 'post',
data: data,
})
}
2025-03-07 13:34:30 +08:00
// 领用申请发布-终止
export function applyEnd(data) {
return request({
url: '/material/leaseTask/endPublish',
method: 'post',
data: data,
})
}
2024-11-14 08:49:14 +08:00
// 领料申请-批量发布
export function applySendAll(data) {
return request({
url: '/material/lease_apply_info/publishBatch',
method: 'post',
data: data,
2024-11-13 16:05:29 +08:00
})
}
2024-11-12 15:05:17 +08:00
2024-11-11 16:16:55 +08:00
//新购到货-二级列表详情
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,
2024-11-27 18:28:00 +08:00
method: 'post',
2024-11-11 16:16:55 +08:00
})
}
// 上传报告附件
export function uploadPurchaseFile(data) {
return request({
url: '/material/bm_file_info',
method: 'post',
data: data
})
}
2024-12-25 16:43:28 +08:00
// 出库检验单-详情信息
export function getCheckInfo(data) {
return request({
url: '/material/lease_apply_info/getInfo',
method: 'get',
params: data
})
}