From eaff2fbd473362115c8c45e22b86b2ecb73e5a97 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 10 九月 2026 15:17:12 +0800
Subject: [PATCH] 新疆——新聚lims 1.标准库层级需要修改层级,行业-标准,总共两级;实验室换成行业 2.每个标准下的检验项列表加一个搜索查询功能

---
 src/utils/date.js |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/src/utils/date.js b/src/utils/date.js
index 3f4a780..eae259f 100644
--- a/src/utils/date.js
+++ b/src/utils/date.js
@@ -51,4 +51,31 @@
     return format
   }
   return ''
-}
\ No newline at end of file
+}
+
+/**
+ * 鑾峰彇骞存湀鏃�  26鍙�+1
+ * @param date
+ * @returns {string}
+ */
+export function getPayrollMonthDate(date = new Date()) {
+  let year = date.getFullYear();
+  let month = date.getMonth();
+  let days = date.getDate();
+
+  // 鍒ゆ柇鏄惁鏄�26鍙�
+  if (days === 26) {
+    month++;
+    if (month > 11) {
+      month = 0;
+      year++;
+    }
+  }
+
+  month += 1;
+  month = month < 10 ? '0' + month + '-' : month + '-';
+  year = year + '-';
+  days = days < 10 ? '0' + days : days;
+
+  return (year + month + days);
+}

--
Gitblit v1.9.3