Browse Source

修改客户信息

liujiankang 7 years ago
parent
commit
6af067e680

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

@@ -154,7 +154,7 @@
                     <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                     <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                 </div>
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
-                    <button type="button" style="cursor:pointer; float: right;height: 31px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
+                    <button type="button" style="cursor:pointer; float: right;height: 31px;margin-bottom: 10px;" class="my-btn-search" id="contactButtonId" onclick="toAddDockedContactInfo();">保存</button></span>
                 </label>
                 </label>
             </div>
             </div>
             <div class="mt-20" style="margin: 20px;">
             <div class="mt-20" style="margin: 20px;">
@@ -238,7 +238,7 @@
                 <input type="text" class="input-text"  style="width:120px;margin-right: 0px;margin-bottom: 10px;"  placeholder="手动填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
                 <input type="text" class="input-text"  style="width:120px;margin-right: 0px;margin-bottom: 10px;"  placeholder="手动填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
             </div>
             </div>
             <label class="form-label col-2 col-sm-2" style="width:166px;padding:0 0;">
             <label class="form-label col-2 col-sm-2" style="width:166px;padding:0 0;">
-                <button type="button" style="cursor:pointer; float: right;height: 31px;" class="my-btn-search" onclick="toAddChannelSaleInfo();">保存</button>
+                <button type="button" style="cursor:pointer; float: right;height: 31px;" class="my-btn-search" id="channelSaleId" onclick="toAddChannelSaleInfo();">保存</button>
             </label>
             </label>
             <div class="formControls col-2 col-sm-2" style="width:120px; padding:0 0;margin-right: 15px;">
             <div class="formControls col-2 col-sm-2" style="width:120px; padding:0 0;margin-right: 15px;">
             </div>
             </div>
@@ -360,16 +360,24 @@
         </div>
         </div>
 
 
         <#--客户备注-->
         <#--客户备注-->
-        <div class="row cl" style="margin-bottom: 10px;">
+        <#--<div class="row cl" style="margin-bottom: 10px;">
             <label class="form-label col-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
             <label class="form-label col-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
-            <div style="float: left;margin-left: 10px;">
+            <div style="margin-left: 10px;">
                 <textarea name="customerRemarks" style="width: 690px;height: 100px;" id="customerRemarks" cols="" rows="" class="textarea"
                 <textarea name="customerRemarks" style="width: 690px;height: 100px;" id="customerRemarks" cols="" rows="" class="textarea"
                           placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" ></textarea>
                           placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" ></textarea>
+                <p class="textarea-numberbar" style="width: 690px;height: 100px;"><em class="textarea-length">0</em>/100</p>
+            </div>
+        </div>-->
+
+        <div class="row cl" style="margin-bottom: 10px;">
+            <label class="form-label col-xs-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
+            <div class="formControls col-xs-6 col-sm-6" style="margin-left: -5px;">
+                <textarea name="customerRemarks" id="customerRemarks" cols="" rows="" class="textarea"
+                          placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" ></textarea>
                 <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
                 <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
             </div>
             </div>
         </div>
         </div>
 
 
-
         <#--添加保存按钮-->
         <#--添加保存按钮-->
 
 
         <div  class="row cl">
         <div  class="row cl">
@@ -784,6 +792,10 @@
                 return;
                 return;
             }
             }
         }
         }
+        layer.tips('记得点击底部确认修改按钮哦', '#contactButtonId', {
+            tips: [3, '#3595CC'],
+            time: 3000
+        });
         //var operation = "删除";
         //var operation = "删除";
         var operation = "<a href='javascript:;' onclick='deleteContact(this)'>删除</a>";
         var operation = "<a href='javascript:;' onclick='deleteContact(this)'>删除</a>";
         //"<a href='javascript:;' onclick='del(this)'>删除</a>";
         //"<a href='javascript:;' onclick='del(this)'>删除</a>";
@@ -887,6 +899,10 @@
             layer.msg("供货价格长度超限", {icon:2, time: 3000});
             layer.msg("供货价格长度超限", {icon:2, time: 3000});
             return;
             return;
         }
         }
+        layer.tips('记得点击底部确认修改按钮哦', '#channelSaleId', {
+            tips: [2, '#3595CC'],
+            time: 3000
+        });
         var promotingProductsHtml = '<input type="hidden" value="'+promotingProducts+'">';
         var promotingProductsHtml = '<input type="hidden" value="'+promotingProducts+'">';
         //var operation = "删除";
         //var operation = "删除";
         var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";
         var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";

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

@@ -179,7 +179,7 @@
                     <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                     <input type="text" class="input-text"  style="width:140px;margin-right: 10px;"  placeholder="邮箱" id="contactEmail" name="contactEmail">
                 </div>
                 </div>
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
                 <label class="form-label col-2 col-sm-2" style="width:110px;text-align: right;">
-                    <button type="button" style="cursor:pointer; float: right;height: 31px;" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
+                    <button type="button" style="cursor:pointer; float: right;height: 31px;" id="contactButtonId" class="my-btn-search" onclick="toAddDockedContactInfo();">保存</button></span>
                 </label>
                 </label>
             </div>
             </div>
             <div class="row cl">
             <div class="row cl">
@@ -273,7 +273,7 @@
                 <input type="text" class="input-text"  style="width:110px;margin-right: 0;margin-bottom: 10px;"  placeholder="填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
                 <input type="text" class="input-text"  style="width:110px;margin-right: 0;margin-bottom: 10px;"  placeholder="填写供货价格" id="writeSupplyPrice" name="writeSupplyPrice">
             </div>
             </div>
             <label class="form-label col-2 col-sm-2" style="width:166px;padding:0 0;">
             <label class="form-label col-2 col-sm-2" style="width:166px;padding:0 0;">
-                <button type="button" style="cursor:pointer; float: right;height: 31px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddChannelSaleInfo();">保存</button>
+                <button type="button" style="cursor:pointer; float: right;height: 31px;margin-bottom: 10px;" class="my-btn-search" id="channelSaleId" onclick="toAddChannelSaleInfo();">保存</button>
             </label>
             </label>
             <div class="formControls col-2 col-sm-2" style="width:120px; padding:0 0;margin-right: 15px;">
             <div class="formControls col-2 col-sm-2" style="width:120px; padding:0 0;margin-right: 15px;">
 
 
@@ -502,13 +502,21 @@
         </#if>
         </#if>
 
 
         <#--客户备注-->
         <#--客户备注-->
-            <div class="row cl" style="margin-bottom: 10px;">
+            <#--<div class="row cl" style="margin-bottom: 10px;">
                 <label class="form-label col-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
                 <label class="form-label col-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
                 <div style="float: left;margin-left: 10px;">
                 <div style="float: left;margin-left: 10px;">
                 <textarea name="customerRemarks" style="width: 690px;height: 100px;" id="customerRemarks" cols="" rows="" class="textarea"
                 <textarea name="customerRemarks" style="width: 690px;height: 100px;" id="customerRemarks" cols="" rows="" class="textarea"
                           placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" >${customerBasicInfo.customerRemarks!''}</textarea>
                           placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" >${customerBasicInfo.customerRemarks!''}</textarea>
                     <p class="textarea-numberbar"><em class="textarea-length"><#if customerBasicInfo.customerRemarks??>${customerBasicInfo.customerRemarks?length} <#else>0</#if></em>/100</p>
                     <p class="textarea-numberbar"><em class="textarea-length"><#if customerBasicInfo.customerRemarks??>${customerBasicInfo.customerRemarks?length} <#else>0</#if></em>/100</p>
                 </div>
                 </div>
+            </div>-->
+            <div class="row cl" style="margin-bottom: 10px;">
+                <label class="form-label col-xs-2 col-sm-2" style="width: 110px;padding-right: 0;text-align: right;">客户备注:</label>
+                <div class="formControls col-xs-6 col-sm-6" style="margin-left: -5px;">
+                <textarea name="customerRemarks" id="customerRemarks" cols="" rows="" class="textarea"
+                          placeholder="客户备注,最多支持100字符" onKeyUp="$.Huitextarealength(this,100)" ></textarea>
+                    <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
+                </div>
             </div>
             </div>
 
 
         <#--添加保存按钮-->
         <#--添加保存按钮-->
@@ -921,6 +929,11 @@
                 return;
                 return;
             }
             }
         }
         }
+
+        layer.tips('记得点击底部确认修改按钮哦', '#contactButtonId', {
+            tips: [3, '#3595CC'],
+            time: 3000
+        });
         //var operation = "删除";
         //var operation = "删除";
         var operation = "<a href='javascript:;' onclick='deleteContact(this)'>删除</a>";
         var operation = "<a href='javascript:;' onclick='deleteContact(this)'>删除</a>";
         //"<a href='javascript:;' onclick='del(this)'>删除</a>";
         //"<a href='javascript:;' onclick='del(this)'>删除</a>";
@@ -1001,6 +1014,10 @@
             layer.msg("供货价格长度超限");
             layer.msg("供货价格长度超限");
             return;
             return;
         }
         }
+        layer.tips('记得点击底部确认修改按钮哦', '#channelSaleId', {
+            tips: [2, '#3595CC'],
+            time: 3000
+        });
         var promotingProductsHtml = '<input type="hidden" value="'+promotingProducts+'">';
         var promotingProductsHtml = '<input type="hidden" value="'+promotingProducts+'">';
 
 
         var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";
         var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";