Explorar el Código

添加客户基本信息

dujinyan hace 7 años
padre
commit
c68d8b0d48

+ 14 - 2
watero-rst-web/src/main/webapp/WEB-INF/views/customer/custome_basic_detail.ftl

@@ -247,7 +247,13 @@
             </div>
         <#else>
             <div class="row cl">
-                <label class="form-label col-2 col-sm-2" style="padding:0 0;text-align: center;">无付款/退款信息</label>
+                <label class="form-label col-1 col-sm-1"></label>
+            </div>
+            <div class="row cl">
+                <label class="form-label col-1 col-sm-1"></label>
+                <div class="formControls col-4 col-sm-4">
+                    <label>无付款/退款信息</label>
+                </div>
             </div>
         </#if>
 
@@ -300,7 +306,13 @@
         </div>
         <#else>
             <div class="row cl">
-                <label class="form-label col-2 col-sm-2" style="padding:0 0;text-align: center;"> 不需开票</label>
+                <label class="form-label col-1 col-sm-1"></label>
+            </div>
+            <div class="row cl">
+                <label class="form-label col-1 col-sm-1"></label>
+                <div class="formControls col-4 col-sm-4">
+                    <label>不需开票</label>
+                </div>
             </div>
         </#if>
         <div class="row cl">

+ 6 - 5
watero-rst-web/src/main/webapp/WEB-INF/views/customer/save_customer_info.ftl

@@ -1014,7 +1014,8 @@
         //var channelSaleInfoListJson = $("#channelSaleInfoJson").val(JSON.stringify(channelSaleInfoList));
         //付款/退款信息
         var billingInfo = {};
-        if(customerBasicInfo.cooperativeState != "1"){
+        if(customerBasicInfo.cooperativeState != "1")
+            billingInfo.accountType = $("input[name='accountType']:checked").val();
             billingInfo.accountOpeningBranch = $("[name='billAccountOpeningBranch']").val();
             billingInfo.accountName = $("[name='accountName']").val();
             billingInfo.accountNum = $("[name='accountNum']").val();
@@ -1051,11 +1052,11 @@
             }else{
                 var reg =  /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})$/
                 if(!reg.test(billingInfo.receivablesPhone)){
-                    layer.msg("请填写正确的手机号!", {icon: 5, time: 3000});
+                    layer.msg("请填写正确的收款人手机号!", {icon: 5, time: 3000});
                     return;
-                }
             }
-        }
+         }
+
         //开票信息
         var ticketOpeningInfo = {};
         var isOpenTicket = $("input[name='isOpenTicket']:checked").val();
@@ -1102,7 +1103,7 @@
                 }else{
                     var reg =  /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})$/
                     if(!reg.test(ticketOpeningInfo.ticketOpeningPhone)){
-                        layer.msg("请填写正确的手机号码!", {icon: 5, time: 3000});
+                        layer.msg("请填写正确的开票电话!", {icon: 5, time: 3000});
                         return;
                     }
                 }