From d41ebea89ab7cace7678b8f4ecdbc563cba4762f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 八月 2021 18:20:51 +0800
Subject: [PATCH] 2021-08-26

---
 src/views/appmanage/index.jsx |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/src/views/appmanage/index.jsx b/src/views/appmanage/index.jsx
index 8deb437..983e632 100644
--- a/src/views/appmanage/index.jsx
+++ b/src/views/appmanage/index.jsx
@@ -767,20 +767,36 @@
   }
   
   submitCard = () => {
-    const { selectApp, visible } = this.state
+    const { selectApp, visible, applist } = this.state
 
     this.mobcardRef.handleConfirm().then(res => {
-      this.setState({
-        confirmloading: true
-      })
-
       let ID = ''
       if (visible === 'edit') {
         ID = selectApp.ID
       } else {
+        let lowerKei = res.kei_no.toLowerCase()
+        if (lowerKei === 'mob') {
+          notification.warning({
+            top: 92,
+            message: '搴旂敤缂栫爜涓嶅厑璁镐娇鐢╩ob锛�',
+            duration: 3
+          })
+          return
+        } else if (applist.filter(app => app.kei_no.toLowerCase() === lowerKei).length > 0) {
+          notification.warning({
+            top: 92,
+            message: '搴旂敤缂栫爜宸插瓨鍦紒',
+            duration: 3
+          })
+          return
+        }
         ID = md5(window.GLOB.appkey + res.kei_no)
       }
 
+      this.setState({
+        confirmloading: true
+      })
+
       let param = {
         func: 's_kei_addupt',
         ID: ID,

--
Gitblit v1.8.0