From 759a1ae509626ffa422357b78a10ae7b41821cf5 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 23 一月 2025 11:10:29 +0800 Subject: [PATCH] 保存客户验证修改 --- CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx index edf6046..2493e5b 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/CorporateClientsEdit.aspx @@ -196,7 +196,7 @@ <td class="ali02" colspan="6"> - <asp:Button ID="btn_Submit" Text="淇濆瓨" runat="server" OnClick="btn_Submit_Config" /> + <asp:Button ID="btn_Submit" Text="淇濆瓨" runat="server" OnClick="btn_Submit_Config" OnClientClick="if(SubmitOnSubmit())return true;else return false;" /> <% if (string.IsNullOrEmpty(Shifouwanjie) || Shifouwanjie == "2") {%> <asp:Button ID="btn_wanjie" Text="瀹岀粨" runat="server" OnClientClick="if(removeOnSubmit())return true;else return false;" OnClick="btn_Submit_Wanjie" /> <% }else if (Shifouwanjie == "1") { %> @@ -510,6 +510,24 @@ }); + function SubmitOnSubmit(){ + + if ($("#selSourcesInfoId").val() == "452" && $("#txtJigoudaima").val() == "") { + alertMsg("瀹㈡埛鏉ユ簮涓烘斂搴滈噰璐紝璇峰~鍐欐満鏋勪唬鐮�"); + return false; + } + if ($("#selectProvince").val() == "" && $("#selectCity").val() == "" && $("#selectCounty").val() == "") { + alertMsg("璇烽�夋嫨鎵�鍦ㄥ尯鍩�"); + return false; + } + + return true; + + + + } + + function removeOnSubmit() { if (confirm("纭瀹岀粨瀹㈡埛锛�")) -- Gitblit v1.9.1