2025-09-27 17:16:12 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
|
|
export interface PlanSubDetailVO {
|
|
|
|
|
id: number
|
|
|
|
|
projectPlanId: number
|
|
|
|
|
projectId: number
|
|
|
|
|
projectSubId: number
|
|
|
|
|
projectSubCode: string
|
|
|
|
|
twoDimDate: Date
|
|
|
|
|
twoDimOwner: number
|
|
|
|
|
startTwoDimDate: Date
|
|
|
|
|
subType: string
|
|
|
|
|
isOverProcess: boolean
|
|
|
|
|
seqNo: number
|
|
|
|
|
designNum: number
|
|
|
|
|
code: string
|
|
|
|
|
name: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询生产计划子项目设计时间明细分页
|
|
|
|
|
export const getPlanSubDetailPage = async (params) => {
|
|
|
|
|
return await request.get({ url: `/heli/plan-sub-detail/page`, params })
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-07 18:39:32 +08:00
|
|
|
export const pageAddList = async (params) => {
|
|
|
|
|
return await request.get({ url: `/heli/plan-sub-detail/pageAddList`, params })
|
|
|
|
|
}
|
|
|
|
|
export const queryMaxDetail = async (params) => {
|
|
|
|
|
return await request.get({ url: `/heli/plan-sub-detail/queryMaxDetail`, params })
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 17:16:12 +08:00
|
|
|
// 查询生产计划子项目设计时间明细详情
|
|
|
|
|
export const getPlanSubDetail = async (id: number) => {
|
|
|
|
|
return await request.get({ url: `/heli/plan-sub-detail/get?id=` + id })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增生产计划子项目设计时间明细
|
|
|
|
|
export const createPlanSubDetail = async (data: PlanSubDetailVO) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/create`, data })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改生产计划子项目设计时间明细
|
|
|
|
|
export const updatePlanSubDetail = async (data: PlanSubDetailVO) => {
|
|
|
|
|
return await request.put({ url: `/heli/plan-sub-detail/update`, data })
|
|
|
|
|
}
|
2025-10-07 18:39:32 +08:00
|
|
|
export const modificationPlanSubDetail = async (data: PlanSubDetailVO) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/modification`, data })
|
|
|
|
|
}
|
|
|
|
|
export const chahuoPlanSubDetail = async (data) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/chahuo`, data })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const savechahuoPlanSubDetail = async (data) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/savechahuo`, data })
|
|
|
|
|
}
|
2025-09-27 17:16:12 +08:00
|
|
|
|
2025-10-07 18:39:32 +08:00
|
|
|
export const operate = async (data) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/operate`, data })
|
|
|
|
|
}
|
2025-09-27 17:16:12 +08:00
|
|
|
// 删除生产计划子项目设计时间明细
|
|
|
|
|
export const deletePlanSubDetail = async (id: number) => {
|
|
|
|
|
return await request.delete({ url: `/heli/plan-sub-detail/delete?id=` + id })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导出生产计划子项目设计时间明细 Excel
|
|
|
|
|
export const exportPlanSubDetail = async (params) => {
|
|
|
|
|
return await request.download({ url: `/heli/plan-sub-detail/export-excel`, params })
|
|
|
|
|
}
|
|
|
|
|
export const getSearchRlTsS = async (startDateTime: string ) => {
|
|
|
|
|
return await request.get({ url: `/heli/plan-sub-detail/getSearchRlTs?startDateTime=` + startDateTime})
|
|
|
|
|
}
|
2025-10-21 08:58:59 +08:00
|
|
|
export const getSearchRlT = async (data) => {
|
|
|
|
|
return await request.post({ url: `/heli/plan-sub-detail/getSearchRlT`, data })
|
|
|
|
|
}
|