update_customer.ftl 58 KB

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