From 8890d7dc1bdf54ba3e4dc90b6d79f4224f8cbd2a Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期一, 22 九月 2025 13:38:10 +0800
Subject: [PATCH] yys 1.回款登记台账页面,增加一个开票日期列 2.销售台账,在合同金额后面,增加已开票金额、待开票金额、已回款金额、待回款金额
---
src/store/modules/user.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 7c392fc..a007574 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -31,6 +31,16 @@
})
})
},
+ getCurrentTime() {
+ const now = new Date();
+ const year = now.getFullYear(); // 鑾峰彇骞翠唤
+ const month = String(now.getMonth() + 1).padStart(2, '0'); // 鏈堜唤浠�0寮�濮嬶紝瑕�+1锛屽苟琛ラ浂
+ const day = String(now.getDate()).padStart(2, '0'); // 鏃ユ湡琛ラ浂
+ const hours = String(now.getHours()).padStart(2, '0'); // 灏忔椂琛ラ浂
+ const minutes = String(now.getMinutes()).padStart(2, '0'); // 鍒嗛挓琛ラ浂
+ const seconds = String(now.getSeconds()).padStart(2, '0'); // 绉掓暟琛ラ浂
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ },
// 鑾峰彇鐢ㄦ埛淇℃伅
getInfo() {
return new Promise((resolve, reject) => {
@@ -49,7 +59,9 @@
this.avatar = avatar
this.currentFactoryName = user.currentFactoryName
this.nickName = user.nickName
+ this.roleName = user.roles[0].roleName
this.currentDeptId = user.tenantId
+ this.currentLoginTime = this.getCurrentTime()
resolve(res)
}).catch(error => {
reject(error)
--
Gitblit v1.9.3