diff --git a/entry/src/main/ets/api/typings.d.ts b/entry/src/main/ets/api/typings.d.ts index e078964..2c8ff2b 100644 --- a/entry/src/main/ets/api/typings.d.ts +++ b/entry/src/main/ets/api/typings.d.ts @@ -1,761 +1,761 @@ declare namespace API { - interface BusiInspectVo { + type BusiInspectVo = { /** 管理辖区 */ - administrativeJurisdiction?: string + administrativeJurisdiction?: string; /** 申请日期 */ - applicationDate?: string + applicationDate?: string; /** 业务原因 */ - businessReason?: string + businessReason?: string; /** 业务类型:1新车注册登记 2二手车过户 3车辆年检 4车辆变更登记 5违法违规车辆 */ - businessType?: string + businessType?: string; /** 合格证编号 */ - certificateNo?: string + certificateNo?: string; /** 当前流程id */ - currentStageId?: number + currentStageId?: number; /** 当前步骤id */ - currentStepId?: number + currentStepId?: number; /** 结束时间 */ - endTime?: string - id?: number - inspectorId?: number + endTime?: string; + id?: number; + inspectorId?: number; /** 发证日期 */ - issuingDate?: string + issuingDate?: string; /** 号牌号码 */ - licensePlateNumber?: string + licensePlateNumber?: string; /** 号牌种类 */ - licensePlateType?: string + licensePlateType?: string; /** 线路编号 */ - lineCode?: string - lineId?: number + lineCode?: string; + lineId?: number; /** 线路名称 */ - lineName?: string + lineName?: string; /** 车辆型号 */ - model?: string + model?: string; /** 机动车所有人 */ - motorVehicleOwner?: string + motorVehicleOwner?: string; /** 结果:1未查验 2通过 3不通过 4终止 */ - results?: string + results?: string; /** 审核签名图片 */ - reviewSignPhoto?: string + reviewSignPhoto?: string; /** 审核状态 0未审核 1审核通过 2审核不通过 */ - reviewStatus?: string + reviewStatus?: string; /** 流水号 */ - serialNumber?: string + serialNumber?: string; /** 流水状态:1等待查验 2受理凭证打印完成 3查验完成 4签字完成 */ - serialStatus?: string + serialStatus?: string; /** 开始时间 */ - startTime?: string - stationId?: number - status?: string + startTime?: string; + stationId?: number; + status?: string; /** 步骤名 */ - stepName?: string + stepName?: string; /** 车型id */ - vehicleKindId?: number + vehicleKindId?: number; /** 车辆识别代号 */ - vin?: string - } + vin?: string; + }; - interface GetCamaraConfigReq { + type GetCamaraConfigReq = { /** 设备唯一标识 */ - deviceNo?: string - } + deviceNo?: string; + }; - interface GetCamaraConfigRsp { + type GetCamaraConfigRsp = { /** 摄像头ID */ - id?: number + id?: number; /** IP地址 */ - ipAddress?: string + ipAddress?: string; /** 登录密码 */ - password?: string + password?: string; /** 安装位置,具体含义在平台系统字典上自定义。 */ - postionCode?: string + postionCode?: string; /** rtsp流端口号 */ - rtspPort?: string + rtspPort?: string; /** 登录用户名 */ - username?: string - } + username?: string; + }; - interface getInspectResultDetailUsingGETParams { + type getInspectResultDetailUsingGETParams = { /** id */ - id: number - } + id: number; + }; - interface getPadIndexInfoUsingGETParams { + type getPadIndexInfoUsingGETParams = { /** imei */ - imei: string + imei: string; /** lineId */ - lineId?: number - } + lineId?: number; + }; - interface getPadRecordInfoUsingGETParams { + type getPadRecordInfoUsingGETParams = { /** imei */ - imei: string - } + imei: string; + }; - interface ImageBase64Req { + type ImageBase64Req = { /** Base64编码的图片 */ - imageBase64: string + imageBase64: string; /** 图片格式 */ - imageFormat?: string - } + imageFormat?: string; + }; - interface InspectAlarmItemRsp { + type InspectAlarmItemRsp = { /** 处理数量 */ - dealNum?: number + dealNum?: number; /** 预警列表 */ - page?: PageResultInspectAlarmItemVo - } + page?: PageResultInspectAlarmItemVo; + }; - interface InspectAlarmItemVo { + type InspectAlarmItemVo = { /** 报警代码 */ - alarmCode?: string + alarmCode?: string; /** 报警信息 */ - alarmInfo?: string + alarmInfo?: string; /** 告警状态:1待处理 2待人工处理 5自动消除 6人工消除 */ - alarmStatus?: string + alarmStatus?: string; /** 创建时间 */ - createTime?: string + createTime?: string; /** 处理信息 */ - handleInfo?: string + handleInfo?: string; /** 图片地址 */ - photoUrl?: string + photoUrl?: string; /** 流程名称 */ - stageName?: string + stageName?: string; /** 步骤名称 */ - stepName?: string - } + stepName?: string; + }; - interface InspectAlarmQueryReq { + type InspectAlarmQueryReq = { /** 报警结束时间 */ - alarmEndTime?: string + alarmEndTime?: string; /** 报警开始时间 */ - alarmStartTime?: string + alarmStartTime?: string; /** 报警状态 */ - alarmStatus?: string - isAsc?: string + alarmStatus?: string; + isAsc?: string; /** 线路ID */ - lineId?: number - orderByColumn?: string - pageNum?: number - pageSize?: number - reasonable?: boolean + lineId?: number; + orderByColumn?: string; + pageNum?: number; + pageSize?: number; + reasonable?: boolean; /** 阶段ID */ - stageId?: number + stageId?: number; /** 查验站ID */ - stationId?: number + stationId?: number; /** 步骤ID */ - stepId?: number - } + stepId?: number; + }; - interface InspectIndexCount { + type InspectIndexCount = { /** 失败数量 */ - fail?: number + fail?: number; /** 已完成数量 */ - finish?: number + finish?: number; /** 今日查验总数 */ - total?: number + total?: number; /** 未完成数量 */ - unfinish?: number - } + unfinish?: number; + }; - interface InspectionInfo { + type InspectionInfo = { /** 车辆类型 */ - carType?: string - } + carType?: string; + }; - interface InspectionVo { + type InspectionVo = { /** 流水Id */ - certificateId?: number - } + certificateId?: number; + }; - interface InspectLineInfoVo { + type InspectLineInfoVo = { /** 电量(示例字段,默认90) */ - battery?: number + battery?: number; /** 当前记录结束时间,未结束则为空 */ - endTime?: string + endTime?: string; /** 记录ID */ - id?: number + id?: number; /** 检测线ID */ - lineId?: number + lineId?: number; /** 检测线名称 */ - lineName?: string + lineName?: string; /** 检测线状态:未启动/使用中/告警 */ - lineStatus?: string + lineStatus?: string; /** 当前步骤名称 */ - name?: string - } + name?: string; + }; - interface InspectPhotoVo { + type InspectPhotoVo = { /** 主键ID */ - id?: number + id?: number; /** 照片URL */ - photoUrl?: string + photoUrl?: string; /** 任务编码 */ - taskCode?: string + taskCode?: string; /** 任务名称 */ - taskName?: string - } + taskName?: string; + }; - interface InspectRecordDetailVo { + type InspectRecordDetailVo = { /** 业务类型:1新车注册登记 2二手车过户 3车辆年检 4车辆变更登记 5违法违规车辆 */ - businessType?: string + businessType?: string; /** 创建时间 */ - createTime?: string + createTime?: string; /** 发动机型号(合格证model) */ - engModel?: string + engModel?: string; /** 生产厂家 */ - factoryName?: string + factoryName?: string; /** 查验照片 */ - inspectPhotos?: InspectPhotoVo[] + inspectPhotos?: InspectPhotoVo[]; /** 查验员名称 */ - inspectorName?: string + inspectorName?: string; /** 号牌号码 */ - licensePlateNumber?: string + licensePlateNumber?: string; /** 号牌种类 */ - licensePlateType?: string + licensePlateType?: string; /** 查验线名称 */ - lineName?: string + lineName?: string; /** 合格证品牌名称 */ - manufactureBrandName?: string + manufactureBrandName?: string; /** 车型型号 */ - model?: string + model?: string; /** 生产时间(年/月拼接) */ - productionTime?: string + productionTime?: string; /** 查验结果:1未查验 2通过 3不通过 4终止 */ - results?: string + results?: string; /** 机器人名称 */ - robotName?: string + robotName?: string; /** 流水号 */ - serialNumber?: string + serialNumber?: string; /** 流水状态:1等待查验 2受理凭证打印完成 3查验完成 4签字完成 */ - serialStatus?: string + serialStatus?: string; /** 车型品牌名称 */ - vehicleBrandName?: string + vehicleBrandName?: string; /** 车辆识别代号(VIN) */ - vin?: string - } + vin?: string; + }; - interface InspectRecordResultReq { + type InspectRecordResultReq = { /** 查验结束日期 */ - inspectEndDate?: string + inspectEndDate?: string; /** 查验开始日期 */ - inspectStartDate?: string - isAsc?: string + inspectStartDate?: string; + isAsc?: string; /** 查验线ID */ - lineId?: string - orderByColumn?: string - pageNum?: number - pageSize?: number - reasonable?: boolean + lineId?: string; + orderByColumn?: string; + pageNum?: number; + pageSize?: number; + reasonable?: boolean; /** 查验结果 */ - results?: string + results?: string; /** 当前阶段ID */ - stageId?: string + stageId?: string; /** 查询未采集列表 */ - unMatch?: string - } + unMatch?: string; + }; - interface InspectRecordResultRsp { + type InspectRecordResultRsp = { /** 品牌名称 */ - brandName?: string + brandName?: string; /** 业务类型 */ - businessType?: string + businessType?: string; /** 创建时间 */ - createTime?: string + createTime?: string; /** 生产厂家 */ - factoryName?: string + factoryName?: string; /** 查验记录id */ - id?: string + id?: string; /** 型号 */ - model?: string + model?: string; /** 查验线名称 */ - name?: string + name?: string; /** 查验结果 */ - results?: string + results?: string; /** 流水号 */ - serialNumber?: string + serialNumber?: string; /** 车辆识别代号 */ - vin?: string - } + vin?: string; + }; - interface LoginRobotReq { + type LoginRobotReq = { /** imei号 */ - imei?: string + imei?: string; /** 密码 */ - password?: string + password?: string; /** 用户名 */ - username?: string - } + username?: string; + }; - interface PadIndexInfoRsp { + type PadIndexInfoRsp = { /** 首页统计信息 */ - indexCount?: InspectIndexCount + indexCount?: InspectIndexCount; /** 查验线状态列表 */ - list?: InspectLineInfoVo[] - } + list?: InspectLineInfoVo[]; + }; - interface PadLoginReq { + type PadLoginReq = { /** pad唯一编号 */ - imei?: string + imei?: string; /** 密码 */ - password?: string + password?: string; /** 用户名 */ - username?: string - } + username?: string; + }; - interface PadLoginRsp { + type PadLoginRsp = { /** 线路 */ - lines?: VcInspectionLine[] + lines?: VcInspectionLine[]; /** 查验员姓名 */ - name?: string + name?: string; /** padId */ - padId?: string + padId?: string; /** 检测站id */ - stationId?: string + stationId?: string; /** 检测站名称 */ - stationName?: string + stationName?: string; /** 用户id */ - userId?: string - } + userId?: string; + }; - interface PadRecordRsp { + type PadRecordRsp = { /** imei */ - imei?: string + imei?: string; /** 线路 */ - lines?: VcInspectionLine[] - } + lines?: VcInspectionLine[]; + }; - interface PageResultInspectAlarmItemVo { + type PageResultInspectAlarmItemVo = { /** 消息状态码 */ - code?: number + code?: number; /** 消息内容 */ - msg?: string + msg?: string; /** 列表数据 */ - rows?: InspectAlarmItemVo[] + rows?: InspectAlarmItemVo[]; /** 总记录数 */ - total?: number - } + total?: number; + }; - interface PageResultInspectRecordResultRsp { + type PageResultInspectRecordResultRsp = { /** 消息状态码 */ - code?: number + code?: number; /** 消息内容 */ - msg?: string + msg?: string; /** 列表数据 */ - rows?: InspectRecordResultRsp[] + rows?: InspectRecordResultRsp[]; /** 总记录数 */ - total?: number - } + total?: number; + }; - interface PageResultVehicleCollectionRsp { + type PageResultVehicleCollectionRsp = { /** 消息状态码 */ - code?: number + code?: number; /** 消息内容 */ - msg?: string + msg?: string; /** 列表数据 */ - rows?: VehicleCollectionRsp[] + rows?: VehicleCollectionRsp[]; /** 总记录数 */ - total?: number - } + total?: number; + }; - interface QueryVehicleKindRsp { + type QueryVehicleKindRsp = { /** 车架号遮挡描述:掀开主驾驶脚垫 */ - blockInfo?: string + blockInfo?: string; /** 充电口位置(快充) */ - chargingPortPosition?: string + chargingPortPosition?: string; /** 车架号其他移动:轮胎左侧转向、备胎移出等 */ - otherMove?: string + otherMove?: string; /** 铭牌位置 */ - platePosition?: string + platePosition?: string; /** 车架号总体位置 */ - position?: string + position?: string; /** 车架号方位信息,类似左边、右边等 */ - positionDirection?: string + positionDirection?: string; /** 车架号座椅移动:后移、前移、左移、右移等 */ - seatMove?: string + seatMove?: string; /** 慢充口位置 */ - slowChargingPortPosition?: string - } + slowChargingPortPosition?: string; + }; - interface R { - code?: number - data?: Record - msg?: string - } + type R = { + code?: number; + data?: Record; + msg?: string; + }; - interface RInspectAlarmItemRsp { - code?: number - data?: InspectAlarmItemRsp - msg?: string - } + type RInspectAlarmItemRsp = { + code?: number; + data?: InspectAlarmItemRsp; + msg?: string; + }; - interface RInspectionInfo { - code?: number - data?: InspectionInfo - msg?: string - } + type RInspectionInfo = { + code?: number; + data?: InspectionInfo; + msg?: string; + }; - interface RInspectionVo { - code?: number - data?: InspectionVo - msg?: string - } + type RInspectionVo = { + code?: number; + data?: InspectionVo; + msg?: string; + }; - interface RInspectRecordDetailVo { - code?: number - data?: InspectRecordDetailVo - msg?: string - } + type RInspectRecordDetailVo = { + code?: number; + data?: InspectRecordDetailVo; + msg?: string; + }; - interface RListBusiInspectVo { - code?: number - data?: BusiInspectVo[] - msg?: string - } + type RListBusiInspectVo = { + code?: number; + data?: BusiInspectVo[]; + msg?: string; + }; - interface RListGetCamaraConfigRsp { - code?: number - data?: GetCamaraConfigRsp[] - msg?: string - } + type RListGetCamaraConfigRsp = { + code?: number; + data?: GetCamaraConfigRsp[]; + msg?: string; + }; - interface RListStageAndStepRsp { - code?: number - data?: StageAndStepRsp[] - msg?: string - } + type RListStageAndStepRsp = { + code?: number; + data?: StageAndStepRsp[]; + msg?: string; + }; - interface RobotInspectionInfoReq { + type RobotInspectionInfoReq = { /** 管理辖区 */ - administrativeJurisdiction?: string + administrativeJurisdiction?: string; /** 申请日期 */ - applicationDate?: string + applicationDate?: string; /** 轴荷 (kg) */ - axleLoad?: string + axleLoad?: string; /** 车身颜色 */ - bodyColor?: string + bodyColor?: string; /** 合格证编号 */ - certificateConformityNumber?: string + certificateConformityNumber?: string; /** 底盘型号 */ - chassisModel?: string + chassisModel?: string; /** 中文品牌 */ - chineseBrand?: string + chineseBrand?: string; /** 排量和功率 */ - displacemenAndPower?: string + displacemenAndPower?: string; /** 排放标准 */ - emissionStandard?: string + emissionStandard?: string; /** 发动机型号 */ - engineModel?: string + engineModel?: string; /** 发动机号 */ - engineNumber?: string + engineNumber?: string; /** 油耗 */ - fuelConsumption?: string + fuelConsumption?: string; /** 燃料种类 */ - fuelType?: string + fuelType?: string; /** 总质量 (kg) */ - grossVehicleMass?: string + grossVehicleMass?: string; /** 货厢内部尺寸 (mm) */ - innerDimensionsOfCargoBox?: string + innerDimensionsOfCargoBox?: string; /** 查验站id */ - inspectionStationId?: number + inspectionStationId?: number; /** 发证日期 */ - issuingDate?: string + issuingDate?: string; /** 整备质量 (kg) */ - kerbMass?: string + kerbMass?: string; /** 号牌号码 */ - licensePlateNumber?: string + licensePlateNumber?: string; /** 号牌种类 */ - licensePlateType?: string + licensePlateType?: string; /** 机动车所有人 */ - motorVehicleOwner?: string + motorVehicleOwner?: string; /** 轴数 */ - numberOfAxles?: string + numberOfAxles?: string; /** 钢板弹簧片数 */ - numberOfLeafSprings?: string + numberOfLeafSprings?: string; /** 轮胎数 */ - numberOfTires?: string + numberOfTires?: string; /** 外廓尺寸 (mm) */ - overallDimensions?: string + overallDimensions?: string; /** 额定载质量 (kg) */ - ratedLoadMass?: string + ratedLoadMass?: string; /** 机器人id */ - robotId?: number + robotId?: number; /** 流水号 */ - serialNumber?: number + serialNumber?: number; /** 转向形式 */ - steeringType?: string + steeringType?: string; /** 轮胎规格 */ - tireSpecification?: string + tireSpecification?: string; /** 轮距 (前 / 后)(mm) */ - trackFrontOrRear?: string + trackFrontOrRear?: string; /** 车辆品牌 */ - vehicleBrand?: string + vehicleBrand?: string; /** 车辆识别代号 */ - vehicleIdentificationNumber?: string + vehicleIdentificationNumber?: string; /** 车辆制造日期 */ - vehicleManufacturingDate?: string + vehicleManufacturingDate?: string; /** 车辆制造企业名称 */ - vehicleManufacturingEnterpriseName?: string + vehicleManufacturingEnterpriseName?: string; /** 车辆型号 */ - vehicleModel?: string + vehicleModel?: string; /** 车辆型号 */ - vehicleModelAgain?: string + vehicleModelAgain?: string; /** 车辆名称 */ - vehicleName?: string + vehicleName?: string; /** 轴距 (mm) */ - wheelbase?: string - } + wheelbase?: string; + }; - interface RobotInspectionPhotoReq { + type RobotInspectionPhotoReq = { /** 合格证照片 */ - certConformityPhoto?: string + certConformityPhoto?: string; /** 查验id */ - certificateId?: string + certificateId?: string; /** 发动机号照片 */ - engNoPhoto?: string + engNoPhoto?: string; /** 保险单照片 */ - insPolicyPhoto?: string + insPolicyPhoto?: string; /** 左前 45 度照片 */ - photo45FL?: string + photo45FL?: string; /** 右后 45 度照片 */ - photo45RR?: string + photo45RR?: string; /** 机器人id */ - robotId?: string + robotId?: string; /** 流水号 */ - serialNumber?: string + serialNumber?: string; /** 查验站id */ - stationId?: string + stationId?: string; /** 轮胎规格照片 */ - tireSpecPhoto?: string + tireSpecPhoto?: string; /** 车辆喷涂照片 */ - vehPaintingPhoto?: string + vehPaintingPhoto?: string; /** 购车发票照片 */ - vehPurInvPhoto?: string + vehPurInvPhoto?: string; /** 车辆识别号照片 */ - vinPhoto?: string - } + vinPhoto?: string; + }; - interface RobotInspectionVideoReq { + type RobotInspectionVideoReq = { /** 场地视频 */ - areaVideo?: string + areaVideo?: string; /** 查验id */ - certificateId?: string + certificateId?: string; /** 发动机号视频 */ - engNoVideo?: string + engNoVideo?: string; /** 机器人id */ - robotId?: string + robotId?: string; /** 流水号 */ - serialNumber?: string + serialNumber?: string; /** 查验站id */ - stationId?: string + stationId?: string; /** 轮胎规格视频 */ - tireSpecVideo?: string + tireSpecVideo?: string; /** 车辆喷涂视频 */ - vehPaintingVideo?: string + vehPaintingVideo?: string; /** 左前 45 度视频 */ - video45FL?: string + video45FL?: string; /** 右后 45 度视频 */ - video45RR?: string + video45RR?: string; /** 车辆识别代号视频 */ - vinVideo?: string - } + vinVideo?: string; + }; - interface RobotLoginRsp { + type RobotLoginRsp = { /** 机器人id */ - robotId?: string + robotId?: string; /** 检测站id */ - stationId?: string + stationId?: string; /** token */ - token?: string + token?: string; /** 用户id */ - userId?: string - } + userId?: string; + }; - interface RPadIndexInfoRsp { - code?: number - data?: PadIndexInfoRsp - msg?: string - } + type RPadIndexInfoRsp = { + code?: number; + data?: PadIndexInfoRsp; + msg?: string; + }; - interface RPadLoginRsp { - code?: number - data?: PadLoginRsp - msg?: string - } + type RPadLoginRsp = { + code?: number; + data?: PadLoginRsp; + msg?: string; + }; - interface RPadRecordRsp { - code?: number - data?: PadRecordRsp - msg?: string - } + type RPadRecordRsp = { + code?: number; + data?: PadRecordRsp; + msg?: string; + }; - interface RQueryVehicleKindRsp { - code?: number - data?: QueryVehicleKindRsp - msg?: string - } + type RQueryVehicleKindRsp = { + code?: number; + data?: QueryVehicleKindRsp; + msg?: string; + }; - interface RRobotLoginRsp { - code?: number - data?: RobotLoginRsp - msg?: string - } + type RRobotLoginRsp = { + code?: number; + data?: RobotLoginRsp; + msg?: string; + }; - interface RUploadPhotoRsp { - code?: number - data?: UploadPhotoRsp - msg?: string - } + type RUploadPhotoRsp = { + code?: number; + data?: UploadPhotoRsp; + msg?: string; + }; - interface StageAndStepRsp { + type StageAndStepRsp = { /** 阶段编号 */ - stageCode?: string + stageCode?: string; /** 阶段id */ - stageId?: number + stageId?: number; /** 阶段名称 */ - stageName?: string + stageName?: string; /** 步骤列表 */ - stepList?: StepVo[] - } + stepList?: StepVo[]; + }; - interface StepVo { - code?: string - id?: number - name?: string - orderNo?: number - stageId?: string - } + type StepVo = { + code?: string; + id?: number; + name?: string; + orderNo?: number; + stageId?: string; + }; - interface UploadInspectReq { + type UploadInspectReq = { /** 相关数据,json格式的数据 */ - data?: Record + data?: Record; /** 设备唯一标识 */ - deviceNo?: string + deviceNo?: string; /** 任务编号 */ - taskCode?: string + taskCode?: string; /** 任务类型,例如:LeftFrontResult,RightRearResult,TireResult。 */ - taskType?: string - } + taskType?: string; + }; - interface UploadPhotoReq { + type UploadPhotoReq = { /** base64的图片 */ - base64?: string + base64?: string; /** 查验线id,可以不传。如果上传了这个参数,那么同一个查验站的图片会保存在一个目录下 */ - lineId?: string - } + lineId?: string; + }; - interface UploadPhotoRsp { + type UploadPhotoRsp = { /** 文件相对目录,传给平台的文件地址,使用这个地址!! */ - path?: string + path?: string; /** 访问地址前缀,文件访问时完整的目录为: url + path */ - url?: string - } + url?: string; + }; - interface VcInspectionLine { - code?: string - createBy?: string - createTime?: string - deptIdStr?: string - doronCheckCode?: string - doronCheckResult?: string - id?: number - name?: string - params?: Record - remark?: string - stationId?: number - status?: string - updateBy?: string - updateTime?: string - } + type VcInspectionLine = { + code?: string; + createBy?: string; + createTime?: string; + deptIdStr?: string; + doronCheckCode?: string; + doronCheckResult?: string; + id?: number; + name?: string; + params?: Record; + remark?: string; + stationId?: number; + status?: string; + updateBy?: string; + updateTime?: string; + }; - interface VehicleCollectionReq { + type VehicleCollectionReq = { /** 车架号遮挡描述:掀开主驾驶脚垫 */ - blockInfo?: string + blockInfo?: string; /** 品牌 */ - brandName?: string + brandName?: string; /** 充电口图片 */ - chargingPortPhotoUrl?: string + chargingPortPhotoUrl?: string; /** 充电口位置 */ - chargingPortPosition?: string + chargingPortPosition?: string; /** 生产厂家 */ - factoryName?: string - isAsc?: string + factoryName?: string; + isAsc?: string; /** 型号 */ - model?: string + model?: string; /** 生产月份 */ - month?: string - orderByColumn?: string + month?: string; + orderByColumn?: string; /** 其他移动:轮胎左侧转向、备胎移出等 */ - otherMove?: string + otherMove?: string; /** padId */ - padId?: number - pageNum?: number - pageSize?: number + padId?: number; + pageNum?: number; + pageSize?: number; /** 铭牌照片 */ - platePhotoUrl?: string + platePhotoUrl?: string; /** 铭牌位置 */ - platePosition?: string + platePosition?: string; /** 铭牌位置图片 */ - platePositionUrl?: string + platePositionUrl?: string; /** 车架号总体位置 */ - position?: string + position?: string; /** 车架号方位信息,类似左边、右边等 */ - positionDirection?: string + positionDirection?: string; /** 查询日期结束 */ - queryEndDate?: string + queryEndDate?: string; /** 查询日期开始 */ - queryStartDate?: string - reasonable?: boolean + queryStartDate?: string; + reasonable?: boolean; /** 车架号座椅挪动 */ - seatMove?: string + seatMove?: string; /** 慢充图片 */ - slowChargingPortPhotoUrl?: string + slowChargingPortPhotoUrl?: string; /** 慢充位置 */ - slowChargingPortPosition?: string + slowChargingPortPosition?: string; /** 车架号图片 */ - vinPhotoUrl?: string + vinPhotoUrl?: string; /** 生产年份 */ - year?: string - } + year?: string; + }; - interface VehicleCollectionRsp { + type VehicleCollectionRsp = { /** 车架号遮挡描述:掀开主驾驶脚垫 */ - blockInfo?: string + blockInfo?: string; /** 品牌 */ - brandName?: string + brandName?: string; /** 充电口图片 */ - chargingPortPhotoUrl?: string + chargingPortPhotoUrl?: string; /** 充电口位置 */ - chargingPortPosition?: string + chargingPortPosition?: string; /** 生产厂家 */ - factoryName?: string + factoryName?: string; /** 型号 */ - model?: string + model?: string; /** 生产月份 */ - month?: string + month?: string; /** 其他移动:轮胎左侧转向、备胎移出等 */ - otherMove?: string + otherMove?: string; /** padId */ - padId?: number + padId?: number; /** 铭牌照片 */ - platePhotoUrl?: string + platePhotoUrl?: string; /** 铭牌位置 */ - platePosition?: string + platePosition?: string; /** 铭牌位置图片 */ - platePositionUrl?: string + platePositionUrl?: string; /** 车架号总体位置 */ - position?: string + position?: string; /** 车架号方位信息,类似左边、右边等 */ - positionDirection?: string + positionDirection?: string; /** 车架号座椅挪动 */ - seatMove?: string + seatMove?: string; /** 慢充图片 */ - slowChargingPortPhotoUrl?: string + slowChargingPortPhotoUrl?: string; /** 慢充位置 */ - slowChargingPortPosition?: string + slowChargingPortPosition?: string; /** 车架号图片 */ - vinPhotoUrl?: string + vinPhotoUrl?: string; /** 生产年份 */ - year?: string - } + year?: string; + }; } diff --git a/entry/src/main/ets/pages/alarm/Detail.ets b/entry/src/main/ets/pages/alarm/Detail.ets index 80931dd..c80569d 100644 --- a/entry/src/main/ets/pages/alarm/Detail.ets +++ b/entry/src/main/ets/pages/alarm/Detail.ets @@ -55,6 +55,15 @@ struct Detail { @State isFullScreen: boolean = false @State url: string = "" + aboutToAppear(): void { + let data: API.InspectAlarmItemVo = router.getParams() + this.base[0].value = data.createTime || "" + this.base[1].value = data.alarmCode || "" + this.base[2].value = data.stageName || "" + this.base[3].value = data.stepName || "" + this.base[4].value = data.alarmInfo || "" + } + submit() { } @@ -114,10 +123,10 @@ struct Detail { Column() { Row() { - Stack({ alignContent: Alignment.TopStart }) { - Image($rawfile("images/vehicle/default.png")).width("100%").height("100%").objectFit(ImageFit.Contain) - Text("现场图片").label() - }.margin({ right: 6 }).layoutWeight(1) + Stack({ alignContent: Alignment.TopStart }) { + Image($rawfile("images/vehicle/default.png")).width("100%").height("100%").objectFit(ImageFit.Contain) + Text("现场图片").label() + }.margin({ right: 6 }).layoutWeight(1) Stack({ alignContent: Alignment.TopStart }) { diff --git a/entry/src/main/ets/pages/alarm/Index.ets b/entry/src/main/ets/pages/alarm/Index.ets index addcb2f..e3271a4 100644 --- a/entry/src/main/ets/pages/alarm/Index.ets +++ b/entry/src/main/ets/pages/alarm/Index.ets @@ -8,20 +8,12 @@ import { DateRangePicker } from '../components/date/Index' import { CusInput } from '../components/input/Index' import { getInspectAlarmUsingPost } from '../../api/padController' -interface Test { - date: string - type: string - content: string - state: string - step: string - status: string -} @Component @Entry struct Alarm { @State columns: Array = [] - @State data: Array = [] + @State data: Array = [] @State total: number = 500 @State loading: boolean = false @State date: string[] = [] @@ -35,7 +27,7 @@ struct Alarm { private pageSizes: number[] = [10, 20, 30, 50] @Builder - buildOperate(_row: Test) { + buildOperate(_row: API.InspectAlarmItemVo) { Image($rawfile("images/detail.png")).objectFit(ImageFit.Contain).width(80).height(30).onClick(() => { router.pushUrl({ url: "pages/alarm/Detail" @@ -44,9 +36,9 @@ struct Alarm { } @Builder - buildStatus(row: Test) { + buildStatus(row: API.InspectAlarmItemVo) { Row() { - if (row.status === "1") { + if (row.alarmStatus === "1") { Image($rawfile("images/alarm/success.png")).width(18).height(18).margin({ right: 12 }) Text("已处理").fontSize(16).fontColor(0x2EB023) } else { @@ -64,16 +56,16 @@ struct Alarm { width: "60", type: "index" }, - { title: "预警日期", prop: "date", width: 1, }, - { title: "预警类型", prop: "type", width: 1, }, - { title: "预警内容", prop: "content", width: 2, }, - { title: "阶段", prop: "state", width: 1.5, }, - { title: "步骤", prop: "step", width: 1, }, + { title: "预警日期", prop: "createTime", width: 1, }, + { title: "预警类型", prop: "alarmCode", width: 1, }, + { title: "预警内容", prop: "alarmInfo", width: 2, }, + { title: "阶段", prop: "stageName", width: 1.5, }, + { title: "步骤", prop: "stepName", width: 1, }, { title: "状态", prop: "status", width: 1, - cell: (row: Test) => { + cell: (row: API.InspectAlarmItemVo) => { this.buildStatus(row) } }, @@ -81,7 +73,7 @@ struct Alarm { title: "操作", prop: "", width: 1, - cell: (row: Test) => { + cell: (row: API.InspectAlarmItemVo) => { this.buildOperate(row) } }, @@ -91,21 +83,20 @@ struct Alarm { } getData() { - getInspectAlarmUsingPost({ - - }) this.loading = true - setTimeout(() => { - this.data = new Array(this.pageSize).fill({ - date: "2025-09-13", - type: `PAD001-${Math.random().toFixed(3)}`, - content: "车辆长时间未驶入查验区域", - state: "等待车辆进入", - step: "步骤一", - status: "2" - }) + getInspectAlarmUsingPost({ + alarmStartTime: this.date[0], + alarmEndTime: this.date[1], + alarmStatus: this.status, + pageNum: this.currentPage, + pageSize: this.pageSize, + stageId: Number(this.state), + stepId: Number(this.step) + }).then(res => { + this.data = res.data?.page?.rows || [] + }).finally(() => { this.loading = false - }, 1000) + }) } reset() { diff --git a/entry/src/main/ets/pages/vehicle/Add.ets b/entry/src/main/ets/pages/vehicle/Add.ets index 04b33b1..85ee130 100644 --- a/entry/src/main/ets/pages/vehicle/Add.ets +++ b/entry/src/main/ets/pages/vehicle/Add.ets @@ -167,7 +167,7 @@ struct Add { } } - async save() { + save() { if (!this.picture1) { promptAction.showToast({ message: "请上传铭牌图片" @@ -247,7 +247,7 @@ struct Add { chargingPortPosition: this.quickElectric, slowChargingPortPhotoUrl: this.picture4, slowChargingPortPosition: this.slowElectric, - padId: 0, + padId: AppStorage.get("padId"), } saveVinPositionUsingPost(data).then(res => { diff --git a/entry/src/main/ets/pages/vehicle/Index.ets b/entry/src/main/ets/pages/vehicle/Index.ets index f87656b..33fd241 100644 --- a/entry/src/main/ets/pages/vehicle/Index.ets +++ b/entry/src/main/ets/pages/vehicle/Index.ets @@ -5,22 +5,13 @@ import { Title } from '../components/title/Index' import { CusButton } from '../components/button/Index' import { DateRangePicker } from '../components/date/Index' import { CusInput } from '../components/input/Index' - -interface Test { - date: string - type: string - content: string - state: string - step: string - status: string -} - +import { getInspectResultListUsingPost } from '../../api' @Component @Entry struct Vehicle { @State columns: Array = [] - @State data: Array = [] + @State data: Array = [] @State total: number = 500 @State loading: boolean = false @State date: string[] = [] @@ -34,7 +25,7 @@ struct Vehicle { private pageSizes: number[] = [10, 20, 30, 50] @Builder - buildOperate(_row: Test) { + buildOperate(_row: API.InspectRecordResultRsp) { Image($rawfile("images/detail.png")).objectFit(ImageFit.Contain).width(80).height(30).onClick(() => { router.pushUrl({ url: "pages/vehicle/Add" @@ -50,20 +41,20 @@ struct Vehicle { width: "60", type: "index" }, - { title: "查验日期", prop: "date", width: 1, }, - { title: "流水号", prop: "type", width: 1, }, - { title: "业务类型", prop: "state", width: 1, }, - { title: "号牌种类", prop: "state", width: 1, }, - { title: "车辆品牌", prop: "step", width: 1, }, - { title: "型号", prop: "step", width: 1, }, - { title: "生产厂家", prop: "step", width: 1.5, }, - { title: "生产年月", prop: "step", width: 1, }, - { title: "车主姓名", prop: "step", width: 1, }, + { title: "查验日期", prop: "createTime", width: 1, }, + { title: "流水号", prop: "serialNumber", width: 1, }, + { title: "业务类型", prop: "businessType", width: 1, }, + { title: "号牌种类", prop: "vin", width: 1, }, + { title: "车辆品牌", prop: "brandName", width: 1, }, + { title: "型号", prop: "model", width: 1, }, + // { title: "生产厂家", prop: "factoryName", width: 1.5, }, + // { title: "生产年月", prop: "step", width: 1, }, + // { title: "车主姓名", prop: "step", width: 1, }, { title: "操作", prop: "", width: 1, - cell: (row: Test) => { + cell: (row: API.InspectRecordResultRsp) => { this.buildOperate(row) } }, @@ -74,17 +65,19 @@ struct Vehicle { getData() { this.loading = true - setTimeout(() => { - this.data = new Array(this.pageSize).fill({ - date: "2025-09-13", - type: `PAD001-${Math.random().toFixed(3)}`, - content: "车辆长时间未驶入查验区域", - state: "等待车辆进入", - step: "步骤一", - status: "2" - }) + getInspectResultListUsingPost({ + inspectStartDate: this.date[0], + inspectEndDate: this.date[1], + pageNum: this.currentPage, + pageSize: this.pageSize, + unMatch: "1" + }).then(res => { + this.data = res.rows || [] + this.total = res.total || 0 + }).finally(() => { this.loading = false - }, 1000) + + }) } reset() {