工单详情增加部分字段,装表新增采集器,修改工单列表查询的问题
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user