|
@@ -134,10 +134,10 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1">客户信息:</label>
|
|
|
<div class="formControls col-2 col-sm-2 skin-minimal">
|
|
|
- <input type="text" class="input-text" placeholder="用户姓名" id="customerName" name="customerName" value="">
|
|
|
+ <input type="text" class="input-text trim_input" placeholder="用户姓名" id="customerName" name="customerName" value="">
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2 skin-minimal">
|
|
|
- <input type="text" class="input-text" placeholder="用户电话" id="customerTel" name="customerTel" value="">
|
|
|
+ <input type="text" class="input-text associated-phone" placeholder="用户电话" id="customerTel" name="customerTel" value="">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -161,7 +161,7 @@
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<div class="clearfix">
|
|
|
- <input type="text" placeholder="搜索关键词" class="input-text ac_input" name="questionIdMsg" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
|
|
|
+ <input type="text" placeholder="搜索关键词" class="input-text ac_input trim_input" name="questionIdMsg" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -182,7 +182,7 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" >
|
|
|
+ <input type="text" class="input-text trim_input" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" >
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -530,10 +530,10 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>被回访人:</label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="*1-16" errormsg="回访人姓名格式不正确!" >
|
|
|
+ <input type="text" class="input-text trim_input" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="*1-16" errormsg="回访人姓名格式不正确!" >
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="n11-12" ignore="ignore" errormsg="回访人手机号码格式不正确!">
|
|
|
+ <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" ignore="ignore" errormsg="回访人手机号码格式不正确!">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
@@ -610,6 +610,10 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
+ $(function(){
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
/*是否是修改页面*/
|
|
|
var isUpdate = false;
|
|
|
/*是否需要回访 只有修改页面才会使用*/
|
|
@@ -740,13 +744,16 @@
|
|
|
|
|
|
/* 监听手机号 失去焦点时 将其他手机号码未填的 补充上去 */
|
|
|
$(".associated-phone").blur(function (){
|
|
|
- var phone = $(this).val();
|
|
|
- $(".associated-phone").each(function(){
|
|
|
- var ph = $(this).val();
|
|
|
- if(ph == null || ph == "" || typeof(ph) == undefined ){
|
|
|
- $(this).val(phone);
|
|
|
- }
|
|
|
- })
|
|
|
+ var phone = $.trim($(this).val());
|
|
|
+ $(this).val(phone);
|
|
|
+ if(phone.length == 11 && phoneReg.test(phone)){
|
|
|
+ $(".associated-phone").each(function(){
|
|
|
+ var ph = $(this).val();
|
|
|
+ if(ph == null || ph == "" || typeof(ph) == "undefined" || ph.length != 11){
|
|
|
+ $(this).val(phone);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
})
|