From 43e741c8377b555f4e5ed287bee724e71a11540f Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 22 一月 2024 12:41:01 +0800
Subject: [PATCH] 期初余额报表:查询过滤报错“客户名称无效”问题解决

---
 WebTM/views/基础资料/公用基础资料/Gy_Employee_Add_Edit_.html |  224 ++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 192 insertions(+), 32 deletions(-)

diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Employee_Add_Edit_.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Employee_Add_Edit_.html"
index 51f8b80..201bb84 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Employee_Add_Edit_.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Employee_Add_Edit_.html"
@@ -75,17 +75,7 @@
                                                 </button>
                                             </div>
                                         </div>
-                                        <div class="layui-col-xs4 layui-inline">
-                                            <label class="layui-form-label">鑱屽姟</label>
-                                            <div class="layui-input-inline">
-                                                <input type="text" name="HDutyName" id="HDutyName" readonly class="layui-input" value="" style="float:left;width:150px;">
-                                                <input type="hidden" name="HDutyID" id="HDutyID" value="0">
-                                                <input type="hidden" name="HDutyNumber" id="HDutyNumber" value="">
-                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HDutyID-BT" style="width:40px;">
-                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
-                                                </button>
-                                            </div>
-                                        </div>
+                                        
 
                                     </div>
                                     <div class="layui-row">
@@ -449,7 +439,7 @@
                                         </div>
                                     </div>
                                     <div class="layui-row">
-                                        
+
                                         <div class="layui-col-xs4 layui-inline">
                                             <label class="layui-form-label">宀椾綅</label>
                                             <div class="layui-input-inline">
@@ -461,8 +451,17 @@
                                                 </button>
                                             </div>
                                         </div>
-                                    </div>
-                                    <div class="layui-row">
+                                        <div class="layui-col-xs4 layui-inline">
+                                            <label class="layui-form-label">鑱屽姟</label>
+                                            <div class="layui-input-inline">
+                                                <input type="text" name="HDutyName" id="HDutyName" readonly class="layui-input" value="" style="float:left;width:150px;">
+                                                <input type="hidden" name="HDutyID" id="HDutyID" value="0">
+                                                <input type="hidden" name="HDutyNumber" id="HDutyNumber" value="">
+                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HDutyID-BT" style="width:40px;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
                                         <div class="layui-col-xs4 layui-inline">
                                             <label class="layui-form-label">鐝粍</label>
                                             <div class="layui-input-inline">
@@ -474,7 +473,10 @@
                                                 </button>
                                             </div>
                                         </div>
-                                        <div class="layui-col-xs4 layui-inline">
+                                    </div>
+                                    <div class="layui-row">
+                                        
+                                        <!--<div class="layui-col-xs4 layui-inline">
                                             <label class="layui-form-label">璐濆+杈鹃儴闂�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" name="BSTDeptName" id="BSTDeptName" class="layui-input" value="" style="float:left;width:150px;">
@@ -484,7 +486,7 @@
                                                     <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                 </button>
                                             </div>
-                                        </div>
+                                        </div>-->
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs8 layui-inline">
@@ -533,7 +535,7 @@
                                         <div class="layui-col-xs8 layui-inline">
                                             <label class="layui-form-label" style="width: 12.5%;">韬唤璇�</label>
                                             <div class="layui-input-block">
-                                                <input class="layui-input" name="HIDCard" id="HIDCard" autocomplete="off" style=" width: 75%;">
+                                                <input class="layui-input" name="HIDCard" id="HIDCard"  autocomplete="off" style=" width: 75%;">
                                             </div>
                                         </div>
                                     </div>
@@ -579,7 +581,7 @@
                                         <div class="layui-col-xs4 layui-inline">
                                             <label class="layui-form-label">杞彮璋冧紤鏍囧織</label>
                                             <div class="layui-input-inline">
-                                                <input type="checkbox" name="checkboxHShiftFlag" id="checkboxHShiftFlag" lay-skin="primary" lay-filter="checkboxHShiftFlag" value="true" title="鏄惁璋冧紤">
+                                                <input type="checkbox" name="checkboxHShiftFlag" id="checkboxHShiftFlag" lay-skin="primary" lay-filter="checkboxHShiftFlag" value="true" title="鏄惁杞彮璋冧紤">
                                                 <input type="hidden" value="false" name="HShiftFlag" id="HShiftFlag">
                                             </div>
                                         </div>
@@ -617,20 +619,6 @@
                                             <label class="layui-form-label" style="width: 12.5%;">鍖荤枟淇濋櫓</label>
                                             <div class="layui-input-block">
                                                 <input class="layui-input" name="HMedicare" id="HMedicare" autocomplete="off" style=" width: 75%;">
-                                            </div>
-                                        </div>
-                                    </div>
-                                    <div class="layui-row">
-                                        <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width: 12.5%;">鍏昏�佷繚闄�</label>
-                                            <div class="layui-input-block">
-                                                <input class="layui-input" name="HInsurance" id="HInsurance" autocomplete="off" style=" width: 75%;">
-                                            </div>
-                                        </div>
-                                        <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width: 12.5%;">澶变笟淇濋櫓</label>
-                                            <div class="layui-input-block">
-                                                <input class="layui-input" name="HDrydock" id="HDrydock" autocomplete="off" style=" width: 75%;">
                                             </div>
                                         </div>
                                     </div>
@@ -1223,6 +1211,163 @@
                     layer.msg("璇烽�夋嫨閮ㄩ棬锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                     return;
                 }
+
+                var HAge = $('#HAge').val();
+                if (HAge.substring(HAge.length - 1, HAge.length) == ".") {
+                    layer.msg("骞撮緞鐨勭粨灏句笉鑳芥槸.锛�");
+                    return;
+                } else {
+                    var ref = /^[0-9]+$/;
+                    if (!ref.test(HAge)) {
+                        layer.msg("骞撮緞璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                        return;
+                    }
+                }
+
+                var HContractYear = $('#HContractYear').val();
+                if (HContractYear.substring(HContractYear.length - 1, HContractYear.length) == ".") {
+                    layer.msg("鍚堝悓鏈熼檺鐨勭粨灏句笉鑳芥槸.锛�");
+                    return;
+                } else {
+                    var ref = /^[0-9]+$/;
+                    if (!ref.test(HContractYear)) {
+                        layer.msg("鍚堝悓鏈熼檺璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                        return;
+                    }
+                }
+
+                //var HInsuranceSubsidy = $('#HInsuranceSubsidy').val();
+                //if (HInsuranceSubsidy.substring(HInsuranceSubsidy.length - 1, HInsuranceSubsidy.length) == ".") {
+                //    layer.msg("淇濋櫓琛ヨ创鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HInsuranceSubsidy)) {
+                //        layer.msg("淇濋櫓琛ヨ创璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HOtherDeduct3 = $('#HOtherDeduct3').val();
+                //if (HOtherDeduct3.substring(HOtherDeduct3.length - 1, HOtherDeduct3.length) == ".") {
+                //    layer.msg("鍏朵粬鎵f3鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HOtherDeduct3)) {
+                //        layer.msg("鍏朵粬鎵f3璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HMedicare = $('#HMedicare').val();
+                //if (HMedicare.substring(HMedicare.length - 1, HMedicare.length) == ".") {
+                //    layer.msg("鍖荤枟淇濋櫓鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HMedicare)) {
+                //        layer.msg("鍖荤枟淇濋櫓璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HInsurance = $('#HInsurance').val();
+                //if (HInsurance.substring(HInsurance.length - 1, HInsurance.length) == ".") {
+                //    layer.msg("鍏昏�佷繚闄╃殑缁撳熬涓嶈兘鏄�.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HMedicare)) {
+                //        layer.msg("鍖荤枟淇濋櫓璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HDrydock = $('#HDrydock').val();
+                //if (HDrydock.substring(HDrydock.length - 1, HDrydock.length) == ".") {
+                //    layer.msg("澶变笟淇濋櫓鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HDrydock)) {
+                //        layer.msg("澶变笟淇濋櫓璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HBasePay = $('#HBasePay').val();
+                //if (HBasePay.substring(HBasePay.length - 1, HBasePay.length) == ".") {
+                //    layer.msg("鍩烘湰宸ヨ祫鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HDrydock)) {
+                //        layer.msg("鍩烘湰宸ヨ祫璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HExamLevPostMoney = $('#HExamLevPostMoney').val();
+                //if (HExamLevPostMoney.substring(HExamLevPostMoney.length - 1, HExamLevPostMoney.length) == ".") {
+                //    layer.msg("鑱屽姟鑰冩牳宸ヨ祫鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HExamLevPostMoney)) {
+                //        layer.msg("鑱屽姟鑰冩牳宸ヨ祫璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HExamRate = $('#HExamRate').val();
+                //if (HExamRate.substring(HExamRate.length - 1, HExamRate.length) == ".") {
+                //    layer.msg("甯︾彮绯绘暟鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HExamRate)) {
+                //        layer.msg("甯︾彮绯绘暟璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HHighestPay = $('#HHighestPay').val();
+                //if (HHighestPay.substring(HHighestPay.length - 1, HHighestPay.length) == ".") {
+                //    layer.msg("鏈�楂樺伐璧勭殑缁撳熬涓嶈兘鏄�.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HHighestPay)) {
+                //        layer.msg("鏈�楂樺伐璧勮杈撴纭叆鏁板瓧锛�");
+                //        return;
+                //    }
+                //}
+
+                //var HOverPayRate = $('#HOverPayRate').val();
+                //if (HOverPayRate.substring(HOverPayRate.length - 1, HOverPayRate.length) == ".") {
+                //    layer.msg("瓒呴姣旂巼鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HOverPayRate)) {
+                //        layer.msg("瓒呴姣旂巼璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
+                //var HLeftMoneyRate = $('#HLeftMoneyRate').val();
+                //if (HLeftMoneyRate.substring(HLeftMoneyRate.length - 1, HLeftMoneyRate.length) == ".") {
+                //    layer.msg("鍓╀綑宸ヨ祫鐨勭粨灏句笉鑳芥槸.锛�");
+                //    return;
+                //} else {
+                //    var ref = /^[0-9]+\.?[0-9]*$/;
+                //    if (!ref.test(HLeftMoneyRate)) {
+                //        layer.msg("鍓╀綑宸ヨ祫璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                //        return;
+                //    }
+                //}
+
                 //if ($("#HGroupName").val() == 0) {
                 //    layer.msg("璇烽�夋嫨鐝粍锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                 //    return;
@@ -1278,6 +1423,21 @@
                     layer.msg("閮ㄩ棬涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                     return Result = false;
                 }
+
+                //if ($("#HIDCard").val() == '' || $("#HIDCard").val() == null) {
+                //    layer.msg("韬唤璇佷笉鑳戒负绌猴紒", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                //    return Result = false;
+                //}
+
+                //if ($("#HBankAccount").val() == '' || $("#HBankAccount").val() == null) {
+                //    layer.msg("閾惰璐︽埛涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                //    return Result = false;
+                //}
+
+                
+
+
+                
                 //if ($("#HGroupName").val() == '' || $("#HGroupName").val() == null) {
                 //    layer.msg("鐝粍涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                 //    return Result = false;

--
Gitblit v1.9.1