2026-06-10 14:17:54 +08:00
|
|
|
import {
|
|
|
|
|
get,
|
2026-08-18 18:05:16 +08:00
|
|
|
post,
|
|
|
|
|
request
|
2026-06-10 14:17:54 +08:00
|
|
|
} from '@/utils/request.js'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取焊接首页数据
|
|
|
|
|
*/
|
2026-06-11 09:43:42 +08:00
|
|
|
export const reqHJIndexData = (projectId) => get(`HJGLIndex/GetJGLIndexItem?projectId=${projectId}`)
|
2026-06-10 17:26:36 +08:00
|
|
|
|
2026-06-11 15:49:17 +08:00
|
|
|
// ======================= 焊接日报 ==========================================
|
2026-06-11 09:43:42 +08:00
|
|
|
/**
|
|
|
|
|
* 获取焊接日报详情
|
|
|
|
|
*/
|
|
|
|
|
export const reqGetWeldJointByWeldJointId = (id) => get(`PipeJoint/getWeldJointByWeldJointId?WeldJointId=${id}`)
|
|
|
|
|
|
|
|
|
|
/**
|
2026-08-18 18:05:16 +08:00
|
|
|
* 搜索筛选焊口(下料/组对等中间页)
|
2026-08-20 17:53:59 +08:00
|
|
|
* @param {Object} params - { projectId, pipelineCode?, weldJointCode?, pageIndex?, pageSize? }
|
2026-08-18 18:05:16 +08:00
|
|
|
*/
|
|
|
|
|
export const reqPipeJointWeldedJoints = (params = {}) => request('PipeJoint/GetWeldedJoints', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
data: params,
|
|
|
|
|
loading: false,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 焊接日报填报(提交时传 WeldTypeId/WeldTypeCode、WeldingMethodId/WeldingMethodCode,后端同步更新焊口对应字段)
|
|
|
|
|
* @param {Object} data - { WeldJointId, Personid, time, weldingLocation, welderType, WeldTypeId, WeldTypeCode, WeldingMethodId, WeldingMethodCode, WeldingWire, WeldingRod, PreWeldAttachUrl, PostWeldAttachUrl }
|
2026-06-11 09:43:42 +08:00
|
|
|
*/
|
2026-06-24 16:50:38 +08:00
|
|
|
export const reqSaveWeldingDailyByWeldJointId = (data={}) => post(
|
|
|
|
|
`PreWeldingDaily/SaveWeldingDailyByWeldJointId`,data
|
2026-06-11 09:43:42 +08:00
|
|
|
)
|
2026-06-11 15:49:17 +08:00
|
|
|
// ==================== 点口管理 ================================================
|
2026-06-11 09:43:42 +08:00
|
|
|
/**
|
|
|
|
|
* 点口
|
|
|
|
|
*/
|
2026-06-11 14:11:56 +08:00
|
|
|
export const reqGetManualPointSave = (weldJointId)=>get(`NDETrust/getManualPointSave?weldJointId=${weldJointId}`)
|
2026-06-11 15:49:17 +08:00
|
|
|
/**
|
|
|
|
|
* 获取点口管理列表
|
|
|
|
|
*/
|
|
|
|
|
export const reqGetNotEndPointBatch = (unitWorkId, projectId) => get(
|
|
|
|
|
`NDETrust/getNotEndPointBatch?unitWorkId=${unitWorkId}&projectId=${projectId}`)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取点口详情列表
|
|
|
|
|
*/
|
|
|
|
|
export const reqGetPointBatchDetail = (id) => get(`NDETrust/getPointBatchDetail?pointBatchId=${id}`)
|
2026-06-11 14:11:56 +08:00
|
|
|
|
|
|
|
|
// ========================= 包装管理 ====================================
|
|
|
|
|
/**
|
|
|
|
|
* 包装管理列表
|
|
|
|
|
*/
|
2026-06-11 17:58:29 +08:00
|
|
|
export const reqPackagingInformationList = (data={})=> get(`PackagingManage/GetPackagingInformationList?unitId=${data.unitId}&projectId=${data.projectId}&pageindex=${data.pageIndex}&pagesize=${data.pageSize}&packagingCode=${data.packagingCode}&hasTrainNumber=${data.hasTrainNumber}`)
|
2026-06-11 15:49:17 +08:00
|
|
|
/**
|
|
|
|
|
* 获取包装编号
|
|
|
|
|
*/
|
|
|
|
|
export const reqPackagingNumberByProjectId = (projectId)=>get(`PackagingManage/GetPackagingNumberByProjectId?projectId=${projectId}`)
|
|
|
|
|
/**
|
|
|
|
|
* 请求包装分类
|
|
|
|
|
*/
|
|
|
|
|
export const reqPackagingManage = ()=>get(`PackagingManage/GetPackagingCategories`)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 保存包装
|
|
|
|
|
*/
|
2026-06-11 17:58:29 +08:00
|
|
|
export const reqSavePackaging = (data)=> post(`PackagingManage/SavePackaging`, data)
|
2026-06-12 15:14:46 +08:00
|
|
|
|
2026-06-11 17:58:29 +08:00
|
|
|
/**
|
|
|
|
|
* 请求预制组件详情
|
|
|
|
|
*/
|
|
|
|
|
export const reqPipelineComponentById = (params={})=>get(`/PipelineComponent/GetPipelineComponentById?projectId=${params.projectId}&personId=${params.personId}&PipelineComponentId=${params.PipelineComponentId}`)
|
|
|
|
|
/**
|
|
|
|
|
* 添加预制组件到包装中
|
|
|
|
|
*/
|
|
|
|
|
export const reqSavePipelineComponentToPackaging = (params={})=>get(`/PackagingManage/SavePipelineComponentToPackaging?packagingManageId=${params.packagingManageId}&pipelineComponentId=${params.pipelineComponentId}`)
|
|
|
|
|
/**
|
|
|
|
|
* 从预制组件中删除包装
|
|
|
|
|
*/
|
|
|
|
|
export const reqDeletePipelineComponentFromPackaging = (id)=>get(`/PackagingManage/DeletePipelineComponentFromPackaging?pipelineComponentId=${id}`)
|
|
|
|
|
/**
|
|
|
|
|
* 包装确认到场
|
|
|
|
|
*/
|
2026-06-11 20:35:27 +08:00
|
|
|
export const reqPackingInfoConfirmArrival = (params={})=>get(`/PackagingManage/GetPackingInfoConfirmArrival?packagingManageId=${params.packagingManageId}&PersonId=${params.personId}`)
|
|
|
|
|
|
|
|
|
|
// ========================= 发货管理(车次管理)====================================
|
|
|
|
|
/**
|
|
|
|
|
* 获取车次管理列表
|
|
|
|
|
*/
|
|
|
|
|
export const reqTrainNumberList = (data={})=> get(`TrainNumberManage/GetTrainNumberList?filter.projectId=${data.projectId}&pageindex=${data.pageIndex}&pagesize=${data.pageSize}&filter.unitId=${data.unitId || ''}&preapitype=3`)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取车次详情
|
|
|
|
|
*/
|
2026-06-12 15:14:46 +08:00
|
|
|
export const reqTrainNumberDetail = (id) => get(`TrainNumberManage/GetTrainNumberList?filter.id=${id}&pageindex=1&pagesize=1`)
|
2026-06-11 20:35:27 +08:00
|
|
|
|
|
|
|
|
/**
|
2026-06-12 15:14:46 +08:00
|
|
|
* 根据车次获取包装列表
|
2026-06-11 20:35:27 +08:00
|
|
|
*/
|
2026-06-12 15:14:46 +08:00
|
|
|
export const reqPackagingByTrain = (id) => get(`TrainNumberManage/GetPackagingByTrain?trainNumberId=${id}`)
|
2026-06-11 20:35:27 +08:00
|
|
|
/**
|
2026-06-12 15:14:46 +08:00
|
|
|
* 获取包装详情
|
|
|
|
|
* @param {Object} params - { projectId, personId, packagingManageId }
|
2026-06-11 20:35:27 +08:00
|
|
|
*/
|
2026-06-12 15:14:46 +08:00
|
|
|
export const reqPackagingInformationById = (params={})=>get(`PackagingManage/GetPackagingInformationById?projectId=${params.projectId}&personId=${params.personId}&packagingManageId=${params.packagingManageId}`)
|
|
|
|
|
/**
|
|
|
|
|
* 保存包装到车次
|
|
|
|
|
* @param {Object} params - { packagingManageId, trainNumberId }
|
|
|
|
|
*/
|
|
|
|
|
export const reqSavePackagingToTrain = (params={})=>get(`TrainNumberManage/SavePackagingToTrain?packagingManageId=${params.packagingManageId}&trainNumberId=${params.trainNumberId}`)
|
|
|
|
|
/**
|
|
|
|
|
* 保存车次
|
|
|
|
|
* @param {Object} data - { Id, TrainNumber, unitId, ProjectId, State, DriverName, DriverPhone, LicensePlateNumber, ContactName, ContactPhone, Remark }
|
|
|
|
|
*/
|
|
|
|
|
export const reqSaveTrainNumber = (data)=> post(`TrainNumberManage/SaveTrainNumber`, data)
|
|
|
|
|
/**
|
|
|
|
|
* 确认到场(签收)
|
|
|
|
|
*/
|
|
|
|
|
export const reqTrainInfoConfirmArrival = (params={})=>get(`TrainNumberManage/SaveTrainInfoConfirmArrival?PersonId=${params.PersonId}&Id=${params.Id}`)
|
2026-06-11 20:35:27 +08:00
|
|
|
/**
|
2026-06-12 15:14:46 +08:00
|
|
|
* 从车次中删除包装
|
|
|
|
|
* @param {String} id
|
2026-06-11 20:35:27 +08:00
|
|
|
*/
|
2026-06-12 15:14:46 +08:00
|
|
|
export const reqDeletePackagingFromTrain = (id='')=>get(`TrainNumberManage/DeletePackagingFromTrain?packagingManageId=${id}`)
|
2026-06-11 20:35:27 +08:00
|
|
|
|
2026-06-12 15:14:46 +08:00
|
|
|
// ========================= 预制组件管理 ====================================
|
2026-06-11 20:35:27 +08:00
|
|
|
/**
|
2026-06-12 15:14:46 +08:00
|
|
|
* 获取预制组件管理列表
|
|
|
|
|
* @param {Object} params - { projectId, pageindex, pagesize, state }
|
2026-06-11 20:35:27 +08:00
|
|
|
*/
|
2026-06-12 15:14:46 +08:00
|
|
|
export const reqPipelineComponentList = (params={})=>get(`/PipelineComponent/GetPipelineComponentList?projectId=${params.projectId}&pageindex=${params.pageindex}&pagesize=${params.pagesize}&state=${params.state}`)
|
2026-06-12 15:44:14 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 预制组件验收
|
|
|
|
|
* @param {Object} params - { PipelineComponentId, PersonId, Message }
|
|
|
|
|
*/
|
|
|
|
|
export const reqPipelineComponentAccept = (params={})=>get(`/PipelineComponent/GetComponentConfirmArrival?PipelineComponentId=${params.PipelineComponentId}&PersonId=${params.PersonId}&Message=${params.Message}`)
|
2026-06-16 19:26:48 +08:00
|
|
|
// =========================== 试压前条件确认 ========================================
|
|
|
|
|
/**
|
|
|
|
|
* 获取试压前条件确认列表
|
|
|
|
|
* @param {String} unitWorkId
|
|
|
|
|
* @param {String} isFinish
|
|
|
|
|
* @param {String} testPackageNo
|
|
|
|
|
*/
|
|
|
|
|
export const reqTestPackageNoList = (unitWorkId, isFinish, testPackageNo)=>get(`TestPackage/getTestPackageNo?unitWorkId=${unitWorkId}&isFinish=${isFinish}&testPackageNo=${testPackageNo}`)
|
|
|
|
|
/**
|
|
|
|
|
* 获取试压前条件确认详情
|
|
|
|
|
* @param {String} ptp_Id
|
|
|
|
|
*/
|
|
|
|
|
export const reqTestPackageDetail = (ptp_Id)=>get(`TestPackage/GetTestPackageDetail?ptp_Id=${ptp_Id}`)
|
2026-06-18 15:10:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// =========================== 扫码 ========================================
|
|
|
|
|
/**
|
|
|
|
|
* 获取材料详情 (入库单管理)
|
|
|
|
|
* @param {String} materialCode
|
|
|
|
|
*/
|
|
|
|
|
export const reqMaterialInfoByMaterialCode = (materialCode)=>get(`BaseInfo/GetMaterialInfoByMaterialCode?materialCode=${materialCode}`)
|
|
|
|
|
/**
|
|
|
|
|
* 获取焊前基础信息
|
|
|
|
|
* @param {String} WeldJointId
|
|
|
|
|
*/
|
|
|
|
|
export const reqPreWeldJointByWeldJointId = (WeldJointId)=>get(`PreWeldInspection/getPreWeldJointByWeldJointId?WeldJointId=${WeldJointId}`)
|
2026-07-07 15:15:23 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取下料检查记录
|
|
|
|
|
* @param {String} weldJointId
|
|
|
|
|
*/
|
|
|
|
|
export const reqCuttingCheckByWeldJointId = (weldJointId)=>get(`/PreWeldCuttingCheck/GetRecordsByWeldJointId?weldJointId=${weldJointId}`)
|
|
|
|
|
|
2026-08-17 11:29:27 +08:00
|
|
|
/**
|
|
|
|
|
* 获取专项审核办理人列表
|
|
|
|
|
* @param {String} projectId
|
|
|
|
|
*/
|
|
|
|
|
export const reqGetSpecialReviewers = (projectId) => get(`/PreWeldCuttingCheck/GetSpecialReviewers`, { projectId })
|
|
|
|
|
|
2026-06-18 15:10:50 +08:00
|
|
|
/**
|
2026-07-07 15:15:23 +08:00
|
|
|
* 保存下料检查记录
|
2026-06-18 15:10:50 +08:00
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
2026-07-07 15:15:23 +08:00
|
|
|
export const reqSaveCuttingCheck = (data)=> post(`/PreWeldCuttingCheck/SaveRecord`, data)
|
2026-06-18 15:10:50 +08:00
|
|
|
|
2026-06-24 20:50:15 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 保存组对抽查记录
|
|
|
|
|
*
|
|
|
|
|
*/
|
2026-07-07 18:02:29 +08:00
|
|
|
export const reqSaveFitupCheck = (data)=>post(`/PreWeldFitupCheck/SaveRecord`, data)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取组对检查记录
|
|
|
|
|
* @param {String} weldJointId
|
|
|
|
|
*/
|
|
|
|
|
export const reqFitupCheckByWeldJointId = (weldJointId)=>get(`/PreWeldFitupCheck/GetRecordsByWeldJointId?weldJointId=${weldJointId}`)
|
2026-07-02 19:36:49 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取防腐等级
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const reqPaintCodeList = ()=>get(`/AntiCorrosionCheck/GetPaintCodeList`)
|
|
|
|
|
/**
|
|
|
|
|
* 保存防腐填报记录
|
|
|
|
|
* @param {Object} data
|
|
|
|
|
*/
|
|
|
|
|
export const reqSaveAntiCorrosionCheck = (data={})=>post(`/AntiCorrosionCheck/SaveRecord`,data)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取防腐填报记录
|
2026-07-06 16:46:07 +08:00
|
|
|
* @param {Object} params - { materialCode, projectId }
|
2026-07-02 19:36:49 +08:00
|
|
|
*/
|
2026-07-06 16:46:07 +08:00
|
|
|
export const reqGetAntiCorrosionCheck = (params = {}) => {
|
|
|
|
|
return get('/AntiCorrosionCheck/GetRecordsByMaterialCode', params)
|
|
|
|
|
}
|
2026-07-02 19:36:49 +08:00
|
|
|
|
2026-08-10 15:51:44 +08:00
|
|
|
// ========================= 日报审核 ====================================
|
|
|
|
|
/**
|
|
|
|
|
* 获取焊接日报待审核列表
|
2026-08-18 18:05:16 +08:00
|
|
|
* @param {Object} params - { projectId, unitWorkId?, weldingDate?, pipelineCode?, welderCode?, pageIndex?, pageSize? }
|
|
|
|
|
* pageIndex 从 1 开始;小于等于 0 时返回全部记录
|
|
|
|
|
* 响应 data.pageCount 为总记录数(不是总页数)
|
2026-08-10 15:51:44 +08:00
|
|
|
*/
|
|
|
|
|
export const reqPendingWeldingDailyList = (params = {}) => get('/PreWeldingDaily/GetPendingWeldingDailyTempDetailList', params)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查看单条焊接日报待审核明细
|
|
|
|
|
* @param {String} tempDetailId 待审核明细ID
|
|
|
|
|
*/
|
|
|
|
|
export const reqPendingWeldingDailyDetail = (tempDetailId) => get(`/PreWeldingDaily/GetPendingWeldingDailyTempDetail?tempDetailId=${tempDetailId}`)
|
|
|
|
|
|
|
|
|
|
/**
|
2026-08-18 18:05:16 +08:00
|
|
|
* 班组批量审核焊接日报待审核明细(状态 0 → 1)
|
|
|
|
|
* @param {Object} data - { TempDetailIds: string[], AuditMan: string }
|
|
|
|
|
*/
|
|
|
|
|
export const reqTeamAuditWeldingDaily = (data = {}) => post(`/PreWeldingDaily/TeamAuditPendingWeldingDailyTempDetails`, data)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 专工批量审核焊接日报待审核明细(状态 1 → 2)
|
2026-08-10 15:51:44 +08:00
|
|
|
* @param {Object} data - { TempDetailIds: string[], AuditMan: string }
|
|
|
|
|
*/
|
|
|
|
|
export const reqAuditWeldingDaily = (data = {}) => post(`/PreWeldingDaily/AuditPendingWeldingDailyTempDetails`, data)
|
|
|
|
|
|
|
|
|
|
/**
|
2026-08-18 18:05:16 +08:00
|
|
|
* 批量删除未审核明细(仅状态 0)
|
2026-08-10 15:51:44 +08:00
|
|
|
* @param {Object} data - { TempDetailIds: string[] }
|
|
|
|
|
*/
|
|
|
|
|
export const reqDeleteWeldingDaily = (data = {}) => post(`/PreWeldingDaily/DeletePendingWeldingDailyTempDetails`, data)
|
2026-07-02 19:36:49 +08:00
|
|
|
|
2026-08-17 11:29:27 +08:00
|
|
|
/**
|
|
|
|
|
* 查询焊口基础信息及历史外观检测记录
|
|
|
|
|
* @param {String} weldJointId 焊口ID
|
|
|
|
|
*/
|
|
|
|
|
export const reqWeldAppearanceJointDetail = (weldJointId) => get('/WeldAppearanceCheck/GetJointDetail', { weldJointId })
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 保存焊缝外观检测记录
|
2026-08-18 18:05:16 +08:00
|
|
|
* @param {Object} data - { AppearanceCheckId?, ProjectId, WeldJointId, IsQualified, CheckPerson, CheckTime, Remark, AttachUrl, CreateUser, WeldReinforcement, WeldHeight, WeldWidth, SurfaceDefect, PreheatTemperature, InterpassTemperature }
|
2026-08-17 11:29:27 +08:00
|
|
|
*/
|
|
|
|
|
export const reqSaveWeldAppearanceCheck = (data = {}) => post('/WeldAppearanceCheck/SaveRecord', data)
|
|
|
|
|
|
2026-08-18 18:05:16 +08:00
|
|
|
// ========================= 焊接任务单 ====================================
|
|
|
|
|
/**
|
|
|
|
|
* 按班组查询任务单列表
|
|
|
|
|
* @param {Object} params - { projectId, teamGroupId?, unitWorkId? }
|
|
|
|
|
*/
|
2026-08-21 09:03:18 +08:00
|
|
|
export const reqWeldTaskListByTeamGroup = (params) => request('WeldTask/GetTaskListByTeamGroup', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
data: params || {},
|
|
|
|
|
})
|
2026-08-18 18:05:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询任务单详情(含 Joints)
|
|
|
|
|
* @param {Object} params - { projectId, taskCode, unitWorkId? }
|
|
|
|
|
*/
|
2026-08-21 09:03:18 +08:00
|
|
|
export const reqWeldTaskDetail = (params) => request('WeldTask/GetTaskDetail', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
data: params || {},
|
|
|
|
|
})
|
2026-08-18 18:05:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据任务单生成出库申请
|
|
|
|
|
* @param {Object} data - { ProjectId, TaskCode, PersonId }
|
|
|
|
|
*/
|
2026-08-21 09:03:18 +08:00
|
|
|
export const reqWeldTaskGenerateOutPlan = (data) => post('WeldTask/GenerateOutPlan', data || {})
|
2026-08-18 18:05:16 +08:00
|
|
|
|