add_customer.ftl 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  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/save_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
  66. <input type="hidden" id="isNeedSelectOrder" name="isNeedSelectOrder" value="">
  67. <div class="row cl">
  68. <label class="form-label col-3">
  69. <div class="tit-2">客诉基本信息</div>
  70. </label>
  71. <div class="formControls col-9">
  72. </div>
  73. </div>
  74. <div class="row cl">
  75. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>跟进客服:</label>
  76. <div class="formControls col-4 col-sm-4"> <span class="select-box" style=" width: 625px;">
  77. <select name="adminId" id="adminId" class="select">
  78. </select>
  79. </span>
  80. </div>
  81. </div>
  82. <div class="row cl">
  83. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>来源入口:</label>
  84. <div class="formControls col-10 col-sm-10 skin-minimal">
  85. <div class="radio-box">
  86. <input type="radio" id="tel-1" name="customerSourceType" value="1" >
  87. <label for="tel-1">400电话</label>
  88. </div>
  89. <div class="radio-box">
  90. <input type="radio" id="tel-2" name="customerSourceType" value="2" checked>
  91. <label for="tel-2">微信公众号</label>
  92. </div>
  93. <div class="radio-box">
  94. <input type="radio" id="tel-3" name="customerSourceType" value="3">
  95. <label for="tel-3">其他</label>
  96. <input type="text" style="width: 321px;margin-left: 10px; display: none;" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
  97. <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource">
  98. </div>
  99. </div>
  100. </div>
  101. <div class="row cl">
  102. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
  103. <div class="formControls col-10 col-sm-10 skin-minimal">
  104. <div class="radio-box">
  105. <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" >
  106. <label for="customer-type-1">售前咨询</label>
  107. </div>
  108. <div class="radio-box">
  109. <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" checked>
  110. <label for="customer-type-2">售后咨询</label>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="row cl">
  115. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
  116. <input type="hidden" id="typeCompany" name="typeCompany" value="">
  117. <div class="formControls col-10 col-sm-10 skin-minimal produce_type_html" id="produceTypeHtml">
  118. <#--<div class="radio-box">
  119. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  120. <label for="tel-3">净水机</label>
  121. </div>
  122. <div class="radio-box">
  123. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  124. <label for="tel-4">冲奶机</label>
  125. </div>-->
  126. </div>
  127. </div>
  128. <div class="row cl" id="salesChannelsSelect">
  129. <input type="hidden" id="companyId" name="companyId" value="" >
  130. <input type="hidden" id="storeId" name="storeId" value="" >
  131. <label class="form-label col-1 col-sm-1">销售渠道:</label>
  132. <div class="formControls col-2 col-sm-2">
  133. <span class="select-box">
  134. <select id="selectCompany" class="select" name="">
  135. </select>
  136. </span>
  137. </div>
  138. <div class="formControls col-2 col-sm-2">
  139. <span class="select-box">
  140. <select id="selectStore" class="select" name="">
  141. </select>
  142. </span>
  143. </div>
  144. </div>
  145. <div class="row cl">
  146. <label class="form-label col-1 col-sm-1">客户信息:</label>
  147. <div class="formControls col-2 col-sm-2 skin-minimal">
  148. <input type="text" class="input-text trim_input" placeholder="微信昵称" id="customerWechatName" name="customerWechatName" value="">
  149. </div>
  150. <div class="formControls col-2 col-sm-2 skin-minimal">
  151. <input type="text" class="input-text trim_input" placeholder="用户姓名" id="customerName" name="customerName" value="">
  152. </div>
  153. <div class="formControls col-2 col-sm-2 skin-minimal">
  154. <input type="text" class="input-text associated-phone" placeholder="用户电话" id="customerTel" name="customerTel" value="">
  155. </div>
  156. </div>
  157. <div class="row cl">
  158. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>二次售后:</label>
  159. <div class="formControls col-10 col-sm-10 skin-minimal">
  160. <div class="radio-box">
  161. <input type="radio" name="customerSecondaryCustomer" value="1" >
  162. <label for="customer-type-1">是</label>
  163. </div>
  164. <div class="radio-box">
  165. <input type="radio" name="customerSecondaryCustomer" value="2" checked>
  166. <label for="customer-type-2">否</label>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="row cl">
  171. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开箱损:</label>
  172. <div class="formControls col-10 col-sm-10 skin-minimal">
  173. <div class="radio-box">
  174. <input type="radio" name="customerOutDamaged" value="1" >
  175. <label for="customer-type-1">是</label>
  176. </div>
  177. <div class="radio-box">
  178. <input type="radio" name="customerOutDamaged" value="2" checked>
  179. <label for="customer-type-2">否</label>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="row cl" style="position: relative;">
  184. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
  185. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  186. <select name="complaintId" class="select">
  187. <option value="">请选择问题分类</option>
  188. <#--<option value="0">使用操作</option>-->
  189. <#--<option value="1">使用操作</option>-->
  190. </select>
  191. </span>
  192. </div>
  193. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  194. <select name="smallClassId" id="smallClassId" class="select">
  195. <option value="">请选择问题分类</option>
  196. <#--<option value="0">使用操作制水出水</option>
  197. <option value="1">使用操作制水出水</option>-->
  198. </select>
  199. </span>
  200. </div>
  201. <div class="formControls col-2 col-sm-2">
  202. <div class="clearfix">
  203. <input type="text" placeholder="搜索关键词" class="input-text ac_input trim_input" name="questionIdMsg" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
  204. </div>
  205. </div>
  206. <div class="dalog-ask">
  207. <div class="tag">
  208. <em></em>
  209. <strong>相关QA</strong>
  210. <a href="javascript:void(0)" style="margin-left: 200px;" onclick="closeQA()">关闭</a>
  211. <ul id="question" style="padding-top: 15px">
  212. <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
  213. <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
  214. </ul>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="row cl">
  219. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
  220. <div class="formControls col-5 col-sm-5">
  221. <input type="text" class="input-text trim_input" style="width: 625px;" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" >
  222. </div>
  223. </div>
  224. <div class="row cl">
  225. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题回复:</label>
  226. <div class="formControls col-5 col-sm-5">
  227. <input type="hidden" name="questionId" id="questionId" value="">
  228. <script id="describeContentText" type="text/plain" style="width:983px;height:250px;"></script>
  229. </script>
  230. <input type="hidden" name="describeContent" id="describeContent" value="">
  231. </div>
  232. </div>
  233. <div class="row cl">
  234. <#--处理描述 - 客诉备注-->
  235. <label class="form-label col-1 col-sm-1">问题描述:</label>
  236. <div class="formControls col-5 col-sm-5">
  237. <span>问题描述详情,内部使用,不会对外公布。</span>
  238. <script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
  239. </script>
  240. <input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
  241. </div>
  242. </div>
  243. <div class="row cl">
  244. <label class="form-label col-1 col-sm-1"></label>
  245. <div class="formControls col-2 col-sm-2">
  246. <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="p-phone" name="">
  247. </div>
  248. <div class="formControls col-2 col-sm-2" style="width: 10%">
  249. <input type="button" class="btn btn-primary" value="发送问题回复给用户" onclick="sendPhone('p','p-msg');">
  250. </div>
  251. <div class="formControls col-2 col-sm-2" style="width: 10%; margin-left: 40px;">
  252. <input type="button" class="btn btn-primary" value="保存QA" onclick="saveQuestion(1);">
  253. </div>
  254. <div class="formControls col-2 col-sm-2 msg-phone">
  255. <div id="p-msg" style="color: #e00"></div>
  256. </div>
  257. </div>
  258. <div class="row cl">
  259. <label class="form-label col-1 col-sm-1">
  260. <div class="tit">处理结果</div>
  261. </label>
  262. <div class="formControls col-10 col-sm-10">
  263. </div>
  264. </div>
  265. <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
  266. <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
  267. <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
  268. <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
  269. <div class="row cl">
  270. <label class="form-label col-1 col-sm-1">处理类型:</label>
  271. <div class="formControls col-10 col-sm-10 skin-minimal">
  272. <div class="radio-box" id="solved">
  273. <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" >
  274. <label for="customer-process-1">已解决</label>
  275. </div>
  276. <div class="radio-box" id="noSolved">
  277. <input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
  278. <label for="customer-process-2">未解决</label>
  279. </div>
  280. <div class="radio-box" id="renewed" style="display: none">
  281. <input type="radio" id="customer-process-3" value="3" name="customerIsSolve" checked>
  282. <label for="customer-process-3">换新</label>
  283. </div>
  284. <div class="radio-box" id="maintain" style="display: none">
  285. <input type="radio" id="customer-process-4" value="4" name="customerIsSolve" >
  286. <label for="customer-process-4">维修</label>
  287. </div>
  288. <div class="radio-box" id="reissue" style="display: none">
  289. <input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
  290. <label for="customer-process-5">补发</label>
  291. </div>
  292. <div class="radio-box" id="backGoods" style="display: none">
  293. <input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
  294. <label for="customer-process-6">退货</label>
  295. </div>
  296. <div class="radio-box" id="noReasonBack" style="display: none">
  297. <input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
  298. <label for="customer-process-7">无理由退货</label>
  299. </div>
  300. </div>
  301. </div>
  302. <div class="row cl">
  303. <label class="form-label col-1 col-sm-1"></label>
  304. <div class="formControls col-10 col-sm-10">
  305. <ul class="time-line-list" id="processResultStatus">
  306. <#-- <li><span class="arrow"></span><div class="number">1</div><div>录入客诉</div></li>
  307. <li><span class="arrow"></span><div class="number">2</div><div>督促用户寄回</div></li>
  308. <li><span class="arrow"></span><div class="number">3</div><div>录入快递单号</div></li>
  309. <li><span class="arrow"></span><div class="number">4</div><div>仓库收货</div></li>
  310. <li><span class="arrow"></span><div class="number">5</div><div>换新发货</div></li>
  311. <li><span class="arrow"></span><div class="number">6</div><div>发货通知用户</div></li>
  312. <li><span class="arrow"></span><div class="number">7</div><div>收货后回访</div></li>-->
  313. </ul>
  314. </div>
  315. </div>
  316. <div class="row cl" id="orderHead" style="display: none;">
  317. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>订单信息:</label>
  318. <div class="formControls col-1 col-sm-1">
  319. <button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>
  320. </div>
  321. </div>
  322. <div class="row cl" id="order" style="display: none;">
  323. <label class="form-label col-1 col-sm-1"></label>
  324. <div class="formControls col-9 col-sm-9 text-c">
  325. <table class="table table-border table-bg table-bordered">
  326. <tr>
  327. <th style="text-align: center;">销售公司</th>
  328. <th style="text-align: center;">店铺名称</th>
  329. <th style="text-align: center;">Efast订单号</th>
  330. <th style="text-align: center;">姓名</th>
  331. <th style="text-align: center;">电话</th>
  332. <th style="text-align: center;">订单金额</th>
  333. <th style="text-align: center;">购买产品</th>
  334. <th style="text-align: center;">购买日期</th>
  335. </tr>
  336. <tr id="showOrder">
  337. <td style="text-align: center;" colspan="8">暂未选择订单</td>
  338. </tr>
  339. <tr id="showOrderAddress" style="display: none">
  340. <td style="text-align: center;" colspan="8">暂未选择订单</td>
  341. </tr>
  342. </table>
  343. <input type="hidden" id="orderId" name="salesId" value="" >
  344. </div>
  345. </div>
  346. <div class="row cl" id="recipientInfoTitle" style="display: none;">
  347. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
  348. <div class="formControls col-8 col-sm-8">请先选择订单,系统自动填充姓名,电话和地址信息。</div>
  349. </div>
  350. <div class="row cl" id="recipientInfo" style="display: none;">
  351. <label class="form-label col-1 col-sm-1"></label>
  352. <div class="formControls col-2 col-sm-2">
  353. <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="*1-16" errormsg="联系人格式不正确!" >
  354. </div>
  355. <div class="formControls col-2 col-sm-2">
  356. <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
  357. </div>
  358. <div class="formControls col-2 col-sm-2" id="postageAccount">
  359. <input type="text" class="input-text" value="" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
  360. </div>
  361. </div>
  362. <div class="row cl" id="recipientAddress" style="display: none;">
  363. <input type="hidden" id="addressInfo">
  364. <label class="form-label col-1 col-sm-1"></label>
  365. <div class="formControls col-2 col-sm-2">
  366. <span class="select-box">
  367. <select id="province" class="select" name="provinceNumber">
  368. </select>
  369. </span>
  370. </div>
  371. <div class="formControls col-2 col-sm-2">
  372. <span class="select-box">
  373. <select id="city" class="select" name="cityNumber">
  374. </select>
  375. </span>
  376. </div>
  377. <div class="formControls col-2 col-sm-2">
  378. <span class="select-box">
  379. <select id="district" class="select" name="areaNumber">
  380. </select>
  381. </span>
  382. </div>
  383. <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
  384. </div>
  385. <div class="row cl" id="recipientAddressText" style="display: none;">
  386. <label class="form-label col-1 col-sm-1"></label>
  387. <div class="formControls col-5 col-sm-5">
  388. <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" datatype="*" errormsg="收货地址不正确!" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)"></textarea>
  389. <span id="addrssMsg"></span>
  390. </div>
  391. </div>
  392. <div class="row cl" id="renewedProduct" style="display: none;">
  393. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
  394. <div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
  395. <table class="table table-border table-bg table-bordered">
  396. <thead>
  397. <tr class="text-c" id="table1">
  398. <th style="text-align: center;" width="60">产品名称</th>
  399. <th style="text-align: center;" width="60">产品颜色</th>
  400. <th style="text-align: center;" width="60">产品配件</th>
  401. </tr>
  402. </thead>
  403. <tbody id="addProduct">
  404. <tr id="">
  405. <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. </div>
  410. </div>
  411. <div class="row cl" id="TDScollect" style="display: none;">
  412. <label class="form-label col-1 col-sm-1">TDS收集:</label>
  413. <div class="formControls col-2 col-sm-2" style="position: relative;">
  414. <input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
  415. <input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" />
  416. <div id="suggest" class="ac_results"></div>
  417. </div>
  418. <div class="formControls col-2 col-sm-2">
  419. <span class="select-box">
  420. <select name="" class="select" id="TDSArea" name="TDSArea">
  421. <option value="">请搜索城市</option>
  422. </select>
  423. </span>
  424. </div>
  425. <input type="hidden" name="customerArea" id="customerArea">
  426. <div class="formControls col-2 col-sm-2">
  427. <input type="text" class="input-text" value="" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
  428. </div>
  429. <div class="formControls col-2 col-sm-2">
  430. <input type="text" class="input-text" value="" placeholder="出水TDS数值,最大999" id="customerOutTDS" name="customerOutTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
  431. </div>
  432. </div>
  433. <div class="row cl" id="TDScollectShow" style="display: none;">
  434. <label class="form-label col-1 col-sm-1"></label>
  435. <div class="formControls col-6 col-sm-6">
  436. <span id="DTS-address"></span>
  437. &nbsp;&nbsp;&nbsp;&nbsp;<span id="DTS-in"></span>&nbsp;&nbsp; <span id="DTS-out"></span>
  438. </div>
  439. </div>
  440. <div class="row cl" id="sendAddressInfo">
  441. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
  442. <div class="formControls col-5 col-sm-5" style="height: 240px" id="sendAddressSmsHtml">
  443. <#-- <script id="sendAddressSms" type="text/plain" style="width:983px;height:200px;"></script>
  444. </script>-->
  445. </div>
  446. </div>
  447. <div class="row cl" id="sendAddressByPhone" style="display: none;">
  448. <label class="form-label col-1 col-sm-1"></label>
  449. <div class="formControls col-2 col-sm-2">
  450. <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="m-phone" name="">
  451. </div>
  452. <div class="formControls col-2 col-sm-2" style="width: 10%">
  453. <input type="button" class="btn btn-primary" value="发短信给用户" onclick="sendPhone('m','m-msg');">
  454. </div>
  455. <div class="formControls col-2 col-sm-2 msg-phone">
  456. <div id="m-msg" style="color: #e00"></div>
  457. </div>
  458. </div>
  459. <div class="row cl" id="customerDescDiv">
  460. <label class="form-label col-1 col-sm-1">备注:</label>
  461. <div class="col-5 col-sm-5">
  462. <textarea type="text" placeholder="" id="customerDesc" name="customerDesc" style="width: 340px;height: 100px;"></textarea>
  463. </div>
  464. </div>
  465. <div class="row cl" id="updateProduct" style="display: none;">
  466. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>更换产品:</label>
  467. <div class="formControls col-9 col-sm-9" >
  468. <table class="table table-border table-bg table-bordered">
  469. <thead>
  470. <tr class="text-c" id="table2">
  471. <th style="text-align: center;" width="60">产品名称</th>
  472. <th style="text-align: center;" width="60">产品颜色</th>
  473. <th style="text-align: center;" width="60">产品配件</th>
  474. </tr>
  475. </thead>
  476. <tbody id="back-product">
  477. <#if productList??>
  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. <#list customerCommon.sendProdcues as sendProdcues>
  496. <#if sendProdcues.colorId == color.colorId >
  497. <#assign number = sendProdcues.sendProdcueNumber/>
  498. </#if>
  499. </#list>
  500. <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)">
  501. </td>
  502. </tr>
  503. </#list>
  504. </tbody>
  505. </table>
  506. </td>
  507. <td style="padding: 0px;text-align: center;">
  508. <table style="height: 100%;">
  509. <tbody>
  510. <#list product.fittingsList as fittingsInfo>
  511. <tr>
  512. <td width="55" style="border-left: none;text-align: center; border-top: 1px solid #ddd;">${fittingsInfo.fittingsName}</td>
  513. <td width="45" style="border-top: 1px solid #ddd;padding: 0px;width: 25px;">
  514. <input type="hidden" class="input-produce-id" value="${fittingsInfo.productId}">
  515. <input type="hidden" class="input-fittings-id" value="${fittingsInfo.fittingsId}">
  516. <#assign number = ""/>
  517. <#list customerCommon.sendFittings as sendFittings>
  518. <#if sendFittings.fittingsId == fittingsInfo.fittingsId >
  519. <#assign number = sendFittings.sendFittingNumber/>
  520. </#if>
  521. </#list>
  522. <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)">
  523. </td>
  524. </tr>
  525. </#list>
  526. </tbody>
  527. </table>
  528. </td>
  529. </tr>
  530. </#list>
  531. </#if>
  532. </tbody>
  533. </table>
  534. </div>
  535. </div>
  536. <div class="row cl">
  537. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访信息:</label>
  538. <div class="formControls col-10 col-sm-10 skin-minimal">
  539. <div class="radio-box">
  540. <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" >
  541. <label for="customer-visit-1">需要回访</label>
  542. </div>
  543. <div class="radio-box">
  544. <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" checked>
  545. <label for="customer-visit-2">不需要回访</label>
  546. </div>
  547. </div>
  548. </div>
  549. <div id="needToVisit" style="display: none;">
  550. <div class="row cl">
  551. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>被回访人:</label>
  552. <div class="formControls col-2 col-sm-2">
  553. <input type="text" class="input-text trim_input" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="*1-16" errormsg="回访人姓名格式不正确!" >
  554. </div>
  555. <div class="formControls col-2 col-sm-2">
  556. <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" ignore="ignore" errormsg="回访人手机号码格式不正确!">
  557. </div>
  558. </div>
  559. <div class="row cl">
  560. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访日期:</label>
  561. <div class="formControls col-2 col-sm-2">
  562. <input type="text" placeholder="请选择回访日期" id="datemin" name="visitDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
  563. </div>
  564. </div>
  565. <div class="row cl">
  566. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
  567. <div class="formControls col-10 col-sm-10 skin-minimal">
  568. <div class="radio-box">
  569. <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" checked>
  570. <label for="visit-time-1">09:00-12:00</label>
  571. </div>
  572. <div class="radio-box">
  573. <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2">
  574. <label for="visit-time-2">12:00-14:00</label>
  575. </div>
  576. <div class="radio-box">
  577. <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3">
  578. <label for="visit-time-3">14:00-18:00</label>
  579. </div>
  580. </div>
  581. </div>
  582. <div class="row cl">
  583. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
  584. <div class="formControls col-4 col-sm-4"> <span class="select-box">
  585. <select class="select" id="visitAdminId" name="visitAdminId">
  586. </select>
  587. </span>
  588. </div>
  589. </div>
  590. <div class="cl" style="display: table;width: 100%;">
  591. <label class="form-label col-1 col-sm-1"></label>
  592. <div class="formControls col-4 col-sm-4">
  593. <span class="c-red" id="visitAdminIdMsg">您将为自己指定一个回访任务</span>
  594. </div>
  595. </div>
  596. </div>
  597. <div class="row cl">
  598. <div class="col-2 col-sm-2 col-offset-3">
  599. <button class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
  600. </div>
  601. </div>
  602. </form>
  603. </div>
  604. </article>
  605. <script type="text/javascript">
  606. var url_path = "${path}";
  607. </script>
  608. <#--时间控件-->
  609. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  610. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  611. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  612. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  613. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  614. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  615. <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
  616. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  617. <#--百度富文本编译器-->
  618. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  619. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  620. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  621. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  622. <#-- 业务脚本JS -->
  623. <script type="text/javascript" charset="utf-8" src="${path}/common/js/customer/customer.js"></script>
  624. <script>
  625. $(function(){
  626. })
  627. /*是否是修改页面*/
  628. var isUpdate = false;
  629. /*是否需要回访 只有修改页面才会使用*/
  630. var customerIsVisit = false;
  631. /*个人id*/
  632. var adminId = 0;
  633. /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
  634. var allCustomerInfoType;
  635. /*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
  636. var allCustomerType = 1;
  637. var allCustomerTypeName = ["已解决","未解决","换新","维修","补发","退货","无理由退货"];
  638. /* 寄回地址的id */
  639. var complaint_questionId = 5;
  640. /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
  641. var isInitAddress = 0;
  642. /*获取客服*/
  643. var sysAminList;
  644. /*1:需要有订单 2:不需要有订单*/
  645. var isNeedSelectOrder;
  646. /*初始化页面参数*/
  647. $(function () {
  648. /* 初始化单选框样式 */
  649. //initCheck();
  650. /*初始化产品类型 -- 客诉头部的产品类型单选 */
  651. initProduceType();
  652. /*初始化问题分类*/
  653. initComplaintTypeInfo();
  654. /*初始化客服*/
  655. initSysAdmin();
  656. /*初始化回访客服*/
  657. initVisitSysAdmin();
  658. /*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
  659. initProcessResult(3);
  660. /*监听来源入口选择事件*/
  661. $("input[name='customerSourceType']").change(function (){
  662. var type = parseInt($(this).val());
  663. if(type == 3){
  664. $("#customerSourceOld").show();
  665. }else{
  666. $("#customerSourceOld").hide();
  667. }
  668. })
  669. /*监听客诉类型选择事件*/
  670. $("input[name='customerCounselType']").change(function (){
  671. allCustomerInfoType = parseInt($(this).val());
  672. if(allCustomerInfoType == 1){
  673. $("#customer-process-1").iCheck('check'); //设置已解决
  674. allCustomerType = 1;
  675. }else{
  676. $("#customer-process-3").iCheck('check'); //设置换新
  677. allCustomerType =3;
  678. }
  679. initProcessResult(allCustomerType);
  680. })
  681. /*监听处理结果选择事件*/
  682. $("[name='customerIsSolve']").change(function(){
  683. initProcessResult(parseInt($(this).val()));
  684. })
  685. /*监听问题类型 选择事件*/
  686. $("[name='complaintId']").change(function(){
  687. initComplaintSmallClassInfo($(this).val());
  688. })
  689. /*监听问题关键字搜索*/
  690. $(document).on('click', '#search_button', function() {
  691. initComplaintQuestionInfo("p");
  692. });
  693. /*搜索订单事件*/
  694. $(document).on('click', '#selectOrder', function() {
  695. selectOrder();
  696. });
  697. /*监听省选择事件*/
  698. $(document).on('change', '#province', function() {
  699. var proId = $("#province").val();
  700. var cityId = setCity("",proId,2)
  701. setDistrict("",cityId,2)
  702. });
  703. /*监听市选择事件*/
  704. $(document).on('change', '#city', function() {
  705. var city = $("#city").val();
  706. setDistrict("",city,2)
  707. });
  708. /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
  709. // initVisitEvent();
  710. /*监听回访选择客服的选择事件*/
  711. $(document).on('change', '#visitAdminId', function() {
  712. var visitAdminName = $("#visitAdminId").find("option:selected").text();
  713. var visitAdminId = $("#visitAdminId").val();
  714. if(convertUndefinedToEmpty(visitAdminId) == adminId){
  715. showVisitMsg(1);
  716. }else{
  717. showVisitMsg(2,visitAdminName);
  718. }
  719. });
  720. /* 监听TDS收集--地址选择 */
  721. $(document).on('change', '#TDSArea', function() {
  722. setTDSCollect();
  723. });
  724. /* 监听手机号 失去焦点时 将其他手机号码未填的 补充上去 */
  725. $(".associated-phone").blur(function (){
  726. var phone = $.trim($(this).val());
  727. $(this).val(phone);
  728. if(phone.length == 11 && phoneReg.test(phone)){
  729. $(".associated-phone").each(function(){
  730. var ph = $(this).val();
  731. if(ph == null || ph == "" || typeof(ph) == "undefined" || ph.length != 11){
  732. $(this).val(phone);
  733. }
  734. })
  735. }
  736. })
  737. })
  738. </script>
  739. </body>
  740. </html>