update_customer.ftl 69 KB

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