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

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),
})
},

View File

@@ -6,6 +6,8 @@
placeholder="请选择园区"
text="{{parkName}}"
bind:search="onParkFocus"
allowClear="{{true}}"
bind:clear="onClearPark"
/>
<searchSelectWrapper
@@ -13,18 +15,24 @@
placeholder="请选择电表"
text="{{meterName}}"
bind:search="onMeterFocus"
allowClear="{{true}}"
bind:clear="onClearMeter"
/>
<searchSelectWrapper
label="流程类型"
placeholder="请选择流程类型"
text="{{noticeFlowTypeName}}"
bind:search="onNoticeFlowFocus"
allowClear="{{true}}"
bind:clear="onClearType"
/>
<searchSelectWrapper
label="确认状态"
placeholder="请选择确认状态"
text="{{noticeFlowStatusName}}"
bind:search="onNoticeFlowStatusFocus"
allowClear="{{true}}"
bind:clear="onClearStatus"
/>
<view>
<view wx:if="{{list.length}}">
@@ -52,7 +60,7 @@
{{ item.address }}
</view>
<view class="th" style="flex: 0 0 150rpx;">
{{ item.flow_status === 1 ? "处理中" : "已确认" }}
{{ item.current_user_audit_status === 0 ? "处理中" : "已确认" }}
</view>
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-id="{{item.id}}" data-data="{{index}}" class="more-icon" />