add_customer.ftl 53 KB

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