update_customer.ftl 60 KB

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