From be84838fd3e7e58ed1db0412cbd51a9f6ba332f8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 二月 2026 16:36:48 +0800
Subject: [PATCH] 进销存升级app: 1.确认消息后,页面展示乱码 2.消息通知页面样式修改与优化 3.新增客户拜访后,点击签到页面无响应

---
 src/api/login.js |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 55 insertions(+), 1 deletions(-)

diff --git a/src/api/login.js b/src/api/login.js
index 87ab52c..29a149d 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -48,4 +48,58 @@
     method: 'get',
     params: params
   })
-}
\ No newline at end of file
+}
+
+// 鍙戦�佸鎴风鎺ㄩ�佹爣璇嗗埌鏈嶅姟鍣�
+export function updateClientId(data) {
+  return request({
+    url: '/system/client/addOrUpdateClientId',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 鏌ヨ鍏憡鍒楄〃
+export function listNotice(query) {
+  return request({
+    url: '/system/notice/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 鑾峰彇鏈娑堟伅鏁伴噺
+export function getNoticeCount(consigneeId) {
+  return request({
+    url: '/system/notice/getCount',
+    method: 'get',
+    params: { consigneeId }
+  })
+}
+
+// 鏍囪娑堟伅涓哄凡璇�
+export function markAsRead(noticeId, status) {
+  return request({
+    url: "/system/notice",
+    method: "put",
+    data: { noticeId, status },
+  });
+}
+
+// 涓�閿爣璁版墍鏈夋秷鎭负宸茶
+export function markAllAsRead() {
+  return request({
+    url: "/system/notice/readAll",
+    method: "post",
+  });
+}
+
+// 纭娑堟伅
+export function confirmMessage(noticeId, status) {
+  return request({
+    url: "/system/notice",
+    method: "put",
+    data: { noticeId, status },
+  });
+}

--
Gitblit v1.9.3