Selaa lähdekoodia

bug-5200 外来人员扫码登记,签出时间设置在签到时间之后就行,不用限制只能填当天之后的时间 (时间选择器修改)

ZhuJiaHao 7 kuukautta sitten
vanhempi
sitoutus
64370cdebf
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/views/business/registrationOutsiders/checkOut.vue

+ 2 - 1
src/views/business/registrationOutsiders/checkOut.vue

@@ -62,8 +62,9 @@ export default {
             endPickerOptions: {
                 disabledDate (time) {
                     const t = new Date(time)
-                    const { jin_ru_shi_jian_: startTime } = that.dataList
+                    let { jin_ru_shi_jian_: startTime } = that.dataList
                     // 禁用当前时间之后和来访时间之前的时间
+                    startTime = startTime.slice(0, 10) + ' 00:00'
                     if (startTime) {
                         const start = new Date(startTime)
                         return t.getTime() < start.getTime() || t.getTime() > Date.now()