工单列表查询电表接口修改
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user