Bläddra i källkod

修改客户信息

liujiankang 7 år sedan
förälder
incheckning
3ef6a3a1d6

+ 7 - 7
watero-rst-web/src/main/webapp/WEB-INF/views/customer/customer_basic_list.ftl

@@ -30,7 +30,8 @@
     </nav>
 		<div class="text-c" style="margin-top: 20px;">
 			<form action="${path}/admin/customerBasic/listCustomerBasic" method="post">
-					<select class="my-select" name="isLookAll">
+                    <button type="button"  class="my-btn-search" style="margin-right: 20px;" onclick="customerAdd()">新增</button>
+					<select class="my-select" name="isLookAll" style="width: 130px">
 					<#if isLookAll??>
 						<option value ="1" <#if isLookAll == 1>selected</#if>>查看全部客户</option>
 						<option value ="2" <#if isLookAll == 2>selected</#if>>只看我的客户</option>
@@ -39,7 +40,7 @@
 						<option value ="2">只看我的客户</option>
 					</#if>
 					</select>
-                    <select class="my-select" name="customerType">
+                    <select class="my-select" name="customerType" style="width: 130px">
                         <option value ="">所有客户类型</option>
                         <#if customerType??>
                          <option value ="1" <#if customerType == 1>selected</#if>>个人</option>
@@ -49,7 +50,7 @@
                             <option value ="2">企业</option>
                         </#if>
                     </select>
-                    <select class="my-select" name="cooperativeState">
+                    <select class="my-select" name="cooperativeState" style="width: 130px">
                         <option value ="">合作状态</option>
                     <#if cooperativeState??>
                         <option value ="1" <#if cooperativeState == 1>selected</#if>>意向合作</option>
@@ -61,11 +62,10 @@
                         <option value ="3">停止合作</option>
                     </#if>
                     </select>
-                    <input class="my-input" type="text" name="customerName" value="${customerName!''}" placeholder="请输入客户名称"/>
-                    <input class="my-input" type="text" name="contactPhone" value="${contactPhone!''}" placeholder="请输入客户联系人电话"/>
-                    <input class="my-input" type="text" name="contactEmail" value="${contactEmail!''}" placeholder="请输入客户联系人邮箱"/>
+                    <input class="my-input" type="text" name="customerName" style="width: 100px;" value="${customerName!''}" placeholder="请输入客户名称"/>
+                    <input class="my-input" type="text" name="contactPhone" style="width: 100px;" value="${contactPhone!''}" placeholder="请输入客户联系人电话"/>
+                    <input class="my-input" type="text" name="contactEmail" style="width: 100px;" value="${contactEmail!''}" placeholder="请输入客户联系人邮箱"/>
 					<button type="submit" style="cursor:pointer; " class="my-btn-search">搜索</button>
-					<button type="button"  class="my-btn-search" onclick="customerAdd()">新增</button>
 			</form>
 		</div>
 		<div class="mt-20" style="margin: 20px;">

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

@@ -139,19 +139,19 @@
             <div class="row cl">
                 <label class="form-label col-2 col-sm-2" style="width:80px;text-align: right;"><span class="c-red">*</span>姓名:</label>
                 <div class="formControls col-2 col-sm-2" style="width:110px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px; margin-bottom: 10px;" placeholder="联系人姓名" id="contactName" name="contactName">
+                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;" placeholder="联系人姓名" id="contactName" name="contactName">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:80px;text-align: right;"><span class="c-red">*</span>电话:</label>
                 <div class="formControls col-2 col-sm-2" style="width:110px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;margin-bottom: 10px;"  placeholder="联系人电话" id="contactPhone" name="contactPhone">
+                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;"  placeholder="联系人电话" id="contactPhone" name="contactPhone">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:120px;text-align: right;"><span class="c-red">*</span>职位/身份:</label>
                 <div class="formControls col-2 col-sm-2" style="width:140px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;margin-bottom: 10px;"  placeholder="职位或身份" id="contactType" name="contactType">
+                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="职位或身份" id="contactType" name="contactType">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:120px;text-align: right;"><span class="c-red">*</span>联系邮箱:</label>
                 <div class="formControls col-2 col-sm-2" style="width:140px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;margin-bottom: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
+                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
                     <button type="button" style="cursor:pointer; float: right;height: 35px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
@@ -236,7 +236,7 @@
             <label class="form-label col-2 col-sm-2" style="width:110px;"></label>
             <label class="form-label col-2 col-sm-2" style="width:110px;padding:0 0;margin-right: 15px;"></label>
             <label class="form-label col-2 col-sm-2" style="width:166px;padding:0 0;">
-                <button type="button" style="cursor:pointer; float: right;height: 35px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddChannelSaleInfo();">保存</button>
+                <button type="button" style="cursor:pointer; float: right;height: 35px;" class="my-btn-search" onclick="toAddChannelSaleInfo();">保存</button>
             </label>
             <div class="formControls col-2 col-sm-2" style="width:120px; padding:0 0;margin-right: 15px;">
             </div>
@@ -945,7 +945,7 @@
             layer.msg("客户名称长度超限", {icon:2, time: 3000});
             return;
         }
-        if(getByteLen(customerBasicInfo.customerIndustry) > 20){
+        if(getByteLen(customerBasicInfo.customerIndustry) > 30){
             layer.msg("客户行业长度超限", {icon:2, time: 3000});
             return;
         }

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

@@ -164,22 +164,22 @@
             <div class="row cl">
                 <label class="form-label col-2 col-sm-2" style="width:80px;text-align: right;"><span class="c-red">*</span>姓名:</label>
                 <div class="formControls col-2 col-sm-2" style="width:110px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px; margin-bottom: 10px;" placeholder="联系人姓名" id="contactName" name="contactName">
+                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;" placeholder="联系人姓名" id="contactName" name="contactName">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:80px;text-align: right;"><span class="c-red">*</span>电话:</label>
                 <div class="formControls col-2 col-sm-2" style="width:110px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;margin-bottom: 10px;"  placeholder="联系人电话" id="contactPhone" name="contactPhone">
+                    <input type="text" class="input-text"  style="width:100px;margin-right: 10px;"  placeholder="联系人电话" id="contactPhone" name="contactPhone">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:120px;text-align: right;"><span class="c-red">*</span>职位/身份:</label>
                 <div class="formControls col-2 col-sm-2" style="width:140px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;margin-bottom: 10px;"  placeholder="职位或身份" id="contactType" name="contactType">
+                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="职位或身份" id="contactType" name="contactType">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:120px;text-align: right;"><span class="c-red">*</span>联系邮箱:</label>
                 <div class="formControls col-2 col-sm-2" style="width:140px;padding:0 0;">
-                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;margin-bottom: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
+                    <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
-                    <button type="button" style="cursor:pointer; float: right;height: 35px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
+                    <button type="button" style="cursor:pointer; float: right;height: 35px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
                 </label>
             </div>
             <div class="row cl">
@@ -1048,7 +1048,7 @@
             layer.msg("客户名称长度超限");
             return;
         }
-        if(getByteLen(customerBasicInfo.customerIndustry) > 20){
+        if(getByteLen(customerBasicInfo.customerIndustry) > 30){
             layer.msg("客户行业长度超限");
             return;
         }