tjx
2025-11-04 c5f81c1b1298d9c20acf5fc21d26893a341db283
components/EquipmentInspection.vue
@@ -12,8 +12,8 @@
            </view>
            <view class="info-item">
               <text class="info-label">日期:</text>
               <picker mode="date" :value="currentDate" @change="handleDateChange">
                  <view class="date-picker">{{ currentDate }}</view>
               <picker mode="date" fields="month" :value="currentDate" @change="handleDateChange">
                  <view class="date-picker">{{ displayDate }}</view>
               </picker>
            </view>
         </view>
@@ -117,6 +117,14 @@
         dirty: false
      }
   },
   computed: {
      displayDate() {
         // 格式化显示为 "2025年11月"
         if (!this.currentDate) return ''
         const [year, month] = this.currentDate.split('-')
         return `${year}年${month}月`
      }
   },
   created() {
      this.initChecks()
   },