Commit c274bd01 by Lin

feat: 回补日报修改

1 parent 5742113d
...@@ -25,6 +25,20 @@ Component({ ...@@ -25,6 +25,20 @@ Component({
scrollTop: 0 scrollTop: 0
}, },
lifetimes: {
attached() {
// 初始化防抖定时器
this.confirmTimer = null
},
detached() {
// 组件销毁时清除定时器
if (this.confirmTimer) {
clearTimeout(this.confirmTimer)
this.confirmTimer = null
}
}
},
methods: { methods: {
onClose() { onClose() {
this.setData({ this.setData({
...@@ -257,6 +271,18 @@ Component({ ...@@ -257,6 +271,18 @@ Component({
}, },
onConfirm() { onConfirm() {
// 防抖处理:如果已有定时器,清除它
if (this.confirmTimer) {
clearTimeout(this.confirmTimer)
}
// 设置新的定时器,500ms 后执行
this.confirmTimer = setTimeout(() => {
this.handleConfirm()
}, 500)
},
handleConfirm() {
const { appealNum, imageList, remarks, otherIssues, actualDays } = this.data const { appealNum, imageList, remarks, otherIssues, actualDays } = this.data
const { appealLabel, unit, maxValue, appealType } = this.properties const { appealLabel, unit, maxValue, appealType } = this.properties
......
...@@ -282,7 +282,10 @@ Page({ ...@@ -282,7 +282,10 @@ Page({
break break
case 'daily': case 'daily':
// 处理去补日报逻辑 // 处理去补日报逻辑
console.log('去补日报') wx.$router.go('tabWorkOrder.upgradeStaffDaily', {
// reportDate: hasNeedReport.date
reportDate: "2025-12-10"
})
break break
case 'recording': case 'recording':
// 处理申诉平板逻辑 - 打开申诉弹框 // 处理申诉平板逻辑 - 打开申诉弹框
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
class="order-card-item" class="order-card-item"
wx:for="{{orderList}}" wx:for="{{orderList}}"
wx:key="index" wx:key="index"
wx:if="{{item.value != '0' && item.value != 0}}"
data-index="{{index}}" data-index="{{index}}"
> >
<view class="order-card-item-label">{{item.label}}</view> <view class="order-card-item-label">{{item.label}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!