add_customer.ftl 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  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. .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">/</span> 客诉管理
  65. <span class="c-gray en">/</span> 添加客诉
  66. <a class="btn radius r"
  67. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  68. <a class="btn radius r"
  69. href="javascript:history.back(-1);" title="后退"><i class="Hui-iconfont">&#xe6d4;</i></a>
  70. </nav>
  71. <article class="page-container" style="padding: 10px;">
  72. <div class="pd-20 cl">
  73. <form action="${path}/admin/customer/save_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
  74. <input type="hidden" id="isNeedSelectOrder" name="isNeedSelectOrder" value="">
  75. <div class="row cl">
  76. <label class="form-label col-3">
  77. <div class="tit-2">客诉基本信息</div>
  78. </label>
  79. <div class="formControls col-9">
  80. </div>
  81. </div>
  82. <div class="row cl">
  83. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>创建客服:</label>
  84. <div class="formControls col-2 col-sm-2"> <span class="select-box" >
  85. <select name="adminId" id="adminId" class="select">
  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 customerSourceType_text_all">
  93. <div class="radio-box">
  94. <input type="radio" id="tel-1" name="customerSourceType" value="1" >
  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" checked>
  99. <label for="tel-2">微信公众号</label>
  100. </div>
  101. <div class="radio-box">
  102. <input type="radio" id="tel-4" name="customerSourceType" value="4" >
  103. <label for="tel-4">QQ群</label>
  104. <#--<input type="text" class="input-text trim_input customerSourceType_text_4" value="" style="width: 100px;">-->
  105. </div>
  106. <div class="radio-box">
  107. <input type="radio" id="tel-5" name="customerSourceType" value="5" >
  108. <label for="tel-5">微信群</label>
  109. <#--<input type="text" class="input-text trim_input customerSourceType_text_5" value="" style="width: 100px;">-->
  110. </div>
  111. <div class="radio-box">
  112. <input type="radio" id="tel-6" name="customerSourceType" value="6" >
  113. <label for="tel-6">个人微信</label>
  114. <#--<input type="text" class="input-text trim_input customerSourceType_text_6" value="" style="width: 100px;">-->
  115. </div>
  116. <div class="radio-box">
  117. <input type="radio" id="tel-7" name="customerSourceType" value="7" >
  118. <label for="tel-7">有赞</label>
  119. </div>
  120. <div class="radio-box">
  121. <input type="radio" id="tel-3" name="customerSourceType" value="3">
  122. <label for="tel-3">其他</label>
  123. <#--<input type="text" class="input-text trim_input customerSourceType_text_3" value="" style="width: 100px;">-->
  124. </div>
  125. <#--<input type="text" style="width: 321px;margin-left: 10px; display: none;" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">-->
  126. </div>
  127. </div>
  128. <div class="row cl">
  129. <label class="form-label col-1 col-sm-1">来源描述:</label>
  130. <div class="formControls col-4 col-sm-4 skin-minimal customerSourceType_text_all">
  131. <input type="text" class="input-text trim_input" value="" placeholder="如公众号名称、QQ群名称" id="customerSource" name="customerSource">
  132. </div>
  133. </div>
  134. <div class="row cl">
  135. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
  136. <div class="formControls col-10 col-sm-10 skin-minimal">
  137. <div class="radio-box">
  138. <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" >
  139. <label for="customer-type-1">售前</label>
  140. </div>
  141. <div class="radio-box">
  142. <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" checked>
  143. <label for="customer-type-2">售后</label>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="row cl">
  148. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询产品:</label>
  149. <input type="hidden" id="typeCompany" name="typeCompany" value="">
  150. <div class="formControls col-10 col-sm-10 skin-minimal produce_type_html" id="produceTypeHtml">
  151. <#--<div class="radio-box">
  152. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  153. <label for="tel-3">净水机</label>
  154. </div>
  155. <div class="radio-box">
  156. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  157. <label for="tel-4">冲奶机</label>
  158. </div>-->
  159. </div>
  160. </div>
  161. <div class="row cl">
  162. <label class="form-label col-3">
  163. <div class="tit-2">用户信息</div>
  164. </label>
  165. <div class="formControls col-9">
  166. </div>
  167. </div>
  168. <div class="row cl sales_channel" id="salesChannelsSelect">
  169. <input type="hidden" id="companyId" name="companyId" value="" >
  170. <input type="hidden" id="storeId" name="storeId" value="" >
  171. <label class="form-label col-1 col-sm-1">销售渠道:</label>
  172. <div class="formControls col-2 col-sm-2">
  173. <span class="select-box">
  174. <select id="selectCompany" class="select init_company" name="selectCompany">
  175. </select>
  176. </span>
  177. </div>
  178. <#--<div class="formControls col-2 col-sm-2">
  179. <span class="select-box">
  180. <select id="selectStore" class="select" name="">
  181. </select>
  182. </span>
  183. </div>-->
  184. <div class="formControls col-2 col-sm-2">
  185. <input id="store_1" name="maktMaktx" class="input-text" list="datalist_1" value="" placeholder="输入店铺关键字或双击" datatype="*1-20" errormsg="请选择销售店铺!" />
  186. <datalist class="select init_store" id="datalist_1">
  187. </datalist>
  188. <#--<input type="hidden" id="salesStoreId" name="salesStoreId">-->
  189. </div>
  190. </div>
  191. <div class="row cl">
  192. <label class="form-label col-1 col-sm-1">用户信息:</label>
  193. <div class="formControls col-2 col-sm-2 skin-minimal">
  194. <input type="text" class="input-text trim_input" placeholder="微信昵称" id="customerWechatName" name="customerWechatName" value="">
  195. </div>
  196. <div class="formControls col-2 col-sm-2 skin-minimal">
  197. <input type="text" class="input-text trim_input" placeholder="用户姓名" id="customerName" name="customerName" value="">
  198. </div>
  199. <div class="formControls col-2 col-sm-2 skin-minimal">
  200. <input type="text" class="input-text associated-phone" placeholder="用户电话" id="customerTel" name="customerTel" value="">
  201. </div>
  202. </div>
  203. <input type="hidden" value="" id="customerLastId" name="customerLastId">
  204. <input type="hidden" value="" id="customerInitialId" name="customerInitialId">
  205. <div class="row cl">
  206. <div class="formControls col-9 col-sm-9 text-c" style="display:none;margin-left: 50px;" id="onCustomerTable">
  207. <table class="table table-border table-bg table-bordered">
  208. <thead>
  209. <tr class="text-c">
  210. <th style="text-align: center;" width="60">客诉时间</th>
  211. <th style="text-align: center;" width="60">跟进客服</th>
  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. </tr>
  220. </thead>
  221. <tbody id="onCustomer">
  222. </tbody>
  223. </table>
  224. </div>
  225. </div>
  226. <div class="row cl">
  227. <label class="form-label col-3">
  228. <div class="tit-2">客诉问题</div>
  229. </label>
  230. <div class="formControls col-9">
  231. </div>
  232. </div>
  233. <div class="row cl" id="twiceSellEnd">
  234. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>二次售后:</label>
  235. <div class="formControls col-10 col-sm-10 skin-minimal">
  236. <div class="radio-box">
  237. <input type="radio" id="customerSecondaryCustomer1" name="customerSecondaryCustomer" value="1" >
  238. <label for="customerSecondaryCustomer1">是</label>
  239. </div>
  240. <div class="radio-box">
  241. <input type="radio" id="customerSecondaryCustomer2" name="customerSecondaryCustomer" value="2" checked>
  242. <label for="customerSecondaryCustomer2">否</label>
  243. </div>
  244. </div>
  245. </div>
  246. <div class="row cl" id="openTheLock">
  247. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开箱损:</label>
  248. <div class="formControls col-10 col-sm-10 skin-minimal">
  249. <div class="radio-box">
  250. <input type="radio" id="customerOutDamaged1" name="customerOutDamaged" value="1" >
  251. <label for="customerOutDamaged1">是</label>
  252. </div>
  253. <div class="radio-box">
  254. <input type="radio" id="customerOutDamaged2" name="customerOutDamaged" value="2" checked>
  255. <label for="customerOutDamaged2">否</label>
  256. </div>
  257. </div>
  258. </div>
  259. <div class="row cl" style="position: relative;">
  260. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
  261. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  262. <select name="complaintId" class="select" id="complaintId">
  263. <option value="">请选择问题分类</option>
  264. <#--<option value="0">使用操作</option>-->
  265. <#--<option value="1">使用操作</option>-->
  266. </select>
  267. </span>
  268. </div>
  269. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  270. <select name="smallClassId" id="smallClassId" class="select">
  271. <option value="">请选择问题分类</option>
  272. <#--<option value="0">使用操作制水出水</option>
  273. <option value="1">使用操作制水出水</option>-->
  274. </select>
  275. </span>
  276. </div>
  277. <div class="formControls col-2 col-sm-2">
  278. <div class="clearfix">
  279. <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>
  280. </div>
  281. </div>
  282. <div class="dalog-ask">
  283. <div class="tag">
  284. <em></em>
  285. <strong>相关QA</strong>
  286. <a href="javascript:void(0)" style="margin-left: 200px;" onclick="closeQA()">关闭</a>
  287. <ul id="question" style="padding-top: 15px">
  288. <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
  289. <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
  290. </ul>
  291. <a href="javascript:void(0)" style="" onclick="initComplaintQuestionInfo('pr')">上一页</a>
  292. <a href="javascript:void(0)" style="margin-left: 200px;" onclick="initComplaintQuestionInfo('ne')">下一页</a>
  293. </div>
  294. </div>
  295. </div>
  296. <div class="row cl">
  297. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
  298. <div class="formControls col-6 col-sm-6">
  299. <input type="text" class="input-text trim_input" name="describeTitle" id="describeTitle" datatype="*1-50" errormsg="问题标题不正确!" >
  300. </div>
  301. </div>
  302. <#--<div class="row cl">
  303. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题回复:</label>
  304. <div class="formControls col-9 col-sm-9">
  305. <input type="hidden" name="questionId" id="questionId" value="">
  306. <script id="describeContentText" type="text/plain" style="width:100%;height:150px;"></script>
  307. <input type="hidden" name="describeContent" id="describeContent" value="">
  308. </div>
  309. </div>-->
  310. <input type="hidden" name="questionId" id="questionId" value="">
  311. <input type="hidden" name="describeId" id="describeId" value="">
  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" urlPrefix="${path}" >
  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 ulc_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 ulc_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" urlPrefix="${path}">
  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 ulc_select" id="province"
  462. ulcValName="province" ulcValId="provinceId" ulcURL="/address/list_province" ulcMsg="" ulcList="provinceList"
  463. ulcIsFristSelect="1" 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 ulc_select" id="city"
  470. ulcValName="city" ulcValId="cityId" ulcURL="/address/list_city?provinceId=" ulcMsg="" ulcList="cityList"
  471. ulcIsFristSelect="1" 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 ulc_select" id="district"
  478. ulcValName="district" ulcValId="districtId" ulcURL="/address/list_district?cityId=" ulcMsg="" ulcList="districtList"
  479. ulcIsFristSelect="1" 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-9 col-sm-9">
  495. <button type="button" class="btn btn-primary" id="" onclick="addProduct(1)">添加产品</button><span>&nbsp;&nbsp;&nbsp;&nbsp;请完整选择要退回的机器,如有不退回的请删除产品项或者填写数量0 。</span>
  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" urlPrefix="${path}">
  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 ulc_select" id="initProvince"
  594. ulcValName="province" ulcValId="provinceId" ulcURL="/address/list_province" ulcMsg="" ulcList="provinceList"
  595. ulcIsFristSelect="1" 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 ulc_select" id="initCity"
  602. ulcValName="city" ulcValId="cityId" ulcURL="/address/list_city?provinceId=" ulcMsg="" ulcList="cityList"
  603. ulcIsFristSelect="1" 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 ulc_select" id="initCountry"
  610. ulcValName="district" ulcValId="districtId" ulcURL="/address/list_district?cityId=" ulcMsg="" ulcList="districtList"
  611. ulcIsFristSelect="1" 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" value="" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="TDSLinkage($(this),999)" onpaste="TDSLinkage($(this),999)">
  621. </div>
  622. <div class="formControls col-2 col-sm-2">
  623. <input type="text" class="input-text" 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="请输入客诉备注信息,最多支持50字" id="customerDesc" name="customerDesc" style="padding: 5px;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/suggest.js"></script>
  725. <script type="text/javascript" src="${path}/common/js/common/salesChannel.js"></script>
  726. <#--百度富文本编译器-->
  727. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  728. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  729. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  730. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  731. <#-- 业务脚本JS -->
  732. <script type="text/javascript" charset="utf-8" src="${path}/common/js/customer/customer.js"></script>
  733. <script>
  734. $("#store_1").on("input",function(){
  735. var $options=$("#datalist_1").children();
  736. for(var i=0;i<$options.length;i++){
  737. if($options.eq(i).val().trim()==$("#store_1").val().trim()){
  738. $("#storeId").val($options.eq(i).attr("data-id"));
  739. break;
  740. }else{
  741. $("#storeId").val("");
  742. }
  743. }
  744. });
  745. /*加载TDS地址信息*/
  746. var addressUlc = init_address($(".init_address"));
  747. var ulcRelationAddress = init_address($(".relation_address"));
  748. var sc = $(".sales_channel").initSalesChannel();
  749. //回显上朵销售渠道
  750. sc.options.companyId = 4;
  751. setStore("4",null);
  752. /*是否是修改页面*/
  753. var isUpdate = false;
  754. /*是否需要回访 只有修改页面才会使用*/
  755. var customerIsVisit = false;
  756. /*个人id*/
  757. var adminId = 0;
  758. /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
  759. var allCustomerInfoType=2; //默认售后
  760. var allProcMethodIsBack; //是否需要寄回 1:需要寄回 2:不需要寄回
  761. var allProcMethodIsSend; //是否需要寄出 1:需要寄出 2:不需要寄出
  762. /* 寄回地址的id */
  763. var complaint_questionId = 5;
  764. /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
  765. var isInitAddress = 0;
  766. /*获取客服*/
  767. var sysAminList;
  768. /*1:需要有订单 2:不需要有订单*/
  769. var isNeedSelectOrder = 2;
  770. /*添加产品的类型 0:全部添加 1:寄回产品添加 2:寄出产品添加 */
  771. var productAddType = 0;
  772. /*初始化页面参数*/
  773. $(function () {
  774. /* 初始化单选框样式 */
  775. //initCheck();
  776. /*初始化产品类型 -- 客诉头部的产品类型单选 */
  777. initProduceType();
  778. /*初始化问题分类*/
  779. initComplaintTypeInfo(null);
  780. /*初始化客服*/
  781. initSysAdmin();
  782. /*初始化回访客服*/
  783. initVisitSysAdmin();
  784. /**/
  785. var promethodUlc = init_ulc($(".init_proMethod"));
  786. promethodUlc.setUlcAllCallback(ulcProcessResult);
  787. /*初始化选择处理结果 -- */
  788. // initProcessResult(1,1); //
  789. /*监听客诉类型选择事件*/
  790. $("input[name='customerCounselType']").change(function (){
  791. allCustomerInfoType = parseInt($(this).val());
  792. if(allCustomerInfoType == 1){
  793. isNeedSelectOrder = 2;
  794. $("#twiceSellEnd").hide();
  795. $("#openTheLock").hide();
  796. promethodUlc.setUlcById(0,1);
  797. }else{
  798. isNeedSelectOrder = 1;
  799. $("#twiceSellEnd").show();
  800. $("#openTheLock").show();
  801. promethodUlc.setUlcById(0,2);
  802. }
  803. });
  804. /*监听问题类型 选择事件*/
  805. $("[name='complaintId']").change(function(){
  806. initComplaintSmallClassInfo($(this).val());
  807. });
  808. /*监听问题关键字搜索*/
  809. $(document).on('click', '#search_button', function() {
  810. initComplaintQuestionInfo("p");
  811. });
  812. /*搜索订单事件*/
  813. $(document).on('click', '#selectOrder', function() {
  814. selectOrder();
  815. });
  816. /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
  817. // initVisitEvent();
  818. /*监听回访选择客服的选择事件*/
  819. $(document).on('change', '#visitAdminId', function() {
  820. var visitAdminName = $("#visitAdminId").find("option:selected").text();
  821. var visitAdminId = $("#visitAdminId").val();
  822. if(convertUndefinedToEmpty(visitAdminId) == adminId){
  823. showVisitMsg(1);
  824. }else{
  825. showVisitMsg(2,visitAdminName);
  826. }
  827. });
  828. /* 监听TDS收集--地址选择 */
  829. $(document).on('change', '#TDSArea', function() {
  830. setTDSCollect();
  831. });
  832. /* 监听手机号 失去焦点时 将其他手机号码未填的 补充上去 */
  833. $(".associated-phone").blur(function (){
  834. var phone = $.trim($(this).val());
  835. $(this).val(phone);
  836. if(phone.length == 11 && phoneReg.test(phone)){
  837. $(".associated-phone").each(function(){
  838. var ph = $(this).val();
  839. if(ph == null || ph == "" || typeof(ph) == "undefined" || ph.length != 11){
  840. $(this).val(phone);
  841. }
  842. })
  843. }
  844. })
  845. })
  846. /**
  847. *跳转到编辑页面
  848. * @param employee
  849. */
  850. function admin_update_customer(customerId) {
  851. window.location.href= "${path}/admin/customer/to_update_customer?customerId="+customerId;
  852. }
  853. /**
  854. * 标记为二次售后
  855. customerLastId;//上次客诉id
  856. customerInitialId;//初始客诉id
  857. * */
  858. function markedSecondary(customerLastId,customerInitialId,obj){
  859. $("#customerLastId").val(customerLastId);
  860. if(customerInitialId == null || customerInitialId == "" || typeof(customerInitialId) == "undefined"){
  861. $("#customerInitialId").val(customerLastId);
  862. }else{
  863. $("#customerInitialId").val(customerInitialId);
  864. }
  865. $(obj).parents("tr").siblings().css({'background-color':''});
  866. $(obj).parents("tr").siblings().each(function(){
  867. /*$(this).find("a").eq(1).parent().append('<a onclick="markedSecondary('+customerLastId+','+customerInitialId+',this)">标记为二次售后</a>');*/
  868. $(this).find("a").eq(1).show();
  869. $(this).find("a").eq(2).hide();
  870. })
  871. $(obj).parents("tr").css('background-color', '#ccc');
  872. /*$(obj).parent().append('<a onclick="cancelMarkedSecondary('+customerLastId+','+customerInitialId+',this)">取消二次售后标记</a>');
  873. $(obj).remove();*/
  874. $(obj).hide();
  875. $(obj).next().show();
  876. /*$(":radio[name='customerSecondaryCustomer'][value='2']").prop("checked",false);
  877. $(":radio[name='customerSecondaryCustomer'][value='1']").prop("checked",true);*/
  878. $("#customerSecondaryCustomer1").iCheck('check');
  879. }
  880. function cancelMarkedSecondary(customerLastId,customerInitialId,obj){
  881. $("#customerLastId").val("");
  882. $("#customerInitialId").val("");
  883. $(obj).parents("tr").css('background-color', '');
  884. /*$(obj).parent().append('<a onclick="markedSecondary('+customerLastId+','+customerInitialId+',this)">标记为二次售后</a>');
  885. $(obj).remove();*/
  886. $(obj).hide();
  887. $(obj).prev().show();
  888. $("#customerSecondaryCustomer2").iCheck('check');
  889. }
  890. </script>
  891. </body>
  892. </html>