update_customer.ftl 58 KB

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