工单详情增加部分字段,装表新增采集器,修改工单列表查询的问题

This commit is contained in:
2025-11-18 15:11:05 +08:00
parent c03d70b221
commit 4779cc1718
9 changed files with 104 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import { getLoginParkList, getParkBuildingList } from "../../service/park"
import { getParkSimpleMeterList, getParkBoxList, getCardList, getCollectionList, getInventoryMeter } from "../../service/meter"
import { getParkSimpleMeterList, getParkBoxList, getCardList, getCollectionList, getInventoryMeter, getCollectorList } from "../../service/meter"
import { alertInfo } from "../../utils/index";
import request from "../../utils/request"
import { payWays, feeType, meterType, noticeFlowType, noticeFlowStatus,
@@ -176,8 +176,23 @@ Component({
case "collection":
this.onSearchCollection();
return;
case "collector":
this.onSearchCollector();
break;
}
},
async onSearchCollector() {
const { searchText = "", } = this.data;
const { code, message, data = [] } = await getCollectorList(searchText);
if (code !== OK) {
alertInfo(message)
return
}
this.setData({
columns: data?.map(item => `${item.collectorAddress}-${item.manufacturer}`),
list: data,
})
},
async onSearchPark() {
const { searchText = "" } = this.data;
const { code, message, data: parks = [] } = await getLoginParkList({keyword: searchText});