devicesmgt/sgzb-ui/src/api/claimAndRefund/receive.js

336 lines
6.4 KiB
JavaScript
Raw Normal View History

2023-12-19 04:26:18 +08:00
import request from '@/utils/request'
// 往来单位-下拉
export function getUnitList(query) {
2024-07-02 17:16:13 +08:00
return request({
url: '/material/agreementInfo/getUnitList',
method: 'get',
params: query
})
}
2024-01-26 15:59:51 +08:00
2023-12-19 04:26:18 +08:00
// 工程名称-下拉
export function getProjectList(query) {
2024-07-02 17:16:13 +08:00
return request({
url: '/material/agreementInfo/getProjectList',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
// 协议管理-列表
export function getAgreementList(query) {
return request({
url: '/material/agreementInfo/getAgreementInfoAll',
method: 'get',
params: query
})
}
// 协议管理-详情
export function getAgreementInfoId(query) {
2024-07-02 17:16:13 +08:00
return request({
url: '/material/agreementInfo/getAgreementInfoId',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
//协议管理--新增
export function addAgreement(data) {
return request({
url: '/material/agreementInfo/add',
method: 'post',
data: data
})
}
// 协议管理--修改
export function updateAgreement(data) {
2024-07-02 17:16:13 +08:00
return request({
url: '/material/agreementInfo/update',
method: 'post',
data: data
})
}
2023-12-19 04:26:18 +08:00
// //协议管理--删除
export function removeAgreement(data) {
2024-07-02 17:16:13 +08:00
return request({
url: '/material/agreementInfo/remove',
method: 'post',
data: data
})
}
2023-12-19 04:26:18 +08:00
// 机具领料-申请列表
export function getLeaseManageListAll(query) {
return request({
url: '/base/tm_task/getLeaseManageListAll',
method: 'get',
params: query
})
}
2024-03-18 10:22:37 +08:00
// 机具领料-申请列表
export function getLeaseManageListAllCq(query) {
return request({
url: '/base/tm_task/getLeaseManageListAllCq',
method: 'get',
params: query
})
}
// 机具领料-管理列表
export function getLeaseAuditListAll(query) {
2023-12-19 04:26:18 +08:00
return request({
url: '/base/tm_task/getLeaseAuditListAll',
2023-12-19 04:26:18 +08:00
method: 'get',
params: query
})
}
// 获取 来往单位 列表
2024-07-02 17:16:13 +08:00
export function getUnitData(params = {}) {
return request({
url: '/system/select/getUnitCbx',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
// 获取 工程 列表
2024-07-02 17:16:13 +08:00
export function getProData(params = {}) {
return request({
url: '/system/select/getSectionEngineeringCbx',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
// 获取 设备树
2024-07-02 17:16:13 +08:00
export function getDeviceTypeTree(params = {}) {
return request({
url: '/system/select/getDeviceTypeTree',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
// 根据单位id和工程id 获取 协议id
2024-07-02 17:16:13 +08:00
export function getAgreementInfoById(params = {}) {
return request({
2024-07-02 17:16:13 +08:00
url: '/system/select/getAgreementInfoById',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
2023-12-22 15:33:24 +08:00
//提交 领料申请
2024-07-02 17:16:13 +08:00
export function submitLeaseApply(params = {}) {
return request({
2024-07-02 17:16:13 +08:00
url: '/base/tm_task/submitLeaseApply',
method: 'post',
2024-07-02 17:16:13 +08:00
data: params
})
}
2023-12-19 04:26:18 +08:00
2023-12-23 19:51:46 +08:00
//编辑 领料申请
2024-07-02 17:16:13 +08:00
export function editLeaseApply(params = {}) {
2023-12-23 19:51:46 +08:00
return request({
2024-07-02 17:16:13 +08:00
url: '/base/tm_task/edit',
2023-12-23 19:51:46 +08:00
method: 'post',
2024-07-02 17:16:13 +08:00
data: params
2023-12-23 19:51:46 +08:00
})
}
2023-12-22 15:33:24 +08:00
// 参数 领料任务
2024-07-02 17:16:13 +08:00
export function deleteTask(taskId) {
2023-12-22 15:33:24 +08:00
return request({
2024-07-02 17:16:13 +08:00
url: `/base/tm_task/${taskId}`,
method: 'delete'
2023-12-22 15:33:24 +08:00
})
}
2023-12-19 04:26:18 +08:00
2023-12-22 15:33:24 +08:00
// 根据 领料任务id 获取详情数据
2024-07-02 17:16:13 +08:00
export function getLeaseListAll(params = {}) {
2023-12-22 15:33:24 +08:00
return request({
url: '/base/tm_task/getLeaseListAll',
2024-07-02 17:16:13 +08:00
method: 'get',
params: params
2023-12-22 15:33:24 +08:00
})
}
2024-03-18 10:22:37 +08:00
// 根据 领料任务id 获取详情数据
2024-07-02 17:16:13 +08:00
export function getLeaseListAllCq(params = {}) {
2024-03-18 10:22:37 +08:00
return request({
url: '/base/tm_task/getLeaseListAllCq',
2024-07-02 17:16:13 +08:00
method: 'get',
params: params
2024-03-18 10:22:37 +08:00
})
}
2023-12-19 04:26:18 +08:00
2023-12-23 19:51:46 +08:00
// 领料审核 同意
2024-07-02 17:16:13 +08:00
export function auditLeaseByCompany(params = {}) {
2023-12-23 13:27:04 +08:00
return request({
2024-07-02 17:16:13 +08:00
url: '/base/tm_task/auditLeaseByCompany',
method: 'post',
data: params
2023-12-23 13:27:04 +08:00
})
}
2024-03-16 13:35:57 +08:00
// 领料审核 同意
2024-07-02 17:16:13 +08:00
export function auditLeaseByCompanyCq(params = {}) {
2024-03-16 13:35:57 +08:00
return request({
2024-07-02 17:16:13 +08:00
url: '/base/tm_task/auditLeaseByCompanyCq',
method: 'post',
data: params
2024-03-16 13:35:57 +08:00
})
}
// 领料审核 拒绝
2024-07-02 17:16:13 +08:00
export function rejectLeaseByCompany(params = {}) {
return request({
url: '/base/tm_task/rejectLeaseByCompany',
method: 'post',
2024-01-26 15:59:51 +08:00
data: params
})
}
2024-03-16 13:35:57 +08:00
// 领料审核 拒绝
2024-07-02 17:16:13 +08:00
export function rejectLeaseByCompanyCq(params = {}) {
2024-03-16 13:35:57 +08:00
return request({
url: '/base/tm_task/rejectLeaseByCompanyCq',
method: 'post',
data: params
})
}
2023-12-23 13:27:04 +08:00
2023-12-24 21:15:04 +08:00
// 获取 物品类型
2024-07-02 17:16:13 +08:00
export function getUseTypeTreee(params = {}) {
2023-12-24 21:15:04 +08:00
return request({
url: '/material/backApply/getUseTypeTree',
method: 'post',
data: params
})
}
2023-12-23 13:27:04 +08:00
2024-02-27 10:33:50 +08:00
// 机具领料申请-详情
export function getLeaseApplyListAll(query) {
return request({
url: '/base/tm_task/getLeaseApplyListAll',
method: 'get',
params: query
})
}
2024-03-01 18:17:50 +08:00
export function getLeaseApplyAuditListAll(query) {
return request({
url: '/base/tm_task/getLeaseApplyAuditListAll',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
//领料出库 列表
export function getLeaseAuditList(query) {
return request({
url: '/base/tm_task/getLeaseAuditList',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
//领料出库 详情
export function getLeaseAuditListDetail(query) {
return request({
url: '/base/tm_task/getLeaseAuditListDetail',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
//领料出库 编码出库获取编码
export function getDetailsByTypeId(query) {
return request({
url: '/base/leaseOutDetails/getDetailsByTypeId',
method: 'get',
params: query
})
}
2023-12-19 04:26:18 +08:00
// 领料出库 编码出库 保存
2024-07-02 17:16:13 +08:00
export function submitOut(params) {
return request({
2024-04-01 09:44:33 +08:00
url: '/base/leaseOutDetails/submitOutRfid',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
2024-03-28 18:12:07 +08:00
// 领料出库 数量出库 保存
2024-07-02 17:16:13 +08:00
export function submitNumOut(params) {
2024-03-28 18:12:07 +08:00
return request({
2024-04-01 09:44:33 +08:00
url: '/base/leaseOutDetails/submitOutRfid',
2024-03-28 18:12:07 +08:00
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
2024-07-02 17:16:13 +08:00
// 领料确认
export function updateLeaseTaskStatusConfirmByCq(params) {
return request({
url: '/base/tm_task/updateLeaseTaskStatusConfirmByCq',
method: 'post',
data: params
})
}
// 当前在用量
2024-07-02 17:16:13 +08:00
export function getUseNumByTypeId(params) {
return request({
url: '/material/backApply/getUseNumByTypeId',
method: 'get',
params
})
}
2023-12-19 04:26:18 +08:00
// 批量审核
2024-07-02 17:16:13 +08:00
export function auditAll(params) {
return request({
url: '/material/backApply/auditAll',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
2024-06-05 15:41:36 +08:00
// 手动出库结单
2024-07-02 17:16:13 +08:00
export function outboundCompleted(params) {
2024-06-05 15:41:36 +08:00
return request({
url: '/base/tm_task/outboundCompleted',
method: 'post',
data: params
})
}
2023-12-19 04:26:18 +08:00
2024-07-02 17:16:13 +08:00
// 查看测试单
export const outboundOrderApi = (params) => {
return request({
url: '/base/leaseOutDetails/getOutboundOrder',
method: 'get',
params
})
}
2023-12-19 04:26:18 +08:00