feat: 新增盘库和维修计划初版
This commit is contained in:
44
klp-ui/src/api/flow/countDiscrepancy.js
Normal file
44
klp-ui/src/api/flow/countDiscrepancy.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库差异记录列表
|
||||
export function listCountDiscrepancy(query) {
|
||||
return request({
|
||||
url: '/flow/countDiscrepancy/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库差异记录详细
|
||||
export function getCountDiscrepancy(discrepancyId) {
|
||||
return request({
|
||||
url: '/flow/countDiscrepancy/' + discrepancyId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库差异记录
|
||||
export function addCountDiscrepancy(data) {
|
||||
return request({
|
||||
url: '/flow/countDiscrepancy',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库差异记录
|
||||
export function updateCountDiscrepancy(data) {
|
||||
return request({
|
||||
url: '/flow/countDiscrepancy',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库差异记录
|
||||
export function delCountDiscrepancy(discrepancyId) {
|
||||
return request({
|
||||
url: '/flow/countDiscrepancy/' + discrepancyId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/flow/countPlan.js
Normal file
44
klp-ui/src/api/flow/countPlan.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库计划主列表
|
||||
export function listCountPlan(query) {
|
||||
return request({
|
||||
url: '/flow/countPlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库计划主详细
|
||||
export function getCountPlan(planId) {
|
||||
return request({
|
||||
url: '/flow/countPlan/' + planId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库计划主
|
||||
export function addCountPlan(data) {
|
||||
return request({
|
||||
url: '/flow/countPlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库计划主
|
||||
export function updateCountPlan(data) {
|
||||
return request({
|
||||
url: '/flow/countPlan',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库计划主
|
||||
export function delCountPlan(planId) {
|
||||
return request({
|
||||
url: '/flow/countPlan/' + planId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/flow/countPlanWarehouse.js
Normal file
44
klp-ui/src/api/flow/countPlanWarehouse.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库计划-库区关联列表
|
||||
export function listCountPlanWarehouse(query) {
|
||||
return request({
|
||||
url: '/flow/countPlanWarehouse/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库计划-库区关联详细
|
||||
export function getCountPlanWarehouse(relId) {
|
||||
return request({
|
||||
url: '/flow/countPlanWarehouse/' + relId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库计划-库区关联
|
||||
export function addCountPlanWarehouse(data) {
|
||||
return request({
|
||||
url: '/flow/countPlanWarehouse',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库计划-库区关联
|
||||
export function updateCountPlanWarehouse(data) {
|
||||
return request({
|
||||
url: '/flow/countPlanWarehouse',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库计划-库区关联
|
||||
export function delCountPlanWarehouse(relId) {
|
||||
return request({
|
||||
url: '/flow/countPlanWarehouse/' + relId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/flow/maintenancePlan.js
Normal file
44
klp-ui/src/api/flow/maintenancePlan.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询维修计划主列表
|
||||
export function listMaintenancePlan(query) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询维修计划主详细
|
||||
export function getMaintenancePlan(planId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlan/' + planId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增维修计划主
|
||||
export function addMaintenancePlan(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改维修计划主
|
||||
export function updateMaintenancePlan(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlan',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除维修计划主
|
||||
export function delMaintenancePlan(planId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlan/' + planId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/flow/maintenancePlanAbnormal.js
Normal file
44
klp-ui/src/api/flow/maintenancePlanAbnormal.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询维修计划-异常记录关联列表
|
||||
export function listMaintenancePlanAbnormal(query) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanAbnormal/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询维修计划-异常记录关联详细
|
||||
export function getMaintenancePlanAbnormal(relId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanAbnormal/' + relId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增维修计划-异常记录关联
|
||||
export function addMaintenancePlanAbnormal(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanAbnormal',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改维修计划-异常记录关联
|
||||
export function updateMaintenancePlanAbnormal(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanAbnormal',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除维修计划-异常记录关联
|
||||
export function delMaintenancePlanAbnormal(relId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanAbnormal/' + relId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
klp-ui/src/api/flow/maintenancePlanDetail.js
Normal file
44
klp-ui/src/api/flow/maintenancePlanDetail.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询维修计划明细列表
|
||||
export function listMaintenancePlanDetail(query) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询维修计划明细详细
|
||||
export function getMaintenancePlanDetail(detailId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanDetail/' + detailId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增维修计划明细
|
||||
export function addMaintenancePlanDetail(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改维修计划明细
|
||||
export function updateMaintenancePlanDetail(data) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除维修计划明细
|
||||
export function delMaintenancePlanDetail(detailId) {
|
||||
return request({
|
||||
url: '/flow/maintenancePlanDetail/' + detailId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -16,18 +16,22 @@ export function getPlanExecuteRel(relId) {
|
||||
}
|
||||
|
||||
export function addPlanExecuteRel(data) {
|
||||
// 剔除掉rejectMark字段
|
||||
const { rejectMark, ...payload } = { ...data };
|
||||
return request({
|
||||
url: '/flow/planExecuteRel',
|
||||
method: 'post',
|
||||
data: data
|
||||
data: payload
|
||||
})
|
||||
}
|
||||
|
||||
export function updatePlanExecuteRel(data) {
|
||||
// 剔除掉rejectMark字段
|
||||
const { rejectMark, ...payload } = { ...data };
|
||||
return request({
|
||||
url: '/flow/planExecuteRel',
|
||||
method: 'put',
|
||||
data: data
|
||||
data: payload
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user