add_customer.ftl 53 KB

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