update_customer.ftl 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
  11. <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
  12. <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
  13. <style>
  14. .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  15. .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  16. .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  17. .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  18. #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;}
  19. #suggest, #suggest2 {width:200px}
  20. .gray {color:gray}
  21. .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
  22. .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
  23. .ac_results li {border:1px solid #fff}
  24. .ac_over, .ac_results li a:hover {background:#c8e3fc}
  25. .ac_results li a span {float:right}
  26. .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
  27. .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
  28. .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
  29. .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
  30. .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
  31. .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;}
  32. .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
  33. .dalog-ask .answer{color: #666;margin-bottom: 10px;}
  34. .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
  35. .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
  36. .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;}
  37. .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%;}
  38. .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
  39. .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
  40. .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
  41. .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;}
  42. .time-line-list>li:first-child .arrow{display: none;}
  43. .table-bg th{background-color: #e2f6ff;}
  44. .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
  45. .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
  46. .input-produce{height: 25px;line-height: 25px}
  47. .color-div{height: 30px;}
  48. .table-td-color{}
  49. .msg-phone{height: 35px;line-height: 35px; }
  50. /*用于邮寄信息的css*/
  51. .youxi_xinxi{width: 980px}
  52. </style>
  53. <title>修改客诉 - 客诉管理 - RST</title>
  54. </head>
  55. <body>
  56. <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
  57. <span class="c-gray en">&gt;</span> 客诉管理
  58. <span class="c-gray en">&gt;</span> 修改客诉
  59. <a class="btn radius r"
  60. style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;"
  61. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  62. </nav>
  63. <article class="page-container" style="padding: 10px;">
  64. <div class="pd-20 cl">
  65. <form action="${path}/admin/customer/update_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
  66. <input type="hidden" id="customerId" name="customerId" value="${customerInfo.customerId!''}">
  67. <input type="hidden" id="isNeedSelectOrder" name="isNeedSelectOrder" value="${customerInfo.isNeedSelectOrder}">
  68. <div class="row cl">
  69. <label class="form-label col-3">
  70. <div class="tit-2">客诉基本信息</div>
  71. </label>
  72. <div class="formControls col-9">
  73. </div>
  74. </div>
  75. <div class="row cl">
  76. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>跟进客服:</label>
  77. <div class="formControls col-4 col-sm-4"> <span class="select-box" style=" width: 625px;">
  78. <select name="adminId" id="adminId" class="select">
  79. <#list adminList as admin>
  80. <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId == admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  81. </#list>
  82. </select>
  83. </span>
  84. </div>
  85. </div>
  86. <div class="row cl">
  87. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>来源入口:</label>
  88. <div class="formControls col-10 col-sm-10 skin-minimal">
  89. <div class="radio-box">
  90. <input type="radio" id="tel-1" name="customerSourceType" value="1" <#if customerInfo.customerSourceType == 1 >checked</#if>>
  91. <label for="tel-1">400电话</label>
  92. </div>
  93. <div class="radio-box">
  94. <input type="radio" id="tel-2" name="customerSourceType" value="2" <#if customerInfo.customerSourceType == 2 >checked</#if>>
  95. <label for="tel-2">微信公众号</label>
  96. </div>
  97. <div class="radio-box">
  98. <input type="radio" id="tel-3" name="customerSourceType" value="3" <#if customerInfo.customerSourceType == 3 >checked</#if>>
  99. <label for="tel-3">其他</label>
  100. <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="">
  101. <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource" >
  102. </div>
  103. </div>
  104. </div>
  105. <div class="row cl">
  106. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
  107. <div class="formControls col-10 col-sm-10 skin-minimal">
  108. <div class="radio-box">
  109. <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" <#if customerInfo.customerCounselType == 1 >checked</#if>>
  110. <label for="customer-type-1">售前咨询</label>
  111. </div>
  112. <div class="radio-box">
  113. <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" <#if customerInfo.customerCounselType == 2 >checked</#if>>
  114. <label for="customer-type-2">售后咨询</label>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="row cl">
  119. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
  120. <input type="hidden" id="typeCompany" name="typeCompany" value="">
  121. <div class="formControls col-10 col-sm-10 skin-minimal" id="produceTypeHtml">
  122. <#list typeList as type>
  123. <div class="radio-box">
  124. <input type="radio" id="produceType-${type_index}" name="typeId" typeCompany="${type.typeCompany}" value="${type.typeId!''}" <#if customerInfo.typeId == type.typeId>checked</#if> >
  125. <label for="produceType-${type_index}">${type.typeName!''}</label>
  126. </div>
  127. </#list>
  128. </div>
  129. </div>
  130. <div class="row cl" id="salesChannelsSelect" style="">
  131. <input type="hidden" id="companyId" name="companyId" value="<#if customerInfo??>${customerInfo.companyId!''}</#if>">
  132. <input type="hidden" id="storeId" name="storeId" value="<#if customerInfo??>${customerInfo.storeId!''}</#if>">
  133. <label class="form-label col-1 col-sm-1">销售渠道:</label>
  134. <div class="formControls col-2 col-sm-2">
  135. <span class="select-box">
  136. <select id="selectCompany" class="select" name="">
  137. </select>
  138. </span>
  139. </div>
  140. <div class="formControls col-2 col-sm-2">
  141. <span class="select-box">
  142. <select id="selectStore" class="select" name="">
  143. </select>
  144. </span>
  145. </div>
  146. </div>
  147. <div class="row cl">
  148. <label class="form-label col-1 col-sm-1">客户信息:</label>
  149. <div class="formControls col-2 col-sm-2 skin-minimal">
  150. <input type="text" class="input-text trim_input" placeholder="微信昵称" id="customerWechatName" name="customerWechatName" value="${customerInfo.customerWechatName!''}">
  151. </div>
  152. <div class="formControls col-2 col-sm-2 skin-minimal">
  153. <input type="text" class="input-text" placeholder="用户姓名" id="customerName" name="customerName" value="${customerInfo.customerName!''}">
  154. </div>
  155. <div class="formControls col-2 col-sm-2 skin-minimal">
  156. <input type="text" class="input-text" placeholder="用户电话" id="customerTel" name="customerTel" value="${customerInfo.customerTel!''}">
  157. </div>
  158. </div>
  159. <div class="row cl" id="twiceSellEnd">
  160. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>二次售后:</label>
  161. <div class="formControls col-10 col-sm-10 skin-minimal">
  162. <div class="radio-box">
  163. <input type="radio" name="customerSecondaryCustomer" value="1" <#if customerInfo.customerSecondaryCustomer == '1' >checked</#if> >
  164. <label for="customer-type-1">是</label>
  165. </div>
  166. <div class="radio-box">
  167. <input type="radio" name="customerSecondaryCustomer" value="2" <#if customerInfo.customerSecondaryCustomer == '2'>checked</#if>>
  168. <label for="customer-type-2">否</label>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="row cl" id="openTheLock">
  173. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开箱损:</label>
  174. <div class="formControls col-10 col-sm-10 skin-minimal">
  175. <div class="radio-box">
  176. <input type="radio" name="customerOutDamaged" value="1" <#if customerInfo.customerOutDamaged == '1' >checked</#if>>
  177. <label for="customer-type-1">是</label>
  178. </div>
  179. <div class="radio-box">
  180. <input type="radio" name="customerOutDamaged" value="2" <#if customerInfo.customerOutDamaged == '2'>checked</#if>>
  181. <label for="customer-type-2">否</label>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="row cl" style="position: relative;">
  186. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
  187. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  188. <select name="complaintId" class="select">
  189. <option value="">请选择问题分类</option>
  190. <#list complaintTypeInfoList as complaintTypeInfo>
  191. <option value="${complaintTypeInfo.complaintId}" <#if complaintQuestionInfo.complaintId == complaintTypeInfo.complaintId>selected="selected"</#if> >${complaintTypeInfo.complaintClassName}</option>
  192. </#list>
  193. </select>
  194. </span>
  195. </div>
  196. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  197. <select name="smallClassId" id="smallClassId" class="select">
  198. <option value="">请选择问题分类</option>
  199. <#list complaintSmallClassInfoList as complaintSmallClassInfo>
  200. <option value="${complaintSmallClassInfo.smallClassId}" <#if complaintQuestionInfo.smallClassId == complaintSmallClassInfo.smallClassId>selected="selected"</#if>>${complaintSmallClassInfo.smallClassName}</option>
  201. </#list>
  202. </select>
  203. </span>
  204. </div>
  205. <div class="formControls col-2 col-sm-2">
  206. <div class="clearfix">
  207. <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>
  208. </div>
  209. </div>
  210. <div class="dalog-ask">
  211. <div class="tag">
  212. <em></em>
  213. <strong>相关QA</strong>
  214. <a href="javascript:void(0)" style="margin-left: 200px;" onclick="closeQA()">关闭</a>
  215. <ul id="question" style="padding-top: 15px">
  216. <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
  217. <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
  218. </ul>
  219. </div>
  220. </div>
  221. </div>
  222. <div class="row cl">
  223. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
  224. <div class="formControls col-5 col-sm-5">
  225. <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" value="" >
  226. </div>
  227. </div>
  228. <div class="row cl">
  229. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题回复:</label>
  230. <div class="formControls col-5 col-sm-5">
  231. <input type="hidden" name="questionId" id="questionId" value="${customerInfo.questionId!''}">
  232. <script id="describeContentText" type="text/plain" style="width:983px;height:250px;"></script>
  233. </script>
  234. <input type="hidden" name="describeContent" id="describeContent" value="">
  235. <input type="hidden" name="describeId" id="describeId" value="">
  236. </div>
  237. </div>
  238. <div class="row cl">
  239. <#--处理描述 - 客诉备注-->
  240. <label class="form-label col-1 col-sm-1">问题描述:</label>
  241. <div class="formControls col-5 col-sm-5">
  242. <span>问题描述详情,内部使用,不会对外公布。</span>
  243. <script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
  244. </script>
  245. <input type="hidden" id="describeHandleDesc" name="describeHandleDesc" value="">
  246. </div>
  247. </div>
  248. <div class="row cl">
  249. <label class="form-label col-1 col-sm-1"></label>
  250. <div class="formControls col-2 col-sm-2">
  251. <input type="text" class="input-text associated-phone" value="${customerInfo.customerTel!''}" placeholder="请输入手机号" id="p-phone" name="">
  252. </div>
  253. <div class="formControls col-2 col-sm-2" style="width: 10%">
  254. <input type="button" class="btn btn-primary" value="发送问题回复给用户" onclick="sendPhone('p','p-msg');">
  255. </div>
  256. <div class="formControls col-2 col-sm-2" style="width: 10%; margin-left: 40px;">
  257. <input type="button" class="btn btn-primary" value="保存QA" onclick="saveQuestion();">
  258. </div>
  259. <div class="formControls col-2 col-sm-2 msg-phone">
  260. <div id="p-msg" style="color: #e00"></div>
  261. </div>
  262. </div>
  263. <div class="row cl">
  264. <label class="form-label col-1 col-sm-1">
  265. <div class="tit">处理结果</div>
  266. </label>
  267. <div class="formControls col-10 col-sm-10">
  268. </div>
  269. </div>
  270. <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
  271. <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
  272. <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
  273. <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
  274. <div class="row cl">
  275. <label class="form-label col-1 col-sm-1">处理类型:</label>
  276. <div class="formControls col-10 col-sm-10 skin-minimal">
  277. <div class="radio-box" id="solved">
  278. <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" <#if customerInfo.customerIsSolve == 1 >checked</#if> >
  279. <label for="customer-process-1">已解决</label>
  280. </div>
  281. <div class="radio-box" id="noSolved">
  282. <input type="radio" id="customer-process-2" value="2" name="customerIsSolve" <#if customerInfo.customerIsSolve == 2 >checked</#if> >
  283. <label for="customer-process-2">未解决</label>
  284. </div>
  285. <div class="radio-box" id="renewed" style="display: none">
  286. <input type="radio" id="customer-process-3" value="3" name="customerIsSolve" <#if customerInfo.customerIsSolve == 3 >checked</#if> >
  287. <label for="customer-process-3">换新</label>
  288. </div>
  289. <div class="radio-box" id="maintain" style="display: none">
  290. <input type="radio" id="customer-process-4" value="4" name="customerIsSolve" <#if customerInfo.customerIsSolve == 4 >checked</#if> >
  291. <label for="customer-process-4">维修</label>
  292. </div>
  293. <div class="radio-box" id="reissue" style="display: none">
  294. <input type="radio" id="customer-process-5" value="5" name="customerIsSolve" <#if customerInfo.customerIsSolve == 5 >checked</#if> >
  295. <label for="customer-process-5">补发</label>
  296. </div>
  297. <div class="radio-box" id="backGoods" style="display: none">
  298. <input type="radio" id="customer-process-6" value="6" name="customerIsSolve" <#if customerInfo.customerIsSolve == 6 >checked</#if> >
  299. <label for="customer-process-6">退货</label>
  300. </div>
  301. <div class="radio-box" id="noReasonBack" style="display: none">
  302. <input type="radio" id="customer-process-7" value="7" name="customerIsSolve" <#if customerInfo.customerIsSolve == 7 >checked</#if> >
  303. <label for="customer-process-7">无理由退货</label>
  304. </div>
  305. </div>
  306. </div>
  307. <div class="row cl">
  308. <label class="form-label col-1 col-sm-1"></label>
  309. <div class="formControls col-10 col-sm-10">
  310. <ul class="time-line-list" id="processResultStatus">
  311. <#-- <li><span class="arrow"></span><div class="number">1</div><div>录入客诉</div></li>
  312. <li><span class="arrow"></span><div class="number">2</div><div>督促用户寄回</div></li>
  313. <li><span class="arrow"></span><div class="number">3</div><div>录入快递单号</div></li>
  314. <li><span class="arrow"></span><div class="number">4</div><div>仓库收货</div></li>
  315. <li><span class="arrow"></span><div class="number">5</div><div>换新发货</div></li>
  316. <li><span class="arrow"></span><div class="number">6</div><div>发货通知用户</div></li>
  317. <li><span class="arrow"></span><div class="number">7</div><div>收货后回访</div></li>-->
  318. </ul>
  319. </div>
  320. </div>
  321. <div class="row cl" id="orderHead" style="display: none;">
  322. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>订单信息:</label>
  323. <div class="formControls col-1 col-sm-1">
  324. <button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>
  325. </div>
  326. </div>
  327. <div class="row cl" id="order" style="display: none;">
  328. <label class="form-label col-1 col-sm-1"></label>
  329. <div class="formControls col-9 col-sm-9 text-c">
  330. <table class="table table-border table-bg table-bordered">
  331. <thead>
  332. <tr>
  333. <th style="text-align: center;">销售公司</th>
  334. <th style="text-align: center;">店铺名称</th>
  335. <th style="text-align: center;">Efast订单号</th>
  336. <th style="text-align: center;">姓名</th>
  337. <th style="text-align: center;">电话</th>
  338. <th style="text-align: center;">订单金额</th>
  339. <th style="text-align: center;">购买产品</th>
  340. <th style="text-align: center;">购买日期</th>
  341. <th style="text-align: center;">收货地址</th>
  342. </tr>
  343. </thead>
  344. <tbody id="showSalesOrderId">
  345. <#if salesOrderList??>
  346. <#list salesOrderList as salesOrder>
  347. <tr id="showOrder">
  348. <td style="text-align: center;">${salesOrder.companyName!''}</td>
  349. <td style="text-align: center;">${salesOrder.storeName!''}</td>
  350. <td style="text-align: center;">${salesOrder.salesOrderId!''}</td>
  351. <td style="text-align: center;">${salesOrder.salesAddressName!''}</td>
  352. <td style="text-align: center;">${salesOrder.salesAddressTel!''}</td>
  353. <td style="text-align: center;">${salesOrder.salesPayMoney!''}</td>
  354. <td style="text-align: center;">
  355. <#list salesOrder.salesOrderItemList as salesOrderItem>
  356. ${salesOrderItem.itemProductName}(${salesOrderItem.itemProductColor})* ${salesOrderItem.itemNum}<br>
  357. </#list>
  358. </td>
  359. <td style="text-align: center;">${(salesOrder.salesPayTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
  360. <td style="text-align: center;">${salesOrder.salesAddressInfo}</td>
  361. </tr>
  362. </#list>
  363. </#if>
  364. </tbody>
  365. </table>
  366. </div>
  367. </div>
  368. <#--销售渠道-->
  369. <#assign ids = ""/>
  370. <#if salesOrderList??>
  371. <#list salesOrderList as salesOrder>
  372. <#assign ids += salesOrder.salesId + "_"/>
  373. </#list>
  374. </#if>
  375. <input type="hidden" id="orderId" name="salesId" value="">
  376. <input type="hidden" id="ids" name="ids" value="${ids!''}" >
  377. <div class="row cl" id="recipientInfoTitle" style="display: none;">
  378. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
  379. <div class="formControls col-8 col-sm-8">请先选择订单,系统自动填充姓名,电话和地址信息。</div>
  380. </div>
  381. <div class="row cl" id="recipientInfo" style="display: none;">
  382. <label class="form-label col-1 col-sm-1"></label>
  383. <div class="formControls col-2 col-sm-2">
  384. <input type="text" class="input-text" value="${customerCommon.relationSendName!''}" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="/^[\u4e00-\u9fa5]{1,20}$/" errormsg="联系人格式不正确!" >
  385. </div>
  386. <div class="formControls col-2 col-sm-2">
  387. <input type="text" class="input-text" value="${customerCommon.relationSendTel!''}" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
  388. </div>
  389. <div class="formControls col-2 col-sm-2" id="postageAccount">
  390. <input type="text" class="input-text" value="${customerCommon.relationAlipay!''}" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
  391. </div>
  392. </div>
  393. <div class="row cl" id="recipientAddress" style="display: none;">
  394. <input type="hidden" id="addressInfo">
  395. <label class="form-label col-1 col-sm-1"></label>
  396. <div class="formControls col-2 col-sm-2">
  397. <span class="select-box">
  398. <select id="province" class="select" name="provinceNumber">
  399. </select>
  400. </span>
  401. </div>
  402. <div class="formControls col-2 col-sm-2">
  403. <span class="select-box">
  404. <select id="city" class="select" name="cityNumber">
  405. </select>
  406. </span>
  407. </div>
  408. <div class="formControls col-2 col-sm-2">
  409. <span class="select-box">
  410. <select id="district" class="select" name="areaNumber">
  411. </select>
  412. </span>
  413. </div>
  414. <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
  415. </div>
  416. <div class="row cl" id="recipientAddressText" style="display: none;">
  417. <label class="form-label col-1 col-sm-1"></label>
  418. <div class="formControls col-5 col-sm-5">
  419. <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" datatype="*" errormsg="收货地址不正确!" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)">${customerCommon.relationSendAddress!''}</textarea>
  420. <span id="addrssMsg"></span>
  421. </div>
  422. </div>
  423. <div class="row cl" id="renewedProduct" style="display: none;">
  424. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
  425. <div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
  426. <table class="table table-border table-bg table-bordered">
  427. <thead>
  428. <tr class="text-c" id="table1">
  429. <th style="text-align: center;" width="60">产品名称</th>
  430. <th style="text-align: center;" width="40">产品颜色</th>
  431. <th style="text-align: center;" width="30">数量</th>
  432. <th style="text-align: center;" width="100">机器编码</th>
  433. </tr>
  434. </thead>
  435. <tbody id="addProduct">
  436. <#if (customerCommon.closedProdcues?size>0)>
  437. <#list customerCommon.closedProdcues as closedProdcues>
  438. <tr>
  439. <td style="text-align: center;">
  440. ${closedProdcues.closedProductName!""}
  441. </td>
  442. <td style="text-align: center;">
  443. ${closedProdcues.closedColorName!""}
  444. </td>
  445. <td style="text-align: center;">
  446. ${closedProdcues.closedProdcueNumber!""}
  447. </td>
  448. <td style="text-align: center;">
  449. <input type="hidden" class="input-produce-id" value="${closedProdcues.productId}">
  450. <input type="hidden" class="input-fc-id" value="${closedProdcues.colorId}">
  451. <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)" >
  452. </td>
  453. </tr>
  454. </#list>
  455. <#list customerCommon.closedFittings as closedFittings>
  456. <tr>
  457. <td style="text-align: center;">
  458. ${closedFittings.closedProductName!""}
  459. </td>
  460. <td style="text-align: center;">
  461. ${closedFittings.closedFittingsName!""}
  462. </td>
  463. <td style="text-align: center;">
  464. ${closedFittings.closedFittingNumber!""}
  465. </td>
  466. <td style="text-align: center;">
  467. <input type="hidden" class="input-produce-id" value="${closedFittings.productId}">
  468. <input type="hidden" class="input-fc-id" value="${closedFittings.fittingsId}">
  469. -
  470. <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)" >
  471. </td>
  472. </tr>
  473. </#list>
  474. <#else >
  475. <tr>
  476. <td style="text-align: center;" colspan="4">选择订单后展示</td>
  477. </tr>
  478. </#if>
  479. <#-- <#list productList as product>
  480. <tr>
  481. <td width="80">
  482. <input type="hidden" value="${product.productId}"><span>${product.productName}</span>
  483. </td>
  484. <td style="padding: 0px;text-align: center;">
  485. <table style="height: 100%;">
  486. <tbody>
  487. <#list product.colorList as color>
  488. <tr>
  489. <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">
  490. ${color.colorName}
  491. </td>
  492. <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
  493. <input type="hidden" class="input-produce-id" value="${product.productId}">
  494. <input type="hidden" class="input-color-id" value="${color.colorId}">
  495. <#assign number = ""/>
  496. <#if (customerCommon.sendProdcues?size>0)>
  497. <#list customerCommon.sendProdcues as sendProdcues>
  498. <#if sendProdcues.colorId == color.colorId >
  499. <#assign number = sendProdcues.sendProdcueNumber/>
  500. </#if>
  501. </#list>
  502. <#else >
  503. <#list customerCommon.closedProdcues as closedProdcues>
  504. <#if closedProdcues.colorId == color.colorId >
  505. <#assign number = closedProdcues.closedProdcueNumber/>
  506. </#if>
  507. </#list>
  508. </#if>
  509. <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)">
  510. </td>
  511. </tr>
  512. </#list>
  513. </tbody>
  514. </table>
  515. </td>
  516. <td style="padding: 0px;text-align: center;">
  517. <table style="height: 100%;">
  518. <tbody>
  519. <#list product.fittingsList as fittingsInfo>
  520. <tr>
  521. <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">${fittingsInfo.fittingsName}</td>
  522. <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
  523. <input type="hidden" class="input-produce-id" value="${fittingsInfo.productId}">
  524. <input type="hidden" class="input-fittings-id" value="${fittingsInfo.fittingsId}">
  525. <#assign number = ""/>
  526. <#if (customerCommon.sendFittings?size>0)>
  527. <#list customerCommon.sendFittings as sendFittings>
  528. <#if sendFittings.fittingsId == fittingsInfo.fittingsId >
  529. <#assign number = sendFittings.sendFittingNumber/>
  530. </#if>
  531. </#list>
  532. <#else>
  533. <#list customerCommon.closedFittings as closedFittings>
  534. <#if closedFittings.fittingsId == fittingsInfo.fittingsId >
  535. <#assign number = closedFittings.closedFittingNumber/>
  536. </#if>
  537. </#list>
  538. </#if>
  539. <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)">
  540. </td>
  541. </tr>
  542. </#list>
  543. </tbody>
  544. </table>
  545. </td>
  546. </tr>
  547. </#list>-->
  548. </tbody>
  549. </table>
  550. </div>
  551. </div>
  552. <div class="row cl" id="TDScollect" style="display: none;">
  553. <label class="form-label col-1 col-sm-1">TDS收集:</label>
  554. <div class="formControls col-2 col-sm-2" style="position: relative;">
  555. <#--<input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
  556. <input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" value="" />
  557. <div id="suggest" class="ac_results"></div>-->
  558. <span class="select-box">
  559. <select name="initProvinceCode" class="select" id="initProvince">
  560. <option value="">请选择省份</option>
  561. </select>
  562. </span>
  563. </div>
  564. <div class="formControls col-2 col-sm-2">
  565. <span class="select-box">
  566. <select name="initCityCode" class="select" id="initCity<#--TDSArea-->" <#--name="TDSArea"-->>
  567. <option value="">请选择城市<#--请搜索城市--></option>
  568. </select>
  569. </span>
  570. </div>
  571. <div class="formControls col-2 col-sm-2" style="position: relative;">
  572. <span class="select-box">
  573. <select name="initDistrictCode" class="select" id="initCountry">
  574. <option value="">请选择区/县</option>
  575. </select>
  576. </span>
  577. </div>
  578. <#--<div class="formControls col-2 col-sm-2">
  579. <span class="select-box">
  580. <select name="" class="select" id="TDSArea" name="TDSArea">
  581. <option value="">请搜索城市</option>
  582. </select>
  583. </span>
  584. </div>-->
  585. <input type="hidden" name="customerArea" id="customerArea" value="${customerInfo.customerArea!''}">
  586. <div class="formControls col-1 col-sm-1">
  587. <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)">
  588. </div>
  589. <div class="formControls col-1 col-sm-1">
  590. <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)">
  591. </div>
  592. </div>
  593. <div class="row cl" id="TDScollectShow" /*style="display: none;"*/>
  594. <label class="form-label col-1 col-sm-1"></label>
  595. <div class="formControls col-6 col-sm-6">
  596. <span id="DTS-address"><#if customerInfo.customerArea??>地址:${customerInfo.customerArea}</#if></span>
  597. &nbsp;&nbsp;&nbsp;&nbsp;<span id="DTS-in"><#if customerInfo.customerInTDS??>进水:${customerInfo.customerInTDS} PPM</#if></span>&nbsp;&nbsp; <span id="DTS-out"><#if customerInfo.customerOutTDS??>出水:${customerInfo.customerOutTDS} PPM</#if></span>
  598. </div>
  599. </div>
  600. <div class="row cl" id="sendAddressInfo">
  601. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
  602. <div class="formControls col-5 col-sm-5" style="height: 250px" id="sendAddressSmsHtml">
  603. <#-- <script id="sendAddressSms" type="text/plain" style="width:983px;height:200px;"></script>
  604. </script>-->
  605. </div>
  606. </div>
  607. <div class="row cl" id="sendAddressByPhone" style="display: none;">
  608. <label class="form-label col-1 col-sm-1"></label>
  609. <div class="formControls col-2 col-sm-2">
  610. <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="m-phone" name="">
  611. </div>
  612. <div class="formControls col-2 col-sm-2" style="width: 10%">
  613. <input type="button" class="btn btn-primary" value="发短信给用户" onclick="sendPhone('m','m-msg');">
  614. </div>
  615. <div class="formControls col-2 col-sm-2 msg-phone">
  616. <div id="m-msg" style="color: #e00"></div>
  617. </div>
  618. </div>
  619. <div class="row cl" id="customerDescDiv">
  620. <label class="form-label col-1 col-sm-1">备注:</label>
  621. <div class="col-5 col-sm-5">
  622. <textarea type="text" placeholder="" id="customerDesc" name="customerDesc" style="width: 100%;height: 100px;">${customerInfo.customerDesc!''}</textarea>
  623. </div>
  624. </div>
  625. <div class="row cl" id="updateProduct" style="display: none;">
  626. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>更换产品:</label>
  627. <div class="formControls col-9 col-sm-9" >
  628. <table class="table table-border table-bg table-bordered">
  629. <thead>
  630. <tr class="text-c" id="table2">
  631. <th style="text-align: center;" width="60">产品名称</th>
  632. <th style="text-align: center;" width="60">产品颜色</th>
  633. <th style="text-align: center;" width="60">产品配件</th>
  634. </tr>
  635. </thead>
  636. <tbody id="back-product">
  637. <#-- <#list productList as product>
  638. <tr>
  639. <td width="80">
  640. <input type="hidden" value="${product.productId}"><span>${product.productName}</span>
  641. </td>
  642. <td style="padding: 0px;text-align: center;">
  643. <table style="height: 100%;">
  644. <tbody>
  645. <#list product.colorList as color>
  646. <tr>
  647. <td width="55" style="border-left: none;text-align: center;border-top: 1px solid #ddd;">
  648. ${color.colorName}
  649. </td>
  650. <td width="45" style="border-top: 1px solid #ddd; padding: 0px;width: 25px;">
  651. <input type="hidden" class="input-produce-id" value="${product.productId}">
  652. <input type="hidden" class="input-color-id" value="${color.colorId}">
  653. <#assign number = ""/>
  654. <#list customerCommon.closedProdcues as closedProdcues>
  655. <#if closedProdcues.colorId == color.colorId >
  656. <#assign number = closedProdcues.closedProdcueNumber/>
  657. </#if>
  658. </#list>
  659. <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)">
  660. </td>
  661. </tr>
  662. </#list>
  663. </tbody>
  664. </table>
  665. </td>
  666. <td style="padding: 0px;text-align: center;">
  667. <table style="height: 100%;">
  668. <tbody>
  669. <#list product.fittingsList as fittingsInfo>
  670. <tr>
  671. <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">${fittingsInfo.fittingsName}</td>
  672. <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
  673. <input type="hidden" class="input-produce-id" value="${fittingsInfo.productId}">
  674. <input type="hidden" class="input-fittings-id" value="${fittingsInfo.fittingsId}">
  675. <#assign number2 = ""/>
  676. <#list customerCommon.closedFittings as closedFittings>
  677. <#if closedFittings.fittingsId == fittingsInfo.fittingsId >
  678. <#assign number2 = closedFittings.closedFittingNumber/>
  679. </#if>
  680. </#list>
  681. <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)">
  682. </td>
  683. </tr>
  684. </#list>
  685. </tbody>
  686. </table>
  687. </td>
  688. </tr>
  689. </#list>-->
  690. </tbody>
  691. </table>
  692. </div>
  693. </div>
  694. <div class="row cl">
  695. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访信息:</label>
  696. <div class="formControls col-10 col-sm-10 skin-minimal">
  697. <div class="radio-box">
  698. <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" <#if customerInfo.customerIsVisit == '2' >checked</#if> >
  699. <label for="customer-visit-1">需要回访</label>
  700. </div>
  701. <div class="radio-box">
  702. <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" <#if customerInfo.customerIsVisit == '1' >checked</#if> >
  703. <label for="customer-visit-2">不需要回访</label>
  704. </div>
  705. </div>
  706. </div>
  707. <div id="needToVisit" style="<#if customerInfo.customerIsVisit == '1' >display: none;</#if>">
  708. <#if visit??>
  709. <#assign visitName = visit.visitName/>
  710. <#assign customerTel = visit.visitTel/>
  711. <#assign visitDate = visit.visitDate/>
  712. <#assign visitTimeSelect = visit.visitTimeSelect/>
  713. <#assign designatedAdminId = visit.designatedAdminId/>
  714. </#if>
  715. <div class="row cl">
  716. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>被回访人:</label>
  717. <div class="formControls col-2 col-sm-2">
  718. <input type="text" class="input-text" value="${visitName!''}" placeholder="填写回访人姓名" id="" name="visitName" errormsg="回访人姓名格式不正确!" >
  719. </div>
  720. <div class="formControls col-2 col-sm-2">
  721. <input type="text" class="input-text associated-phone" value="${customerTel!''}" placeholder="填写回访人手机号" id="" name="visitTel" errormsg="回访人手机号码格式不正确!">
  722. </div>
  723. </div>
  724. <div class="row cl">
  725. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访日期:</label>
  726. <div class="formControls col-2 col-sm-2">
  727. <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">
  728. </div>
  729. </div>
  730. <div class="row cl">
  731. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
  732. <div class="formControls col-10 col-sm-10 skin-minimal">
  733. <div class="radio-box">
  734. <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" <#if visitTimeSelect?? && visitTimeSelect== 1 >checked</#if> >
  735. <label for="visit-time-1">09:00-12:00</label>
  736. </div>
  737. <div class="radio-box">
  738. <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2" <#if visitTimeSelect?? && visitTimeSelect == 2 >checked</#if> >
  739. <label for="visit-time-2">12:00-14:00</label>
  740. </div>
  741. <div class="radio-box">
  742. <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3" <#if visitTimeSelect?? && visitTimeSelect == 3 >checked</#if> >
  743. <label for="visit-time-3">14:00-18:00</label>
  744. </div>
  745. </div>
  746. </div>
  747. <div class="row cl">
  748. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
  749. <div class="formControls col-4 col-sm-4"> <span class="select-box">
  750. <select class="select" id="visitAdminId" name="visitAdminId">
  751. <#list adminList as admin>
  752. <option value ="${admin.adminId!}" <#if designatedAdminId??><#if designatedAdminId == admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  753. </#list>
  754. </select>
  755. </span>
  756. </div>
  757. </div>
  758. <div class="cl" style="display: table;width: 100%;">
  759. <label class="form-label col-1 col-sm-1"></label>
  760. <div class="formControls col-4 col-sm-4">
  761. <span class="c-red" id="visitAdminIdMsg">您将为自己指定一个回访任务</span>
  762. </div>
  763. </div>
  764. </div>
  765. <div class="row cl">
  766. <div class="col-2 col-sm-2 col-offset-3">
  767. <button class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
  768. </div>
  769. </div>
  770. </form>
  771. </div>
  772. </article>
  773. <script type="text/javascript">
  774. var url_path = "${path}";
  775. </script>
  776. <#--时间控件-->
  777. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  778. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  779. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  780. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  781. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  782. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  783. <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
  784. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  785. <#--百度富文本编译器-->
  786. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  787. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  788. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  789. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  790. <#-- 业务脚本JS -->
  791. <script type="text/javascript" charset="utf-8" src="${path}/common/js/customer/customer.js"></script>
  792. <script type="text/javascript">
  793. var customerId = "${customerInfo.customerId!''}";
  794. /*是否是修改页面*/
  795. var isUpdate = true;
  796. /*是否需要回访 只有修改页面才会使用*/
  797. var customerIsVisit = true;
  798. /*个人id*/
  799. var adminId = 0;
  800. /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
  801. var allCustomerInfoType = ${customerInfo.customerCounselType};
  802. /*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
  803. var allCustomerType = ${customerInfo.customerIsSolve};
  804. var allCustomerTypeName = ["已解决","未解决","换新","维修","补发","退货","无理由退货"];
  805. /* 寄回地址的id */
  806. var complaint_questionId = 5;
  807. /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
  808. var isInitAddress = ${customerInfo.customerIsSolve!''};
  809. /*1:需要有订单 2:不需要有订单*/
  810. var isNeedSelectOrder = ${customerInfo.isNeedSelectOrder};
  811. $(function(){
  812. /*初始化省份*/
  813. initProvince();
  814. /*监听省份*/
  815. $("[name='initProvinceCode']").change(function (){
  816. initCity($(this).val());
  817. })
  818. /*监听城市*/
  819. $("[name='initCityCode']").change(function (){
  820. initDistrict($(this).val());
  821. })
  822. })
  823. /*初始化省份*/
  824. function initProvince() {
  825. //默认查询参数为空
  826. var provinceListInfo = null;
  827. $.ajax({
  828. type: "POST",
  829. data: {
  830. provinceId : provinceListInfo
  831. },
  832. url: "${path}/admin/customerBasic/query_provinceList",
  833. async: true,
  834. success: function(data){
  835. var html = '<option value="">请选择省份</option>';
  836. var id;
  837. if (data.returnCode == 200) {
  838. for(var i=0;i<data.returnMsg.provinceList.length;i++){
  839. provinceListInfo = data.returnMsg.provinceList[i];
  840. if(i == 0 ){
  841. id = provinceListInfo.provinceId;
  842. }
  843. html += '<option value="'+ provinceListInfo.provinceId +'">'+ provinceListInfo.province +'</option>';
  844. }
  845. }else{
  846. html = '';
  847. }
  848. $("[name='initProvinceCode']").html(html);
  849. },
  850. error: function(XmlHttpRequest, textStatus, errorThrown){
  851. }
  852. });
  853. }
  854. /*根据省份代号初始化城市*/
  855. function initCity(customerProvinceId){
  856. var cityListInfo = null;
  857. if(customerProvinceId == null || customerProvinceId == ""){
  858. var html = '<option value="">请选择城市</option>';
  859. $("[name='initCityCode']").html(html);
  860. }else{
  861. $.ajax({
  862. type: "POST",
  863. data: {
  864. provinceId : customerProvinceId
  865. },
  866. url: "${path}/admin/customerBasic/query_cityList",
  867. async: true,
  868. success: function(data){
  869. var html = '<option value="">请选择城市</option>';
  870. if (data.returnCode == 200) {
  871. for(var i=0;i<data.returnMsg.cityList.length;i++){
  872. cityListInfo = data.returnMsg.cityList[i];
  873. html += '<option value="'+ cityListInfo.cityId +'">'+ cityListInfo.city +'</option>';
  874. }
  875. }else{
  876. html = '';
  877. }
  878. $("[name='initCityCode']").html(html);
  879. },
  880. error: function(XmlHttpRequest, textStatus, errorThrown){
  881. }
  882. });
  883. }
  884. }
  885. /*根据省份代号初始化区/县*/
  886. function initDistrict(customerCityId){
  887. var districtListInfo = null;
  888. if(customerCityId == null || customerCityId == ""){
  889. var html = '<option value="">请选择区/县</option>';
  890. $("[name='initDistrictCode']").html(html);
  891. }else{
  892. $.ajax({
  893. type: "POST",
  894. data: {
  895. cityId : customerCityId
  896. },
  897. url: "${path}/admin/customerBasic/query_districtList",
  898. async: true,
  899. success: function(data){
  900. var html = '<option value="">请选择区/县</option>';
  901. if (data.returnCode == 200) {
  902. for(var i=0;i<data.returnMsg.districtList.length;i++){
  903. districtListInfo = data.returnMsg.districtList[i];
  904. html += '<option value="'+ districtListInfo.districtId +'">'+ districtListInfo.district +'</option>';
  905. }
  906. }else{
  907. html = '';
  908. }
  909. $("[name='initDistrictCode']").html(html);
  910. },
  911. error: function(XmlHttpRequest, textStatus, errorThrown){
  912. }
  913. });
  914. }
  915. }
  916. /*初始化页面参数*/
  917. $(function () {
  918. /* 初始化单选框样式 */
  919. //initCheck();
  920. /*初始化产品类型 -- 客诉头部的产品类型单选 */
  921. //initProduceType();
  922. /*初始化问题分类*/
  923. //initComplaintTypeInfo();
  924. /*初始化客服*/
  925. ///initSysAdmin();
  926. /*初始化回访客服*/
  927. //initVisitSysAdmin();
  928. /*初始化问题描述*/
  929. initQuestionDescribe();
  930. /*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
  931. initProcessResult(allCustomerType);
  932. /*监听来源入口选择事件*/
  933. $("input[name='customerSourceType']").change(function (){
  934. var type = parseInt($(this).val());
  935. if(type == 3){
  936. $("#customerSourceOld").show();
  937. }else{
  938. $("#customerSourceOld").hide();
  939. }
  940. })
  941. /*监听客诉类型选择事件*/
  942. $("input[name='customerCounselType']").change(function (){
  943. allCustomerInfoType = parseInt($(this).val());
  944. if(allCustomerInfoType == 1){
  945. $("#customer-process-1").iCheck('check'); //设置已解决
  946. $("#twiceSellEnd").hide();
  947. $("#openTheLock").hide();
  948. allCustomerType = 1;
  949. }else{
  950. $("#customer-process-3").iCheck('check'); //设置换新
  951. $("#twiceSellEnd").show();
  952. $("#openTheLock").show();
  953. allCustomerType =3;
  954. }
  955. initProcessResult(allCustomerType,allCustomerInfoType);
  956. })
  957. var ty = parseInt($("input[name='typeId']:checked").val());
  958. var isOrder = 1;
  959. switch (ty){ //1:Soodo电动牙刷 6:WaterO净水机 7:Aiberle净水机 9 :YULIA净水机
  960. case 1:
  961. isOrder = 2;
  962. break;
  963. case 6:
  964. isOrder = 1;
  965. break;
  966. case 7:
  967. isOrder = 1;
  968. break;
  969. case 9:
  970. isOrder = 1;
  971. break;
  972. default:
  973. break;
  974. }
  975. opentionSelectOrder(isOrder);
  976. /*绑定产品类型选择事件*/
  977. $("input[name='typeId']").change(function (){
  978. var typeId = parseInt($(this).val());
  979. var isOrder = 1;
  980. switch (typeId){ //1:Soodo电动牙刷 6:WaterO净水机 7:Aiberle净水机 9 :YULIA净水机
  981. case 1:
  982. isOrder = 2;
  983. break;
  984. case 6:
  985. isOrder = 1;
  986. break;
  987. case 7:
  988. isOrder = 1;
  989. break;
  990. case 9:
  991. isOrder = 1;
  992. break;
  993. default:
  994. break;
  995. }
  996. opentionSelectOrder(isOrder);
  997. })
  998. /*监听处理结果选择事件*/
  999. $("[name='customerIsSolve']").change(function(){
  1000. initProcessResult(parseInt($(this).val()));
  1001. })
  1002. /*监听问题类型 选择事件*/
  1003. $("[name='complaintId']").change(function(){
  1004. initComplaintSmallClassInfo($(this).val());
  1005. })
  1006. /*监听问题关键字搜索*/
  1007. $(document).on('click', '#search_button', function() {
  1008. initComplaintQuestionInfo("p");
  1009. });
  1010. /*搜索订单事件*/
  1011. $(document).on('click', '#selectOrder', function() {
  1012. selectOrder();
  1013. });
  1014. /*监听省选择事件*/
  1015. $(document).on('change', '#province', function() {
  1016. var proId = $("#province").val();
  1017. var cityId = setCity("",proId,2)
  1018. setDistrict("",cityId,2)
  1019. });
  1020. /*监听市选择事件*/
  1021. $(document).on('change', '#city', function() {
  1022. var city = $("#city").val();
  1023. setDistrict("",city,2)
  1024. });
  1025. /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
  1026. initVisitEvent();
  1027. /*监听回访选择客服的选择事件*/
  1028. $(document).on('change', '#visitAdminId', function() {
  1029. var visitAdminName = $("#visitAdminId").find("option:selected").text();
  1030. var visitAdminId = $("#visitAdminId").val();
  1031. if(convertUndefinedToEmpty(visitAdminId) == adminId){
  1032. showVisitMsg(1);
  1033. }else{
  1034. showVisitMsg(2,visitAdminName);
  1035. }
  1036. });
  1037. /* 监听TDS收集--地址选择 */
  1038. $(document).on('change', '#TDSArea', function() {
  1039. setTDSCollect();
  1040. });
  1041. /*实时监听文本框-- TDS进水*/
  1042. // document.getElementById("customerInTDS").addEventListener("input", function(){
  1043. // setTDSCollect();
  1044. // });
  1045. /*实时监听文本框-- TDS出水*/
  1046. // document.getElementById("customerOutTDS").addEventListener("input", function(){
  1047. // setTDSCollect();
  1048. // });
  1049. /* 监听手机号 失去焦点时 将其他手机号码未填的 */
  1050. $(".associated-phone").blur(function (){
  1051. var phone = $(this).val();
  1052. $(".associated-phone").each(function(){
  1053. var ph = $(this).val();
  1054. if(ph == null || ph == "" || typeof(ph) == undefined ){
  1055. $(this).val(phone);
  1056. }
  1057. })
  1058. })
  1059. })
  1060. /**
  1061. * 初始化问题描述
  1062. */
  1063. function initQuestionDescribe(){
  1064. $.ajax({
  1065. type: "POST",
  1066. data: {
  1067. customerId : "${customerInfo.customerId!''}"
  1068. },
  1069. url: "${path}/admin/customer/select_question_describe",
  1070. success: function(data){
  1071. if (data.returnCode == 200) {
  1072. var questionDescribe = data.returnMsg.questionDescribe;
  1073. $("#describeTitle").val(questionDescribe.describeTitle);
  1074. $("#describeId").val(questionDescribe.describeId);
  1075. $("#describeHandleDesc").val(questionDescribe.describeHandleDesc);
  1076. describeContentText.addListener("ready", function () {
  1077. describeContentText.setContent(questionDescribe.describeContent);
  1078. });
  1079. describeHandleDescText.addListener("ready", function () {
  1080. describeHandleDescText.setContent(questionDescribe.describeHandleDesc);
  1081. });
  1082. }
  1083. },
  1084. error: function(XmlHttpRequest, textStatus, errorThrown){
  1085. }
  1086. });
  1087. }
  1088. /**
  1089. * 设置省市区
  1090. */
  1091. function setAddressInfo(){
  1092. var proId = setPro(null,1); //创建省
  1093. <#if customerCommon.provinceNumber?? >
  1094. var proId = ${customerCommon.provinceNumber!''};
  1095. $("#province option[value='"+ proId +"']").attr("selected","true"); //设置省
  1096. </#if>
  1097. var cityId = setCity(null,proId,2);
  1098. <#if customerCommon.cityNumber?? >
  1099. var cityId = ${customerCommon.cityNumber!''};
  1100. $("#city option[value='" + cityId + "']").attr("selected", "true"); //设置市
  1101. </#if>
  1102. setDistrict(null, cityId, 2);
  1103. <#if customerCommon.areaNumber?? >
  1104. var disId = ${customerCommon.areaNumber!''};
  1105. $("#district option[value='" + disId + "']").attr("selected", "true"); //设置地区
  1106. isInitAddress = 1;
  1107. </#if>
  1108. }
  1109. </script>
  1110. <!--/请在上方写此页面业务相关的脚本-->
  1111. </body>
  1112. </html>