From 01b53033db11aa30ed6d408f6b5c8f27cd851b17 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 09 一月 2026 11:42:03 +0800
Subject: [PATCH] 1.基础数据-供应商黑名单,添加资质管理字段,可上传资质文件 2.采购管理-收货管理-添加入库数量输入和合格状态选择功能,实现采购异常记录的添加和更新接口 3.客户档案-分类功能,零售客户和进销商客户 4.添加采购审批页面,显示台账审批状态 5.固定资产核算界面,库存核算统计页面-移至军泰伟业

---
 src/utils/util.js |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/src/utils/util.js b/src/utils/util.js
index 78846dc..be08cc1 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -1,4 +1,6 @@
 //闃叉姈
+import dayjs from "dayjs";
+
 export  function debounce(fn) {
     console.log(1)
     let t = null //鍙細鎵ц涓�娆�
@@ -86,7 +88,34 @@
       'aplication/zip': 'zpi',
     }
   }
-
+ export const deepCopySameProperties = (source, target) =>{
+    for (const key in source) {
+        if (target.hasOwnProperty(key)) {
+            if (typeof source[key] === 'object' && source[key] !== null &&
+                typeof target[key] === 'object' && target[key] !== null) {
+                // 閫掑綊澶勭悊瀵硅薄
+                deepCopySameProperties(source[key], target[key]);
+            } else {
+                // 鍩烘湰绫诲瀷鐩存帴璧嬪��
+                target[key] = source[key];
+            }
+        }
+    }
+    return target;
+}
   export function filterArr(arr) {
       return arr.filter(item => item.flag !== false);
-  }
\ No newline at end of file
+  }
+
+ export function getCurrentMonth () {
+    let month = dayjs().month() + 1
+    if (month <= 3) {
+        return '1';
+    } else if (month <= 6) {
+        return '2';
+    } else if (month <= 9) {
+        return '3';
+    } else if (month <= 12) {
+        return '4';
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3