去除打印,抄表路线支持所有园区,支持部分选择框清除内容

This commit is contained in:
2025-11-13 17:10:33 +08:00
parent d7d5366230
commit edfd386e1b
16 changed files with 100 additions and 28 deletions

View File

@@ -16,16 +16,45 @@ Page({
actionItems: [{
name: '详情',
value: 'detail'
},{
name: '确认',
value: 'ok'
}],
}],
},
showActionMenu(e) {
this.setData({
currentActionSheet: e.currentTarget.dataset.id
});
},
onClearPark() {
const that = this;
this.setData({ park: null, parkName: null, meter: null, meterName: null }, () => {
loadingFunc(async () => {
await that.init()
})
})
},
onClearMeter() {
const that = this;
this.setData({ meter: null, meterName: null }, () => {
loadingFunc(async () => {
await that.init()
})
})
},
onClearType() {
const that = this;
this.setData({ noticeFlowType: null, noticeFlowTypeName: null }, () => {
loadingFunc(async () => {
await that.init()
})
})
},
onClearStatus() {
const that = this;
this.setData({ noticeFlowStatus: null, noticeFlowStatusName: null }, () => {
loadingFunc(async () => {
await that.init()
})
})
},
hideActionMenu() {
this.setData({
currentActionSheet: null
@@ -173,11 +202,11 @@ onMenuSelect(e) {
return;
}
this.setData({
list: data?.map(item => {
list: Array.isArray(data) ? data?.map(item => {
item.time = item?.created_at?.slice(0, 10)
item.address = item?.target?.meter_data?.address;
return item;
}),
}) : [],
totalPage: Math.ceil(total / size),
})
},