add_customer.ftl 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215
  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. <input type="hidden" id="customerName" name="customerName" value="">
  68. <input type="hidden" id="customerTel" name="customerTel" value="">
  69. <div class="row cl">
  70. <label class="form-label col-3">
  71. <div class="tit-2">客诉基本信息</div>
  72. </label>
  73. <div class="formControls col-9">
  74. </div>
  75. </div>
  76. <div class="row cl">
  77. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>跟进客服:</label>
  78. <div class="formControls col-4 col-sm-4"> <span class="select-box" style=" width: 625px;">
  79. <select name="adminId" id="adminId" class="select">
  80. </select>
  81. </span>
  82. </div>
  83. </div>
  84. <div class="row cl">
  85. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>来源入口:</label>
  86. <div class="formControls col-10 col-sm-10 skin-minimal">
  87. <div class="radio-box">
  88. <input type="radio" id="tel-1" name="customerSourceType" value="1" datatype="*" checked nullmsg="请选择来源入口!">
  89. <label for="tel-1">400电话</label>
  90. </div>
  91. <div class="radio-box">
  92. <input type="radio" id="tel-2" name="customerSourceType" value="2">
  93. <label for="tel-2">微信公众号</label>
  94. </div>
  95. <div class="radio-box">
  96. <input type="radio" id="tel-3" name="customerSourceType" value="3">
  97. <label for="tel-3">其他</label>
  98. <input type="text" style="width: 321px;margin-left: 10px; display: none;" class="input-text" value="" placeholder="" id="customerSourceOld" name="customerSourceOld" placeholder="">
  99. <input type="hidden" value="" placeholder="" id="customerSource" name="customerSource">
  100. </div>
  101. </div>
  102. </div>
  103. <div class="row cl">
  104. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>咨询类型:</label>
  105. <div class="formControls col-10 col-sm-10 skin-minimal">
  106. <div class="radio-box">
  107. <input type="radio" class="customerCounselType" id="customer-type-1" name="customerCounselType" value="1" >
  108. <label for="customer-type-1">售前咨询</label>
  109. </div>
  110. <div class="radio-box">
  111. <input type="radio" class="customerCounselType" id="customer-type-2" name="customerCounselType" value="2" checked>
  112. <label for="customer-type-2">售后咨询</label>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="row cl">
  117. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
  118. <input type="hidden" id="typeCompany" name="typeCompany" value="">
  119. <div class="formControls col-10 col-sm-10 skin-minimal" id="produceTypeHtml">
  120. <#--<div class="radio-box">
  121. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  122. <label for="tel-3">净水机</label>
  123. </div>
  124. <div class="radio-box">
  125. <input type="radio" id="tel-3" name="produceType" datatype="*" nullmsg="请选择产品类型!">
  126. <label for="tel-4">冲奶机</label>
  127. </div>-->
  128. </div>
  129. </div>
  130. <div class="row cl" style="position: relative;">
  131. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客诉问题:</label>
  132. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  133. <select name="complaintId" class="select">
  134. <option value="">请选择问题分类</option>
  135. <#--<option value="0">使用操作</option>-->
  136. <#--<option value="1">使用操作</option>-->
  137. </select>
  138. </span>
  139. </div>
  140. <div class="formControls col-2 col-sm-2"> <span class="select-box">
  141. <select name="smallClassId" id="smallClassId" class="select">
  142. <option value="">请选择问题分类</option>
  143. <#--<option value="0">使用操作制水出水</option>
  144. <option value="1">使用操作制水出水</option>-->
  145. </select>
  146. </span>
  147. </div>
  148. <div class="formControls col-2 col-sm-2">
  149. <div class="clearfix">
  150. <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>
  151. </div>
  152. </div>
  153. <div class="dalog-ask">
  154. <div class="tag">
  155. <em></em>
  156. <strong>相关QA</strong>
  157. <a href="javascript:void(0)" style="margin-left: 200px;" onclick="closeQA()">关闭</a>
  158. <ul id="question">
  159. <#--<li class="ask">1、净水机面板操作不灵敏,是怎么回事?</li>
  160. <li class="answer">答:<span>4净水机面板操作不灵敏,是怎么回事。1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?1、净水机面板操作不灵敏,是怎么回事?</span></li>-->
  161. </ul>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="row cl">
  166. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
  167. <div class="formControls col-5 col-sm-5">
  168. <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle">
  169. </div>
  170. </div>
  171. <div class="row cl">
  172. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题内容:</label>
  173. <div class="formControls col-5 col-sm-5">
  174. <input type="hidden" name="questionId" id="questionId" value="">
  175. <script id="describeContentText" type="text/plain" style="width:983px;height:250px;"></script>
  176. </script>
  177. <input type="hidden" name="describeContent" id="describeContent" value="">
  178. </div>
  179. </div>
  180. <div class="row cl">
  181. <label class="form-label col-1 col-sm-1"></label>
  182. <div class="formControls col-2 col-sm-2">
  183. <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="p-phone" name="">
  184. </div>
  185. <div class="formControls col-2 col-sm-2" style="width: 10%">
  186. <input type="button" class="btn btn-primary" value="发短信给用户" onclick="sendPhone('p','p-msg');">
  187. </div>
  188. <div class="formControls col-2 col-sm-2" style="width: 10%">
  189. <input type="button" class="btn btn-primary" value="保存QA" onclick="saveQuestion();">
  190. </div>
  191. <div class="formControls col-2 col-sm-2 msg-phone">
  192. <div id="p-msg" style="color: #e00"></div>
  193. </div>
  194. </div>
  195. <div class="row cl">
  196. <label class="form-label col-1 col-sm-1">
  197. <div class="tit">处理结果</div>
  198. </label>
  199. <div class="formControls col-10 col-sm-10">
  200. </div>
  201. </div>
  202. <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
  203. <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
  204. <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
  205. <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
  206. <div class="row cl">
  207. <label class="form-label col-1 col-sm-1">处理类型:</label>
  208. <div class="formControls col-10 col-sm-10 skin-minimal">
  209. <div class="radio-box" id="solved">
  210. <input type="radio" id="customer-process-1" value="1" name="customerIsSolve" >
  211. <label for="customer-process-1">已解决</label>
  212. </div>
  213. <div class="radio-box" id="noSolved">
  214. <input type="radio" id="customer-process-2" value="2" name="customerIsSolve">
  215. <label for="customer-process-2">未解决</label>
  216. </div>
  217. <div class="radio-box" id="renewed" style="display: none">
  218. <input type="radio" id="customer-process-3" value="3" name="customerIsSolve" checked>
  219. <label for="customer-process-3">换新</label>
  220. </div>
  221. <div class="radio-box" id="maintain" style="display: none">
  222. <input type="radio" id="customer-process-4" value="4" name="customerIsSolve" >
  223. <label for="customer-process-4">维修</label>
  224. </div>
  225. <div class="radio-box" id="reissue" style="display: none">
  226. <input type="radio" id="customer-process-5" value="5" name="customerIsSolve">
  227. <label for="customer-process-5">补发</label>
  228. </div>
  229. <div class="radio-box" id="backGoods" style="display: none">
  230. <input type="radio" id="customer-process-6" value="6" name="customerIsSolve">
  231. <label for="customer-process-6">退货</label>
  232. </div>
  233. <div class="radio-box" id="noReasonBack" style="display: none">
  234. <input type="radio" id="customer-process-7" value="7" name="customerIsSolve">
  235. <label for="customer-process-7">无理由退货</label>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="row cl">
  240. <label class="form-label col-1 col-sm-1"></label>
  241. <div class="formControls col-10 col-sm-10">
  242. <ul class="time-line-list" id="processResultStatus">
  243. <#-- <li><span class="arrow"></span><div class="number">1</div><div>录入客诉</div></li>
  244. <li><span class="arrow"></span><div class="number">2</div><div>督促用户寄回</div></li>
  245. <li><span class="arrow"></span><div class="number">3</div><div>录入快递单号</div></li>
  246. <li><span class="arrow"></span><div class="number">4</div><div>仓库收货</div></li>
  247. <li><span class="arrow"></span><div class="number">5</div><div>换新发货</div></li>
  248. <li><span class="arrow"></span><div class="number">6</div><div>发货通知用户</div></li>
  249. <li><span class="arrow"></span><div class="number">7</div><div>收货后回访</div></li>-->
  250. </ul>
  251. </div>
  252. </div>
  253. <div class="row cl" id="orderHead" style="display: none;">
  254. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>订单信息:</label>
  255. <div class="formControls col-1 col-sm-1">
  256. <button type="button" class="btn btn-primary" id="selectOrder">搜索订单</button>
  257. </div>
  258. </div>
  259. <div class="row cl" id="order" style="display: none;">
  260. <label class="form-label col-1 col-sm-1"></label>
  261. <div class="formControls col-9 col-sm-9 text-c">
  262. <table class="table table-border table-bg table-bordered">
  263. <tr>
  264. <th style="text-align: center;">销售</th>
  265. <th style="text-align: center;">订单号</th>
  266. <th style="text-align: center;">姓名</th>
  267. <th style="text-align: center;">电话</th>
  268. <th style="text-align: center;">订单金额</th>
  269. <th style="text-align: center;">购买产品</th>
  270. <th style="text-align: center;">购买日期</th>
  271. </tr>
  272. <tr id="showOrder">
  273. <td style="text-align: center;" colspan="7">暂未选择订单</td>
  274. </tr>
  275. </table>
  276. <input type="hidden" id="companyId" name="companyId" value="" >
  277. <input type="hidden" id="storeId" name="storeId" value="" >
  278. <input type="hidden" id="orderId" name="salesId" value="" >
  279. </div>
  280. </div>
  281. <div class="row cl" id="recipientInfoTitle" style="display: none;">
  282. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
  283. <div class="formControls col-8 col-sm-8">请先选择订单,系统自动填充姓名,电话和地址信息。</div>
  284. </div>
  285. <div class="row cl" id="recipientInfo" style="display: none;">
  286. <label class="form-label col-1 col-sm-1"></label>
  287. <div class="formControls col-2 col-sm-2">
  288. <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="s1-20" errormsg="联系人格式不正确!" >
  289. </div>
  290. <div class="formControls col-2 col-sm-2">
  291. <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
  292. </div>
  293. <div class="formControls col-2 col-sm-2" id="postageAccount">
  294. <input type="text" class="input-text" value="" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
  295. </div>
  296. </div>
  297. <div class="row cl" id="recipientAddress" style="display: none;">
  298. <input type="hidden" id="addressInfo">
  299. <label class="form-label col-1 col-sm-1"></label>
  300. <div class="formControls col-2 col-sm-2">
  301. <span class="select-box">
  302. <select id="province" class="select" name="provinceNumber">
  303. </select>
  304. </span>
  305. </div>
  306. <div class="formControls col-2 col-sm-2">
  307. <span class="select-box">
  308. <select id="city" class="select" name="cityNumber">
  309. </select>
  310. </span>
  311. </div>
  312. <div class="formControls col-2 col-sm-2">
  313. <span class="select-box">
  314. <select id="district" class="select" name="areaNumber">
  315. </select>
  316. </span>
  317. </div>
  318. <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
  319. </div>
  320. <div class="row cl" id="recipientAddressText" style="display: none;">
  321. <label class="form-label col-1 col-sm-1"></label>
  322. <div class="formControls col-5 col-sm-5">
  323. <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)"></textarea>
  324. <span id="addrssMsg"></span>
  325. </div>
  326. </div>
  327. <div class="row cl" id="renewedProduct" style="display: none;">
  328. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
  329. <div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
  330. <table class="table table-border table-bg table-bordered">
  331. <thead>
  332. <tr class="text-c" id="table1">
  333. <th style="text-align: center;" width="60">产品名称</th>
  334. <th style="text-align: center;" width="60">产品颜色</th>
  335. <th style="text-align: center;" width="60">产品配件</th>
  336. </tr>
  337. </thead>
  338. <tbody id="addProduct">
  339. <tr id="showOrder">
  340. <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
  341. </tr>
  342. </tbody>
  343. </table>
  344. </div>
  345. </div>
  346. <div class="row cl" id="TDScollect" style="display: none;">
  347. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>TDS收集:</label>
  348. <div class="formControls col-2 col-sm-2" style="position: relative;">
  349. <input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />
  350. <input style="width: 190px;" placeholder="" class="input-text my-search-input" placeholder="请输入城市名称搜索" type="text" name="arrcity" id="arrcity" />
  351. <div id="suggest" class="ac_results"></div>
  352. </div>
  353. <div class="formControls col-2 col-sm-2">
  354. <span class="select-box">
  355. <select name="" class="select" id="TDSArea" name="TDSArea">
  356. <option value="">请搜索城市</option>
  357. </select>
  358. </span>
  359. </div>
  360. <input type="hidden" name="customerArea" id="customerArea">
  361. <div class="formControls col-2 col-sm-2">
  362. <input type="text" class="input-text" value="" placeholder="进水TDS数值,最大999" id="customerInTDS" name="customerInTDS" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
  363. </div>
  364. <div class="formControls col-2 col-sm-2">
  365. <input type="text" class="input-text" value="" placeholder="出水TDS数值,最大999" id="customerOutTDS" name="customerOutTDS" onkeyup="keyFun($(this),999)" onpaste="keyFun($(this),999)">
  366. </div>
  367. </div>
  368. <div class="row cl" id="TDScollectShow" style="display: none;">
  369. <label class="form-label col-1 col-sm-1"></label>
  370. <div class="formControls col-6 col-sm-6">
  371. <span id="DTS-address"></span>
  372. &nbsp;&nbsp;&nbsp;&nbsp;<span id="DTS-in"></span>&nbsp;&nbsp; <span id="DTS-out"></span>
  373. </div>
  374. </div>
  375. <div class="row cl" id="sendAddressInfo">
  376. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>寄回信息:</label>
  377. <div class="formControls col-5 col-sm-5" style="height: 250px">
  378. <script id="sendAddressSms" type="text/plain" style="width:983px;height:200px;"></script>
  379. </script>
  380. </div>
  381. </div>
  382. <div class="row cl" id="sendAddressByPhone" style="display: none;">
  383. <label class="form-label col-1 col-sm-1"></label>
  384. <div class="formControls col-2 col-sm-2">
  385. <input type="text" class="input-text associated-phone" value="" placeholder="请输入手机号" id="m-phone" name="">
  386. </div>
  387. <div class="formControls col-2 col-sm-2" style="width: 10%">
  388. <input type="button" class="btn btn-primary" value="发短信给用户" onclick="sendPhone('m','m-msg');">
  389. </div>
  390. <div class="formControls col-2 col-sm-2 msg-phone">
  391. <div id="m-msg" style="color: #e00"></div>
  392. </div>
  393. </div>
  394. <div class="row cl" id="updateProduct" style="display: none;">
  395. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>更换产品:</label>
  396. <div class="formControls col-9 col-sm-9" >
  397. <table class="table table-border table-bg table-bordered">
  398. <thead>
  399. <tr class="text-c" id="table2">
  400. <th style="text-align: center;" width="60">产品名称</th>
  401. <th style="text-align: center;" width="60">产品颜色</th>
  402. <th style="text-align: center;" width="60">产品配件</th>
  403. </tr>
  404. </thead>
  405. <tbody id="back-product">
  406. <tr id="showOrder">
  407. <td style="text-align: center;" colspan="3">请选择订单之后再选择产品</td>
  408. </tr>
  409. </tbody>
  410. </table>
  411. </div>
  412. </div>
  413. <div class="row cl">
  414. <label class="form-label col-1 col-sm-1">处理描述:</label>
  415. <div class="formControls col-5 col-sm-5">
  416. <script id="describeHandleDescText" type="text/plain" style="width:983px;height:250px;"></script>
  417. </script>
  418. <input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
  419. </div>
  420. </div>
  421. <div class="row cl">
  422. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访信息:</label>
  423. <div class="formControls col-10 col-sm-10 skin-minimal">
  424. <div class="radio-box">
  425. <input type="radio" id="customer-visit-1" name="customerIsVisit" value="2" >
  426. <label for="customer-visit-1">需要回访</label>
  427. </div>
  428. <div class="radio-box">
  429. <input type="radio" id="customer-visit-2" name="customerIsVisit" value="1" checked>
  430. <label for="customer-visit-2">不需要回访</label>
  431. </div>
  432. </div>
  433. </div>
  434. <div id="needToVisit" style="display: none;">
  435. <div class="row cl">
  436. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访人:</label>
  437. <div class="formControls col-2 col-sm-2">
  438. <input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="s1-20" errormsg="回访人姓名格式不正确!" >
  439. </div>
  440. <div class="formControls col-2 col-sm-2">
  441. <input type="text" class="input-text associated-phone" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
  442. </div>
  443. </div>
  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" placeholder="请选择回访日期" id="datemin" name="visitDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
  448. </div>
  449. </div>
  450. <div class="row cl">
  451. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
  452. <div class="formControls col-10 col-sm-10 skin-minimal">
  453. <div class="radio-box">
  454. <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" checked>
  455. <label for="visit-time-1">09:00-12:00</label>
  456. </div>
  457. <div class="radio-box">
  458. <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2">
  459. <label for="visit-time-2">12:00-14:00</label>
  460. </div>
  461. <div class="radio-box">
  462. <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3">
  463. <label for="visit-time-3">14:00-18:00</label>
  464. </div>
  465. </div>
  466. </div>
  467. <div class="row cl">
  468. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
  469. <div class="formControls col-4 col-sm-4"> <span class="select-box">
  470. <select class="select" id="visitAdminId" name="visitAdminId">
  471. </select>
  472. </span>
  473. </div>
  474. </div>
  475. <div class="cl" style="display: table;width: 100%;">
  476. <label class="form-label col-1 col-sm-1"></label>
  477. <div class="formControls col-4 col-sm-4">
  478. <span class="c-red" id="visitAdminIdMsg">您将为自己指定一个回访任务</span>
  479. </div>
  480. </div>
  481. </div>
  482. <div class="row cl">
  483. <div class="col-2 col-sm-2 col-offset-3">
  484. <button class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
  485. </div>
  486. </div>
  487. </form>
  488. </div>
  489. </article>
  490. <#--时间控件-->
  491. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  492. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  493. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  494. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  495. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  496. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  497. <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
  498. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  499. <#--百度富文本编译器-->
  500. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  501. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  502. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  503. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  504. <script type="text/javascript">
  505. $(function(){
  506. $("#province").ProvinceCity();
  507. $('.skin-minimal input').iCheck({
  508. checkboxClass: 'icheckbox-blue',
  509. radioClass: 'iradio-blue',
  510. increaseArea: '20%'
  511. });
  512. $("#arrcity").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(result){
  513. console.log($(this)[0].value);
  514. $("#city2").click()
  515. },
  516. attachObject:'#suggest'
  517. });
  518. $("#city2").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"})
  519. });
  520. $(document).on('click', '.dalog-ask .answer', function() {
  521. var msg = $(this).find("span").html();
  522. UE.getEditor('describeContentText').setContent(msg);
  523. $("#questionId").val($(this).find(".quesId").val());
  524. var title = $(this).prev().html();
  525. $("#describeTitle").val(title);
  526. //$("#questionId").val(.find(".quesId").val());
  527. //$("#answer-textarea").text();
  528. $(".dalog-ask").hide(); //隐藏qa
  529. });
  530. </script>
  531. <script>
  532. var tool = [
  533. 'anchor', //锚点
  534. 'undo', //撤销
  535. 'redo', //重做
  536. 'bold', //加粗
  537. 'indent', //首行缩进
  538. 'snapscreen', //截图
  539. 'italic', //斜体
  540. 'underline', //下划线
  541. 'strikethrough', //删除线
  542. 'subscript', //下标
  543. 'fontborder', //字符边框
  544. 'superscript', //上标
  545. 'formatmatch', //格式刷
  546. //'source', //源代码
  547. 'blockquote', //引用
  548. 'pasteplain', //纯文本粘贴模式
  549. 'selectall', //全选
  550. 'print', //打印
  551. 'preview', //预览
  552. 'horizontal', //分隔线
  553. 'removeformat', //清除格式
  554. 'time', //时间
  555. 'date', //日期
  556. 'unlink', //取消链接
  557. 'insertrow', //前插入行
  558. 'insertcol', //前插入列
  559. 'mergeright', //右合并单元格
  560. 'mergedown', //下合并单元格
  561. 'deleterow', //删除行
  562. 'deletecol', //删除列
  563. 'splittorows', //拆分成行
  564. 'splittocols', //拆分成列
  565. 'splittocells', //完全拆分单元格
  566. 'deletecaption', //删除表格标题
  567. 'inserttitle', //插入标题
  568. 'mergecells', //合并多个单元格
  569. 'deletetable', //删除表格
  570. 'cleardoc', //清空文档
  571. 'insertparagraphbeforetable', //"表格前插入行"
  572. //'insertcode', //代码语言
  573. 'fontfamily', //字体
  574. 'fontsize', //字号
  575. 'paragraph', //段落格式
  576. 'simpleupload', //单图上传
  577. 'insertimage', //多图上传
  578. 'edittable', //表格属性
  579. 'edittd', //单元格属性
  580. 'link', //超链接
  581. 'emotion', //表情
  582. 'spechars', //特殊字符
  583. 'searchreplace', //查询替换
  584. 'map', //Baidu地图
  585. 'gmap', //Google地图
  586. 'insertvideo', //视频
  587. 'help', //帮助
  588. 'justifyleft', //居左对齐
  589. 'justifyright', //居右对齐
  590. 'justifycenter', //居中对齐
  591. 'justifyjustify', //两端对齐
  592. 'forecolor', //字体颜色
  593. 'backcolor', //背景色
  594. 'insertorderedlist', //有序列表
  595. 'insertunorderedlist', //无序列表
  596. 'fullscreen', //全屏
  597. 'directionalityltr', //从左向右输入
  598. 'directionalityrtl', //从右向左输入
  599. 'rowspacingtop', //段前距
  600. 'rowspacingbottom', //段后距
  601. 'pagebreak', //分页
  602. 'insertframe', //插入Iframe
  603. 'imagenone', //默认
  604. 'imageleft', //左浮动
  605. 'imageright', //右浮动
  606. 'attachment', //附件
  607. 'imagecenter', //居中
  608. 'wordimage', //图片转存
  609. 'lineheight', //行间距
  610. 'edittip ', //编辑提示
  611. 'customstyle', //自定义标题
  612. 'autotypeset', //自动排版
  613. // 'webapp', //百度应用
  614. 'touppercase', //字母大写
  615. 'tolowercase', //字母小写
  616. 'background', //背景
  617. 'template', //模板
  618. // 'scrawl', //涂鸦
  619. 'music', //音乐
  620. 'inserttable', //插入表格
  621. 'drafts', // 从草稿箱加载
  622. 'charts' // 图表
  623. ];
  624. /*问题描述*/
  625. var describeContentText = UE.getEditor('describeContentText', {
  626. toolbars: [tool],
  627. autoHeightEnabled: true,
  628. autoFloatEnabled: true,
  629. elementPathEnabled : false,/*去掉元素路径*/
  630. zIndex : 5
  631. });
  632. /*处理描述*/
  633. var describeHandleDescText = UE.getEditor('describeHandleDescText', {
  634. toolbars: [tool],
  635. autoHeightEnabled: true,
  636. autoFloatEnabled: true,
  637. elementPathEnabled : false /*去掉元素路径*/
  638. });
  639. /*邮寄地址*/
  640. var sendAddressSms = UE.getEditor('sendAddressSms', {
  641. toolbars: [tool],
  642. autoHeightEnabled: true,
  643. autoFloatEnabled: true,
  644. elementPathEnabled : false /*去掉元素路径*/
  645. });
  646. var isInitSendAddressSms = false;
  647. sendAddressSms.ready(function() {
  648. sendAddressSms.setHeight(130); //固定高度
  649. });
  650. </script>
  651. <script type="text/javascript">
  652. /*处理结果的执行状态*/
  653. var isSolve = {
  654. solved : [],
  655. noSolved : [],
  656. renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
  657. maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
  658. reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
  659. backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
  660. noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
  661. }
  662. /*处理结果的变更状态 产品列表表头信息*/
  663. var isSolveTitleMsg = {
  664. solved : [[],[]],
  665. noSolved : [[],[]],
  666. renewed : [["退回产品","退回产品颜色","退回产品配件"],["更换产品","更换产品颜色","更换产品配件"]],
  667. maintain : [["需要维修的产品","需要维修的产品颜色","需要维修的产品配件"],["维修产品","维修产品颜色","维修产品配件"]],
  668. reissue : [["补发产品","补发产品颜色","补发产品配件"],[]],
  669. backGoods : [["退回产品","退回产品颜色","退回产品配件"],[]],
  670. noReasonBack : [["退回产品","退回产品颜色","退回产品配件"],[]]
  671. }
  672. /*个人id*/
  673. var adminId = 0;
  674. /* 咨询类型 1:售前咨询 2:售后咨询 3:其他 */
  675. var allCustomerInfoType;
  676. /*全局标识当前状态 type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货*/
  677. var allCustomerType = 1;
  678. var allCustomerTypeName = ["已解决","未解决","换新","维修","补发","退货","无理由退货"];
  679. /* 寄回地址的id */
  680. var complaint_questionId = 5;
  681. /* 用于判断是否第一次初始化省市区-- 只在选择类型为售后时使用 */
  682. var isInitAddress = 0;
  683. /*初始化页面参数*/
  684. $(function () {
  685. /* 初始化单选框样式 */
  686. //initCheck();
  687. /*初始化产品类型 -- 客诉头部的产品类型单选 */
  688. initProduceType();
  689. /*初始化问题分类*/
  690. initComplaintTypeInfo();
  691. /*初始化客服*/
  692. initSysAdmin();
  693. /*初始化回访客服*/
  694. initVisitSysAdmin();
  695. /*初始化选择处理结果 -- type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货 */
  696. initProcessResult(3);
  697. /*监听来源入口选择事件*/
  698. $("input[name='customerSourceType']").change(function (){
  699. var type = parseInt($(this).val());
  700. if(type == 3){
  701. $("#customerSourceOld").show();
  702. }else{
  703. $("#customerSourceOld").hide();
  704. }
  705. })
  706. /*监听客诉类型选择事件*/
  707. $("input[name='customerCounselType']").change(function (){
  708. allCustomerInfoType = parseInt($(this).val());
  709. initProcessResult(allCustomerType);
  710. })
  711. /*监听处理结果选择事件*/
  712. $("[name='customerIsSolve']").change(function(){
  713. allCustomerType = parseInt($(this).val());
  714. initProcessResult(parseInt($(this).val()));
  715. })
  716. /*监听问题类型 选择事件*/
  717. $("[name='complaintId']").change(function(){
  718. initComplaintSmallClassInfo($(this).val());
  719. })
  720. /*监听问题关键字搜索*/
  721. $(document).on('click', '#search_button', function() {
  722. initComplaintQuestionInfo("p");
  723. });
  724. /*搜索订单事件*/
  725. $(document).on('click', '#selectOrder', function() {
  726. selectOrder();
  727. });
  728. /*监听省选择事件*/
  729. $(document).on('change', '#province', function() {
  730. var proId = $("#province").val();
  731. var cityId = setCity("",proId,2)
  732. setDistrict("",cityId,2)
  733. });
  734. /*监听市选择事件*/
  735. $(document).on('change', '#city', function() {
  736. var city = $("#city").val();
  737. setDistrict("",city,2)
  738. });
  739. /*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
  740. initVisitEvent();
  741. /*监听回访选择客服的选择事件*/
  742. $(document).on('change', '#visitAdminId', function() {
  743. var visitAdminName = $("#visitAdminId").find("option:selected").text();
  744. var visitAdminId = $("#visitAdminId").val();
  745. if(convertUndefinedToEmpty(visitAdminId) == adminId){
  746. showVisitMsg(1);
  747. }else{
  748. showVisitMsg(2,visitAdminName);
  749. }
  750. });
  751. /* 监听TDS收集--地址选择 */
  752. $(document).on('change', '#TDSArea', function() {
  753. setTDSCollect();
  754. });
  755. /*实时监听文本框-- TDS进水*/
  756. document.getElementById("customerInTDS").addEventListener("input", function(){
  757. setTDSCollect();
  758. });
  759. /*实时监听文本框-- TDS出水*/
  760. document.getElementById("customerOutTDS").addEventListener("input", function(){
  761. setTDSCollect();
  762. });
  763. /* 监听手机号 失去焦点时 将其他手机号码未填的 */
  764. $(".associated-phone").blur(function (){
  765. var phone = $(this).val();
  766. $(".associated-phone").each(function(){
  767. var ph = $(this).val();
  768. if(ph == null || ph == "" || typeof(ph) == undefined ){
  769. $(this).val(phone);
  770. }
  771. })
  772. })
  773. })
  774. /*用于初始化回访信息的展示*/
  775. function initVisitEvent(){
  776. $("input[name='customerIsVisit']").change(function (){
  777. if($(this).val() == 2){
  778. $("#needToVisit").css("display","block");
  779. }else{
  780. $("#needToVisit").css("display","none");
  781. }
  782. })
  783. }
  784. /*关闭qa*/
  785. function closeQA(){
  786. $(".dalog-ask").hide(); //隐藏qa
  787. }
  788. /*初始化单选框样式*/
  789. function initCheck(){
  790. $('.skin-minimal input').iCheck({
  791. checkboxClass: 'icheckbox-blue',
  792. radioClass: 'iradio-blue',
  793. increaseArea: '20%'
  794. });
  795. }
  796. /*初始化单选框样式*/
  797. function initCheckByNode(node){
  798. node.iCheck({
  799. checkboxClass: 'icheckbox-blue',
  800. radioClass: 'iradio-blue',
  801. increaseArea: '20%'
  802. });
  803. }
  804. /*
  805. * type 1:不需要回访 2:需要回访
  806. * */
  807. function visitByType(type){
  808. if(1 == type){ //不需要回访
  809. $("#customer-visit-2").prop("checked",true); //不需要回访
  810. initCheckByNode($("#customer-visit-2"));
  811. $("#needToVisit").css("display","none");
  812. }else{
  813. $("#customer-visit-1").prop("checked",true); //需要回访
  814. initCheckByNode($("#customer-visit-1"));
  815. $("#needToVisit").css("display","block");
  816. }
  817. initVisitEvent();
  818. }
  819. // function keyFun(node){
  820. // var c=$(node);
  821. // var temp_amount=c.val().replace(/[^\d]/g,'');
  822. // $(node).val(Number(temp_amount));
  823. // }
  824. /*初始化客服*/
  825. var sysAminList;
  826. function initSysAdmin() {
  827. sysAminList = getSysAdmin();
  828. var html = "";
  829. for(var i=0;i<sysAminList.length;i++){
  830. var adminList = sysAminList[i];
  831. if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
  832. html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'(我)</option>';
  833. }else{
  834. html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
  835. }
  836. }
  837. $("#adminId").html(html);
  838. }
  839. /*初始化回访客服的选择*/
  840. function initVisitSysAdmin(){
  841. var html = "";
  842. var flag = false;
  843. for(var i=0;i<sysAminList.length;i++){
  844. var adminList = sysAminList[i];
  845. if(adminId != null && adminId != "" && adminId != 0 && adminId == adminList.adminId ){
  846. html += '<option value="'+ adminList.adminId +'" selected>'+ adminList.adminName +'(我)</option>';
  847. flag = true;
  848. }else{
  849. html += '<option value="'+ adminList.adminId +'">'+ adminList.adminName +'</option>';
  850. }
  851. }
  852. $("#visitAdminId").html(html);
  853. if(flag){
  854. showVisitMsg(1);
  855. }
  856. }
  857. /**
  858. * 用于显示回访指派任务提示信息
  859. * 1 :自己
  860. * 2 :其他人
  861. */
  862. function showVisitMsg(type,adminName) {
  863. if(type == 1){
  864. $("#visitAdminIdMsg").html("您将为自己指定一个回访任务");
  865. }else{
  866. $("#visitAdminIdMsg").html("您将为"+ adminName +"指定一个回访任务");
  867. }
  868. }
  869. /*获取客服*/
  870. var sysAminList;
  871. function getSysAdmin(){
  872. if(sysAminList != null && sysAminList.length > 0){
  873. return sysAminList
  874. }
  875. $.ajax({
  876. type: "POST",
  877. data: {
  878. },
  879. url: "${path}/admin/customer/select_sys_admin",
  880. async: false,
  881. success: function(data){
  882. if (data.returnCode == 200) {
  883. sysAminList = data.returnMsg.adminList;
  884. adminId = data.returnMsg.adminId;
  885. }
  886. },
  887. error: function(XmlHttpRequest, textStatus, errorThrown){
  888. }
  889. });
  890. return sysAminList;
  891. }
  892. /*初始化产品类型 -- 客诉头部的产品类型单选*/
  893. function initProduceType(){
  894. var html = "";
  895. $.ajax({
  896. type: "POST",
  897. data: {
  898. },
  899. url: "${path}/admin/customer/select_produce_type",
  900. async: false,
  901. success: function(data){
  902. if (data.returnCode == 200) {
  903. var check = "checked";
  904. for(var i=0;i<data.returnMsg.productTypeList.length;i++){
  905. var produce = data.returnMsg.productTypeList[i];
  906. html += ' <div class="radio-box">' +
  907. '<input type="radio" id="produce-type-'+ i +'" name="typeId" typeCompany="'+ produce.typeCompany +'" datatype="*" value="'+ produce.typeId +'" '+ check +' nullmsg="请选择产品类型!" >' +
  908. ' <label for="produce-type-'+ i +'">'+ produce.typeName +'</label>' +
  909. ' </div>';
  910. check = "";
  911. }
  912. }else{
  913. html = '';
  914. }
  915. },
  916. error: function(XmlHttpRequest, textStatus, errorThrown){
  917. }
  918. });
  919. $("#produceTypeHtml").html(html);
  920. initCheck();
  921. }
  922. /**
  923. * 选择处理结果-- 默认选择已解决
  924. * type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货
  925. */
  926. function initProcessResult(type){
  927. if(type == null || type == ""){
  928. type = 1;
  929. }
  930. if(allCustomerInfoType == null || allCustomerInfoType == ""){
  931. allCustomerInfoType = $("input[name='customerCounselType']:checked").val();
  932. }
  933. var statusHtml = '<li><span class="arrow"></span><div class="number">status_index</div><div>status_html</div></li>';
  934. var resultHtml = '';
  935. var result = {};
  936. var resultProductTableTitle = {};
  937. $("#solved").show(); //已解决
  938. $("#noSolved").show();//未解决
  939. if(allCustomerInfoType == 1){ //售前
  940. $("#renewed").hide();
  941. $("#maintain").hide();
  942. $("#reissue").hide();
  943. $("#backGoods").hide();
  944. $("#noReasonBack").hide();
  945. switch(type)
  946. {
  947. case 1:
  948. otherHied();
  949. visitByType(1);
  950. break;
  951. case 2:
  952. otherHied();
  953. visitByType(2);
  954. break;
  955. default:
  956. break;
  957. }
  958. }else if(allCustomerInfoType == 2){ //售后
  959. if(!isInitSendAddressSms){
  960. initComplaintQuestionInfo("m");
  961. isInitSendAddressSms = true;
  962. }
  963. /* 在选择售后类型是,直接初始化省市区,使用isInitAddress 变量来判断 */
  964. if(isInitAddress == 0){
  965. var proId = setPro(null,2);
  966. var cityId = setCity(null,proId,2);
  967. setDistrict(null,cityId,2);
  968. isInitAddress = 1;
  969. }
  970. $("#renewed").show();
  971. $("#maintain").show();
  972. $("#reissue").show();
  973. $("#backGoods").show();
  974. $("#noReasonBack").show();
  975. switch(type)
  976. {
  977. case 1:
  978. otherHied();
  979. visitByType(1);
  980. break;
  981. case 2:
  982. otherHied();
  983. visitByType(2); //需要回访
  984. break;
  985. case 3: //换新
  986. result = isSolve.renewed;
  987. resultProductTableTitle = isSolveTitleMsg.renewed;
  988. $("#relationProduct").html("换新产品");
  989. $("#processResultStatus").show();
  990. $("#orderHead").show();
  991. $("#order").show();
  992. $("#recipientInfo").show();
  993. $("#recipientInfoTitle").show();
  994. $("#recipientAddress").show();
  995. $("#recipientAddressText").show();
  996. $("#renewedProduct").show();
  997. $("#TDScollect").show();
  998. $("#TDScollectShow").show();
  999. $("#sendAddressInfo").show();
  1000. $("#sendAddressByPhone").show();
  1001. $("#updateProduct").show();
  1002. $("#postageAccount").show(); //邮费转账账户
  1003. visitByType(2); //需要回访
  1004. break;
  1005. case 4: //维修
  1006. result = isSolve.maintain;
  1007. resultProductTableTitle = isSolveTitleMsg.maintain;
  1008. $("#relationProduct").html("维修产品");
  1009. $("#processResultStatus").show();
  1010. $("#orderHead").show();
  1011. $("#order").show();
  1012. $("#recipientInfo").show();
  1013. $("#recipientInfoTitle").show();
  1014. $("#recipientAddress").show();
  1015. $("#recipientAddressText").show();
  1016. $("#renewedProduct").show();
  1017. $("#TDScollect").show();
  1018. $("#TDScollectShow").show();
  1019. $("#sendAddressInfo").show();
  1020. $("#sendAddressByPhone").show();
  1021. $("#updateProduct").show();
  1022. $("#postageAccount").show(); //邮费转账账户
  1023. visitByType(2); //需要回访
  1024. break;
  1025. case 5://补发
  1026. result = isSolve.reissue;
  1027. resultProductTableTitle = isSolveTitleMsg.reissue;
  1028. $("#relationProduct").html("补发产品");
  1029. $("#processResultStatus").show();
  1030. $("#orderHead").show();
  1031. $("#order").show();
  1032. $("#recipientInfo").show();
  1033. $("#recipientInfoTitle").show();
  1034. $("#recipientAddress").show();
  1035. $("#recipientAddressText").show();
  1036. $("#renewedProduct").show();
  1037. $("#TDScollect").show();
  1038. $("#TDScollectShow").show();
  1039. $("#sendAddressInfo").hide();
  1040. $("#sendAddressByPhone").hide();
  1041. $("#updateProduct").hide();
  1042. $("#postageAccount").hide(); //邮费转账账户 -- 隐藏
  1043. visitByType(2); //需要回访
  1044. break;
  1045. case 6: //退货
  1046. result = isSolve.backGoods;
  1047. resultProductTableTitle = isSolveTitleMsg.backGoods;
  1048. $("#relationProduct").html("退货产品");
  1049. $("#processResultStatus").show();
  1050. $("#orderHead").show();
  1051. $("#order").show();
  1052. $("#recipientInfo").show();
  1053. $("#recipientInfoTitle").show();
  1054. $("#recipientAddress").show();
  1055. $("#recipientAddressText").show();
  1056. $("#renewedProduct").show();
  1057. $("#TDScollect").show();
  1058. $("#TDScollectShow").show();
  1059. $("#sendAddressInfo").show();
  1060. $("#sendAddressByPhone").show();
  1061. $("#updateProduct").hide();
  1062. $("#postageAccount").show(); //邮费转账账户
  1063. visitByType(2); //需要回访
  1064. break;
  1065. case 7://无理由退货
  1066. result = isSolve.noReasonBack;
  1067. resultProductTableTitle = isSolveTitleMsg.noReasonBack;
  1068. $("#relationProduct").html("退货产品");
  1069. $("#processResultStatus").show();
  1070. $("#orderHead").show();
  1071. $("#order").show();
  1072. $("#recipientInfo").show();
  1073. $("#recipientInfoTitle").show();
  1074. $("#recipientAddress").show();
  1075. $("#recipientAddressText").show();
  1076. $("#renewedProduct").show();
  1077. $("#TDScollect").show();
  1078. $("#TDScollectShow").show();
  1079. $("#sendAddressInfo").show();
  1080. $("#sendAddressByPhone").show();
  1081. $("#updateProduct").hide();
  1082. $("#postageAccount").show(); //邮费转账账户
  1083. visitByType(2); //需要回访
  1084. break;
  1085. default:
  1086. break;
  1087. }
  1088. }
  1089. for(var i=0;i< result.length;i++){
  1090. var html = statusHtml.replace("status_index",i+1);
  1091. html = html.replace("status_html",result[i]);
  1092. resultHtml += html;
  1093. }
  1094. /* 根据处理类型来切换 产品列表的列名称 */
  1095. for(var i=0;i<resultProductTableTitle[0].length;i++){
  1096. $("#table1").find("th").eq(i).html(resultProductTableTitle[0][i]);
  1097. }
  1098. for(var i=0;i<resultProductTableTitle[1].length;i++){
  1099. $("#table2").find("th").eq(i).html(resultProductTableTitle[1][i]);
  1100. }
  1101. $("#processResultStatus").html(resultHtml);
  1102. }
  1103. /*已解决|未解决 */
  1104. function otherHied(){
  1105. $("#processResultStatus").hide(); //处理结果的执行状态 已解决未解决没有该信息
  1106. $("#orderHead").hide();
  1107. $("#order").hide();
  1108. $("#recipientInfo").hide();
  1109. $("#recipientInfoTitle").hide();
  1110. $("#recipientAddress").hide();
  1111. $("#recipientAddressText").hide();
  1112. $("#renewedProduct").hide();
  1113. $("#TDScollect").hide();
  1114. $("#TDScollectShow").hide();
  1115. $("#sendAddressInfo").hide();
  1116. $("#sendAddressByPhone").hide();
  1117. $("#updateProduct").hide();
  1118. }
  1119. /*初始化问题大类*/
  1120. function initComplaintTypeInfo() {
  1121. //默认为售前咨询
  1122. //var customerCounselTypeOverall = allCustomerInfoType;
  1123. var customerCounselTypeOverall = null;
  1124. $.ajax({
  1125. type: "POST",
  1126. data: {
  1127. complaintConsultingType : customerCounselTypeOverall
  1128. },
  1129. url: "${path}/admin/complaintQuestion/list_complaintType",
  1130. async: true,
  1131. success: function(data){
  1132. var html = '<option value="">请选择问题分类</option>';
  1133. var id;
  1134. if (data.returnCode == 200) {
  1135. for(var i=0;i<data.returnMsg.complaintTypeInfoList.length;i++){
  1136. var complaintTypeInfo = data.returnMsg.complaintTypeInfoList[i];
  1137. if(i == 0 ){
  1138. id = complaintTypeInfo.complaintId;
  1139. }
  1140. html += '<option value="'+ complaintTypeInfo.complaintId +'">'+ complaintTypeInfo.complaintClassName +'</option>';
  1141. }
  1142. }else{
  1143. html = '';
  1144. }
  1145. $("[name='complaintId']").html(html);
  1146. },
  1147. error: function(XmlHttpRequest, textStatus, errorThrown){
  1148. }
  1149. });
  1150. }
  1151. /*显示小类*/
  1152. function initComplaintSmallClassInfo(complaintId){
  1153. if(complaintId == null || complaintId == ""){
  1154. var html = '<option value="">请选择问题小类</option>';
  1155. $("[name='smallClassId']").html(html);
  1156. }else{
  1157. $.ajax({
  1158. type: "POST",
  1159. data: {
  1160. complaintId : complaintId
  1161. },
  1162. url: "${path}/admin/complaintQuestion/list_complaintSmallClass",
  1163. async: true,
  1164. success: function(data){
  1165. var html = '<option value="">请选择问题小类</option>';
  1166. if (data.returnCode == 200) {
  1167. for(var i=0;i<data.returnMsg.complaintSmallClassInfoList.length;i++){
  1168. var ComplaintSmallClassInfo = data.returnMsg.complaintSmallClassInfoList[i];
  1169. html += '<option value="'+ ComplaintSmallClassInfo.smallClassId +'">'+ ComplaintSmallClassInfo.smallClassName +'</option>';
  1170. }
  1171. }else{
  1172. html = '';
  1173. }
  1174. $("[name='smallClassId']").html(html);
  1175. },
  1176. error: function(XmlHttpRequest, textStatus, errorThrown){
  1177. }
  1178. });
  1179. }
  1180. }
  1181. /**
  1182. * 搜索QA 显示
  1183. * type p:问题qa; m:邮寄qa
  1184. */
  1185. function initComplaintQuestionInfo(type){
  1186. var complaintId;
  1187. var smallClassId;
  1188. var questionName;
  1189. var questionId;
  1190. if(type == "p"){
  1191. complaintId = $("[name='complaintId']").val();
  1192. smallClassId = $("[name='smallClassId']").val();
  1193. questionName = $("[name='questionIdMsg']").val();
  1194. }else if(type == "m"){
  1195. questionId = complaint_questionId;
  1196. }
  1197. $.ajax({
  1198. type: "POST",
  1199. data: {
  1200. complaintId : complaintId,
  1201. smallClassId : smallClassId,
  1202. questionName : questionName,
  1203. questionId : questionId
  1204. },
  1205. url: "${path}/admin/complaintQuestion/list_complaintQuestion",
  1206. async: false,
  1207. success: function(data){
  1208. if(type == "p"){
  1209. var html = "";
  1210. if (data.returnCode == 200) {
  1211. for(var i=0;i<data.returnMsg.complaintQuestionInfoList.length;i++){
  1212. var complaintQuestion= data.returnMsg.complaintQuestionInfoList[i];
  1213. html += '<li class="ask">'+ complaintQuestion.questionName +'' +
  1214. '</li>' +
  1215. '<li class="answer" style="height: 65px;overflow: hidden;">答:<span>'+ complaintQuestion.questionProfile +'</span><input class="quesId" type="hidden" value="'+ complaintQuestion.questionId +'"></li>';
  1216. }
  1217. }else{
  1218. html = '<span style="font-size: 12px; margin-top: 10px; display: block;">未搜索到QA信息,请更换关键字或者直接录入到系统!</span>';
  1219. }
  1220. $("#question").html(html);
  1221. $(".dalog-ask").show();
  1222. }else if(type == "m"){
  1223. var msg = "";
  1224. if (data.returnCode == 200) {
  1225. msg = data.returnMsg.complaintQuestionInfoList[0].questionProfile;
  1226. }
  1227. addSmsMsg(msg);
  1228. }
  1229. },
  1230. error: function(XmlHttpRequest, textStatus, errorThrown){
  1231. }
  1232. });
  1233. }
  1234. /*添加邮寄信息*/
  1235. function addSmsMsg(msg){
  1236. sendAddressSms.addListener("ready", function () {
  1237. // editor准备好之后才可以使用
  1238. sendAddressSms.setContent(msg);
  1239. });
  1240. }
  1241. /**
  1242. * 发送短信
  1243. * @param type 类型: "problem" 问题处理; mailAddress:邮寄地址;
  1244. * @param node 返回结果显示节点
  1245. */
  1246. function sendPhone(type,node){
  1247. var index = layer.load(1, {
  1248. shade: [0.5,'#fff'] //0.1透明度的白色背景
  1249. });
  1250. var desc = "";
  1251. var phone = "";
  1252. var questionId = "";
  1253. var describeTitle = "";
  1254. var smallClassId = ""; /* 客诉问题类型小类id */
  1255. var typeCompany = parseInt($("input:radio[name='typeId']:checked").attr("typeCompany"));
  1256. if(type == "p"){
  1257. phone = $("#p-phone").val();
  1258. questionId = $("#questionId").val();
  1259. describeTitle = $("#describeTitle").val();
  1260. desc = UE.getEditor('describeContentText').getContent();
  1261. smallClassId = $("#smallClassId").val();
  1262. if(smallClassId == null || smallClassId == "" ){
  1263. layer.close(index);
  1264. layer.msg("请选择问题分类!", {icon: 5, time: 3000});
  1265. return false;
  1266. }
  1267. if(describeTitle==null || describeTitle == ""){
  1268. layer.close(index);
  1269. layer.msg("请填写问题标题!", {icon: 5, time: 3000});
  1270. return false;
  1271. }
  1272. if(desc == null || desc == ""){
  1273. layer.close(index);
  1274. layer.msg("请填写问题内容!", {icon: 5, time: 3000});
  1275. return false;
  1276. }
  1277. }else if(type == "m"){
  1278. phone = $("#m-phone").val();
  1279. questionId = complaint_questionId;
  1280. desc = UE.getEditor('sendAddressSms').getContent();
  1281. if(desc == null || desc == ""){
  1282. layer.close(index);
  1283. layer.msg("请填写邮寄信息内容!", {icon: 5, time: 3000});
  1284. return false;
  1285. }
  1286. }else{
  1287. layer.close(index);
  1288. layer.msg("发送报错!", {icon: 5, time: 3000});
  1289. return false;
  1290. }
  1291. var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
  1292. if(!reg.test(phone)){
  1293. layer.close(index);
  1294. layer.msg("请填写正确的手机号码!", {icon: 5, time: 3000});
  1295. return false;
  1296. }
  1297. $.ajax({
  1298. type: "POST",
  1299. data: {
  1300. type : type,
  1301. typeCompany : typeCompany,
  1302. phone : phone,
  1303. questionId : questionId,
  1304. smallClassId : smallClassId,
  1305. questionName : describeTitle,
  1306. questionProfile : desc //回复内容
  1307. },
  1308. url: "${path}/admin/customer/send_phone_sms",
  1309. async: true,
  1310. success: function(data){
  1311. if (data.returnCode == 200) {
  1312. if(type == "p"){
  1313. $("#p-msg").html(data.resultMsg);
  1314. }else if(type == "m"){
  1315. $("#m-msg").html(data.resultMsg);
  1316. }
  1317. }else{
  1318. if(type == "p"){
  1319. $("#p-msg").html(data.resultMsg);
  1320. }else if(type == "m"){
  1321. $("#m-msg").html(data.resultMsg);
  1322. }
  1323. }
  1324. layer.close(index);
  1325. },
  1326. error: function(XmlHttpRequest, textStatus, errorThrown){
  1327. if(type == "p"){
  1328. $("#p-msg").html("发送短信失败!");
  1329. }else if(type == "m"){
  1330. $("#m-msg").html("发送短信失败!");
  1331. }
  1332. layer.close(index);
  1333. }
  1334. });
  1335. }
  1336. /*保存QA问题*/
  1337. function saveQuestion(){
  1338. var index = layer.load(1, {
  1339. shade: [0.5,'#fff'] //0.1透明度的白色背景
  1340. });
  1341. var desc = "";
  1342. var questionId = "";
  1343. var describeTitle = "";
  1344. var smallClassId = ""; /* 客诉问题类型小类id */
  1345. questionId = $("#questionId").val();
  1346. describeTitle = $("#describeTitle").val();
  1347. desc = UE.getEditor('describeContentText').getContent();
  1348. smallClassId = $("#smallClassId").val();
  1349. if((smallClassId == null || smallClassId == "") && (questionId == null || questionId == "") ){
  1350. layer.close(index);
  1351. layer.msg("请选择问题分类!", {icon: 5, time: 3000});
  1352. return false;
  1353. }
  1354. if(describeTitle==null || describeTitle == ""){
  1355. layer.close(index);
  1356. layer.msg("请填写问题标题!", {icon: 5, time: 3000});
  1357. return false;
  1358. }
  1359. if(desc == null || desc == ""){
  1360. layer.close(index);
  1361. layer.msg("请填写问题内容!", {icon: 5, time: 3000});
  1362. return false;
  1363. }
  1364. $.ajax({
  1365. type: "POST",
  1366. data: {
  1367. questionId : questionId,
  1368. smallClassId : smallClassId,
  1369. questionName : describeTitle,
  1370. questionProfile : desc //回复内容
  1371. },
  1372. url: "${path}/admin/complaintQuestion/save_question",
  1373. async: true,
  1374. success: function(data){
  1375. if (data.returnCode == 200) {
  1376. $("#questionId").val(data.returnMsg.questionId);
  1377. layer.msg(data.resultMsg, {icon: 1, time: 3000});
  1378. }else{
  1379. layer.msg(data.resultMsg, {icon: 5, time: 3000});
  1380. }
  1381. layer.close(index);
  1382. },
  1383. error: function(XmlHttpRequest, textStatus, errorThrown){
  1384. layer.close(index);
  1385. }
  1386. });
  1387. }
  1388. /***
  1389. * 打开搜索订单框
  1390. */
  1391. function selectOrder(){
  1392. layer_show("搜索订单","${path}/admin/customer/select_order","1000","500");
  1393. }
  1394. /**
  1395. * 显示选择的订单
  1396. */
  1397. function setSelectOrder(orderId){
  1398. if(orderId == null || orderId == "" || typeof (orderId)=="undefined"){
  1399. layer.msg("未选中订单", {icon: 5, time: 3000});
  1400. return false
  1401. }
  1402. var html = '';
  1403. var address = ''; //地址
  1404. var orderItemList = {};
  1405. var companyId = ''; //销售公司
  1406. var storeId = ''; //店铺
  1407. $.ajax({
  1408. type: "POST",
  1409. data: {
  1410. salesId : orderId
  1411. },
  1412. url: "${path}/admin/customer/select_salesOrder",
  1413. async: false,
  1414. success: function(data){
  1415. if (data.returnCode == 200) {
  1416. for(var i=0;i<data.returnMsg.salesOrderList.length;i++){
  1417. var salesOrder = data.returnMsg.salesOrderList[i];
  1418. companyId = salesOrder.salesCompanyId;
  1419. storeId = salesOrder.salesStoreId;
  1420. var productsHtml = '';
  1421. var salesOrderItem = salesOrder.salesOrderItemList;
  1422. orderItemList = salesOrder.salesOrderItemList;
  1423. for(var j=0;j<salesOrderItem.length;j++){
  1424. var item = salesOrderItem[j].itemProductName + "*" + salesOrderItem[j].itemNum;
  1425. if(j==0){
  1426. productsHtml += item
  1427. }else{
  1428. productsHtml += '<br>'+ item
  1429. }
  1430. }
  1431. var time = formatDate(new Date(salesOrder.salesCreateTime),"yyyy-MM-dd");
  1432. html += '' +
  1433. ' <td>'+ convertUndefinedToEmpty(salesOrder.companyName) +'-'+ convertUndefinedToEmpty(salesOrder.storeName) +'</td>' +
  1434. ' <td>'+ salesOrder.salesId +'</td>' +
  1435. ' <td>'+ salesOrder.salesAddressName +'</td>' +
  1436. ' <td>'+ salesOrder.salesAddressTel +'</td>' +
  1437. ' <td>'+ salesOrder.salesAmount/100 +'</td>' +
  1438. ' <td>'+ productsHtml +'</td>' +
  1439. ' <td>'+ time +'</td>' +
  1440. '';
  1441. //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>' ;
  1442. address = salesOrder.salesAddressInfo;
  1443. $("#sendName").val(salesOrder.salesAddressName); //收件人名称
  1444. $("#sendTel").val(salesOrder.salesAddressTel); //收件人电话号码
  1445. $("#customerName").val(salesOrder.salesAddressName); //收件人名称
  1446. $("#customerTel").val(salesOrder.salesAddressTel); //收件人电话号码
  1447. }
  1448. // $("#showOrderAddress").html(address);
  1449. }else{
  1450. html = '';
  1451. }
  1452. $("#showOrder").html(html); //显示订单
  1453. },
  1454. error: function(XmlHttpRequest, textStatus, errorThrown){
  1455. }
  1456. });
  1457. $("#addressInfo").val(address);
  1458. setAdress(); //显示地址
  1459. setProduce(orderItemList); //显示产品
  1460. $("#companyId").val(companyId);
  1461. $("#storeId").val(storeId);
  1462. $("#orderId").val(orderId);
  1463. }
  1464. /**
  1465. * 设置地址
  1466. */
  1467. function setAdress(){
  1468. var addres = $("#addressInfo").val();
  1469. $("#addrssMsg").html("");
  1470. if(addres == null){
  1471. $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
  1472. return;
  1473. }
  1474. var addresList = addres.split("-");
  1475. if(addresList[0] == null || addresList[1]==null || addresList[2]==null || addresList[3]==null){
  1476. $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
  1477. return;
  1478. }
  1479. var proId = setPro(getAddress(addresList[0],0),1);
  1480. var cityId = setCity(getAddress(addresList[1],1),proId,1);
  1481. setDistrict(getAddress(addresList[2],2),cityId,1);
  1482. var sendAddress = addresList[3];
  1483. if(addresList.length > 4){
  1484. sendAddress += addresList[4];
  1485. }
  1486. $("#sendAddress").val(sendAddress);
  1487. }
  1488. /***
  1489. * 删除 “省”,“市”,“区”关键字
  1490. * type : 0:省 2:市 3:区
  1491. */
  1492. function getAddress(addrss,type) {
  1493. var abbreviation = "";
  1494. if(addrss == ""){
  1495. abbreviation = "";
  1496. }else{
  1497. switch(type)
  1498. {
  1499. case 0:
  1500. var proReg = new RegExp("省","g");
  1501. abbreviation = addrss.replace(proReg,"");
  1502. break;
  1503. case 1:
  1504. var cityReg = new RegExp("市","g");
  1505. abbreviation = addrss.replace(cityReg,"");
  1506. break;
  1507. case 2:
  1508. var districtReg = new RegExp("市","g");
  1509. abbreviation = addrss.replace(districtReg,"");
  1510. break;
  1511. default:
  1512. break;
  1513. }
  1514. }
  1515. return abbreviation
  1516. }
  1517. /**
  1518. * 设置省
  1519. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1520. */
  1521. function setPro(provinceName,type) {
  1522. var proId = '';
  1523. var province = listProvince();
  1524. var selectPro = new Array();
  1525. if(type == 1){
  1526. selectPro = listProvince("",provinceName);
  1527. }
  1528. if(province!=null){
  1529. var provinceHtml = ''
  1530. for(var i=0;i<province.length;i++){
  1531. provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
  1532. }
  1533. $("#province").html(provinceHtml);
  1534. if(selectPro != null && selectPro.length > 0 ){
  1535. proId = selectPro[0].provinceId;
  1536. }else{
  1537. proId = province[0].provinceId;
  1538. }
  1539. $("#province option[value='" + proId + "']").attr("selected","true");
  1540. }
  1541. return proId;
  1542. }
  1543. /**
  1544. * 设置市
  1545. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1546. */
  1547. function setCity(cityName,proId,type) {
  1548. var cityId = '';
  1549. var city = listCity(proId,"");
  1550. var selectCity = new Array();
  1551. if(type == 1){
  1552. selectCity = listCity(proId,cityName);
  1553. }
  1554. if(city!=null){
  1555. var cityHtml = ''
  1556. for(var i=0;i<city.length;i++){
  1557. cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
  1558. }
  1559. $("#city").html(cityHtml);
  1560. if(selectCity != null && selectCity.length > 0 ){
  1561. cityId = selectCity[0].cityId;
  1562. }else{
  1563. cityId = city[0].cityId;
  1564. }
  1565. $("#city option[value='" + cityId + "']").attr("selected","true");
  1566. }
  1567. return cityId;
  1568. }
  1569. /**
  1570. * 设置区
  1571. * type 1:搜索订单赋值 2:只查询全部,默认第一个
  1572. */
  1573. function setDistrict(districtName,cityId,type) {
  1574. var district = listDistrict(cityId,"");
  1575. var selectDistrict = new Array();
  1576. if(type == 1){
  1577. selectDistrict = listDistrict(cityId,districtName);
  1578. }
  1579. if(district!=null){
  1580. var districtHtml = ''
  1581. for(var i=0;i<district.length;i++){
  1582. districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
  1583. }
  1584. var disId = "";
  1585. $("#district").html(districtHtml);
  1586. if(selectDistrict != null && selectDistrict.length > 0 ){
  1587. disId = selectDistrict[0].cityId;
  1588. }else{
  1589. disId = district[0].cityId;
  1590. }
  1591. $("#city option[value='" + disId + "']").attr("selected","true");
  1592. }
  1593. }
  1594. /* TDS收集设置区 */
  1595. var TDSCity = '';
  1596. function linkageSetDistrict(){
  1597. var arrcity_3word = $("#arrcity_3word").val();
  1598. var cityName = '北京';
  1599. for(var i = 0;i<citys.length;i++){
  1600. for(var j=0;j<citys[i].length;j++){
  1601. if(j == 0 && arrcity_3word == citys[i][j]){
  1602. cityName = citys[i][1];
  1603. }
  1604. }
  1605. }
  1606. TDSCity = cityName;
  1607. var selectCity = listCity(null,cityName);
  1608. var cityId = selectCity[0].cityId;
  1609. var selectDistrict = listDistrict(cityId,"");
  1610. var html = '';
  1611. for(var i=0;i<selectDistrict.length;i++){
  1612. html += '<option value="'+ selectDistrict[i].districtId +'">'+ selectDistrict[i].district +'</option>';
  1613. }
  1614. $("#TDSArea").html(html);
  1615. $("#TDSArea").find("option").eq(0).prop("selected",true);
  1616. setTDSCollect();
  1617. }
  1618. /**
  1619. * 展示产品
  1620. * @param orderItemList
  1621. */
  1622. function setProduce(orderItemList) {
  1623. var productList = getProduct() ; //所有产品
  1624. var html = "";
  1625. var productTypeNo = 0;
  1626. for(var i=0;i<productList.length;i++) {
  1627. var product = productList[i];
  1628. var produceFittings = getProduceFittings(product.productId); //获取该产品的所有配件
  1629. var colorList = product.colorList; //该产品的所有颜色
  1630. var productType = product.productType;
  1631. var colorHtml = '';
  1632. if(colorList != null && colorList.length >0 ){
  1633. colorHtml += '<table style="height: 100%;">';
  1634. for(var j=0;j<colorList.length;j++){
  1635. var number = "";
  1636. var color = colorList[j];
  1637. for(var k=0;k<orderItemList.length;k++){
  1638. var item = orderItemList[k];
  1639. if(item.itemColorId == color.colorId){
  1640. number = item.itemNum;
  1641. }
  1642. }
  1643. var fristInputStyle = "border-top: 1px solid #ddd;";
  1644. if(color.colorProductId == product.productId) {
  1645. colorHtml += '<tr >' +
  1646. ' <td width="85" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
  1647. ' <td width="15" style="'+ fristInputStyle +' padding: 0px;width: 25px;">' +
  1648. ' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
  1649. ' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
  1650. ' <input type="text" class="input-text input-color-number number-input" style="width: 100%;border: none;text-align: center;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
  1651. ' </td>' +
  1652. ' </tr>';
  1653. fristInputStyle = "";
  1654. }
  1655. }
  1656. colorHtml += '</table>';
  1657. }else{
  1658. colorHtml += '<span>暂无该产品的颜色!<span>';
  1659. }
  1660. var produceFittingsHtml = '';
  1661. if(produceFittings != null && produceFittings.length > 0){
  1662. produceFittingsHtml += '<table style="height: 100%;">';
  1663. for(var m=0;m<produceFittings.length;m++){
  1664. var produceFit = produceFittings[m];
  1665. if(produceFit.productId == product.productId) {
  1666. var fristInputStyle = "border-top: 1px solid #ddd;";
  1667. produceFittingsHtml += '<tr >' +
  1668. ' <td width="85" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
  1669. ' <td width="15" style="'+ fristInputStyle +'padding: 0px;width: 25px;">' +
  1670. ' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
  1671. ' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
  1672. ' <input type="text" class="input-text input-fittings-number" style="width: 100%;border: none;text-align: center;" value="'+ number +'" placeholder="配件数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
  1673. ' </td>' +
  1674. ' </tr>';
  1675. fristInputStyle = "";
  1676. }
  1677. }
  1678. produceFittingsHtml += '</table>';
  1679. }else{
  1680. produceFittingsHtml += '<span>暂无产品配件!<span>';
  1681. }
  1682. var produceHtml = '<input type="hidden" value="'+ product.productId +'">' +
  1683. '<span>'+ product.productName +'</span>';
  1684. html += ' <tr >' +
  1685. ' <td width="80">'+ produceHtml +'</td>' +
  1686. ' <td style="padding: 0px;text-align: center;">' +
  1687. colorHtml +
  1688. ' </td>' +
  1689. ' <td style="padding: 0px;text-align: center;">' +
  1690. produceFittingsHtml +
  1691. ' </td>' +
  1692. '</tr>';
  1693. }
  1694. $("#addProduct").html(html);
  1695. // initCheck(); //因为需要展示产品,所以再次初始化多选框
  1696. setBackProduct(html); //设置寄回产品
  1697. monitorProduct(); //监听产品变化
  1698. }
  1699. /*获取产品*/
  1700. function getProduct(){
  1701. var productList;
  1702. $.ajax({
  1703. type: "POST",
  1704. data: {
  1705. },
  1706. url: "${path}/admin/customer/select_produce",
  1707. async: false,
  1708. success: function(data){
  1709. if (data.returnCode == 200) {
  1710. productList = data.returnMsg.productList;
  1711. }
  1712. },
  1713. error: function(XmlHttpRequest, textStatus, errorThrown){
  1714. }
  1715. });
  1716. return productList;
  1717. }
  1718. /*获取产品配件*/
  1719. function getProduceFittings(productId){
  1720. var produceFittings;
  1721. $.ajax({
  1722. type: "get",
  1723. data: {
  1724. productId : productId
  1725. },
  1726. url: "${path}/admin/customer/select_produce_fittings",
  1727. async: false,
  1728. success: function(data){
  1729. if (data.returnCode == 200) {
  1730. produceFittings = data.returnMsg.produceFittingsList;
  1731. }
  1732. },
  1733. error: function(XmlHttpRequest, textStatus, errorThrown){
  1734. }
  1735. });
  1736. return produceFittings;
  1737. }
  1738. /*监听产品变化*/
  1739. function monitorProduct(){
  1740. /*产品数量*/
  1741. $("#addProduct").find(".input-color-number").blur(function (){
  1742. setBackProduct();
  1743. })
  1744. /*产品配件*/
  1745. $("#addProduct").find(".input-fittings-number").blur(function (){
  1746. setBackProduct();
  1747. })
  1748. }
  1749. /*设置寄回产品*/
  1750. function setBackProduct(html) {
  1751. if(html != null && html != "" && typeof(html) != "undefined"){
  1752. $("#back-product").html(html);
  1753. }else{
  1754. return false;
  1755. // $("#addProduct").find(".input-color-number").each(function(){
  1756. // var number = $(this).val();
  1757. // if(number != null && number != ""){
  1758. // var product = new Object();
  1759. // product.productId = $(this).parent().find(".input-produce-id").val();
  1760. // product.colorId = $(this).parent().find(".input-color-id").val();
  1761. // //换新、维修,退货,无理由退货,
  1762. // if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1763. // product.closedProdcueNumber = number;
  1764. // closedProdcues.push(product);
  1765. // }else if(allCustomerType == 5){
  1766. // product.sendProdcueNumber = number;
  1767. // sendProdcues.push(product);
  1768. // }
  1769. // }
  1770. // })
  1771. //
  1772. // $("#addProduct").find(".input-fittings-number").each(function(){
  1773. // var number = $(this).val();
  1774. // if(number != null && number != ""){
  1775. // var fittings = new Object();
  1776. // fittings.productId = $(this).parent().find(".input-produce-id").val();
  1777. // fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
  1778. // //换新、维修,退货,无理由退货,
  1779. // if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1780. // fittings.closedFittingNumber = number;
  1781. // closedFittings.push(fittings);
  1782. // }else if(allCustomerType == 5){
  1783. // fittings.sendFittingNumber = number;
  1784. // sendFittings.push(fittings);
  1785. // }
  1786. // }
  1787. // })
  1788. }
  1789. }
  1790. /*设置TDS收集信息*/
  1791. function setTDSCollect(){
  1792. var TDSArea = $("#TDSArea").find("option:selected").text();
  1793. var TDSAddress = TDSCity + '-' + TDSArea;
  1794. if(TDSAddress != null && TDSAddress != ""){
  1795. $("#DTS-address").html("地址:" + TDSAddress);
  1796. var customerInTDS = $("#customerInTDS").val();
  1797. var customerOutTDS = $("#customerOutTDS").val()
  1798. if(customerInTDS != null && customerInTDS != "" && customerOutTDS != null && customerOutTDS != ""){
  1799. $("#DTS-in").html("进水:" + customerInTDS + " PPM");
  1800. $("#DTS-out").html("出水:" + customerOutTDS + " PPM");
  1801. }
  1802. }
  1803. }
  1804. </script>
  1805. <script>
  1806. $(function(){
  1807. $("#form-customer-add").Validform({
  1808. tiptype: function (msg, o, cssctl) {
  1809. if (o.type == 3) {//失败
  1810. layer.msg(msg, {icon: 5, time: 3000});
  1811. $(window).scrollTop(o.obj.offset().top - 40);
  1812. }
  1813. },
  1814. datatype: {//自定义验证类型
  1815. },
  1816. ignoreHidden: true,
  1817. tipSweep: true, //若为true,则只在表单提交时验证
  1818. ajaxPost: true, //异步提交
  1819. beforeCheck: function (curform) { //验证通过之前执行的函数
  1820. },
  1821. beforeSubmit: function (curform) { //验证通过之后执行的函数
  1822. var flag = addCustomerReady();
  1823. if(!flag){
  1824. return false;
  1825. }
  1826. },
  1827. callback: function (data) {//异步回调函数
  1828. if (data) {
  1829. var index = layer.alert(data.resultMsg, function () {
  1830. if (data.resultCode == 200) {
  1831. location.href = "${path}/admin/customer/select_customer_list";
  1832. } else {
  1833. layer.close(index);
  1834. }
  1835. });
  1836. }
  1837. }
  1838. });
  1839. })
  1840. /* 添加客诉的准备 */
  1841. function addCustomerReady(){
  1842. /*验证来源入口*/
  1843. var customerSourceType = $("input:radio[name='customerSourceType']:checked").val();
  1844. if(customerSourceType == 3){
  1845. var customerSourceOld = $("#customerSourceOld").val();
  1846. if(customerSourceOld == null || customerSourceOld == "" || typeof(customerSourceOld)=="undefined"){
  1847. vailErrorMsg($("#customerSourceOld"),"未填写来源入口");
  1848. return false;
  1849. }else{
  1850. $("#customerSource").val(customerSourceOld);
  1851. }
  1852. }
  1853. /*根据产品类型,获取来源商城*/
  1854. var typeCompany = parseInt($("input:radio[name='typeId']:checked").attr("typeCompany"));
  1855. $("#typeCompany").val(typeCompany);
  1856. /*----TDS收集模块--start-----*/
  1857. var valicity = $(".ac_result_tip").html();
  1858. if(valicity == null || valicity == "" || typeof(valicity)=="undefined"){
  1859. $("#TDSArea").html("");
  1860. }else if(valicity.indexOf("对不起,找不到") > 0 ){
  1861. $("#TDSArea").html("");
  1862. $("#customerArea").val("");
  1863. }else{
  1864. var TDSArea = $("#TDSArea").find("option:selected").text();
  1865. if(TDSArea != null && TDSArea != ""){
  1866. var area = TDSCity + "-" + TDSArea
  1867. $("#customerArea").val(area);
  1868. }
  1869. }
  1870. /*----TDS收集模块--end-----*/
  1871. /* 地址拼接 */
  1872. var province = $("#province").find("option:selected").text();
  1873. var city = $("#city").find("option:selected").text();
  1874. var district = $("#district").find("option:selected").text();
  1875. var relationSendMergeAddress = province + "-" + city + "-" + district;
  1876. $("#relationSendMergeAddress").val(relationSendMergeAddress);
  1877. /* 地址拼接 */
  1878. /*----问题描述- start --*/
  1879. var describeContentText = UE.getEditor('describeContentText').getContent();
  1880. if(describeContentText == null || describeContentText == ""){
  1881. layer.msg("未填写问题描述", {icon: 5, time: 3000});
  1882. return false;
  1883. }
  1884. $("#describeContent").val(describeContentText);
  1885. /*----问题描述--end-----*/
  1886. /*----处理描述- start --*/
  1887. var describeHandleDescText = UE.getEditor('describeHandleDescText').getContent();
  1888. $("#describeHandleDesc").val(describeHandleDescText);
  1889. /*----处理描述--end-----*/
  1890. /* --- 类型:售后 处理结果:维修/换新/补发/退货/无理由退货 -- 处理产品 start---- */
  1891. var sendProdcues = new Array(); //寄出产品表
  1892. var sendFittings = new Array();
  1893. var closedProdcues = new Array();
  1894. var closedFittings = new Array();
  1895. $("#addProduct").find(".input-color-number").each(function(){
  1896. var number = $(this).val();
  1897. if(number != null && number != ""){
  1898. var product = new Object();
  1899. product.productId = $(this).parent().find(".input-produce-id").val();
  1900. product.colorId = $(this).parent().find(".input-color-id").val();
  1901. //换新、维修,退货,无理由退货,
  1902. if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1903. product.closedProdcueNumber = number;
  1904. closedProdcues.push(product);
  1905. }else if(allCustomerType == 5){
  1906. product.sendProdcueNumber = number;
  1907. sendProdcues.push(product);
  1908. }
  1909. }
  1910. })
  1911. $("#addProduct").find(".input-fittings-number").each(function(){
  1912. var number = $(this).val();
  1913. if(number != null && number != ""){
  1914. var fittings = new Object();
  1915. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1916. fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
  1917. //换新、维修,退货,无理由退货,
  1918. if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
  1919. fittings.closedFittingNumber = number;
  1920. closedFittings.push(fittings);
  1921. }else if(allCustomerType == 5){
  1922. fittings.sendFittingNumber = number;
  1923. sendFittings.push(fittings);
  1924. }
  1925. }
  1926. })
  1927. $("#back-product").find(".input-color-number").each(function(){
  1928. var number = $(this).val();
  1929. if(number != null && number != ""){
  1930. //换新、维修,
  1931. if(allCustomerType == 3 || allCustomerType == 4){
  1932. var fittings = new Object();
  1933. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1934. fittings.colorId = $(this).parent().find(".input-color-id").val();
  1935. fittings.sendProdcueNumber = number;
  1936. sendProdcues.push(fittings);
  1937. }
  1938. }
  1939. })
  1940. $("#back-product").find(".input-fittings-number").each(function(){
  1941. var number = $(this).val();
  1942. if(number != null && number != ""){
  1943. //换新、维修
  1944. if(allCustomerType == 3 || allCustomerType == 4){
  1945. var fittings = new Object();
  1946. fittings.productId = $(this).parent().find(".input-produce-id").val();
  1947. fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
  1948. fittings.sendFittingNumber = number;
  1949. sendFittings.push(fittings);
  1950. }
  1951. }
  1952. })
  1953. var process = true;
  1954. switch (allCustomerType){
  1955. case 3:
  1956. process = processIsEmpty([closedProdcues,closedFittings]);
  1957. if(!process){
  1958. layer.msg("请选择一个换新寄回的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1959. return false;
  1960. }
  1961. process = processIsEmpty([sendProdcues,sendFittings]);
  1962. if(!process){
  1963. layer.msg("请选择一个换新寄送的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1964. return false;
  1965. }
  1966. break;
  1967. case 4:
  1968. process = processIsEmpty([closedProdcues,closedFittings]);
  1969. if(!process){
  1970. layer.msg("请选择一个维修寄回的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1971. return false;
  1972. }
  1973. process = processIsEmpty([sendProdcues,sendFittings]);
  1974. if(!process){
  1975. layer.msg("请选择一个维修寄送的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1976. return false;
  1977. }
  1978. break;
  1979. case 5:
  1980. process = processIsEmpty([sendProdcues,sendFittings]);
  1981. if(!process){
  1982. layer.msg("请选择一个补发寄送的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1983. return false;
  1984. }
  1985. break;
  1986. case 6:
  1987. process = processIsEmpty([closedProdcues,closedFittings]);
  1988. if(!process){
  1989. layer.msg("请选择一个退货寄回的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1990. return false;
  1991. }
  1992. break;
  1993. case 7:
  1994. process = processIsEmpty([closedProdcues,closedFittings]);
  1995. if(!process){
  1996. layer.msg("请选择一个退货寄回的产品或配件并填写一个以上的数量!", {icon: 5, time: 3000});
  1997. return false;
  1998. }
  1999. break;
  2000. default:
  2001. break;
  2002. }
  2003. $("#sendProdcues").val(JSON.stringify(sendProdcues));
  2004. $("#sendFittings").val(JSON.stringify(sendFittings));
  2005. $("#closedProdcues").val(JSON.stringify(closedProdcues));
  2006. $("#closedFittings").val(JSON.stringify(closedFittings));
  2007. return true;
  2008. }
  2009. /* 判断产品与配件是否填入值 */
  2010. function processIsEmpty(process){
  2011. if(process != null && process != "" && process.length > 0){
  2012. var flag = 2;
  2013. var num = 0;
  2014. if(process[0] == null || process[0].length < 1 ){
  2015. flag -- ;
  2016. }
  2017. if(process[1] == null || process[1].length < 1 ){
  2018. flag -- ;
  2019. }
  2020. for(var j=0; j<process.length;j++){
  2021. for(var i=0;i<process[j].length;i++){
  2022. if(process[j][i].sendProdcueNumber !== undefined){
  2023. num += process[j][i].sendProdcueNumber;
  2024. }
  2025. if(process[j][i].sendFittingNumber !== undefined){
  2026. num += process[j][i].sendFittingNumber;
  2027. }
  2028. if(process[j][i].closedProdcueNumber !== undefined){
  2029. num += process[j][i].closedProdcueNumber ;
  2030. }
  2031. if(process[j][i].closedFittingNumber !== undefined){
  2032. num += process[j][i].closedFittingNumber;
  2033. }
  2034. }
  2035. }
  2036. if(flag == 0){
  2037. return false;
  2038. }
  2039. if(num == 0){
  2040. return false;
  2041. }
  2042. }
  2043. return true;
  2044. }
  2045. </script>
  2046. <!--/请在上方写此页面业务相关的脚本-->
  2047. </body>
  2048. </html>