Prechádzať zdrojové kódy

批量约单 需限制下不能往后选时间

linwenxin 1 rok pred
rodič
commit
d33a8d2a12

+ 5 - 0
src/views/workOrder/workOrderPool/components/reschedule/index.vue

@@ -51,6 +51,11 @@ export default {
             style: { width: '100%' },
             placeholder: '请选择',
             'value-format': 'yyyy-MM-dd HH:mm:ss',
+            'picker-options': {
+              disabledDate: time => {
+                return time.getTime() < (Date.now() - 86400000)
+              }
+            }
           },
           formItemAttributes: {
             label: '预约上门日期',