From 3d4355d8791c7e990377c7a2abc5ce238e752e91 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 一月 2026 17:36:05 +0800
Subject: [PATCH] 进销存-升级 1.销售台账页面代码重构 2.发货台账页面联调 3.采购台账代码重构,采购模版添加修改和删除,逻辑完善 4.采购审批页面逻辑修改完善 5.采购台账、销售台账导入和下载模版修改

---
 src/api/system/user.js |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index 577bea2..431f6b0 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -1,5 +1,5 @@
 import request from '@/utils/request'
-import { praseStrEmpty } from "@/utils/ruoyi";
+import { parseStrEmpty } from "@/utils/ruoyi";
 
 // 鏌ヨ鐢ㄦ埛鍒楄〃
 export function listUser(query) {
@@ -13,7 +13,7 @@
 // 鏌ヨ鐢ㄦ埛璇︾粏
 export function getUser(userId) {
   return request({
-    url: '/system/user/' + praseStrEmpty(userId),
+    url: '/system/user/' + parseStrEmpty(userId),
     method: 'get'
   })
 }
@@ -96,7 +96,7 @@
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
-    params: data
+    data: data
   })
 }
 
@@ -105,6 +105,7 @@
   return request({
     url: '/system/user/profile/avatar',
     method: 'post',
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
     data: data
   })
 }
@@ -125,3 +126,34 @@
     params: data
   })
 }
+
+// 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋�
+export function deptTreeSelect() {
+  return request({
+    url: '/system/user/deptTree',
+    method: 'get'
+  })
+}
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function userListNoPageByTenantId() {
+  return request({
+    url: '/system/user/userListNoPageByTenantId',
+    method: 'get'
+  })
+}
+
+// 鏌ヨ鐢ㄦ埛鍒楄〃
+export function userListNoPage() {
+  return request({
+    url: '/system/user/userListNoPage',
+    method: 'get'
+  })
+}
+// 閮ㄩ棬鍒楄〃
+export function userLoginFacotryList(params) {
+  return request({
+    url: '/userLoginFacotryList',
+    method: 'get',
+    params: params
+  })
+}

--
Gitblit v1.9.3