From 4963aa4888fc1bcfa6de0c392ee26a134a460cfe Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 05 六月 2024 14:55:43 +0800
Subject: [PATCH] 货盘运输移库数量预填写

---
 src/util/date.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/util/date.js b/src/util/date.js
index 16ffed7..997017e 100644
--- a/src/util/date.js
+++ b/src/util/date.js
@@ -84,3 +84,20 @@
   year = (year + '').substring(2, 4)
   return year + month
 }
+
+/**
+ * 鑾峰彇骞存湀鏃�
+ */
+export function getYearAndMonthAndDays() {
+  const date = new Date()
+  let year = date.getFullYear()
+  let month = date.getMonth() + 1
+  if (month < 10) {
+    month = '0' + month
+  } else {
+    month = month + '-'
+  }
+  year = year + '-'
+  let days = date.getDate()
+  return year + month + days
+}
\ No newline at end of file

--
Gitblit v1.9.3