add_customer.ftl 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671
  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;}
  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{
  50. height: 35px;
  51. line-height: 35px;
  52. }
  53. </style>
  54. <title>添加客诉 - 客诉管理 - RST</title>
  55. </head>
  56. <body>
  57. <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
  58. <span class="c-gray en">&gt;</span> 客诉管理
  59. <span class="c-gray en">&gt;</span> 添加客诉
  60. <a class="btn radius r"
  61. style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;"
  62. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  63. </nav>
  64. <article class="page-container" style="padding: 10px;">
  65. <div class="pd-20 cl">
  66. <form action="${path}/admin/customer/save_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
  67. <div class="row cl">
  68. <label class="form-label col-3">
  69. <div class="tit-2">客诉基本信息</div>
  70. </label>
  71. <div class="formControls col-9">
  72. </div>
  73. </div>
  74. <div class="row cl">
  75. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>跟进客服:</label>
  76. <div class="formControls col-4 col-sm-4"> <span class="select-box">
  77. <select name="adminId" id="adminId" class="select">
  78. </select>
  79. </span>
  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-10 col-sm-10 skin-minimal">
  85. <div class="radio-box">
  86. <input type="radio" id="tel-1" name="customerSourceType" value="1" datatype="*" checked nullmsg="请选择来源入口!">
  87. <label for="tel-1">400电话</label>
  88. </div>
  89. <div class="radio-box">
  90. <input type="radio" id="tel-2" name="customerSourceType" value="2">
  91. <label for="tel-2">微信公众号</label>
  92. </div>
  93. <div class="radio-box">
  94. <input type="radio" id="tel-3" name="customerSourceType" value="3">
  95. <label for="tel-3">其他</label>
  96. <input type="text" style="width: 150px;margin-left: 10px;" class="input-text" value="" placeholder="" id="customerSource" name="customerSource">
  97. </div>
  98. </div>
  99. </div>
  100. <div class="row cl">
  101. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
  102. <div class="formControls col-10 col-sm-10 skin-minimal">
  103. <div class="radio-box">
  104. <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" checked >
  105. <label for="customer-type-1">售前咨询</label>
  106. </div>
  107. <div class="radio-box">
  108. <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" >
  109. <label for="customer-type-2">售后咨询</label>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="row cl">
  114. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
  115. <div class="formControls col-10 col-sm-10 skin-minimal" id="produceTypeHtml">
  116. <#--<div class="radio-box">
  117. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  118. <label for="tel-3">净水机</label>
  119. </div>
  120. <div class="radio-box">
  121. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  122. <label for="tel-4">冲奶机</label>
  123. </div>-->
  124. </div>
  125. </div>
  126. <div class="row cl" style="position: relative;">
  127. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
  128. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  129. <select name="complaintId" class="select">
  130. <#--<option value="0">使用操作</option>-->
  131. <#--<option value="1">使用操作</option>-->
  132. </select>
  133. </span>
  134. </div>
  135. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  136. <select name="smallClassId" class="select">
  137. <#--<option value="0">使用操作制水出水</option>
  138. <option value="1">使用操作制水出水</option>-->
  139. </select>
  140. </span>
  141. </div>
  142. <div class="formControls col-2 col-sm-2">
  143. <div class="clearfix">
  144. <input type="text" placeholder="搜索关键词" class="input-text ac_input" name="questionIdMsg" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
  145. </div>
  146. </div>
  147. <div class="dalog-ask">
  148. <div class="tag">
  149. <em></em>
  150. <strong>相关QA</strong>
  151. <ul id="question">
  152. <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
  153. <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
  154. </ul>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="row cl">
  159. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
  160. <div class="formControls col-5 col-sm-5">
  161. <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle">
  162. </div>
  163. </div>
  164. <div class="row cl">
  165. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题内容:</label>
  166. <div class="formControls col-5 col-sm-5">
  167. <input type="hidden" name="questionId" id="questionId">
  168. <script id="describeContentText" type="text/plain" style="width:650px;height:250px;">
  169. </script>
  170. </script>
  171. <input type="hidden" name="describeContent" id="describeContent">
  172. </div>
  173. </div>
  174. <div class="row cl">
  175. <label class="form-label col-1 col-sm-1"></label>
  176. <div class="formControls col-2 col-sm-2">
  177. <input type="text" class="input-text" value="" placeholder="请输入手机号" id="p-phone" name="">
  178. </div>
  179. <div class="formControls col-2 col-sm-2" style="width: 10%">
  180. <input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('p',$('#p-msg'));">
  181. </div>
  182. <div class="formControls col-2 col-sm-2 msg-phone">
  183. <div id="p-msg" style="color: #e00"></div>
  184. </div>
  185. </div>
  186. <div class="row cl">
  187. <label class="form-label col-1 col-sm-1">
  188. <div class="tit">处理结果</div>
  189. </label>
  190. <div class="formControls col-10 col-sm-10">
  191. </div>
  192. </div>
  193. <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
  194. <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
  195. <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
  196. <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
  197. <div class="row cl">
  198. <label class="form-label col-1 col-sm-1">处理类型:</label>
  199. <div class="formControls col-10 col-sm-10 skin-minimal">
  200. <div class="radio-box" id="solved">
  201. <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" checked>
  202. <label for="customer-process-1">已解决</label>
  203. </div>
  204. <div class="radio-box" id="noSolved">
  205. <input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
  206. <label for="customer-process-2">未解决</label>
  207. </div>
  208. <div class="radio-box" id="renewed">
  209. <input type="radio" id="customer-process-3" value="3" name="customerIsSolve">
  210. <label for="customer-process-3">换新</label>
  211. </div>
  212. <div class="radio-box" id="maintain">
  213. <input type="radio" id="customer-process-4" value="4" name="customerIsSolve">
  214. <label for="customer-process-4">维修</label>
  215. </div>
  216. <div class="radio-box" id="reissue">
  217. <input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
  218. <label for="customer-process-5">补发</label>
  219. </div>
  220. <div class="radio-box" id="backGoods">
  221. <input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
  222. <label for="customer-process-6">退货</label>
  223. </div>
  224. <div class="radio-box" id="noReasonBack">
  225. <input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
  226. <label for="customer-process-7">无理由退货</label>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="row cl">
  231. <label class="form-label col-1 col-sm-1"></label>
  232. <div class="formControls col-10 col-sm-10">
  233. <ul class="time-line-list" id="processResultStatus">
  234. <#-- <li><span class="arrow"></span><div class="number">1</div><div>录入客诉</div></li>
  235. <li><span class="arrow"></span><div class="number">2</div><div>督促用户寄回</div></li>
  236. <li><span class="arrow"></span><div class="number">3</div><div>录入快递单号</div></li>
  237. <li><span class="arrow"></span><div class="number">4</div><div>仓库收货</div></li>
  238. <li><span class="arrow"></span><div class="number">5</div><div>换新发货</div></li>
  239. <li><span class="arrow"></span><div class="number">6</div><div>发货通知用户</div></li>
  240. <li><span class="arrow"></span><div class="number">7</div><div>收货后回访</div></li>-->
  241. </ul>
  242. </div>
  243. </div>
  244. <div class="row cl" id="orderHead" style="display: none;">
  245. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>订单信息:</label>
  246. <div class="formControls col-1 col-sm-1">
  247. <button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>
  248. </div>
  249. </div>
  250. <div class="row cl" id="order" style="display: none;">
  251. <label class="form-label col-1 col-sm-1"></label>
  252. <div class="formControls col-9 col-sm-9 text-c">
  253. <table class="table table-border table-bg table-bordered">
  254. <tr>
  255. <th style="text-align: center;">销售</th>
  256. <th style="text-align: center;">订单号</th>
  257. <th style="text-align: center;">姓名</th>
  258. <th style="text-align: center;">电话</th>
  259. <th style="text-align: center;">订单金额</th>
  260. <th style="text-align: center;">购买产品</th>
  261. <th style="text-align: center;">购买日期</th>
  262. </tr>
  263. <tr id="showOrder">
  264. <#-- <td>爱贝源-微信商城</td>
  265. <td>1290387806</td>
  266. <td>何小小</td>
  267. <td>1882222888</td>
  268. <td>¥3680</td>
  269. <td>Watero净水机</td>
  270. <td>2017-06-06</td>-->
  271. </tr>
  272. <#--<tr id="showOrderAddress">-->
  273. <#--</tr>-->
  274. </table>
  275. <input type="hidden" id="companyId" name="companyId" value="" >
  276. <input type="hidden" id="storeId" name="storeId" value="" >
  277. <input type="hidden" id="orderId" name="salesId" value="" >
  278. </div>
  279. </div>
  280. <div class="row cl" id="recipientInfo" style="display: none;">
  281. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
  282. <div class="formControls col-2 col-sm-2">
  283. <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="s1-20" errormsg="联系人格式不正确!" >
  284. </div>
  285. <div class="formControls col-2 col-sm-2">
  286. <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
  287. </div>
  288. </div>
  289. <div class="row cl" id="recipientAddress" style="display: none;">
  290. <input type="hidden" id="addressInfo">
  291. <label class="form-label col-1 col-sm-1"></label>
  292. <div class="formControls col-2 col-sm-2">
  293. <span class="select-box">
  294. <select id="province" class="select" name="provinceNumber">
  295. </select>
  296. </span>
  297. </div>
  298. <div class="formControls col-2 col-sm-2">
  299. <span class="select-box">
  300. <select id="city" class="select" name="cityNumber">
  301. </select>
  302. </span>
  303. </div>
  304. <div class="formControls col-2 col-sm-2">
  305. <span class="select-box">
  306. <select id="district" class="select" name="areaNumber">
  307. </select>
  308. </span>
  309. </div>
  310. <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
  311. </div>
  312. <div class="row cl" id="recipientAddressText" style="display: none;">
  313. <label class="form-label col-1 col-sm-1"></label>
  314. <div class="formControls col-5 col-sm-5">
  315. <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)"></textarea>
  316. <span id="addrssMsg"></span>
  317. </div>
  318. </div>
  319. <div class="row cl" id="renewedProduct" style="display: none;">
  320. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
  321. <div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
  322. <table class="table table-border table-bg table-bordered">
  323. <thead>
  324. <tr class="text-c">
  325. <th style="text-align: center;" width="60">产品名称</th>
  326. <th style="text-align: center;" width="60">产品颜色</th>
  327. <th style="text-align: center;" width="60">产品配件</th>
  328. </tr>
  329. </thead>
  330. <tbody id="addProduct">
  331. <#--<tr >
  332. <td>冲奶机</td>
  333. <td>
  334. <div>
  335. 白色
  336. <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
  337. </div>
  338. <div>
  339. 白色
  340. <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
  341. </div>
  342. </td>
  343. <td>
  344. <div>
  345. 水箱
  346. <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
  347. </div>
  348. <div>
  349. 水箱
  350. <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
  351. </div>
  352. </td>
  353. </tr>-->
  354. </tbody>
  355. </table>
  356. </div>
  357. </div>
  358. <div class="row cl" id="TDScollect" style="display: none;">
  359. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>TDS收集:</label>
  360. <div class="formControls col-2 col-sm-2" style="position: relative;">
  361. <input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
  362. <input style="width: 140px;" placeholder="" class="input-text my-search-input" type="text" name="arrcity" id="arrcity" />
  363. <div id="suggest" class="ac_results"></div>
  364. </div>
  365. <div class="formControls col-2 col-sm-2">
  366. <span class="select-box">
  367. <select name="" class="select" id="TDSArea" name="TDSArea">
  368. </select>
  369. </span>
  370. </div>
  371. <input type="hidden" name="customerArea" id="customerArea">
  372. <div class="formControls col-2 col-sm-2">
  373. <input type="text" class="input-text" value="" placeholder="进水tds数值" id="customerInTDS" name="customerInTDS">
  374. </div>
  375. <div class="formControls col-2 col-sm-2">
  376. <input type="text" class="input-text" value="" placeholder="出水tds数值" id="customerOutTDS" name="customerOutTDS">
  377. </div>
  378. </div>
  379. <div class="row cl" id="TDScollectShow" style="display: none;">
  380. <label class="form-label col-1 col-sm-1"></label>
  381. <div class="formControls col-6 col-sm-6">
  382. tds收集:广东省-深圳市-福田区 进水:100ppm 出水:100ppm
  383. </div>
  384. </div>
  385. <div class="row cl" id="sendAddressInfo">
  386. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
  387. <div class="formControls col-5 col-sm-5">
  388. <textarea name="" cols="" rows="2" class="textarea" placeholder="说点什么...">邮寄地址:东莞清溪三中金龙工业区徐福记对面优尼雅电子科技,杨春有,13592708169邮寄备注:您好,麻烦您那边把机器邮寄前请将水箱、接水台中的水倒掉并擦干,不要留有水渍,避免运输途中水或奶粉
  389. 溅入机器内部造成不必要的损失;用原包装或泡沫等材质包裹好机身。避免运输途中造成机器     磕碰、损坏。
  390. 请勿寄顺丰、圆通、EMS以及到付件快递,其他快递物流随意,寄回时,麻烦您在产品里面留下故障原因说明,
  391. 提示:寄回后把单号给我们提供下然后提供下您的姓名、地址和电话方便我们修好后给您寄回去。</textarea>
  392. </div>
  393. </div>
  394. <div class="row cl" id="sendAddressByPhone" style="display: none;">
  395. <label class="form-label col-1 col-sm-1"></label>
  396. <div class="formControls col-2 col-sm-2">
  397. <input type="text" class="input-text" value="" placeholder="请输入手机号" id="m-phone" name="">
  398. </div>
  399. <div class="formControls col-2 col-sm-2" style="width: 10%">
  400. <input type="button" class="btn btn-primary" value="发短信給用户" onclick="sendPhone('m',);">
  401. </div>
  402. <div class="formControls col-2 col-sm-2 msg-phone">
  403. <div id="m-msg" style="color: #e00"></div>
  404. </div>
  405. </div>
  406. <div class="row cl" id="updateProduct" style="display: none;">
  407. <label class="form-label col-1 col-sm-1">更换产品:</label>
  408. <div class="formControls col-9 col-sm-9" >
  409. <table class="table table-border table-bg table-bordered">
  410. <thead>
  411. <tr class="text-c">
  412. <th style="text-align: center;" width="60">产品名称</th>
  413. <th style="text-align: center;" width="60">产品颜色</th>
  414. <th style="text-align: center;" width="60">产品配件</th>
  415. </tr>
  416. </thead>
  417. <tbody id="back-product">
  418. </tbody>
  419. </table>
  420. </div>
  421. </div>
  422. <div class="row cl">
  423. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>处理描述:</label>
  424. <div class="formControls col-5 col-sm-5">
  425. <script id="describeHandleDescText" type="text/plain" style="width:650px;height:250px;"></script>
  426. </script>
  427. <input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
  428. </div>
  429. </div>
  430. <div class="row cl">
  431. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访信息:</label>
  432. <div class="formControls col-10 col-sm-10 skin-minimal">
  433. <div class="radio-box">
  434. <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" checked>
  435. <label for="customer-visit-1">需要回访</label>
  436. </div>
  437. <div class="radio-box">
  438. <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1">
  439. <label for="customer-visit-2">不需要回访</label>
  440. </div>
  441. </div>
  442. </div>
  443. <div id="needToVisit">
  444. <div class="row cl">
  445. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访人:</label>
  446. <div class="formControls col-2 col-sm-2">
  447. <input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="s1-20" errormsg="回访人姓名格式不正确!" >
  448. </div>
  449. <div class="formControls col-2 col-sm-2">
  450. <input type="text" class="input-text" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
  451. </div>
  452. </div>
  453. <div class="row cl">
  454. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访日期:</label>
  455. <div class="formControls col-2 col-sm-2">
  456. <input type="text" placeholder="请选择回访日期" id="datemin" name="visitDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
  457. </div>
  458. </div>
  459. <div class="row cl">
  460. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
  461. <div class="formControls col-10 col-sm-10 skin-minimal">
  462. <div class="radio-box">
  463. <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" checked>
  464. <label for="visit-time-1">09:00-12:00</label>
  465. </div>
  466. <div class="radio-box">
  467. <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2">
  468. <label for="visit-time-2">12:00-14:00</label>
  469. </div>
  470. <div class="radio-box">
  471. <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3">
  472. <label for="visit-time-3">14:00-18:00</label>
  473. </div>
  474. </div>
  475. </div>
  476. <div class="row cl">
  477. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
  478. <div class="formControls col-4 col-sm-4"> <span class="select-box">
  479. <select class="select" id="visitAdminId" name="visitAdminId">
  480. </select>
  481. </span>
  482. </div>
  483. </div>
  484. <div class="cl" style="display: table;width: 100%;">
  485. <label class="form-label col-1 col-sm-1"></label>
  486. <div class="formControls col-4 col-sm-4">
  487. <span class="c-red" id="visitAdminIdMsg">您将为自己指定一个回访任务</span>
  488. </div>
  489. </div>
  490. </div>
  491. <div class="row cl">
  492. <div class="col-2 col-sm-2 col-offset-3">
  493. <button class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
  494. </div>
  495. </div>
  496. </form>
  497. </div>
  498. </article>
  499. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  500. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  501. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  502. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  503. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  504. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  505. <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
  506. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  507. <#--时间控件-->
  508. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  509. <#--百度富文本编译器-->
  510. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  511. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  512. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  513. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  514. <script type="text/javascript">
  515. $(function(){
  516. $("#province").ProvinceCity();
  517. $('.skin-minimal input').iCheck({
  518. checkboxClass: 'icheckbox-blue',
  519. radioClass: 'iradio-blue',
  520. increaseArea: '20%'
  521. });
  522. $("#arrcity").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(result){
  523. console.log($(this)[0].value);
  524. $("#city2").click()
  525. },
  526. attachObject:'#suggest'
  527. });
  528. $("#city2").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"})
  529. });
  530. $(document).on('click', '.dalog-ask .answer', function() {
  531. var msg = $(this).find("span").text();
  532. UE.getEditor('describeContentText').setContent(msg,false);
  533. $("#questionId").val($(this).find(".quesId").val());
  534. var title = $(this).prev().html();
  535. $("#describeTitle").val(title);
  536. //$("#questionId").val(.find(".quesId").val());
  537. //$("#answer-textarea").text();
  538. $(".dalog-ask").hide(); //隐藏qa
  539. });
  540. /*实时监听文本框-- 员工编号*/
  541. document.getElementById("suggest").addEventListener("div", function(){
  542. alert(1);
  543. });
  544. </script>
  545. <script>
  546. /*问题描述*/
  547. var describeContentText = UE.getEditor('describeContentText');
  548. /*处理描述*/
  549. var describeHandleDescText = UE.getEditor('describeHandleDescText');
  550. </script>
  551. <script type="text/javascript">
  552. /*处理结果的执行状态*/
  553. var isSolve = {
  554. solved : [],
  555. noSolved : [],
  556. renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
  557. maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
  558. reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
  559. backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
  560. noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
  561. }
  562. /*个人id*/
  563. var adminId = 0;
  564. /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
  565. var allCustomerInfoType = 1;
  566. /*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
  567. var allCustomerType = 1;
  568. /*初始化页面参数*/
  569. $(function () {
  570. /* 初始化单选框样式 */
  571. initCheck();
  572. /*初始化产品类型 -- 客诉头部的产品类型单选 */
  573. initProduceType();
  574. /*初始化问题分类*/
  575. initComplaintTypeInfo();
  576. /*初始化客服*/
  577. initSysAdmin();
  578. /*初始化回访客服*/
  579. initVisitSysAdmin();
  580. /*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
  581. initProcessResult(1);
  582. /*监听客诉类型选择事件*/
  583. $("input[name='customerCounselType']").change(function (){
  584. allCustomerInfoType = parseInt($(this).val());
  585. initProcessResult(allCustomerType);
  586. })
  587. /*监听处理结果选择事件*/
  588. $("[name='customerIsSolve']").change(function(){
  589. allCustomerType = parseInt($(this).val());
  590. initProcessResult(parseInt($(this).val()));
  591. })
  592. /*监听问题类型 选择事件*/
  593. $("[name='complaintId']").change(function(){
  594. initComplaintSmallClassInfo($(this).val());
  595. })
  596. /*监听问题关键字搜索*/
  597. $(document).on('click', '#search_button', function() {
  598. initComplaintQuestionInfo();
  599. });
  600. /*搜索订单事件*/
  601. $(document).on('click', '#selectOrder', function() {
  602. selectOrder();
  603. });
  604. /*监听省选择事件*/
  605. $(document).on('change', '#province', function() {
  606. var proId = $("#province").val();
  607. var cityId = setCity("",proId,2)
  608. setDistrict("",cityId,2)
  609. });
  610. /*监听市选择事件*/
  611. $(document).on('change', '#city', function() {
  612. var city = $("#city").val();
  613. setDistrict("",city,2)
  614. });
  615. /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
  616. $("input[name='customerIsVisit']").change(function (){
  617. if($(this).val() == 2){
  618. $("#needToVisit").css("display","block");
  619. }else{
  620. $("#needToVisit").css("display","none");
  621. }
  622. })
  623. /*监听回访选择客服的选择事件*/
  624. $(document).on('change', '#visitAdminId', function() {
  625. var visitAdminName = $("#visitAdminId").find("option:selected").text();
  626. var visitAdminId = $("#visitAdminId").val();
  627. if(convertUndefinedToEmpty(visitAdminId) == adminId){
  628. showVisitMsg(1);
  629. }else{
  630. showVisitMsg(2,visitAdminName);
  631. }
  632. });
  633. })
  634. /*初始化单选框样式*/
  635. function initCheck(){
  636. $('.skin-minimal input').iCheck({
  637. checkboxClass: 'icheckbox-blue',
  638. radioClass: 'iradio-blue',
  639. increaseArea: '20%'
  640. });
  641. }
  642. /*初始化客服*/
  643. function initSysAdmin() {
  644. var sysAminList = getSysAdmin();
  645. var html = "";
  646. for(var i=0;i<sysAminList.length;i++){
  647. var adminList = sysAminList[i];
  648. if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
  649. html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'</option>';
  650. }else{
  651. html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
  652. }
  653. }
  654. $("#adminId").html(html);
  655. }
  656. /*初始化回访客服的选择*/
  657. function initVisitSysAdmin(){
  658. var sysAminList = getSysAdmin();
  659. var html = "";
  660. var flag = false;
  661. for(var i=0;i<sysAminList.length;i++){
  662. var adminList = sysAminList[i];
  663. if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
  664. html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'</option>';
  665. flag = true;
  666. }else{
  667. html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
  668. }
  669. }
  670. $("#visitAdminId").html(html);
  671. if(flag){
  672. showVisitMsg(1);
  673. }
  674. }
  675. /**
  676. * 用于显示回访指派任务提示信息
  677. * 1 :自己
  678. * 2 :其他人
  679. */
  680. function showVisitMsg(type,adminName) {
  681. if(type == 1){
  682. $("#visitAdminIdMsg").html("您将为自己指定一个回访任务");
  683. }else{
  684. $("#visitAdminIdMsg").html("您将为"+ adminName +"指定一个回访任务");
  685. }
  686. }
  687. /*获取客服*/
  688. var sysAminList;
  689. function getSysAdmin(){
  690. if(sysAminList != null && sysAminList.length > 0){
  691. return sysAminList
  692. }
  693. $.ajax({
  694. type: "POST",
  695. data: {
  696. },
  697. url: "${path}/admin/customer/select_sys_admin",
  698. async: false,
  699. success: function(data){
  700. if (data.returnCode == 200) {
  701. sysAminList = data.returnMsg.adminList;
  702. adminId = data.returnMsg.adminId;
  703. }
  704. },
  705. error: function(XmlHttpRequest, textStatus, errorThrown){
  706. }
  707. });
  708. return sysAminList;
  709. }
  710. /*初始化产品类型 -- 客诉头部的产品类型单选*/
  711. function initProduceType(){
  712. var html = "";
  713. $.ajax({
  714. type: "POST",
  715. data: {
  716. },
  717. url: "${path}/admin/customer/select_produce_type",
  718. async: false,
  719. success: function(data){
  720. if (data.returnCode == 200) {
  721. var check = "checked";
  722. for(var i=0;i<data.returnMsg.productTypeList.length;i++){
  723. var produce = data.returnMsg.productTypeList[i];
  724. html += ' <div class="radio-box">' +
  725. '<input type="radio" id="produce-type-'+ i +'" name="typeId" datatype="*" value="'+ produce.typeId +'" '+ check +' nullmsg="请选择产品类型!" >' +
  726. ' <label for="produce-type-'+ i +'">'+ produce.typeName +'</label>' +
  727. ' </div>';
  728. check = "";
  729. }
  730. }else{
  731. html = '';
  732. }
  733. },
  734. error: function(XmlHttpRequest, textStatus, errorThrown){
  735. }
  736. });
  737. $("#produceTypeHtml").html(html);
  738. initCheck();
  739. }
  740. /**
  741. * 选择处理结果-- 默认选择已解决
  742. * type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货
  743. */
  744. function initProcessResult(type){
  745. if(type == null || type == ""){
  746. type = 1;
  747. }
  748. var statusHtml = '<li><span class="arrow"></span><div class="number">status_index</div><div>status_html</div></li>';
  749. var resultHtml = '';
  750. var result = {};
  751. $("#solved").show(); //已解决
  752. $("#noSolved").show();//未解决
  753. if(allCustomerInfoType == 1){ //售前
  754. $("#renewed").hide();
  755. $("#maintain").hide();
  756. $("#reissue").hide();
  757. $("#backGoods").hide();
  758. $("#noReasonBack").hide();
  759. switch(type)
  760. {
  761. case 1:
  762. otherHied();
  763. break;
  764. case 2:
  765. otherHied();
  766. break;
  767. default:
  768. break;
  769. }
  770. }else if(allCustomerInfoType == 2){ //售后
  771. $("#renewed").show();
  772. $("#maintain").show();
  773. $("#reissue").show();
  774. $("#backGoods").show();
  775. $("#noReasonBack").show();
  776. switch(type)
  777. {
  778. case 1:
  779. otherHied();
  780. break;
  781. case 2:
  782. otherHied();
  783. break;
  784. case 3: //换新
  785. result = isSolve.renewed;
  786. $("#relationProduct").html("换新产品");
  787. $("#processResultStatus").show();
  788. $("#orderHead").show();
  789. $("#order").show();
  790. $("#recipientInfo").show();
  791. $("#recipientAddress").show();
  792. $("#recipientAddressText").show();
  793. $("#renewedProduct").show();
  794. $("#TDScollect").show();
  795. $("#TDScollectShow").show();
  796. $("#sendAddressInfo").show();
  797. $("#sendAddressByPhone").show();
  798. $("#updateProduct").show();
  799. break;
  800. case 4: //维修
  801. result = isSolve.maintain;
  802. $("#relationProduct").html("维修产品");
  803. $("#processResultStatus").show();
  804. $("#orderHead").show();
  805. $("#order").show();
  806. $("#recipientInfo").show();
  807. $("#recipientAddress").show();
  808. $("#recipientAddressText").show();
  809. $("#renewedProduct").show();
  810. $("#TDScollect").show();
  811. $("#TDScollectShow").show();
  812. $("#sendAddressInfo").show();
  813. $("#sendAddressByPhone").show();
  814. $("#updateProduct").show();
  815. break;
  816. case 5://补发
  817. result = isSolve.reissue;
  818. $("#relationProduct").html("补发产品");
  819. $("#processResultStatus").show();
  820. $("#orderHead").show();
  821. $("#order").show();
  822. $("#recipientInfo").show();
  823. $("#recipientAddress").show();
  824. $("#recipientAddressText").show();
  825. $("#renewedProduct").show();
  826. $("#TDScollect").show();
  827. $("#TDScollectShow").show();
  828. $("#sendAddressInfo").hide();
  829. $("#sendAddressByPhone").hide();
  830. $("#updateProduct").hide();
  831. break;
  832. case 6: //退货
  833. result = isSolve.backGoods;
  834. $("#relationProduct").html("退货产品");
  835. $("#processResultStatus").show();
  836. $("#orderHead").show();
  837. $("#order").show();
  838. $("#recipientInfo").show();
  839. $("#recipientAddress").show();
  840. $("#recipientAddressText").show();
  841. $("#renewedProduct").show();
  842. $("#TDScollect").show();
  843. $("#TDScollectShow").show();
  844. $("#sendAddressInfo").show();
  845. $("#sendAddressByPhone").show();
  846. $("#updateProduct").hide();
  847. break;
  848. case 7://无理由退货
  849. result = isSolve.noReasonBack;
  850. $("#relationProduct").html("退货产品");
  851. $("#processResultStatus").show();
  852. $("#orderHead").show();
  853. $("#order").show();
  854. $("#recipientInfo").show();
  855. $("#recipientAddress").show();
  856. $("#recipientAddressText").show();
  857. $("#renewedProduct").show();
  858. $("#TDScollect").show();
  859. $("#TDScollectShow").show();
  860. $("#sendAddressInfo").show();
  861. $("#sendAddressByPhone").show();
  862. $("#updateProduct").hide();
  863. break;
  864. default:
  865. break;
  866. }
  867. }
  868. for(var i=0;i< result.length;i++){
  869. var html = statusHtml.replace("status_index",i+1);
  870. html = html.replace("status_html",result[i]);
  871. resultHtml += html;
  872. }
  873. $("#processResultStatus").html(resultHtml);
  874. }
  875. /*已解决|未解决 */
  876. function otherHied(){
  877. $("#processResultStatus").hide(); //处理结果的执行状态 已解决未解决没有该信息
  878. $("#orderHead").hide();
  879. $("#order").hide();
  880. $("#recipientInfo").hide();
  881. $("#recipientAddress").hide();
  882. $("#recipientAddressText").hide();
  883. $("#renewedProduct").hide();
  884. $("#TDScollect").hide();
  885. $("#TDScollectShow").hide();
  886. $("#sendAddressInfo").hide();
  887. $("#sendAddressByPhone").hide();
  888. $("#updateProduct").hide();
  889. }
  890. /*初始化问题大类*/
  891. function initComplaintTypeInfo() {
  892. //默认为售前咨询
  893. var customerCounselTypeOverall = allCustomerInfoType;
  894. var html = "";
  895. $.ajax({
  896. type: "POST",
  897. data: {
  898. complaintConsultingType : customerCounselTypeOverall
  899. },
  900. url: "${path}/admin/complaintQuestion/list_complaintType",
  901. async: false,
  902. success: function(data){
  903. var id;
  904. if (data.returnCode == 200) {
  905. for(var i=0;i<data.returnMsg.complaintTypeInfoList.length;i++){
  906. var complaintTypeInfo = data.returnMsg.complaintTypeInfoList[i];
  907. if(i == 0 ){
  908. id = complaintTypeInfo.complaintId;
  909. }
  910. html += '<option value="'+ complaintTypeInfo.complaintId +'">'+ complaintTypeInfo.complaintClassName +'</option>';
  911. }
  912. }else{
  913. html = '';
  914. }
  915. $("[name='complaintId']").html(html);
  916. initComplaintSmallClassInfo(id)
  917. },
  918. error: function(XmlHttpRequest, textStatus, errorThrown){
  919. }
  920. });
  921. }
  922. /*显示小类*/
  923. function initComplaintSmallClassInfo(complaintId){
  924. var html = "";
  925. $.ajax({
  926. type: "POST",
  927. data: {
  928. complaintId : complaintId
  929. },
  930. url: "${path}/admin/complaintQuestion/list_complaintSmallClass",
  931. async: false,
  932. success: function(data){
  933. if (data.returnCode == 200) {
  934. for(var i=0;i<data.returnMsg.complaintSmallClassInfoList.length;i++){
  935. var ComplaintSmallClassInfo = data.returnMsg.complaintSmallClassInfoList[i];
  936. html += '<option value="'+ ComplaintSmallClassInfo.smallClassId +'">'+ ComplaintSmallClassInfo.smallClassName +'</option>';
  937. }
  938. }else{
  939. html = '';
  940. }
  941. $("[name='smallClassId']").html(html);
  942. },
  943. error: function(XmlHttpRequest, textStatus, errorThrown){
  944. }
  945. });
  946. }
  947. /**
  948. * 搜索QA 显示
  949. */
  950. function initComplaintQuestionInfo(){
  951. var complaintId = $("[name='complaintId']").val();
  952. var smallClassId = $("[name='smallClassId']").val();;
  953. var questionName = $("[name='questionIdMsg']").val();;;
  954. var html = "";
  955. $.ajax({
  956. type: "POST",
  957. data: {
  958. complaintId : complaintId,
  959. smallClassId : smallClassId,
  960. questionName : questionName
  961. },
  962. url: "${path}/admin/complaintQuestion/list_complaintQuestion",
  963. async: false,
  964. success: function(data){
  965. if (data.returnCode == 200) {
  966. for(var i=0;i<data.returnMsg.complaintQuestionInfoList.length;i++){
  967. var complaintQuestion= data.returnMsg.complaintQuestionInfoList[i];
  968. html += '<li class="ask">'+ complaintQuestion.questionName +'' +
  969. '</li>' +
  970. '<li class="answer" style="height: 65px;overflow: hidden;">答:<span>'+ complaintQuestion.questionProfile +'</span><input class="quesId" value="'+ complaintQuestion.questionId +'"></li>';
  971. }
  972. }else{
  973. html = '';
  974. }
  975. $("#question").html(html);
  976. },
  977. error: function(XmlHttpRequest, textStatus, errorThrown){
  978. }
  979. });
  980. $(".dalog-ask").show();
  981. }
  982. /**
  983. * 发送短信
  984. * @param type 类型: "problem" 问题处理; mailAddress:邮寄地址;
  985. * @param node 返回结果显示节点
  986. */
  987. function sendPhone(type,node){
  988. var index = layer.load(1, {
  989. shade: [0.5,'#fff'] //0.1透明度的白色背景
  990. });
  991. var desc = "";
  992. var phone = "";
  993. var questionId = "";
  994. var describeTitle = "";
  995. if(type == "p"){
  996. phone = $("#p-phone").val();
  997. questionId = $("#questionId").val();
  998. describeTitle = $("#describeTitle").val();
  999. desc = UE.getEditor('describeContentText').getContent();
  1000. }else if(type == "m"){
  1001. phone = $("#m-phone").val();
  1002. }else{
  1003. layer.close(index);
  1004. layer.msg("发送报错", {icon: 5, time: 3000});
  1005. return false;
  1006. }
  1007. $.ajax({
  1008. type: "POST",
  1009. data: {
  1010. type : type,
  1011. phone : phone,
  1012. questionId : questionId,
  1013. questionName : describeTitle,
  1014. questionProfile : desc //回复内容
  1015. },
  1016. url: "${path}/admin/customer/send_phone_sms",
  1017. async: true,
  1018. success: function(data){
  1019. if (data.returnCode == 200) {
  1020. if(type == "p"){
  1021. $("#p-msg").html(data.resultMsg);
  1022. }else if(type == "m"){
  1023. $("#m-msg").html(data.resultMsg);
  1024. }
  1025. }else{
  1026. }
  1027. layer.close(index);
  1028. },
  1029. error: function(XmlHttpRequest, textStatus, errorThrown){
  1030. layer.close(index);
  1031. }
  1032. });
  1033. }
  1034. /***
  1035. * 打开搜索订单框
  1036. */
  1037. function selectOrder(){
  1038. layer_show("搜索订单","${path}/admin/customer/select_order","1000","500");
  1039. }
  1040. /**
  1041. * 显示选择的订单
  1042. */
  1043. function setSelectOrder(orderId){
  1044. var html = '';
  1045. var address = ''; //地址
  1046. var orderItemList = {};
  1047. var companyId = ''; //销售公司
  1048. var storeId = ''; //店铺
  1049. $.ajax({
  1050. type: "POST",
  1051. data: {
  1052. salesId : orderId
  1053. },
  1054. url: "${path}/admin/customer/select_salesOrder",
  1055. async: false,
  1056. success: function(data){
  1057. if (data.returnCode == 200) {
  1058. for(var i=0;i<data.returnMsg.salesOrderList.length;i++){
  1059. var salesOrder = data.returnMsg.salesOrderList[i];
  1060. companyId = salesOrder.salesCompanyId;
  1061. storeId = salesOrder.salesStoreId;
  1062. var productsHtml = '';
  1063. var salesOrderItem = salesOrder.salesOrderItemList;
  1064. orderItemList = salesOrder.salesOrderItemList;
  1065. for(var j=0;j<salesOrderItem.length;j++){
  1066. var item = salesOrderItem[j].itemProductName + "*" + salesOrderItem[j].itemNum;
  1067. if(j==0){
  1068. productsHtml += item
  1069. }else{
  1070. productsHtml += '<br>'+ item
  1071. }
  1072. }
  1073. var time = formatDate(new Date(salesOrder.salesCreateTime),"yyyy-MM-dd");
  1074. html += '' +
  1075. ' <td>'+ convertUndefinedToEmpty(salesOrder.companyName) +'-'+ convertUndefinedToEmpty(salesOrder.storeName) +'</td>' +
  1076. ' <td>'+ salesOrder.salesId +'</td>' +
  1077. ' <td>'+ salesOrder.salesAddressName +'</td>' +
  1078. ' <td>'+ salesOrder.salesAddressTel +'</td>' +
  1079. ' <td>'+ salesOrder.salesAmount +'</td>' +
  1080. ' <td>'+ productsHtml +'</td>' +
  1081. ' <td>'+ time +'</td>' +
  1082. '';
  1083. //address = '<td colspan="1">收货地址</td><td colspan="6" class="td-manage text-c" >'+ salesOrder.salesAddressInfo +'&nbsp;&nbsp;&nbsp;&nbsp;<a style="color: #0a6999;text-decoration: underline;" href="javascript:void(0);" title="编辑" onclick="updateAdress()">修改地址</a></td>' ;
  1084. address = salesOrder.salesAddressInfo;
  1085. $("#sendName").val(salesOrder.salesAddressName); //订单名称
  1086. $("#sendTel").val(salesOrder.salesAddressTel); //订单电话号码
  1087. }
  1088. // $("#showOrderAddress").html(address);
  1089. }else{
  1090. html = '';
  1091. }
  1092. $("#showOrder").html(html); //显示订单
  1093. },
  1094. error: function(XmlHttpRequest, textStatus, errorThrown){
  1095. }
  1096. });
  1097. $("#addressInfo").val(address);
  1098. setAdress(); //显示地址
  1099. setProduce(orderItemList); //显示产品
  1100. $("#companyId").val(companyId);
  1101. $("#storeId").val(storeId);
  1102. $("#orderId").val(orderId);
  1103. }
  1104. /**
  1105. * 设置地址
  1106. */
  1107. function setAdress(){
  1108. var addres = $("#addressInfo").val();
  1109. $("#addrssMsg").html("");
  1110. if(addres == null){
  1111. $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
  1112. return;
  1113. }
  1114. var addresList = addres.split("-");
  1115. if(addresList[0] == null || addresList[1]==null || addresList[2]==null || addresList[3]==null){
  1116. $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
  1117. return;
  1118. }
  1119. var proId = setPro(getAddress(addresList[0],0),1);
  1120. var cityId = setCity(getAddress(addresList[1],1),proId,1);
  1121. setDistrict(getAddress(addresList[2],2),cityId,1);
  1122. var sendAddress = addresList[3];
  1123. if(addresList.length > 4){
  1124. sendAddress += addresList[4];
  1125. }
  1126. $("#sendAddress").val(sendAddress);
  1127. }
  1128. /***
  1129. * 删除 “省”,“市”,“区”关键字
  1130. * type : 0:省 2:市 3:区
  1131. */
  1132. function getAddress(addrss,type) {
  1133. var abbreviation = "";
  1134. if(addrss == ""){
  1135. abbreviation = "";
  1136. }else{
  1137. switch(type)
  1138. {
  1139. case 0:
  1140. var proReg = new RegExp("省","g");
  1141. abbreviation = addrss.replace(proReg,"");
  1142. break;
  1143. case 1:
  1144. var cityReg = new RegExp("市","g");
  1145. abbreviation = addrss.replace(cityReg,"");
  1146. break;
  1147. case 2:
  1148. var districtReg = new RegExp("市","g");
  1149. abbreviation = addrss.replace(districtReg,"");
  1150. break;
  1151. default:
  1152. break;
  1153. }
  1154. }
  1155. return abbreviation
  1156. }
  1157. /**
  1158. * 设置省
  1159. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1160. */
  1161. function setPro(provinceName,type) {
  1162. var proId = '';
  1163. var province = listProvince();
  1164. var selectPro = {};
  1165. if(type == 1){
  1166. selectPro = listProvince("",provinceName);
  1167. }else if(type == 2){
  1168. selectPro = null;
  1169. }
  1170. if(province!=null){
  1171. var provinceHtml = ''
  1172. for(var i=0;i<province.length;i++){
  1173. if(selectPro!= null && province[i].provinceId == selectPro[0].provinceId){
  1174. proId = selectPro[0].provinceId;
  1175. provinceHtml += '<option value="'+ province[i].provinceId +'" selected>'+ province[i].province +'</option>';
  1176. }else{
  1177. provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
  1178. }
  1179. }
  1180. $("#province").html(provinceHtml);
  1181. }
  1182. return proId;
  1183. }
  1184. /**
  1185. * 设置市
  1186. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1187. */
  1188. function setCity(cityName,proId,type) {
  1189. var cityId = '';
  1190. var city = listCity(proId,"");
  1191. var selectCity = {};
  1192. if(type == 1){
  1193. selectCity = listCity(proId,cityName);
  1194. }else if(type == 2){
  1195. selectCity = null;
  1196. cityId = city[0].cityId;
  1197. }
  1198. if(city!=null){
  1199. var cityHtml = ''
  1200. for(var i=0;i<city.length;i++){
  1201. if(selectCity != null && city[i].cityId == selectCity[0].cityId){
  1202. cityId = city[i].cityId;
  1203. cityHtml += '<option value="'+ city[i].cityId +'" selected>'+ city[i].city +'</option>';
  1204. }else{
  1205. cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
  1206. }
  1207. }
  1208. $("#city").html(cityHtml);
  1209. }
  1210. return cityId;
  1211. }
  1212. /**
  1213. * 设置区
  1214. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1215. */
  1216. function setDistrict(districtName,cityId,type) {
  1217. var district = listDistrict(cityId,"");
  1218. var selectDistrict = {};
  1219. if(type == 1){
  1220. selectDistrict = listDistrict(cityId,districtName);
  1221. }else if(type == 2){
  1222. selectDistrict = null;
  1223. }
  1224. if(district!=null){
  1225. var districtHtml = ''
  1226. for(var i=0;i<district.length;i++){
  1227. if(selectDistrict != null && district[i].districtId == selectDistrict[0].districtId){
  1228. districtHtml += '<option value="'+ district[i].districtId +'" selected>'+ district[i].district +'</option>';
  1229. }else{
  1230. districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
  1231. }
  1232. }
  1233. $("#district").html(districtHtml);
  1234. }
  1235. }
  1236. /* TDS收集设置区 */
  1237. var TDSCity = '';
  1238. function linkageSetDistrict(){
  1239. var arrcity_3word = $("#arrcity_3word").val();
  1240. var cityName = '北京';
  1241. for(var i = 0;i<citys.length;i++){
  1242. for(var j=0;j<citys[i].length;j++){
  1243. if(j == 0 && arrcity_3word == citys[i][j]){
  1244. cityName = citys[i][1];
  1245. }
  1246. }
  1247. }
  1248. TDSCity = cityName;
  1249. var selectCity = listCity(null,cityName);
  1250. var cityId = selectCity[0].cityId;
  1251. var selectDistrict = listDistrict(cityId,"");
  1252. var html = '';
  1253. for(var i=0;i<selectDistrict.length;i++){
  1254. html += '<option value="'+ selectDistrict[i].districtId +'">'+ selectDistrict[i].district +'</option>';
  1255. }
  1256. $("#TDSArea").html(html);
  1257. $("#TDSArea").find("option").eq(0).prop("selected",true);
  1258. }
  1259. /**
  1260. * 展示产品
  1261. * @param orderItemList
  1262. */
  1263. function setProduce(orderItemList) {
  1264. var productList = getProduct() ; //所有产品
  1265. var html = "";
  1266. var productTypeNo = 0;
  1267. for(var i=0;i<productList.length;i++) {
  1268. var product = productList[i];
  1269. var produceFittings = getProduceFittings(product.productId); //获取该产品的所有配件
  1270. var colorList = product.colorList; //该产品的所有颜色
  1271. var productType = product.productType;
  1272. var colorHtml = '';
  1273. if(colorList != null && colorList.length >0 ){
  1274. colorHtml += '<table style="height: 100%;">';
  1275. for(var j=0;j<colorList.length;j++){
  1276. var number = "";
  1277. var color = colorList[j];
  1278. for(var k=0;k<orderItemList.length;k++){
  1279. var item = orderItemList[k];
  1280. if(item.itemColorId == color.colorId){
  1281. number = item.itemNum;
  1282. }
  1283. }
  1284. var fristInputStyle = "border-top: 1px solid #ddd;";
  1285. if(color.colorProductId == product.productId) {
  1286. colorHtml += '<tr >' +
  1287. ' <td width="85" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
  1288. ' <td width="15" style="'+ fristInputStyle +'">' +
  1289. ' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
  1290. ' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
  1291. ' <input type="text" class="input-text input-color-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
  1292. ' </td>' +
  1293. ' </tr>';
  1294. fristInputStyle = "";
  1295. }
  1296. }
  1297. colorHtml += '</table>';
  1298. }else{
  1299. colorHtml += '<span>暂无该产品的颜色!<span>';
  1300. }
  1301. var produceFittingsHtml = '';
  1302. if(produceFittings != null && produceFittings.length > 0){
  1303. produceFittingsHtml += '<table style="height: 100%;">';
  1304. for(var m=0;m<produceFittings.length;m++){
  1305. var produceFit = produceFittings[m];
  1306. if(produceFit.productId == product.productId) {
  1307. var fristInputStyle = "border-top: 1px solid #ddd;";
  1308. produceFittingsHtml += '<tr >' +
  1309. ' <td width="85" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
  1310. ' <td width="15" style="'+ fristInputStyle +'">' +
  1311. ' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
  1312. ' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
  1313. ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
  1314. ' </td>' +
  1315. ' </tr>';
  1316. fristInputStyle = "";
  1317. }
  1318. }
  1319. produceFittingsHtml += '</table>';
  1320. }else{
  1321. produceFittingsHtml += '<span>暂无产品配件!<span>';
  1322. }
  1323. var produceHtml = '<input type="hidden" value="'+ product.productId +'">' +
  1324. '<span>'+ product.productName +'</span>';
  1325. html += ' <tr >' +
  1326. ' <td width="80">'+ produceHtml +'</td>' +
  1327. ' <td style="padding: 0px;text-align: center;">' +
  1328. colorHtml +
  1329. ' </td>' +
  1330. ' <td style="padding: 0px;text-align: center;">' +
  1331. produceFittingsHtml +
  1332. ' </td>' +
  1333. '</tr>';
  1334. }
  1335. $("#addProduct").html(html);
  1336. // initCheck(); //因为需要展示产品,所以再次初始化多选框
  1337. setBackProduct(html); //设置寄回产品
  1338. monitorProduct(); //监听产品变化
  1339. }
  1340. /*获取产品*/
  1341. function getProduct(){
  1342. var productList;
  1343. $.ajax({
  1344. type: "POST",
  1345. data: {
  1346. },
  1347. url: "${path}/admin/customer/select_produce",
  1348. async: false,
  1349. success: function(data){
  1350. if (data.returnCode == 200) {
  1351. productList = data.returnMsg.productList;
  1352. }
  1353. },
  1354. error: function(XmlHttpRequest, textStatus, errorThrown){
  1355. }
  1356. });
  1357. return productList;
  1358. }
  1359. /*获取产品配件*/
  1360. function getProduceFittings(productId){
  1361. var produceFittings;
  1362. $.ajax({
  1363. type: "get",
  1364. data: {
  1365. productId : productId
  1366. },
  1367. url: "${path}/admin/customer/select_produce_fittings",
  1368. async: false,
  1369. success: function(data){
  1370. if (data.returnCode == 200) {
  1371. produceFittings = data.returnMsg.produceFittingsList;
  1372. }
  1373. },
  1374. error: function(XmlHttpRequest, textStatus, errorThrown){
  1375. }
  1376. });
  1377. return produceFittings;
  1378. }
  1379. /*监听产品变化*/
  1380. function monitorProduct(){
  1381. /*产品数量*/
  1382. $("#addProduct").find(".input-color-number").blur(function (){
  1383. setBackProduct();
  1384. })
  1385. /*产品配件*/
  1386. $("#addProduct").find(".input-fittings-number").blur(function (){
  1387. setBackProduct();
  1388. })
  1389. }
  1390. /*设置寄回产品*/
  1391. function setBackProduct(html) {
  1392. if(html != null && html != "" && typeof(html) != "undefined"){
  1393. $("#back-product").html(html);
  1394. }else{
  1395. }
  1396. }
  1397. </script>
  1398. <script>
  1399. $(function(){
  1400. $("#form-customer-add").Validform({
  1401. tiptype: function (msg, o, cssctl) {
  1402. if (o.type == 3) {//失败
  1403. layer.msg(msg, {icon: 5, time: 3000});
  1404. $(window).scrollTop(o.obj.offset().top - 40);
  1405. }
  1406. },
  1407. datatype: {//自定义验证类型
  1408. },
  1409. ignoreHidden: true,
  1410. tipSweep: true, //若为true,则只在表单提交时验证
  1411. ajaxPost: true, //异步提交
  1412. beforeCheck: function (curform) { //验证通过之前执行的函数
  1413. },
  1414. beforeSubmit: function (curform) { //验证通过之后执行的函数
  1415. addCustomerReady();
  1416. },
  1417. callback: function (data) {//异步回调函数
  1418. if (data) {
  1419. var index = layer.alert(data.resultMsg, function () {
  1420. if (data.resultCode == 200) {
  1421. location.href = "${path}/admin/customer/select_customer_list";
  1422. } else {
  1423. layer.close(index);
  1424. }
  1425. return ;
  1426. });
  1427. }
  1428. }
  1429. });
  1430. })
  1431. /* 添加客诉的准备 */
  1432. function addCustomerReady(){
  1433. /*----TDS收集模块--start-----*/
  1434. var valicity = $(".ac_result_tip").html();
  1435. if(valicity == null || valicity == "" || typeof(valicity)=="undefined"){
  1436. $("#TDSArea").html("");
  1437. }else if(valicity.indexOf("对不起,找不到") > 0 ){
  1438. $("#TDSArea").html("");
  1439. $("#customerArea").val("");
  1440. }else{
  1441. var TDSArea = $("#TDSArea").find("option:selected").text();
  1442. if(TDSArea != null && TDSArea != ""){
  1443. var area = TDSCity + "-" + TDSArea
  1444. $("#customerArea").val(area);
  1445. }
  1446. }
  1447. /*----TDS收集模块--end-----*/
  1448. /* 地址拼接 */
  1449. var province = $("#province").find("option:selected").text();
  1450. var city = $("#city").find("option:selected").text();
  1451. var district = $("#district").find("option:selected").text();
  1452. var relationSendMergeAddress = province + "-" + city + "-" + district;
  1453. $("#relationSendMergeAddress").val(relationSendMergeAddress);
  1454. /* 地址拼接 */
  1455. /*----问题描述- start --*/
  1456. var describeContentText = UE.getEditor('describeContentText').getContent();
  1457. $("#describeContent").val(describeContentText);
  1458. /*----问题描述--end-----*/
  1459. /*----处理描述- start --*/
  1460. var describeHandleDescText = UE.getEditor('describeHandleDescText').getContent();
  1461. $("#describeHandleDesc").val(describeHandleDescText);
  1462. /*----处理描述--end-----*/
  1463. /* --- 类型:售后 处理结果:维修/换新/补发/退货/无理由退货 -- 处理产品 start---- */
  1464. var sendProdcues = new Array(); //寄出产品表
  1465. var sendFittings = new Array();
  1466. var closedProdcues = new Array();
  1467. var closedFittings = new Array();
  1468. $("#addProduct").find(".input-color-number").each(function(){
  1469. var number = $(this).val();
  1470. if(number != null && number != ""){
  1471. var product = new Object();
  1472. product.productId = $(this).parent().find(".input-produce-id").val();
  1473. product.colorId = $(this).parent().find(".input-color-id").val();
  1474. //换新、维修,退货,无理由退货,
  1475. if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1476. product.closedProdcueNumber = number;
  1477. closedProdcues.push(product);
  1478. }else if(allCustomerType == 5){
  1479. product.sendProdcueNumber = number;
  1480. sendProdcues.push(product);
  1481. }
  1482. }
  1483. })
  1484. $("#addProduct").find(".input-fittings-number").each(function(){
  1485. var number = $(this).val();
  1486. if(number != null && number != ""){
  1487. var fittings = new Object();
  1488. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1489. fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
  1490. //换新、维修,退货,无理由退货,
  1491. if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1492. fittings.closedFittingNumber = number;
  1493. closedFittings.push(fittings);
  1494. }else if(allCustomerType == 5){
  1495. fittings.sendFittingNumber = number;
  1496. sendFittings.push(fittings);
  1497. }
  1498. }
  1499. })
  1500. $("#back-product").find(".input-color-number").each(function(){
  1501. var number = $(this).val();
  1502. if(number != null && number != ""){
  1503. //换新、维修,
  1504. if(allCustomerType == 3 || allCustomerType == 4){
  1505. var fittings = new Object();
  1506. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1507. fittings.colorId = $(this).parent().find(".input-color-id").val();
  1508. fittings.sendProdcueNumber = number;
  1509. sendProdcues.push(fittings);
  1510. }
  1511. }
  1512. })
  1513. $("#back-product").find(".input-fittings-number").each(function(){
  1514. var number = $(this).val();
  1515. if(number != null && number != ""){
  1516. //换新、维修
  1517. if(allCustomerType == 3 || allCustomerType == 4){
  1518. var fittings = new Object();
  1519. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1520. fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
  1521. fittings.sendFittingNumber = number;
  1522. sendFittings.push(fittings);
  1523. }
  1524. }
  1525. })
  1526. $("#sendProdcues").val(JSON.stringify(sendProdcues));
  1527. $("#sendFittings").val(JSON.stringify(sendFittings));
  1528. $("#closedProdcues").val(JSON.stringify(closedProdcues));
  1529. $("#closedFittings").val(JSON.stringify(closedFittings));
  1530. }
  1531. /* 添加客诉 */
  1532. // function save_submit(){
  1533. // var customerSourceType = $("input[name='customerSourceType']:checked").val();
  1534. // if(customerSourceType == 3){
  1535. // var customerSource = $("#customerSource").val();
  1536. // if(customerSource == null || customerSource ==""){
  1537. // showErrorMsg($("#customerSource"),"请输入来源入口!");
  1538. // }
  1539. // }
  1540. // }
  1541. /*提示错误信息*/
  1542. function showErrorMsg(node,msg){
  1543. node.select();
  1544. layer.msg(msg, {icon: 2, time: 2000});
  1545. }
  1546. </script>
  1547. <!--/请在上方写此页面业务相关的脚本-->
  1548. </body>
  1549. </html>