/** * @Description: 仪表换新API * @Author: Zy * @Date: 2026-05-16 15:53:23 * @LastEditor: Zy * @LastEditTime: 2026-05-16 16:38:54 */ import request, { filterParams, get, post, put } from "./request.js" /** * 设备类型枚举 * @typedef {1 | 2} DeviceType * @description 1=水表 2=电表 */ /** * @typedef ReplaceMentRecordList 巡检任务表 * @property {string} deviceCode = [设备编号] * @property {DeviceType} deviceType = [设备类型] * @property {string} houseId = [楼栋ID] * @property {string} buildingName = [楼栋名称] * @property {string} unitNo = [单元号] * @property {string} houseNo = [房屋号] * @property {string} addressCn = [房屋地址] * @property {string} addressHyphen = [房屋地址] * @property {string} createTime = [创建时间] * */ /** * 获取仪表换新记录 * @param {RequestParams} data 请求参数 * @return {Promise>} */ export const getReplaceMainList = (data) => { return get('/manage/replace/sdb/record/list', filterParams(data)) } /** * @description: 添加仪表API * @param {{ deviceType:DeviceType, deviceCode:string,houseId:string }} data */ export const AddReplaceMainList = (data) => { return put('/manage/replace/sdb/replace/device', filterParams(data)) }