import { Injectable } from '@angular/core'; import { RhApiUrlsService } from 'rh-base/core'; import { DataResultT, OpResult, RhBaseDto, RhSafeAny } from 'rh-base/model'; import { Observable } from 'rxjs'; import { EmployeeMessageNotifyGroupConfigDto, EmployeeMessageNotifyGroupConfigQueryDto, View_MessageNotifyGroupDto, View_MessageNotifyGroupQueryDto, QualitySysConfigParameter, UploadAttachFilesDto, IqcInspectSchemaGroupDto, IqcInspectSchemaGroupQueryDto, AttachFileInfoDto, OqcProductInspectOrderQueryDto, ShipmentInspectOrderDataCollectionDto, OqcInspectSchemaDto, DataImportInput, OqcInspectTransferRuleQueryDto, OqcInspectSchemaEntryQueryDto, OqcInspectSchemaEntryDto, OqcInspectTransferRuleDto, OqcProductInspectSchemaDto, InspectionSpecificationStandardFileQueryDto, InspectionSpecificationStandardFileDto, OqcInspectSchemaGroupDto, OqcInspectSchemaGroupQueryDto, AttachFileInfoQueryDto, OqcProductInspectSchemaFullDto, QCInspectSchemaEntryDto, IqcMaterialInspectOrderUsingDecisionDto } from './qmp-model'; @Injectable() export class RhQmpService { constructor(private apiUrls: RhApiUrlsService) { // } /** * 获取消息通知组配置数据 */ GetEmployeeMessageNotifyGroupConfigDatas( queryDto: EmployeeMessageNotifyGroupConfigQueryDto ): Observable> { return this.apiUrls.PostMdp('EmployeeWebApi', 'GetEmployeeMessageNotifyGroupConfigDatas', queryDto); } /** * 获取消息通知组视图数据 */ GetEmployeeMessageNotifyGroupViewDatas(queryDto: View_MessageNotifyGroupQueryDto): Observable> { return this.apiUrls.PostMdp('EmployeeWebApi', 'GetEmployeeMessageNotifyGroupViewDatas', queryDto); } /** * 获取质量模块系统参数配置信息 */ GetQualitySysConfigParameterData(): Observable> { return this.apiUrls.GetEmp('ConfigurationWebApi', 'GetQualitySysConfigParameterData'); } /** * 附件上传 */ UploadAttachFiles(dto: UploadAttachFilesDto): Observable { return this.apiUrls.PostMdp('AttachFileInfoWebApi', 'UploadAttachFiles', dto); } /** * 启用Iqc检验项目组 */ EnableIqcInspectSchemaGroupDatas(IqcInspectSchemaGroupDto: IqcInspectSchemaGroupDto[]): Observable { return this.apiUrls.PostEmp('IqcMaterialInspectApi', 'EnableIqcInspectSchemaGroupDatas', IqcInspectSchemaGroupDto); } /** * 禁用Iqc检验项目组 */ CancelEnableIqcInspectSchemaGroupDatas(IqcInspectSchemaGroupDto: IqcInspectSchemaGroupDto[]): Observable { return this.apiUrls.PostEmp('IqcMaterialInspectApi', 'CancelEnableIqcInspectSchemaGroupDatas', IqcInspectSchemaGroupDto); } /** * 删除Iqc检验项目组信息 */ RemoveIqcInspectSchemaGroupData(dto: IqcInspectSchemaGroupDto): Observable { return this.apiUrls.PostEmp('IqcMaterialInspectApi', 'RemoveIqcInspectSchemaGroupData', dto); } /** * 获取Iqc检验项目组信息 */ GetIqcInspectSchemaGroupDatas(queryDto: IqcInspectSchemaGroupQueryDto): Observable> { return this.apiUrls.PostEmp('IqcMaterialInspectApi', 'GetIqcInspectSchemaGroupDatas', queryDto); } /** * 删除进料检验单决策信息 */ RemoveIncomingInspectOrderUsingDecisionData(dto: IqcMaterialInspectOrderUsingDecisionDto):Observable{ return this.apiUrls.PostEmp('IqcMaterialInspectApi','RemoveIncomingInspectOrderUsingDecisionData',dto); } /** * 移除附件数据 */ RemoveAttachFileInfoDatas(AttachFileInfoDto: AttachFileInfoDto[]): Observable { return this.apiUrls.PostMdp('AttachFileInfoWebApi', 'RemoveAttachFileInfoDatas', AttachFileInfoDto); } /** * 获取发货检验单数据采集信息 */ GetShipmentInspectOrderDataCollectionData( queryDto: OqcProductInspectOrderQueryDto ): Observable> { return this.apiUrls.PostEmp('OqcProductInspectApi', 'GetShipmentInspectOrderDataCollectionData', queryDto); } /** * 开始检验发货检验单 */ StartInspectShipmentInspectOrder(dto: RhBaseDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StartInspectShipmentInspectOrder', dto); } /** * 保存发货检验单数据采集信息 */ StoreShipmentInspectOrderDataCollectionData(dto: RhBaseDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StoreShipmentInspectOrderDataCollectionData', dto); } /** * 获取发货检验单报告 */ GetShipmentInspectOrderReportData(queryDto: RhBaseDto): Observable> { return this.apiUrls.PostEmp('OqcProductInspectApi', 'GetShipmentInspectOrderReportData', queryDto); } /** * 删除Oqc检验方案信息 */ RemoveOqcInspectSchemaDatas(OqcInspectSchemaDto: OqcInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'RemoveOqcInspectSchemaDatas', OqcInspectSchemaDto); } /** * 启用检验方案 */ EnableOqcInspectSchemaDatas(OqcInspectSchemaDto: OqcInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'EnableOqcInspectSchemaDatas', OqcInspectSchemaDto); } /** * 禁用检验方案 */ CancelEnableOqcInspectSchemaDatas(OqcInspectSchemaDto: OqcInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'CancelEnableOqcInspectSchemaDatas', OqcInspectSchemaDto); } /** * 数据导入 */ DataImport(dto: DataImportInput): Observable> { return this.apiUrls.PostEmp('DataImportExportApi', 'DataImport', dto); } /** * 批量保存检验方案 */ StoreOqcInspectSchemaDatas(OqcInspectSchemaDto: OqcInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StoreOqcInspectSchemaDatas', OqcInspectSchemaDto); } /** * 获取OQC检验转移规则根据供应商,物料,检验方案,检验组 */ GetOqcInspectTransferRuleDataByCode(queryDto: OqcInspectTransferRuleQueryDto): Observable> { return this.apiUrls.PostEmp('OqcProductInspectApi', 'GetOqcInspectTransferRuleDataByCode', queryDto); } /** * 获取Oqc检验方案表体 */ GetOqcInspectSchemaEntryDatas(queryDto: OqcInspectSchemaEntryQueryDto): Observable> { return this.apiUrls.PostEmp('OqcProductInspectApi', 'GetOqcInspectSchemaEntryDatas', queryDto); } /** * 启用物料检验方案 */ EnableOqcProductInspectSchemaDatas(OqcProductInspectSchemaDto: OqcProductInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'EnableOqcProductInspectSchemaDatas', OqcProductInspectSchemaDto); } /** * 禁用物料检验方案 */ CancelEnableOqcProductInspectSchemaDatas(OqcProductInspectSchemaDto: OqcProductInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'CancelEnableOqcProductInspectSchemaDatas', OqcProductInspectSchemaDto); } /** * 删除物料检验方案 */ RemoveOqcProductInspectSchemaDatas(OqcProductInspectSchemaDto: RhBaseDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'RemoveOqcProductInspectSchemaDatas', OqcProductInspectSchemaDto); } /** * 批量保存物料直接创建检验方案 */ StoreOqcProductInspectSchemaDatas(OqcProductInspectSchemaDto: OqcProductInspectSchemaDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StoreOqcProductInspectSchemaDatas', OqcProductInspectSchemaDto); } /* 获取检验方案标准文档 */ GetInspectionSpecificationStandardFileDatas( queryDto: InspectionSpecificationStandardFileQueryDto ): Observable> { return this.apiUrls.PostEmp('IqcMaterialInspectApi', 'GetInspectionSpecificationStandardFileDatas', queryDto); } /** * 批量删除检验缺陷 */ RemoveOqcInspectDefectDatas(OqcInspectDefectDto: RhBaseDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'RemoveOqcInspectDefectDatas', OqcInspectDefectDto); } /** * 根据计划单创建Oqc检验任务单 */ CreateOqcInspectOrderByPlan(dto: RhBaseDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'CreateOqcInspectOrderByPlan', dto); } /** * 删除Oqc检验方案表体 */ RemoveOqcInspectSchemaEntryDatas(OqcInspectSchemaEntryDto: OqcInspectSchemaEntryDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'RemoveOqcInspectSchemaEntryDatas', OqcInspectSchemaEntryDto); } /** * 启用Oqc检验项目 */ EnableOqcInspectSchemaEntryDatas(OqcInspectSchemaEntryDto: OqcInspectSchemaEntryDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'EnableOqcInspectSchemaEntryDatas', OqcInspectSchemaEntryDto); } /** * 禁用Oqc检验项目 */ CancelEnableOqcInspectSchemaEntryDatas(OqcInspectSchemaEntryDto: OqcInspectSchemaEntryDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'CancelEnableOqcInspectSchemaEntryDatas', OqcInspectSchemaEntryDto); } /** * 批量保存检验方案表体 */ StoreOqcInspectSchemaEntryDatas(QCInspectSchemaEntryDto: QCInspectSchemaEntryDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StoreOqcInspectSchemaEntryDatas', QCInspectSchemaEntryDto); } /** * 启用Oqc检验项目组 */ EnableOqcInspectSchemaGroupDatas(OqcInspectSchemaGroupDto: OqcInspectSchemaGroupDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'EnableOqcInspectSchemaGroupDatas', OqcInspectSchemaGroupDto); } /** * 禁用Oqc检验项目组 */ CancelEnableOqcInspectSchemaGroupDatas(OqcInspectSchemaGroupDto: OqcInspectSchemaGroupDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'CancelEnableOqcInspectSchemaGroupDatas', OqcInspectSchemaGroupDto); } /** * 删除Oqc检验项目组信息 */ RemoveOqcInspectSchemaGroupData(dto: OqcInspectSchemaGroupDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'RemoveOqcInspectSchemaGroupData', dto); } /** * 获取Oqc检验项目组信息 */ GetOqcInspectSchemaGroupDatas(queryDto: OqcInspectSchemaGroupQueryDto): Observable> { return this.apiUrls.PostEmp('OqcProductInspectApi', 'GetOqcInspectSchemaGroupDatas', queryDto); } /** * 调整Oqc检验项目顺序 */ AdjustOqcInspectSchemaEntrySequence(OqcInspectSchemaEntryDto: OqcInspectSchemaEntryDto[]): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'AdjustOqcInspectSchemaEntrySequence', OqcInspectSchemaEntryDto); } /** * 保存物料检验方案 */ StoreOqcProductInspectSchemaData(dto: OqcProductInspectSchemaDto): Observable { return this.apiUrls.PostEmp('OqcProductInspectApi', 'StoreOqcProductInspectSchemaData', dto); } /** * 合并检验通知单 */ MergeInspectNoticeOrder(IqcMaterialInspectNoticeOrderDto: RhBaseDto[]): Observable { return this.apiUrls.PostEmp('GdzMaterialInspectApi', 'MergeInspectNoticeOrder', IqcMaterialInspectNoticeOrderDto); } /** * 根据通知单生成检验单 */ CreateInspectOrderByNoticeOrder(IqcMaterialInspectNoticeOrderDto: RhBaseDto[]): Observable { return this.apiUrls.PostEmp('GdzMaterialInspectApi', 'CreateInspectOrderByNoticeOrder', IqcMaterialInspectNoticeOrderDto); } /** * 生成超期物料复检单 */ CreateOverdueMaterialReInspectOrder(dto: RhBaseDto): Observable { return this.apiUrls.PostEmp('GdzMaterialInspectApi', 'CreateOverdueMaterialReInspectOrder', dto); } /** * 获取附件信息 */ GetAttachFileInfoDatas( queryDto: AttachFileInfoQueryDto ): Observable> { return this.apiUrls.PostMdp( 'AttachFileInfoWebApi', 'GetAttachFileInfoDatas', queryDto ); } /** * 获取物料对应检验方案完整信息 */ GetOqcProductInspectSchemaFullData(queryDto: OqcProductInspectSchemaDto):Observable>{ return this.apiUrls.PostEmp('OqcProductInspectApi','GetOqcProductInspectSchemaFullData',queryDto); } /** * 保存物料对应检验方案完整信息 */ StoreOqcProductInspectSchemaFullData(dto: OqcProductInspectSchemaFullDto):Observable{ return this.apiUrls.PostEmp('OqcProductInspectApi','StoreOqcProductInspectSchemaFullData',dto); } }