12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <#include "/base/add_base.ftl">
- <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
- <style>
- .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
- .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
- .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
- .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
- #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
- #suggest, #suggest2 {width:200px}
- .gray {color:gray}
- .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
- .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
- .ac_results li {border:1px solid #fff}
- .ac_over, .ac_results li a:hover {background:#c8e3fc}
- .ac_results li a span {float:right}
- .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
- .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
- .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
- .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
- .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
- .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
- .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
- .dalog-ask .answer{color: #666;margin-bottom: 10px;}
- .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
- .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
- .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
- .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
- .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
- .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
- .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
- .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
- .time-line-list>li:first-child .arrow{display: none;}
- .table-bg th{background-color: #e2f6ff;}
- .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
- .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
- .input-produce{height: 25px;line-height: 25px}
- .color-div{height: 30px;}
- .table-td-color{}
- .msg-phone{height: 35px;line-height: 35px; }
- /*用于邮寄信息的css*/
- .youxi_xinxi{width: 980px}
- </style>
- <title>修改客诉 - 客诉管理 - RST</title>
- </head>
- <body>
- <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
- <span class="c-gray en">></span> 客诉管理
- <span class="c-gray en">></span> 修改客诉
- <a class="btn radius r"
- style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;"
- href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
- </nav>
- <article class="page-container" style="padding: 10px;">
- <div class="pd-20 cl">
- <form action="${path}/admin/customer/update_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="isNeedSelectOrder" name="isNeedSelectOrder" value="${customerInfo.isNeedSelectOrder}">
- <div class="row cl">
- <label class="form-label col-3">
- <div class="tit-2">客诉基本信息</div>
- </label>
- <div class="formControls col-9">
- </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-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>
- </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="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" <#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" <#if customerInfo.customerSourceType == 3 >checked</#if>>
- <label for="tel-3">其他</label>
- <input type="text" style="width: 321px;margin-left: 10px; <#if customerInfo.customerSourceType != 3 >display: none;</#if>" class="input-text" value="${customerInfo.customerSource!''}" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
- <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource" >
- </div>
- </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" 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" <#if customerInfo.customerCounselType == 2 >checked</#if>>
- <label for="customer-type-2">售后咨询</label>
- </div>
- </div>
- </div>
- <div class="row cl">
- <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">
- <#list typeList as type>
- <div class="radio-box">
- <input type="radio" id="produceType-${type_index}" name="typeId" typeCompany="${type.typeCompany}" value="${type.typeId!''}" <#if customerInfo.typeId == type.typeId>checked</#if> >
- <label for="produceType-${type_index}">${type.typeName!''}</label>
- </div>
- </#list>
- </div>
- </div>
- <div class="row cl" id="salesChannelsSelect" style="">
- <input type="hidden" id="companyId" name="companyId" value="<#if customerInfo??>${customerInfo.companyId!''}</#if>">
- <input type="hidden" id="storeId" name="storeId" value="<#if customerInfo??>${customerInfo.storeId!''}</#if>">
- <label class="form-label col-1 col-sm-1">销售渠道:</label>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select id="selectCompany" class="select" name="">
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select id="selectStore" class="select" name="">
- </select>
- </span>
- </div>
- </div>
- <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 trim_input" placeholder="微信昵称" id="customerWechatName" name="customerWechatName" value="${customerInfo.customerWechatName!''}">
- </div>
- <div class="formControls col-2 col-sm-2 skin-minimal">
- <input type="text" class="input-text" placeholder="用户姓名" id="customerName" name="customerName" value="${customerInfo.customerName!''}">
- </div>
- <div class="formControls col-2 col-sm-2 skin-minimal">
- <input type="text" class="input-text" placeholder="用户电话" id="customerTel" name="customerTel" value="${customerInfo.customerTel!''}">
- </div>
- </div>
- <div class="row cl" id="twiceSellEnd">
- <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" name="customerSecondaryCustomer" value="1" <#if customerInfo.customerSecondaryCustomer == '1' >checked</#if> >
- <label for="customer-type-1">是</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="customerSecondaryCustomer" value="2" <#if customerInfo.customerSecondaryCustomer == '2'>checked</#if>>
- <label for="customer-type-2">否</label>
- </div>
- </div>
- </div>
- <div class="row cl" id="openTheLock">
- <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" name="customerOutDamaged" value="1" <#if customerInfo.customerOutDamaged == '1' >checked</#if>>
- <label for="customer-type-1">是</label>
- </div>
- <div class="radio-box">
- <input type="radio" name="customerOutDamaged" value="2" <#if customerInfo.customerOutDamaged == '2'>checked</#if>>
- <label for="customer-type-2">否</label>
- </div>
- </div>
- </div>
- <div class="row cl" style="position: relative;">
- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
- <div class="formControls col-2 col-sm-2"> <span class="select-box">
- <select name="complaintId" class="select">
- <option value="">请选择问题分类</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>
- <#list complaintSmallClassInfoList as complaintSmallClassInfo>
- <option value="${complaintSmallClassInfo.smallClassId}" <#if complaintQuestionInfo.smallClassId == complaintSmallClassInfo.smallClassId>selected="selected"</#if>>${complaintSmallClassInfo.smallClassName}</option>
- </#list>
- </select>
- </span>
- </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>
- </div>
- </div>
- <div class="dalog-ask">
- <div class="tag">
- <em></em>
- <strong>相关QA</strong>
- <a href="javascript:void(0)" style="margin-left: 200px;" onclick="closeQA()">关闭</a>
- <ul id="question" style="padding-top: 15px">
- <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
- <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
- </ul>
- </div>
- </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-5 col-sm-5">
- <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" value="" >
- </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-5 col-sm-5">
- <input type="hidden" name="questionId" id="questionId" value="${customerInfo.questionId!''}">
- <script id="describeContentText" type="text/plain" style="width:983px;height:250px;"></script>
- </script>
- <input type="hidden" name="describeContent" id="describeContent" value="">
- <input type="hidden" name="describeId" id="describeId" value="">
- </div>
- </div>
- <div class="row cl">
- <#--处理描述 - 客诉备注-->
- <label class="form-label col-1 col-sm-1">问题描述:</label>
- <div class="formControls col-5 col-sm-5">
- <span>问题描述详情,内部使用,不会对外公布。</span>
- <script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
- </script>
- <input type="hidden" id="describeHandleDesc" name="describeHandleDesc" value="">
- </div>
- </div>
- <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="${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');">
- </div>
- <div class="formControls col-2 col-sm-2" style="width: 10%; margin-left: 40px;">
- <input type="button" class="btn btn-primary" value="保存QA" onclick="saveQuestion();">
- </div>
- <div class="formControls col-2 col-sm-2 msg-phone">
- <div id="p-msg" style="color: #e00"></div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">
- <div class="tit">处理结果</div>
- </label>
- <div class="formControls col-10 col-sm-10">
- </div>
- </div>
- <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
- <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
- <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
- <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
- <div class="row cl">
- <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" <#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" <#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" <#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" <#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" <#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" <#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" <#if customerInfo.customerIsSolve == 7 >checked</#if> >
- <label for="customer-process-7">无理由退货</label>
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-10 col-sm-10">
- <ul class="time-line-list" id="processResultStatus">
- <#-- <li><span class="arrow"></span><div class="number">1</div><div>录入客诉</div></li>
- <li><span class="arrow"></span><div class="number">2</div><div>督促用户寄回</div></li>
- <li><span class="arrow"></span><div class="number">3</div><div>录入快递单号</div></li>
- <li><span class="arrow"></span><div class="number">4</div><div>仓库收货</div></li>
- <li><span class="arrow"></span><div class="number">5</div><div>换新发货</div></li>
- <li><span class="arrow"></span><div class="number">6</div><div>发货通知用户</div></li>
- <li><span class="arrow"></span><div class="number">7</div><div>收货后回访</div></li>-->
- </ul>
- </div>
- </div>
- <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>
- </div>
- </div>
- <div class="row cl" id="order" style="display: none;">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-9 col-sm-9 text-c">
- <table class="table table-border table-bg table-bordered">
- <thead>
- <tr>
- <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>
- <th style="text-align: center;">购买日期</th>
- <th style="text-align: center;">收货地址</th>
- </tr>
- </thead>
- <tbody id="showSalesOrderId">
- <#if salesOrderList??>
- <#list salesOrderList as salesOrder>
- <tr id="showOrder">
- <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.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.itemProductColor})* ${salesOrderItem.itemNum}<br>
- </#list>
- </td>
- <td style="text-align: center;">${(salesOrder.salesPayTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
- <td style="text-align: center;">${salesOrder.salesAddressInfo}</td>
- </tr>
- </#list>
- </#if>
- </tbody>
- </table>
- </div>
- </div>
- <#--销售渠道-->
- <#assign ids = ""/>
- <#if salesOrderList??>
- <#list salesOrderList as salesOrder>
- <#assign ids += salesOrder.salesId + "_"/>
- </#list>
- </#if>
- <input type="hidden" id="orderId" name="salesId" value="">
- <input type="hidden" id="ids" name="ids" value="${ids!''}" >
- <div class="row cl" id="recipientInfoTitle" style="display: none;">
- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
- <div class="formControls col-8 col-sm-8">请先选择订单,系统自动填充姓名,电话和地址信息。</div>
- </div>
- <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="${customerCommon.relationSendName!''}" 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="${customerCommon.relationSendTel!''}" 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="${customerCommon.relationAlipay!''}" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
- </div>
- </div>
- <div class="row cl" id="recipientAddress" style="display: none;">
- <input type="hidden" id="addressInfo">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select id="province" class="select" name="provinceNumber">
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select id="city" class="select" name="cityNumber">
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select id="district" class="select" name="areaNumber">
- </select>
- </span>
- </div>
- <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
- </div>
- <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)">${customerCommon.relationSendAddress!''}</textarea>
- <span id="addrssMsg"></span>
- </div>
- </div>
- <div class="row cl" id="renewedProduct" style="display: none;">
- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
- <div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
- <table class="table table-border table-bg table-bordered">
- <thead>
- <tr class="text-c" id="table1">
- <th style="text-align: center;" width="60">产品名称</th>
- <th style="text-align: center;" width="40">产品颜色</th>
- <th style="text-align: center;" width="30">数量</th>
- <th style="text-align: center;" width="100">机器编码</th>
- </tr>
- </thead>
- <tbody id="addProduct">
- <#if (customerCommon.closedProdcues?size>0)>
- <#list customerCommon.closedProdcues as closedProdcues>
- <tr>
- <td style="text-align: center;">
- ${closedProdcues.closedProductName!""}
- </td>
- <td style="text-align: center;">
- ${closedProdcues.closedColorName!""}
- </td>
- <td style="text-align: center;">
- ${closedProdcues.closedProdcueNumber!""}
- </td>
- <td style="text-align: center;">
- <input type="hidden" class="input-produce-id" value="${closedProdcues.productId}">
- <input type="hidden" class="input-fc-id" value="${closedProdcues.colorId}">
- <input type="text" class="input-text input-number" style="width: 100%;border: none;text-align: center;" value="${closedProdcues.closedProdcueMachineNo!""}" placeholder="机器编号" name="" id="item-${closedProdcues.productId}-${closedProdcues.colorId}" number="${closedProdcues.closedProdcueNumber}" itemIsSource="1" onkeyup="keyFunString($(this),30)" onpaste="keyFunString($(this),30)" >
- </td>
- </tr>
- </#list>
- <#list customerCommon.closedFittings as closedFittings>
- <tr>
- <td style="text-align: center;">
- ${closedFittings.closedProductName!""}
- </td>
- <td style="text-align: center;">
- ${closedFittings.closedFittingsName!""}
- </td>
- <td style="text-align: center;">
- ${closedFittings.closedFittingNumber!""}
- </td>
- <td style="text-align: center;">
- <input type="hidden" class="input-produce-id" value="${closedFittings.productId}">
- <input type="hidden" class="input-fc-id" value="${closedFittings.fittingsId}">
- -
- <input type="hidden" class="input-text input-number" style="width: 100%;border: none;text-align: center;" value="" placeholder="机器编号" name="" id="item-${closedFittings.productId}-${closedFittings.fittingsId}" number="${closedFittings.closedFittingNumber}" itemIsSource="1" onkeyup="keyFunString($(this),30)" onpaste="keyFunString($(this),30)" >
- </td>
- </tr>
- </#list>
- <#else >
- <tr>
- <td style="text-align: center;" colspan="4">选择订单后展示</td>
- </tr>
- </#if>
- <#-- <#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;">
- ${color.colorName}
- </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}">
- <#assign number = ""/>
- <#if (customerCommon.sendProdcues?size>0)>
- <#list customerCommon.sendProdcues as sendProdcues>
- <#if sendProdcues.colorId == color.colorId >
- <#assign number = sendProdcues.sendProdcueNumber/>
- </#if>
- </#list>
- <#else >
- <#list customerCommon.closedProdcues as closedProdcues>
- <#if closedProdcues.colorId == color.colorId >
- <#assign number = closedProdcues.closedProdcueNumber/>
- </#if>
- </#list>
- </#if>
- <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="${number}" placeholder="产品数量" id="color-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
- </td>
- </tr>
- </#list>
- </tbody>
- </table>
- </td>
- <td style="padding: 0px;text-align: center;">
- <table style="height: 100%;">
- <tbody>
- <#list product.fittingsList as fittingsInfo>
- <tr>
- <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">${fittingsInfo.fittingsName}</td>
- <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
- <input type="hidden" class="input-produce-id" value="${fittingsInfo.productId}">
- <input type="hidden" class="input-fittings-id" value="${fittingsInfo.fittingsId}">
- <#assign number = ""/>
- <#if (customerCommon.sendFittings?size>0)>
- <#list customerCommon.sendFittings as sendFittings>
- <#if sendFittings.fittingsId == fittingsInfo.fittingsId >
- <#assign number = sendFittings.sendFittingNumber/>
- </#if>
- </#list>
- <#else>
- <#list customerCommon.closedFittings as closedFittings>
- <#if closedFittings.fittingsId == fittingsInfo.fittingsId >
- <#assign number = closedFittings.closedFittingNumber/>
- </#if>
- </#list>
- </#if>
- <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="${number}" placeholder="配件数量" id="fittings-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
- </td>
- </tr>
- </#list>
- </tbody>
- </table>
- </td>
- </tr>
- </#list>-->
- </tbody>
- </table>
- </div>
- </div>
- <div class="row cl" id="TDScollect" style="display: none;">
- <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" value="" />
- <div id="suggest" class="ac_results"></div>-->
- <span class="select-box">
- <select name="initProvinceCode" class="select" id="initProvince">
- <option value="">请选择省份</option>
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select name="initCityCode" class="select" id="initCity<#--TDSArea-->" <#--name="TDSArea"-->>
- <option value="">请选择城市<#--请搜索城市--></option>
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2" style="position: relative;">
- <span class="select-box">
- <select name="initDistrictCode" class="select" id="initCountry">
- <option value="">请选择区/县</option>
- </select>
- </span>
- </div>
- <#--<div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select name="" class="select" id="TDSArea" name="TDSArea">
- <option value="">请搜索城市</option>
- </select>
- </span>
- </div>-->
- <input type="hidden" name="customerArea" id="customerArea" value="${customerInfo.customerArea!''}">
- <div class="formControls col-1 col-sm-1">
- <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-1 col-sm-1">
- <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;"*/>
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-6 col-sm-6">
- <span id="DTS-address"><#if customerInfo.customerArea??>地址:${customerInfo.customerArea}</#if></span>
- <span id="DTS-in"><#if customerInfo.customerInTDS??>进水:${customerInfo.customerInTDS} PPM</#if></span> <span id="DTS-out"><#if customerInfo.customerOutTDS??>出水:${customerInfo.customerOutTDS} PPM</#if></span>
- </div>
- </div>
- <div class="row cl" id="sendAddressInfo">
- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
- <div class="formControls col-5 col-sm-5" style="height: 250px" id="sendAddressSmsHtml">
- <#-- <script id="sendAddressSms" type="text/plain" style="width:983px;height:200px;"></script>
- </script>-->
- </div>
- </div>
- <div class="row cl" id="sendAddressByPhone" 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 associated-phone" value="" placeholder="请输入手机号" id="m-phone" name="">
- </div>
- <div class="formControls col-2 col-sm-2" style="width: 10%">
- <input type="button" class="btn btn-primary" value="发短信给用户" onclick="sendPhone('m','m-msg');">
- </div>
- <div class="formControls col-2 col-sm-2 msg-phone">
- <div id="m-msg" style="color: #e00"></div>
- </div>
- </div>
- <div class="row cl" id="customerDescDiv">
- <label class="form-label col-1 col-sm-1">备注:</label>
- <div class="col-5 col-sm-5">
- <textarea type="text" placeholder="" id="customerDesc" name="customerDesc" style="width: 100%;height: 100px;">${customerInfo.customerDesc!''}</textarea>
- </div>
- </div>
- <div class="row cl" id="updateProduct" style="display: none;">
- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>更换产品:</label>
- <div class="formControls col-9 col-sm-9" >
- <table class="table table-border table-bg table-bordered">
- <thead>
- <tr class="text-c" id="table2">
- <th style="text-align: center;" width="60">产品名称</th>
- <th style="text-align: center;" width="60">产品颜色</th>
- <th style="text-align: center;" width="60">产品配件</th>
- </tr>
- </thead>
- <tbody id="back-product">
- <#-- <#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;">
- ${color.colorName}
- </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}">
- <#assign number = ""/>
- <#list customerCommon.closedProdcues as closedProdcues>
- <#if closedProdcues.colorId == color.colorId >
- <#assign number = closedProdcues.closedProdcueNumber/>
- </#if>
- </#list>
- <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="${number}" placeholder="产品数量" id="color-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
- </td>
- </tr>
- </#list>
- </tbody>
- </table>
- </td>
- <td style="padding: 0px;text-align: center;">
- <table style="height: 100%;">
- <tbody>
- <#list product.fittingsList as fittingsInfo>
- <tr>
- <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">${fittingsInfo.fittingsName}</td>
- <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
- <input type="hidden" class="input-produce-id" value="${fittingsInfo.productId}">
- <input type="hidden" class="input-fittings-id" value="${fittingsInfo.fittingsId}">
- <#assign number2 = ""/>
- <#list customerCommon.closedFittings as closedFittings>
- <#if closedFittings.fittingsId == fittingsInfo.fittingsId >
- <#assign number2 = closedFittings.closedFittingNumber/>
- </#if>
- </#list>
- <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="${number2}" placeholder="配件数量" id="fittings-1-1" name="" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
- </td>
- </tr>
- </#list>
- </tbody>
- </table>
- </td>
- </tr>
- </#list>-->
- </tbody>
- </table>
- </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="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" <#if customerInfo.customerIsVisit == '1' >checked</#if> >
- <label for="customer-visit-2">不需要回访</label>
- </div>
- </div>
- </div>
- <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="${visitName!''}" placeholder="填写回访人姓名" id="" name="visitName" errormsg="回访人姓名格式不正确!" >
- </div>
- <div class="formControls col-2 col-sm-2">
- <input type="text" class="input-text associated-phone" value="${customerTel!''}" placeholder="填写回访人手机号" id="" name="visitTel" 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" 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" <#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" <#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" <#if visitTimeSelect?? && visitTimeSelect == 3 >checked</#if> >
- <label for="visit-time-3">14:00-18:00</label>
- </div>
- </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-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>
- </div>
- <div class="cl" style="display: table;width: 100%;">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-4 col-sm-4">
- <span class="c-red" id="visitAdminIdMsg">您将为自己指定一个回访任务</span>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-2 col-sm-2 col-offset-3">
- <button class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
- </div>
- </div>
- </form>
- </div>
- </article>
- <script type="text/javascript">
- var url_path = "${path}";
- </script>
- <#--时间控件-->
- <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
- <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
- <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
- <#--百度富文本编译器-->
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
- <#-- 业务脚本JS -->
- <script type="text/javascript" charset="utf-8" src="${path}/common/js/customer/customer.js"></script>
- <script type="text/javascript">
- var customerId = "${customerInfo.customerId!''}";
- /*是否是修改页面*/
- var isUpdate = true;
- /*是否需要回访 只有修改页面才会使用*/
- var customerIsVisit = true;
- /*个人id*/
- var adminId = 0;
- /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
- var allCustomerInfoType = ${customerInfo.customerCounselType};
- /*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
- var allCustomerType = ${customerInfo.customerIsSolve};
- var allCustomerTypeName = ["已解决","未解决","换新","维修","补发","退货","无理由退货"];
- /* 寄回地址的id */
- var complaint_questionId = 5;
- /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
- var isInitAddress = ${customerInfo.customerIsSolve!''};
- /*1:需要有订单 2:不需要有订单*/
- var isNeedSelectOrder = ${customerInfo.isNeedSelectOrder};
- $(function(){
- /*初始化省份*/
- initProvince();
- /*监听省份*/
- $("[name='initProvinceCode']").change(function (){
- initCity($(this).val());
- })
- /*监听城市*/
- $("[name='initCityCode']").change(function (){
- initDistrict($(this).val());
- })
- })
- /*初始化省份*/
- function initProvince() {
- //默认查询参数为空
- var provinceListInfo = null;
- $.ajax({
- type: "POST",
- data: {
- provinceId : provinceListInfo
- },
- url: "${path}/admin/customerBasic/query_provinceList",
- async: true,
- success: function(data){
- var html = '<option value="">请选择省份</option>';
- var id;
- if (data.returnCode == 200) {
- for(var i=0;i<data.returnMsg.provinceList.length;i++){
- provinceListInfo = data.returnMsg.provinceList[i];
- if(i == 0 ){
- id = provinceListInfo.provinceId;
- }
- html += '<option value="'+ provinceListInfo.provinceId +'">'+ provinceListInfo.province +'</option>';
- }
- }else{
- html = '';
- }
- $("[name='initProvinceCode']").html(html);
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- }
- /*根据省份代号初始化城市*/
- function initCity(customerProvinceId){
- var cityListInfo = null;
- if(customerProvinceId == null || customerProvinceId == ""){
- var html = '<option value="">请选择城市</option>';
- $("[name='initCityCode']").html(html);
- }else{
- $.ajax({
- type: "POST",
- data: {
- provinceId : customerProvinceId
- },
- url: "${path}/admin/customerBasic/query_cityList",
- async: true,
- success: function(data){
- var html = '<option value="">请选择城市</option>';
- if (data.returnCode == 200) {
- for(var i=0;i<data.returnMsg.cityList.length;i++){
- cityListInfo = data.returnMsg.cityList[i];
- html += '<option value="'+ cityListInfo.cityId +'">'+ cityListInfo.city +'</option>';
- }
- }else{
- html = '';
- }
- $("[name='initCityCode']").html(html);
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- }
- }
- /*根据省份代号初始化区/县*/
- function initDistrict(customerCityId){
- var districtListInfo = null;
- if(customerCityId == null || customerCityId == ""){
- var html = '<option value="">请选择区/县</option>';
- $("[name='initDistrictCode']").html(html);
- }else{
- $.ajax({
- type: "POST",
- data: {
- cityId : customerCityId
- },
- url: "${path}/admin/customerBasic/query_districtList",
- async: true,
- success: function(data){
- var html = '<option value="">请选择区/县</option>';
- if (data.returnCode == 200) {
- for(var i=0;i<data.returnMsg.districtList.length;i++){
- districtListInfo = data.returnMsg.districtList[i];
- html += '<option value="'+ districtListInfo.districtId +'">'+ districtListInfo.district +'</option>';
- }
- }else{
- html = '';
- }
- $("[name='initDistrictCode']").html(html);
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- }
- }
- /*初始化页面参数*/
- $(function () {
- /* 初始化单选框样式 */
- //initCheck();
- /*初始化产品类型 -- 客诉头部的产品类型单选 */
- //initProduceType();
- /*初始化问题分类*/
- //initComplaintTypeInfo();
- /*初始化客服*/
- ///initSysAdmin();
- /*初始化回访客服*/
- //initVisitSysAdmin();
- /*初始化问题描述*/
- initQuestionDescribe();
- /*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
- initProcessResult(allCustomerType);
- /*监听来源入口选择事件*/
- $("input[name='customerSourceType']").change(function (){
- var type = parseInt($(this).val());
- if(type == 3){
- $("#customerSourceOld").show();
- }else{
- $("#customerSourceOld").hide();
- }
- })
- /*监听客诉类型选择事件*/
- $("input[name='customerCounselType']").change(function (){
- allCustomerInfoType = parseInt($(this).val());
- if(allCustomerInfoType == 1){
- $("#customer-process-1").iCheck('check'); //设置已解决
- $("#twiceSellEnd").hide();
- $("#openTheLock").hide();
- allCustomerType = 1;
- }else{
- $("#customer-process-3").iCheck('check'); //设置换新
- $("#twiceSellEnd").show();
- $("#openTheLock").show();
- allCustomerType =3;
- }
- initProcessResult(allCustomerType,allCustomerInfoType);
- })
- var ty = parseInt($("input[name='typeId']:checked").val());
- var isOrder = 1;
- switch (ty){ //1:Soodo电动牙刷 6:WaterO净水机 7:Aiberle净水机 9 :YULIA净水机
- case 1:
- isOrder = 2;
- break;
- case 6:
- isOrder = 1;
- break;
- case 7:
- isOrder = 1;
- break;
- case 9:
- isOrder = 1;
- break;
- default:
- break;
- }
- opentionSelectOrder(isOrder);
- /*绑定产品类型选择事件*/
- $("input[name='typeId']").change(function (){
- var typeId = parseInt($(this).val());
- var isOrder = 1;
- switch (typeId){ //1:Soodo电动牙刷 6:WaterO净水机 7:Aiberle净水机 9 :YULIA净水机
- case 1:
- isOrder = 2;
- break;
- case 6:
- isOrder = 1;
- break;
- case 7:
- isOrder = 1;
- break;
- case 9:
- isOrder = 1;
- break;
- default:
- break;
- }
- opentionSelectOrder(isOrder);
- })
- /*监听处理结果选择事件*/
- $("[name='customerIsSolve']").change(function(){
- initProcessResult(parseInt($(this).val()));
- })
- /*监听问题类型 选择事件*/
- $("[name='complaintId']").change(function(){
- initComplaintSmallClassInfo($(this).val());
- })
- /*监听问题关键字搜索*/
- $(document).on('click', '#search_button', function() {
- initComplaintQuestionInfo("p");
- });
- /*搜索订单事件*/
- $(document).on('click', '#selectOrder', function() {
- selectOrder();
- });
- /*监听省选择事件*/
- $(document).on('change', '#province', function() {
- var proId = $("#province").val();
- var cityId = setCity("",proId,2)
- setDistrict("",cityId,2)
- });
- /*监听市选择事件*/
- $(document).on('change', '#city', function() {
- var city = $("#city").val();
- setDistrict("",city,2)
- });
- /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
- initVisitEvent();
- /*监听回访选择客服的选择事件*/
- $(document).on('change', '#visitAdminId', function() {
- var visitAdminName = $("#visitAdminId").find("option:selected").text();
- var visitAdminId = $("#visitAdminId").val();
- if(convertUndefinedToEmpty(visitAdminId) == adminId){
- showVisitMsg(1);
- }else{
- showVisitMsg(2,visitAdminName);
- }
- });
- /* 监听TDS收集--地址选择 */
- $(document).on('change', '#TDSArea', function() {
- setTDSCollect();
- });
- /*实时监听文本框-- TDS进水*/
- // document.getElementById("customerInTDS").addEventListener("input", function(){
- // setTDSCollect();
- // });
- /*实时监听文本框-- TDS出水*/
- // document.getElementById("customerOutTDS").addEventListener("input", function(){
- // setTDSCollect();
- // });
- /* 监听手机号 失去焦点时 将其他手机号码未填的 */
- $(".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);
- }
- })
- })
- })
- /**
- * 初始化问题描述
- */
- 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);
- $("#describeId").val(questionDescribe.describeId);
- $("#describeHandleDesc").val(questionDescribe.describeHandleDesc);
- describeContentText.addListener("ready", function () {
- describeContentText.setContent(questionDescribe.describeContent);
- });
- describeHandleDescText.addListener("ready", function () {
- describeHandleDescText.setContent(questionDescribe.describeHandleDesc);
- });
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- }
- /**
- * 设置省市区
- */
- function setAddressInfo(){
- var proId = setPro(null,1); //创建省
- <#if customerCommon.provinceNumber?? >
- var proId = ${customerCommon.provinceNumber!''};
- $("#province option[value='"+ proId +"']").attr("selected","true"); //设置省
- </#if>
- var cityId = setCity(null,proId,2);
- <#if customerCommon.cityNumber?? >
- var cityId = ${customerCommon.cityNumber!''};
- $("#city option[value='" + cityId + "']").attr("selected", "true"); //设置市
- </#if>
- setDistrict(null, cityId, 2);
- <#if customerCommon.areaNumber?? >
- var disId = ${customerCommon.areaNumber!''};
- $("#district option[value='" + disId + "']").attr("selected", "true"); //设置地区
- isInitAddress = 1;
- </#if>
- }
- </script>
- <!--/请在上方写此页面业务相关的脚本-->
- </body>
- </html>
|