|
@@ -69,11 +69,11 @@
|
|
|
<div class="pd-20 cl">
|
|
|
<form action="${path}/admin/customer/save_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
|
|
|
|
|
|
+ <input type="hidden" id="customerId" name="customerId" value="${customerInfo.customerId!''}">
|
|
|
<input type="hidden" id="customerName" name="customerName" value="">
|
|
|
<input type="hidden" id="customerTel" name="customerTel" value="">
|
|
|
|
|
|
<div class="row cl">
|
|
|
-
|
|
|
<label class="form-label col-3">
|
|
|
<div class="tit-2">客诉基本信息</div>
|
|
|
</label>
|
|
@@ -84,6 +84,9 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>跟进客服:</label>
|
|
|
<div class="formControls col-4 col-sm-4"> <span class="select-box" style=" width: 625px;">
|
|
|
<select name="adminId" id="adminId" class="select">
|
|
|
+ <#list adminList as admin>
|
|
|
+ <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId == admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
|
|
|
+ </#list>
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -92,18 +95,18 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>来源入口:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-1" name="customerSourceType" value="1" >
|
|
|
+ <input type="radio" id="tel-1" name="customerSourceType" value="1" <#if customerInfo.customerSourceType == 1 >checked</#if>>
|
|
|
<label for="tel-1">400电话</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-2" name="customerSourceType" value="2" checked>
|
|
|
+ <input type="radio" id="tel-2" name="customerSourceType" value="2" <#if customerInfo.customerSourceType == 2 >checked</#if>>
|
|
|
<label for="tel-2">微信公众号</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-3" name="customerSourceType" value="3">
|
|
|
+ <input type="radio" id="tel-3" name="customerSourceType" value="3" <#if customerInfo.customerSourceType == 3 >checked</#if>>
|
|
|
<label for="tel-3">其他</label>
|
|
|
- <input type="text" style="width: 321px;margin-left: 10px; display: none;" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
|
|
|
- <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource">
|
|
|
+ <input type="text" style="width: 321px;margin-left: 10px; <#if customerInfo.customerSourceType != 3 >display: none;</#if>" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
|
|
|
+ <input type="hidden" value="${customerInfo.customerSource!''}" placeholder="" id="customerSource" name="customerSource" >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -111,11 +114,11 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" >
|
|
|
+ <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" <#if customerInfo.customerCounselType == 1 >checked</#if>>
|
|
|
<label for="customer-type-1">售前咨询</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" checked>
|
|
|
+ <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" <#if customerInfo.customerCounselType == 2 >checked</#if>>
|
|
|
<label for="customer-type-2">售后咨询</label>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -125,14 +128,12 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
|
|
|
<input type="hidden" id="typeCompany" name="typeCompany" value="">
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal" id="produceTypeHtml">
|
|
|
- <#--<div class="radio-box">
|
|
|
- <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
|
|
|
- <label for="tel-3">净水机</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
|
|
|
- <label for="tel-4">冲奶机</label>
|
|
|
- </div>-->
|
|
|
+ <#list typeList as type>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="produceType-${type_index}" name="produceType" value="${type.typeId!''}" <#if customerInfo.typeId == type.typeId>checked</#if> >
|
|
|
+ <label for="produceType-${type_index}">${type.typeName!''}</label>
|
|
|
+ </div>
|
|
|
+ </#list>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -141,16 +142,18 @@
|
|
|
<div class="formControls col-2 col-sm-2"> <span class="select-box">
|
|
|
<select name="complaintId" class="select">
|
|
|
<option value="">请选择问题分类</option>
|
|
|
- <#--<option value="0">使用操作</option>-->
|
|
|
- <#--<option value="1">使用操作</option>-->
|
|
|
+ <#list complaintTypeInfoList as complaintTypeInfo>
|
|
|
+ <option value="${complaintTypeInfo.complaintId}" <#if complaintQuestionInfo.complaintId == complaintTypeInfo.complaintId>selected="selected"</#if> >${complaintTypeInfo.complaintClassName}</option>
|
|
|
+ </#list>
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2"> <span class="select-box">
|
|
|
<select name="smallClassId" id="smallClassId" class="select">
|
|
|
<option value="">请选择问题分类</option>
|
|
|
- <#--<option value="0">使用操作制水出水</option>
|
|
|
- <option value="1">使用操作制水出水</option>-->
|
|
|
+ <#list complaintSmallClassInfoList as complaintSmallClassInfo>
|
|
|
+ <option value="${complaintSmallClassInfo.smallClassId}" <#if complaintQuestionInfo.smallClassId == complaintSmallClassInfo.smallClassId>selected="selected"</#if>>${complaintSmallClassInfo.smallClassName}</option>
|
|
|
+ </#list>
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -177,7 +180,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" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" value="" >
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -188,7 +191,7 @@
|
|
|
<span>问题描述详情,内部使用,不会对外公布。</span>
|
|
|
<script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
|
|
|
</script>
|
|
|
- <input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
|
+ <input type="hidden" id="describeHandleDesc" name="describeHandleDesc" value="">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -204,7 +207,7 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="p-phone" name="">
|
|
|
+ <input type="text" class="input-text associated-phone" value="${customerInfo.customerTel!''}" placeholder="请输入手机号" id="p-phone" name="">
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2" style="width: 10%">
|
|
|
<input type="button" class="btn btn-primary" value="发送问题回复给用户" onclick="sendPhone('p','p-msg');">
|
|
@@ -235,31 +238,31 @@
|
|
|
<label class="form-label col-1 col-sm-1">处理类型:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box" id="solved">
|
|
|
- <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" >
|
|
|
+ <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" <#if customerInfo.customerIsSolve == 1 >checked</#if> >
|
|
|
<label for="customer-process-1">已解决</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="noSolved">
|
|
|
- <input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
|
|
|
+ <input type="radio" id="customer-process-2" value="2" name="customerIsSolve" <#if customerInfo.customerIsSolve == 2 >checked</#if> >
|
|
|
<label for="customer-process-2">未解决</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="renewed" style="display: none">
|
|
|
- <input type="radio" id="customer-process-3" value="3" name="customerIsSolve" checked>
|
|
|
+ <input type="radio" id="customer-process-3" value="3" name="customerIsSolve" <#if customerInfo.customerIsSolve == 3 >checked</#if> >
|
|
|
<label for="customer-process-3">换新</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="maintain" style="display: none">
|
|
|
- <input type="radio" id="customer-process-4" value="4" name="customerIsSolve" >
|
|
|
+ <input type="radio" id="customer-process-4" value="4" name="customerIsSolve" <#if customerInfo.customerIsSolve == 4 >checked</#if> >
|
|
|
<label for="customer-process-4">维修</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="reissue" style="display: none">
|
|
|
- <input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
|
|
|
+ <input type="radio" id="customer-process-5" value="5" name="customerIsSolve" <#if customerInfo.customerIsSolve == 5 >checked</#if> >
|
|
|
<label for="customer-process-5">补发</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="backGoods" style="display: none">
|
|
|
- <input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
|
|
|
+ <input type="radio" id="customer-process-6" value="6" name="customerIsSolve" <#if customerInfo.customerIsSolve == 6 >checked</#if> >
|
|
|
<label for="customer-process-6">退货</label>
|
|
|
</div>
|
|
|
<div class="radio-box" id="noReasonBack" style="display: none">
|
|
|
- <input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
|
|
|
+ <input type="radio" id="customer-process-7" value="7" name="customerIsSolve" <#if customerInfo.customerIsSolve == 7 >checked</#if> >
|
|
|
<label for="customer-process-7">无理由退货</label>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -281,7 +284,8 @@
|
|
|
<div class="row cl" id="orderHead" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>订单信息:</label>
|
|
|
<div class="formControls col-1 col-sm-1">
|
|
|
- <button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>
|
|
|
+
|
|
|
+ <#--<button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="order" style="display: none;">
|
|
@@ -289,8 +293,10 @@
|
|
|
<div class="formControls col-9 col-sm-9 text-c">
|
|
|
<table class="table table-border table-bg table-bordered">
|
|
|
<tr>
|
|
|
- <th style="text-align: center;">销售</th>
|
|
|
- <th style="text-align: center;">订单号</th>
|
|
|
+ <th style="text-align: center;">销售公司</th>
|
|
|
+ <th style="text-align: center;">店铺名称</th>
|
|
|
+ <th style="text-align: center;">Efast订单号</th>
|
|
|
+ <th style="text-align: center;">交易号</th>
|
|
|
<th style="text-align: center;">姓名</th>
|
|
|
<th style="text-align: center;">电话</th>
|
|
|
<th style="text-align: center;">订单金额</th>
|
|
@@ -298,12 +304,24 @@
|
|
|
<th style="text-align: center;">购买日期</th>
|
|
|
</tr>
|
|
|
<tr id="showOrder">
|
|
|
- <td style="text-align: center;" colspan="7">暂未选择订单</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.companyName}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.storeName}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.salesOrderId}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.salesDealCode}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.salesAddressName}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.salesAddressTel}</td>
|
|
|
+ <td style="text-align: center;">${salesOrder.salesPayMoney}</td>
|
|
|
+ <td style="text-align: center;">
|
|
|
+ <#list salesOrder.salesOrderItemList as salesOrderItem>
|
|
|
+ ${salesOrderItem.itemProductName}* ${salesOrderItem.itemNum}<br>
|
|
|
+ </#list>
|
|
|
+ </td>
|
|
|
+ <td style="text-align: center;">${(salesOrder.salesPayTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
- <input type="hidden" id="companyId" name="companyId" value="" >
|
|
|
- <input type="hidden" id="storeId" name="storeId" value="" >
|
|
|
- <input type="hidden" id="orderId" name="salesId" value="" >
|
|
|
+ <input type="hidden" id="companyId" name="companyId" value="${salesOrder.salesCompanyId}" >
|
|
|
+ <input type="hidden" id="storeId" name="storeId" value="${salesOrder.salesStoreId}" >
|
|
|
+ <input type="hidden" id="orderId" name="salesId" value="${salesOrder.salesId}" >
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -315,13 +333,13 @@
|
|
|
<div class="row cl" id="recipientInfo" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="/^[\u4e00-\u9fa5]{1,20}$/" errormsg="联系人格式不正确!" >
|
|
|
+ <input type="text" class="input-text" value="${customerCommon.relationBackName}" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="/^[\u4e00-\u9fa5]{1,20}$/" errormsg="联系人格式不正确!" >
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
|
+ <input type="text" class="input-text" value="${customerCommon.relationBackTel}" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2" id="postageAccount">
|
|
|
- <input type="text" class="input-text" value="" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
|
|
|
+ <input type="text" class="input-text" value="${customerCommon.relationAlipay!''}" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
@@ -330,6 +348,7 @@
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<span class="select-box">
|
|
|
<select id="province" class="select" name="provinceNumber">
|
|
|
+
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -352,7 +371,7 @@
|
|
|
<div class="row cl" id="recipientAddressText" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" datatype="*" errormsg="收货地址不正确!" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)"></textarea>
|
|
|
+ <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" datatype="*" errormsg="收货地址不正确!" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)">${customerCommon.relationSendAddress!''}</textarea>
|
|
|
<span id="addrssMsg"></span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -369,9 +388,88 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="addProduct">
|
|
|
- <tr id="showOrder">
|
|
|
- <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
|
|
|
+ <#list productList as product>
|
|
|
+ <tr>
|
|
|
+ <td width="80">
|
|
|
+ <input type="hidden" value="${product.productId}"><span>${product.productName}</span>
|
|
|
+ </td>
|
|
|
+ <td style="padding: 0px;text-align: center;">
|
|
|
+ <table style="height: 100%;">
|
|
|
+ <tbody>
|
|
|
+ <#list product.colorList as color>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">
|
|
|
+ 品蓝
|
|
|
+ </td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="${product.productId}">
|
|
|
+ <input type="hidden" class="input-color-id" value="${color.colorId}">
|
|
|
+ <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="${color.colorId}" placeholder="产品数量" id="color-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">
|
|
|
+ 品蓝
|
|
|
+ </td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-color-id" value="1">
|
|
|
+ <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="1" placeholder="产品数量" id="color-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">品黑</td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-color-id" value="2">
|
|
|
+ <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="" placeholder="产品数量" id="color-1-2" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">苹果绿</td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-color-id" value="3">
|
|
|
+ <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="" placeholder="产品数量" id="color-1-3" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">西瓜红</td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-color-id" value="4">
|
|
|
+ <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="" placeholder="产品数量" id="color-1-4" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ <td style="padding: 0px;text-align: center;">
|
|
|
+ <table style="height: 100%;">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">内部配件1</td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-fittings-id" value="1">
|
|
|
+ <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="3" placeholder="配件数量" id="fittings-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">内部配件2</td>
|
|
|
+ <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
|
|
|
+ <input type="hidden" class="input-produce-id" value="1">
|
|
|
+ <input type="hidden" class="input-fittings-id" value="2">
|
|
|
+ <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="" placeholder="配件数量" id="fittings-1-2" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
+ </#list>
|
|
|
+
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
@@ -382,7 +480,9 @@
|
|
|
<label class="form-label col-1 col-sm-1">TDS收集:</label>
|
|
|
<div class="formControls col-2 col-sm-2" style="position: relative;">
|
|
|
<input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
|
|
|
- <input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" />
|
|
|
+ <#-- <#assign index_num = customerInfo.customerArea?index_of("-") />-->
|
|
|
+ <#--${customerInfo.customerArea?substring(0,)!'0'}-->
|
|
|
+ <input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" value="" />
|
|
|
<div id="suggest" class="ac_results"></div>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
@@ -394,10 +494,10 @@
|
|
|
</div>
|
|
|
<input type="hidden" name="customerArea" id="customerArea">
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
+ <input type="text" class="input-text" value="${customerInfo.customerInTDS!'0'}" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="出水TDS数值,最大999" id="customerOutTDS" name="customerOutTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
+ <input type="text" class="input-text" value="${customerInfo.customerOutTDS!'0'}" placeholder="出水TDS数值,最大999" id="customerOutTDS" name="customerOutTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="TDScollectShow" style="display: none;">
|
|
@@ -452,44 +552,51 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访信息:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" >
|
|
|
+ <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" <#if customerInfo.customerIsVisit == '2' >checked</#if> >
|
|
|
<label for="customer-visit-1">需要回访</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" checked>
|
|
|
+ <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" <#if customerInfo.customerIsVisit == '1' >checked</#if> >
|
|
|
<label for="customer-visit-2">不需要回访</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="needToVisit" style="display: none;">
|
|
|
+ <div id="needToVisit" style="<#if customerInfo.customerIsVisit == '1' >display: none;</#if>">
|
|
|
+ <#if visit??>
|
|
|
+ <#assign visitName = visit.visitName/>
|
|
|
+ <#assign customerTel = visit.visitTel/>
|
|
|
+ <#assign visitDate = visit.visitDate/>
|
|
|
+ <#assign visitTimeSelect = visit.visitTimeSelect/>
|
|
|
+ <#assign designatedAdminId = visit.designatedAdminId/>
|
|
|
+ </#if>
|
|
|
<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="s1-20" errormsg="回访人姓名格式不正确!" >
|
|
|
+ <input type="text" class="input-text" value="${visitName!''}" placeholder="填写回访人姓名" id="" name="visitName" datatype="/^[\u4e00-\u9fa5]{1,20}$/" errormsg="回访人姓名格式不正确!" >
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
|
|
|
+ <input type="text" class="input-text associated-phone" value="${customerTel!''}" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
|
|
|
</div>
|
|
|
</div>
|
|
|
<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" placeholder="请选择回访日期" id="datemin" name="visitDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
|
|
|
+ <input type="text" placeholder="请选择回访日期" id="datemin" name="visitDate" value="${(visitDate?string("yyyy-MM-dd"))!''}" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" checked>
|
|
|
+ <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" <#if visitTimeSelect?? && visitTimeSelect== 1 >checked</#if> >
|
|
|
<label for="visit-time-1">09:00-12:00</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2">
|
|
|
+ <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2" <#if visitTimeSelect?? && visitTimeSelect == 2 >checked</#if> >
|
|
|
<label for="visit-time-2">12:00-14:00</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3">
|
|
|
+ <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3" <#if visitTimeSelect?? && visitTimeSelect == 3 >checked</#if> >
|
|
|
<label for="visit-time-3">14:00-18:00</label>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -498,7 +605,9 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
|
|
|
<div class="formControls col-4 col-sm-4"> <span class="select-box">
|
|
|
<select class="select" id="visitAdminId" name="visitAdminId">
|
|
|
-
|
|
|
+ <#list adminList as admin>
|
|
|
+ <option value ="${admin.adminId!}" <#if designatedAdminId??><#if designatedAdminId == admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
|
|
|
+ </#list>
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -693,6 +802,7 @@
|
|
|
elementPathEnabled : false /*去掉元素路径*/
|
|
|
});
|
|
|
|
|
|
+ //是否已经初始化过邮寄信息
|
|
|
var isInitSendAddressSms = false;
|
|
|
|
|
|
sendAddressSms.ready(function() {
|
|
@@ -723,21 +833,24 @@
|
|
|
noReasonBack : [["退回产品","退回产品颜色","退回产品配件"],[]]
|
|
|
}
|
|
|
|
|
|
+ /*是否是修改页面*/
|
|
|
+ var isUpdate = true;
|
|
|
+
|
|
|
/*个人id*/
|
|
|
var adminId = 0;
|
|
|
|
|
|
/* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
|
|
|
- var allCustomerInfoType;
|
|
|
+ var allCustomerInfoType = ${customerInfo.customerCounselType};
|
|
|
|
|
|
/*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
|
|
|
- var allCustomerType = 1;
|
|
|
+ var allCustomerType = ${customerInfo.customerIsSolve};
|
|
|
var allCustomerTypeName = ["已解决","未解决","换新","维修","补发","退货","无理由退货"];
|
|
|
|
|
|
/* 寄回地址的id */
|
|
|
var complaint_questionId = 5;
|
|
|
|
|
|
/* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
|
|
|
- var isInitAddress = 0;
|
|
|
+ var isInitAddress = ${customerInfo.customerIsSolve!''};
|
|
|
|
|
|
/*初始化页面参数*/
|
|
|
$(function () {
|
|
@@ -745,19 +858,23 @@
|
|
|
//initCheck();
|
|
|
|
|
|
/*初始化产品类型 -- 客诉头部的产品类型单选 */
|
|
|
- initProduceType();
|
|
|
+ //initProduceType();
|
|
|
|
|
|
/*初始化问题分类*/
|
|
|
- initComplaintTypeInfo();
|
|
|
+ //initComplaintTypeInfo();
|
|
|
|
|
|
/*初始化客服*/
|
|
|
- initSysAdmin();
|
|
|
+ ///initSysAdmin();
|
|
|
|
|
|
/*初始化回访客服*/
|
|
|
- initVisitSysAdmin();
|
|
|
+ //initVisitSysAdmin();
|
|
|
+
|
|
|
+ /*初始化问题描述*/
|
|
|
+ initQuestionDescribe();
|
|
|
|
|
|
/*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
|
|
|
- initProcessResult(3);
|
|
|
+ initProcessResult(allCustomerType);
|
|
|
+
|
|
|
|
|
|
/*监听来源入口选择事件*/
|
|
|
$("input[name='customerSourceType']").change(function (){
|
|
@@ -859,14 +976,43 @@
|
|
|
/*用于初始化回访信息的展示*/
|
|
|
function initVisitEvent(){
|
|
|
$("input[name='customerIsVisit']").change(function (){
|
|
|
- if($(this).val() == 2){
|
|
|
- $("#needToVisit").css("display","block");
|
|
|
- }else{
|
|
|
- $("#needToVisit").css("display","none");
|
|
|
+ if(!isUpdate){
|
|
|
+ if($(this).val() == 2){
|
|
|
+ $("#needToVisit").css("display","block");
|
|
|
+ }else{
|
|
|
+ $("#needToVisit").css("display","none");
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 初始化问题描述
|
|
|
+ */
|
|
|
+ function initQuestionDescribe(){
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ customerId : "${customerInfo.customerId!''}"
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customer/select_question_describe",
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var questionDescribe = data.returnMsg.questionDescribe;
|
|
|
+ $("#describeTitle").val(questionDescribe.describeTitle);
|
|
|
+ describeContentText.addListener("ready", function () {
|
|
|
+ describeContentText.setContent(questionDescribe.describeContent);
|
|
|
+ });
|
|
|
+ describeHandleDescText.addListener("ready", function () {
|
|
|
+ describeHandleDescText.setContent(questionDescribe.describeHandleDesc);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
/*关闭qa*/
|
|
|
function closeQA(){
|
|
|
$(".dalog-ask").hide(); //隐藏qa
|
|
@@ -894,12 +1040,14 @@
|
|
|
* type 1:不需要回访 2:需要回访
|
|
|
* */
|
|
|
function visitByType(type){
|
|
|
- if(1 == type){ //不需要回访
|
|
|
- $("#customer-visit-2").iCheck('check'); //设置不需要回访
|
|
|
- $("#needToVisit").css("display","none");
|
|
|
- }else{
|
|
|
- $("#customer-visit-1").iCheck('check'); //设置需要回访
|
|
|
- $("#needToVisit").css("display","block");
|
|
|
+ if(!isUpdate){
|
|
|
+ if(1 == type){ //不需要回访
|
|
|
+ $("#customer-visit-2").iCheck('check'); //设置不需要回访
|
|
|
+ $("#needToVisit").css("display","none");
|
|
|
+ }else{
|
|
|
+ $("#customer-visit-1").iCheck('check'); //设置需要回访
|
|
|
+ $("#needToVisit").css("display","block");
|
|
|
+ }
|
|
|
}
|
|
|
initVisitEvent();
|
|
|
}
|
|
@@ -1058,10 +1206,21 @@
|
|
|
}
|
|
|
|
|
|
/* 在选择售后类型是,直接初始化省市区,使用isInitAddress 变量来判断 */
|
|
|
- if(isInitAddress == 0){
|
|
|
- var proId = setPro(null,2);
|
|
|
- var cityId = setCity(null,proId,2);
|
|
|
+ if(isInitAddress == 1 || isInitAddress == 2){
|
|
|
+// var proId = setPro(null,2);
|
|
|
+// var cityId = setCity(null,proId,2);
|
|
|
+// setDistrict(null,cityId,2);
|
|
|
+// isInitAddress = 1;
|
|
|
+ }else if(isInitAddress == 3 || isInitAddress == 4 || isInitAddress == 5 || isInitAddress == 6 || isInitAddress == 7){
|
|
|
+ setPro(null,2); //创建省
|
|
|
+ var proId = ${customerCommon.provinceNumber};
|
|
|
+ $("#province option[value='"+ proId +"']").attr("selected","true"); //设置省
|
|
|
+ setCity(null,proId,2);
|
|
|
+ var cityId = ${customerCommon.cityNumber};
|
|
|
+ $("#city option[value='" + cityId + "']").attr("selected","true"); //设置市
|
|
|
setDistrict(null,cityId,2);
|
|
|
+ var disId = ${customerCommon.areaNumber};
|
|
|
+ $("#district option[value='" + disId + "']").attr("selected","true"); //设置地区
|
|
|
isInitAddress = 1;
|
|
|
}
|
|
|
|