强控和装表字段调整
This commit is contained in:
@@ -124,7 +124,6 @@ Component({
|
|||||||
list: [],
|
list: [],
|
||||||
searchText: ""
|
searchText: ""
|
||||||
})
|
})
|
||||||
console.log("{ data: item, way: index + 1, type }", { data: item, way: index + 1, type })
|
|
||||||
this.triggerEvent("confirm", { data: item, way: index + 1, type } );
|
this.triggerEvent("confirm", { data: item, way: index + 1, type } );
|
||||||
},
|
},
|
||||||
onFeeTypeConfirm(event) {
|
onFeeTypeConfirm(event) {
|
||||||
@@ -216,7 +215,7 @@ Component({
|
|||||||
},
|
},
|
||||||
async onSearchInventoryMeter() {
|
async onSearchInventoryMeter() {
|
||||||
const { searchText = "", park, filterBind } = this.data;
|
const { searchText = "", park, filterBind } = this.data;
|
||||||
const { code, message, data: parks = [] } = await getInventoryMeter({keyword: searchText, park, isNeedBind: !filterBind});
|
const { code, message, data: parks = [] } = await getInventoryMeter({keyword: searchText, park, isNeedBind: !filterBind, a : 1});
|
||||||
if (code !== OK) {
|
if (code !== OK) {
|
||||||
alertInfo(message)
|
alertInfo(message)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -147,6 +147,9 @@ Page({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goback() {
|
||||||
|
wx.navigateBack();
|
||||||
|
},
|
||||||
clearImage() {
|
clearImage() {
|
||||||
this.setData({
|
this.setData({
|
||||||
url: ""
|
url: ""
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ onMenuSelect(e) {
|
|||||||
|
|
||||||
case "noticeFlowType":
|
case "noticeFlowType":
|
||||||
this.setData({
|
this.setData({
|
||||||
noticeFlowType: data,
|
noticeFlowType: way,
|
||||||
noticeFlowTypeName: data,
|
noticeFlowTypeName: data,
|
||||||
page: 1,
|
page: 1,
|
||||||
}, () => {
|
}, () => {
|
||||||
@@ -75,7 +75,7 @@ onMenuSelect(e) {
|
|||||||
break;
|
break;
|
||||||
case "noticeFlowStatus":
|
case "noticeFlowStatus":
|
||||||
this.setData({
|
this.setData({
|
||||||
noticeFlowStatus: data,
|
noticeFlowStatus: way,
|
||||||
noticeFlowStatusName: data,
|
noticeFlowStatusName: data,
|
||||||
page: 1,
|
page: 1,
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ export const getCollectionList = async function({park = "", keyword = "", page =
|
|||||||
|
|
||||||
|
|
||||||
// 获取库存电表列表
|
// 获取库存电表列表
|
||||||
export const getInventoryMeter = async function({park = "", keyword = "", page = 1}) {
|
export const getInventoryMeter = async function({park = "", keyword = "", page = 1, status = 1}) {
|
||||||
return await GET(`/electricity/list?page=${page}&park=${park}&keyword=${replaceSpecialIcon(keyword)}`);
|
return await GET(`/electricity/list?page=${page}&park=${park}&keyword=${replaceSpecialIcon(keyword)}&status=${status}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新装电表
|
// 新装电表
|
||||||
|
|||||||
Reference in New Issue
Block a user