From 92e00dafd06ec748b51f565c7a4c98986a618de9 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期六, 03 六月 2023 02:01:40 +0800
Subject: [PATCH] 新增加分账功能

---
 management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js
index 6eb829c..c50136b 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice_info.js
@@ -15,6 +15,10 @@
             validators: {
                 notEmpty: {
                     message: '负责人姓名不能为空'
+                },
+                regexp: {
+                    regexp:  /^[\u4E00-\u9FA5A-Za-z\s]+$/,
+                    message: '不能输入特殊字符和数字'
                 }
             }
         },
@@ -43,6 +47,35 @@
                 }
             }
         },
+        account: {
+            validators: {
+                notEmpty: {
+                    message: '登录账号不能为空'
+                }
+            }
+        },
+        password: {
+            validators: {
+                notEmpty: {
+                    message:  '登录密码不能为空'
+                },
+                identical: {
+                    field: 'rePassword',
+                    message: '两次密码不一致'
+                },
+            }
+        },
+        rePassword: {
+            validators: {
+                notEmpty: {
+                    message: '密码不能为空'
+                },
+                identical: {
+                    field: 'password',
+                    message: '两次密码不一致'
+                },
+            }
+        }
     }
 };
 
@@ -113,6 +146,8 @@
         .set('area')
         .set('areaId')
     .set('status')
+    .set('account')
+    .set('password')
     .set('createTime');
 }
 
@@ -131,7 +166,7 @@
     //提交信息
     var ajax = new $ax(Feng.ctxPath + "/tBranchOffice/add", function(data){
         if(data.code == 500){
-            Feng.error("添加失败!" + data.message + "!");
+            Feng.error(data.message);
             return false;
         }else {
             Feng.success("添加成功!");

--
Gitblit v1.7.1