From 59c9fdfeecda48c774660b04fe84f5992caa1893 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 18 十月 2023 11:04:13 +0800
Subject: [PATCH] 编码规则管理-同时只能一条编码规则设置最大流水号

---
 Source/UBCS-WEB/src/views/code/code.vue   |    6 +++++-
 Source/UBCS-WEB/src/api/system/dept.js    |    7 ++-----
 Source/UBCS-WEB/src/views/system/user.vue |    2 +-
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/system/dept.js b/Source/UBCS-WEB/src/api/system/dept.js
index 1a40365..8e594f5 100644
--- a/Source/UBCS-WEB/src/api/system/dept.js
+++ b/Source/UBCS-WEB/src/api/system/dept.js
@@ -83,11 +83,8 @@
 
 export const updateUserStatus = (params) => {
   return request({
-    url: '/api/ubcs-user/updateUserStatus  ',
+    url: '/api/ubcs-user/updateUserStatus',
     method: 'post',
-    params:{
-      ...params
-    }
+    data: params
   })
 }
-
diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue
index 8fe7297..f26f0cc 100644
--- a/Source/UBCS-WEB/src/views/code/code.vue
+++ b/Source/UBCS-WEB/src/views/code/code.vue
@@ -3382,10 +3382,14 @@
     },
     // 鏈�澶ф祦姘村彿
     maxSerialNum() {
-      if (this.selectionList.length === 0) {
+      if (this.selectionList.length <= 0) {
         this.$message.warning("璇烽�夋嫨涓�鏉$紪鐮佽鍒欙紒");
         return;
       }
+      if(this.selectionList.length> 1){
+        this.$message.warning("鍙兘閫夋嫨涓�鏉$紪鐮佽鍒欙紒");
+        return;
+      }
       this.maxSerial.visible = true;
       this.maxSerial.ruleOid = this.selectionList[0]["oid"];
     },
diff --git a/Source/UBCS-WEB/src/views/system/user.vue b/Source/UBCS-WEB/src/views/system/user.vue
index c2adc42..2320aff 100644
--- a/Source/UBCS-WEB/src/views/system/user.vue
+++ b/Source/UBCS-WEB/src/views/system/user.vue
@@ -742,7 +742,7 @@
     }
   },
   created() {
-    updateUserStatus({userid:'1702600796324032513',status:'true'}).then(res=>{
+    updateUserStatus({userid:'1702600796324032513',status:true}).then(res=>{
       console.log(res)
     })
     this.selecload()

--
Gitblit v1.9.3