工单列表查询电表接口修改

This commit is contained in:
2025-11-19 10:28:20 +08:00
parent 972a267c36
commit 6fee2d0435
4 changed files with 31 additions and 5 deletions

View File

@@ -1,5 +1,10 @@
import { getLoginParkList, getParkBuildingList } from "../../service/park"
import { getParkSimpleMeterList, getParkBoxList, getCardList, getCollectionList, getInventoryMeter, getCollectorList } from "../../service/meter"
import {
getParkSimpleMeterList, getParkBoxList,
getCardList, getCollectionList,
getInventoryMeter, getCollectorList,
getWorkOrderAllMeter,
} from "../../service/meter"
import { alertInfo } from "../../utils/index";
import request from "../../utils/request"
import { payWays, feeType, meterType, noticeFlowType, noticeFlowStatus,
@@ -179,6 +184,9 @@ Component({
case "collector":
this.onSearchCollector();
break;
case "workOrderMeter":
this.onSearchWorkOrderMeter();
break;
}
},
async onSearchCollector() {
@@ -193,6 +201,18 @@ Component({
list: data,
})
},
async onSearchWorkOrderMeter() {
const { searchText = "", park } = this.data;
const { code, message, data = [] } = await getWorkOrderAllMeter({keyword: searchText, park: park, page: 1, size: 20});
if (code !== OK) {
alertInfo(message)
return
}
this.setData({
columns: data?.map(item => `${item.address}-${item.meter_no}`),
list: data,
})
},
async onSearchPark() {
const { searchText = "" } = this.data;
const { code, message, data: parks = [] } = await getLoginParkList({keyword: searchText});