199 lines
3.8 KiB
JavaScript
199 lines
3.8 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(ids) {
|
|
return request({
|
|
url: '/material/lease_apply_info/' + ids,
|
|
method: 'delete',
|
|
})
|
|
}
|
|
|
|
// 领料申请-发布
|
|
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
|
|
})
|
|
}
|
|
|
|
// 提交
|
|
export function submitLeaseOutApi(data) {
|
|
return request({
|
|
url: '/material/lease_apply_info/submitLeaseOut',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 根据用户名查询用户信息
|
|
export function getUserInfoByUserNameApi(data) {
|
|
return request({
|
|
url: '/material/app/iwsTeamUser/selectUserInfoByUserName',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据身份证号查询用户信息
|
|
export function getUserInfoByIdCardApi(data) {
|
|
return request({
|
|
url: '/material/app/iwsTeamUser/selectProjectTeamInfoByIdCard',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 更新班组工程信息
|
|
export function updateTeamProjectApi(data) {
|
|
return request({
|
|
url: '/material/app/iwsTeamUser/updateTeamProject',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取工程ids
|
|
export function getProjectInfoApi(data) {
|
|
return request({
|
|
url: '/material/select/getProjectInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
} |