update_customer.ftl 60 KB

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