水电表基本搭建完成
This commit is contained in:
@@ -61,3 +61,27 @@ export const delWaterDevice = (id: string | number | Array<string | number>) =>
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取设备指定时间段的用水量
|
||||
* @param id
|
||||
*/
|
||||
export const getWaterDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'startTime': string; 'endTime': string }) => {
|
||||
return request({
|
||||
url: '/waterDevice/getEle',
|
||||
method: 'POST',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 生成条形码
|
||||
* @param id
|
||||
*/
|
||||
export const WaterDeviceMakerQrcode = (data: { deviceCode: string; id: string }[]) => {
|
||||
return request({
|
||||
url: '/waterDevice/generateBarCode',
|
||||
method: 'POST',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user