From 3a6b641fd48f7377fec66e31b069c472fac5ba60 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 25 十一月 2021 14:47:34 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml index f18f271..afc2f55 100644 --- a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml @@ -275,7 +275,7 @@ <input class="form-control" label="韬唤璇佸彿" name="IdCard" id="IdCard" labtype="txt" addvisible="true" editvisible="true" maxlength="18" reg="" ismust="true" type="text" value="@Model.IdCard" autocomplete="off"> </div> - <label class="text-right col-sm-1 col-md-1 control-label">涓撳璇佸彿</label> + <label class="text-right col-sm-1 col-md-1 control-label">涓撳璇佸彿<i class="red">*</i></label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> <input class="form-control" label="涓撳璇佸彿" name="CertiNumber" id="CertiNumber" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.CertiNumber"> </div> @@ -377,7 +377,7 @@ </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽1</label> + <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽1<i class="red">*</i></label> <div class="col-sm-2 col-md-2"> <input class="form-control" label="鑱旂郴鐢佃瘽1" name="Phone1" id="Phone1" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone1" autocomplete="off"> </div> @@ -912,14 +912,14 @@ toastr.warning("涓撳濮撳悕涓嶈兘涓虹┖"); return; }; - //if (Verify.isNull($("#Province").val()) || Verify.isNull($("#City").val()) ) { - // toastr.warning("鍖哄煙涓嶈兘涓虹┖"); - // return; - //} - //if ($("#IdCard").val() == '') { - // toastr.warning("韬唤璇佸彿涓嶈兘涓虹┖"); - // return; - //} + if ($.trim($("#Phone1").val()) == '') { + toastr.warning("鑱旂郴鐢佃瘽涓嶈兘涓虹┖"); + return; + } + if ($.trim($("#CertiNumber").val()) == '' || $.trim($("#CertiNumber").val()) == 'SC') { + toastr.warning("涓撳璇佸彿涓嶈兘涓虹┖"); + return; + } @@ -1113,7 +1113,10 @@ if (data.Result) { - if ($("#Province").val() != data.Remark) { + if (data.Remark == null || data.Remark == "") { + return; + } + if ($("#Province").val() != data.Remark ) { $("#Province").val(data.Remark); var sheng = $("#Province").val(); -- Gitblit v1.9.1