改路径

This commit is contained in:
sxu 2024-08-08 16:40:40 +08:00
parent 34b7674993
commit 35bc15ed7c
2 changed files with 36 additions and 36 deletions

View File

@ -144,7 +144,7 @@ export function editLeaseApply(params = {}) {
// 参数 领料任务
export function deleteTask(taskId) {
return request({
url: `/base/tm_task/${taskId}`,
url: `/material/base/tm_task/${taskId}`,
method: 'delete'
})
}

View File

@ -2,7 +2,7 @@ import request from "@/utils/request";
//机具类型管理
export function getMaTypeList(query) {
return request({
url: "/base/type/getMaTypeList",
url: "/material/base/type/getMaTypeList",
method: "get",
params: query,
});
@ -10,7 +10,7 @@ export function getMaTypeList(query) {
//获取机具类型列表
export function getListByMaType(query) {
return request({
url: "/base/type/getListByMaType",
url: "/material/base/type/getListByMaType",
method: "get",
params: query,
});
@ -18,7 +18,7 @@ export function getListByMaType(query) {
//获取机具类型树2
export function equipmentTypeTree(query) {
return request({
url: "/base/type/equipmentType",
url: "/material/base/type/equipmentType",
method: "get",
params: query,
});
@ -26,14 +26,14 @@ export function equipmentTypeTree(query) {
//机具类型-详情
export function getMaType(typeId) {
return request({
url: "/base/type/" + typeId,
url: "/material/base/type/" + typeId,
method: "get",
});
}
//获取基层单位
export function getunitInfoAll(query) {
return request({
url: "/base/bmUnitInfo/unitInfoAll",
url: "/material/base/bmUnitInfo/unitInfoAll",
method: "get",
params: query,
});
@ -42,7 +42,7 @@ export function getunitInfoAll(query) {
//机具类型--新增
export function addMaType(data) {
return request({
url: "/base/type",
url: "/material/base/type",
method: "post",
data: data,
});
@ -50,7 +50,7 @@ export function addMaType(data) {
// 机具类型--修改
export function updateMaType(data) {
return request({
url: "/base/type",
url: "/material/base/type",
method: "put",
data: data,
});
@ -59,7 +59,7 @@ export function updateMaType(data) {
//供应商管理--删除
export function delMaType(typeId) {
return request({
url: "/base/type/" + typeId,
url: "/material/base/type/" + typeId,
method: "delete",
});
}
@ -67,7 +67,7 @@ export function delMaType(typeId) {
//供应商管理-列表
export function listSupplierInfo(query) {
return request({
url: "/base/supplierInfo/list",
url: "/material/base/supplierInfo/list",
method: "get",
params: query,
});
@ -75,14 +75,14 @@ export function listSupplierInfo(query) {
//供应商管理-详情
export function getSupplierInfo(supplierId) {
return request({
url: "/base/supplierInfo/" + supplierId,
url: "/material/base/supplierInfo/" + supplierId,
method: "get",
});
}
//供应商管理--新增
export function addSupplier(data) {
return request({
url: "/base/supplierInfo",
url: "/material/base/supplierInfo",
method: "post",
data: data,
});
@ -90,7 +90,7 @@ export function addSupplier(data) {
// 供应商管理--修改
export function updateSupplier(data) {
return request({
url: "/base/supplierInfo",
url: "/material/base/supplierInfo",
method: "put",
data: data,
});
@ -98,14 +98,14 @@ export function updateSupplier(data) {
//供应商管理--删除
export function delSupplier(supplierIds) {
return request({
url: "/base/supplierInfo/" + supplierIds,
url: "/material/base/supplierInfo/" + supplierIds,
method: "delete",
});
}
//供应商管理-下拉数据
export function supplierInfoList(query) {
return request({
url: "/base/supplierInfo/supplierInfoList",
url: "/material/base/supplierInfo/supplierInfoList",
method: "get",
params: query,
});
@ -114,7 +114,7 @@ export function supplierInfoList(query) {
//机具设备管理-列表
export function listMachine(query) {
return request({
url: "/base/machine/getMachine",
url: "/material/base/machine/getMachine",
method: "get",
params: query,
});
@ -122,7 +122,7 @@ export function listMachine(query) {
//机具设备管理-详情
export function getMachine(maId) {
return request({
url: "/base/machine/" + maId,
url: "/material/base/machine/" + maId,
method: "get",
});
}
@ -130,7 +130,7 @@ export function getMachine(maId) {
//机具设备管理--新增
export function addMachine(data) {
return request({
url: "/base/machine",
url: "/material/base/machine",
method: "post",
data: data,
});
@ -138,7 +138,7 @@ export function addMachine(data) {
// 机具设备管理--修改
export function updateMachine(data) {
return request({
url: "/base/machine",
url: "/material/base/machine",
method: "put",
data: data,
});
@ -146,7 +146,7 @@ export function updateMachine(data) {
//机具设备管理--删除
export function delMachine(maIds) {
return request({
url: "/base/machine/" + maIds,
url: "/material/base/machine/" + maIds,
method: "delete",
});
}
@ -155,7 +155,7 @@ export function delMachine(maIds) {
// //配件管理-列表
export function listPartType(query) {
return request({
url: "/base/maPartType/list",
url: "/material/base/maPartType/list",
method: "get",
params: query,
});
@ -164,7 +164,7 @@ export function listPartType(query) {
//配件管理--新增
export function addPartType(data) {
return request({
url: "/base/maPartType",
url: "/material/base/maPartType",
method: "post",
data: data,
});
@ -172,7 +172,7 @@ export function addPartType(data) {
//配件管理--新增
export function addMaPartType(data) {
return request({
url: "/base/maPartType",
url: "/material/base/maPartType",
method: "post",
data: data,
});
@ -180,7 +180,7 @@ export function addMaPartType(data) {
// 配件管理--修改
export function updatePartType(data) {
return request({
url: "/base/maPartType",
url: "/material/base/maPartType",
method: "put",
data: data,
});
@ -188,7 +188,7 @@ export function updatePartType(data) {
// 配件管理--修改
export function updatePartTypeById(data) {
return request({
url: "/base/maPartType/updateById",
url: "/material/base/maPartType/updateById",
method: "post",
data: data,
});
@ -196,14 +196,14 @@ export function updatePartTypeById(data) {
//配件管理--删除
export function delPartType(maIds) {
return request({
url: "/base/maPartType/" + maIds,
url: "/material/base/maPartType/" + maIds,
method: "delete",
});
}
//配件管理--查询
export function getPartType(maIds) {
return request({
url: "/base/maPartType/" + maIds,
url: "/material/base/maPartType/" + maIds,
method: "get",
});
}
@ -211,7 +211,7 @@ export function getPartType(maIds) {
// 获取库管员配置列表
export function warehouseKeeperInfoAll(query) {
return request({
url: "/base/maWarehouseKeeper/warehouseKeeperInfoAll",
url: "/material/base/maWarehouseKeeper/warehouseKeeperInfoAll",
method: "get",
params: query,
});
@ -219,7 +219,7 @@ export function warehouseKeeperInfoAll(query) {
//库管员配置-根据人员名称查询左侧列表
export function getMaUserList(query) {
return request({
url: "/base/maWarehouseKeeper/getMaUserList",
url: "/material/base/maWarehouseKeeper/getMaUserList",
method: "get",
params: query,
});
@ -228,7 +228,7 @@ export function getMaUserList(query) {
//库管员配置-保存
export function addHouseKeeper(data) {
return request({
url: "/base/maWarehouseKeeper/addList",
url: "/material/base/maWarehouseKeeper/addList",
method: "post",
data: data,
});
@ -237,7 +237,7 @@ export function addHouseKeeper(data) {
//库管员配置-删除
export function delHouseKeeper(data) {
return request({
url: "/base/maWarehouseKeeper/remove",
url: "/material/base/maWarehouseKeeper/remove",
method: "post",
data: data,
});
@ -246,7 +246,7 @@ export function delHouseKeeper(data) {
// 获取维修班配置列表
export function wareRepairerInfoAll(query) {
return request({
url: "/base/maintenanceGang/maintenanceGangInfoAll",
url: "/material/base/maintenanceGang/maintenanceGangInfoAll",
method: "get",
params: query,
});
@ -254,7 +254,7 @@ export function wareRepairerInfoAll(query) {
//维修班配置-根据人员名称查询左侧列表
export function getRepairerList(query) {
return request({
url: "/base/maintenanceGang/getMaUserList",
url: "/material/base/maintenanceGang/getMaUserList",
method: "get",
params: query,
});
@ -263,7 +263,7 @@ export function getRepairerList(query) {
//维修班配置-保存
export function addRepairer(data) {
return request({
url: "/base/maintenanceGang/addList",
url: "/material/base/maintenanceGang/addList",
method: "post",
data: data,
});
@ -272,7 +272,7 @@ export function addRepairer(data) {
//维修班配置-删除
export function delRepairer(data) {
return request({
url: "/base/maintenanceGang/remove",
url: "/material/base/maintenanceGang/remove",
method: "post",
data: data,
});
@ -281,7 +281,7 @@ export function delRepairer(data) {
//机具厂家-下拉数据
export function getDeviceFactoryCbx(data) {
return request({
url: "/base/select/getDeviceFactoryCbx",
url: "/material/base/select/getDeviceFactoryCbx",
method: "post",
data: data,
});