From dd0838214cd86dcdec93c89687a7e6f457b58dc2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 02 Jan 2023 11:24:24 +0800
Subject: [PATCH] 修改时间选择变为范围选择;新增发起事务前需完善企业信息

---
 src/const/application/application.js |   43 +++++++++++++++++++++++++++++++------------
 1 files changed, 31 insertions(+), 12 deletions(-)

diff --git a/src/const/application/application.js b/src/const/application/application.js
index 8e9d09d..b8eebcd 100644
--- a/src/const/application/application.js
+++ b/src/const/application/application.js
@@ -55,23 +55,42 @@
           disabled:false,
           rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}]
         },
+        // {
+        //   label: "通行开始时间",
+        //   prop: "startPassTime",
+        //   type: "date",
+        //   format:'yyyy-MM-dd',
+        //   valueFormat:'yyyy-MM-dd',
+        //   labelWidth:labelWidth,
+        //   disabled:false,
+        //   pickerOptions: {
+        //     disabledDate(time) {
+        //       return time.getTime() < Date.now();
+        //     },
+        //   }
+        // },
+        // {
+        //   label: "通行结束时间",
+        //   prop: "endPassTime",
+        //   type: "date",
+        //   format:'yyyy-MM-dd',
+        //   valueFormat:'yyyy-MM-dd',
+        //   labelWidth:labelWidth,
+        //   disabled:false,
+        // },
         {
-          label: "通行开始时间",
-          prop: "startPassTime",
-          type: "date",
+          label: "通行时间段",
+          prop: "passTime",
+          type: "daterange",
           format:'yyyy-MM-dd',
           valueFormat:'yyyy-MM-dd',
           labelWidth:labelWidth,
           disabled:false,
-        },
-        {
-          label: "通行结束时间",
-          prop: "endPassTime",
-          type: "date",
-          format:'yyyy-MM-dd',
-          valueFormat:'yyyy-MM-dd',
-          labelWidth:labelWidth,
-          disabled:false,
+          pickerOptions: {
+            disabledDate(time) {
+              return time.getTime() < Date.now();
+            },
+          }
         },
         {
           label: "起运机构",

--
Gitblit v1.9.3