add_customer.ftl 54 KB

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