From 1c8c18285e5676df8b5eaabff33bfac9d1f33b13 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 09:23:43 +0800
Subject: [PATCH] Merge branch 'dev_NEW_pro' into dev_NEW_pro_OA
---
src/api/login.js | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 106 insertions(+), 0 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
new file mode 100644
index 0000000..561b98c
--- /dev/null
+++ b/src/api/login.js
@@ -0,0 +1,106 @@
+import request from "@/utils/request";
+
+// 鐧诲綍鏂规硶
+export function loginCheckFactory(username, password, factoryId) {
+ const data = {
+ username,
+ password,
+ factoryId,
+ };
+ return request({
+ url: "/loginCheckFactory",
+ headers: {
+ isToken: false,
+ repeatSubmit: false,
+ },
+ method: "post",
+ data: data,
+ });
+}
+
+// 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅
+export function getInfo() {
+ return request({
+ url: "/getInfo",
+ method: "get",
+ });
+}
+
+// 閫�鍑烘柟娉�
+export function logout() {
+ return request({
+ url: "/logout",
+ method: "post",
+ });
+}
+
+// 鑾峰彇鍏徃鍒楄〃
+export function userLoginFacotryList(params) {
+ return request({
+ url: "/userLoginFacotryList",
+ method: "get",
+ params: params,
+ });
+}
+
+// 鑾峰彇鏈繃鏈熷叕鍛婃暟閲�
+export function noticesList(params) {
+ return request({
+ url: "/collaborativeApproval/notice/page",
+ method: "get",
+ params: params,
+ });
+}
+
+// 鍙戦�佸鎴风鎺ㄩ�佹爣璇嗗埌鏈嶅姟鍣�
+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