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 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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"];
     },

--
Gitblit v1.9.3