update_relation.ftl 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031
  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/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
  11. <link href="${path}/common/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
  12. <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
  13. <link href="${path}/common/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
  14. <style>
  15. #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(images/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
  16. .select-box{background: url(${path}/common/images/pts/select-1.png) right center no-repeat;background-size: auto 100%;}
  17. .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
  18. .table-bg th{background-color: #e2f6ff;}
  19. .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
  20. .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 20px;background-color: #32a3d8;color: #fff;}
  21. .clearfix:after{content:"\20";display:block;height:0;clear:both;visibility:hidden}.clearfix{zoom:1}
  22. .tabBar {border-bottom: 2px solid #222}
  23. .tabBar span {background-color: #e8e8e8;cursor: pointer;display: inline-block;float: left;font-weight: bold;height: 30px;line-height: 30px;padding: 0 15px}
  24. .tabBar span.current{background-color: #222;color: #fff}
  25. .tabCon {display: none}
  26. </style>
  27. <title></title>
  28. </head>
  29. <body>
  30. <article class="cl pd-20">
  31. <form action="" method="post" class="form form-horizontal" id="form-update-renewed" name="form-update-renewed">
  32. <div class="row cl" style="margin-left: -60px;margin-bottom: 20px;">
  33. <div class="formControls col-2 col-sm-2 text-r">
  34. <strong>当前进度</strong>
  35. </div>
  36. <div class="formControls col-10 col-sm-10">
  37. <input type="hidden" id="relationId" name="relationId" seleType="primary"/>
  38. <span id="relationSchedule" class="c-red"></span>
  39. </div>
  40. </div>
  41. <div id="tab_demo" class="HuiTab">
  42. <div class="tabBar clearfix">
  43. <#if procMethod.procMethodIsBack == 1>
  44. <span>寄回信息</span>
  45. <span>邮费信息</span>
  46. </#if>
  47. <#if procMethod.procMethodIsSend == 1>
  48. <span>寄送信息</span>
  49. </#if>
  50. <#if procMethod.procMethodIsBack == 1>
  51. <span>工厂检查信息</span>
  52. <span>工厂返修进度</span>
  53. </#if>
  54. </div>
  55. <div <#if procMethod.procMethodIsBack == 1>class="tabCon"</#if> style="display: none;">
  56. <div class="row cl">
  57. <div class="formControls col-2 col-sm-2 text-r">
  58. <strong>产品寄回</strong>
  59. </div>
  60. <div class="formControls col-8 col-sm-8 skin-minimal">
  61. <div class="radio-box">
  62. <input type="radio" id="tel-3" name="relationBackStatus" value="1" seleType="send">
  63. <label for="tel-3">未寄回</label>
  64. </div>
  65. <div class="radio-box">
  66. <input type="radio" id="tel-4" name="relationBackStatus" value="2" seleType="send">
  67. <label for="tel-4">已寄回</label>
  68. </div>
  69. <div class="radio-box">
  70. <input type="radio" id="tel-5" name="relationBackStatus" value="4" seleType="send">
  71. <label for="tel-5">签收待确认</label>
  72. </div>
  73. <div class="radio-box">
  74. <input type="radio" id="tel-6" name="relationBackStatus" value="3" seleType="send">
  75. <label for="tel-6">已收货</label>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="row cl" id="backLogisticsInfo">
  80. <div class="formControls col-2 col-sm-2 text-r">
  81. <strong>寄回信息</strong>
  82. </div>
  83. <div class="formControls col-4 col-sm-4">
  84. <div style="width: 100%;display: inline-block;margin-right: 10px;">
  85. <span class="select-box">
  86. <select name="relationBackLogisticsCompany" id="relationBackLogisticsCompany" class="select" seleType="send">
  87. <option value="">物流公司</option>
  88. <option value="sto">申通快递</option>
  89. <option value="yto">圆通快递</option>
  90. <option value="sf">顺丰快递</option>
  91. <option value="ems">邮政EMS</option>
  92. <option value="zto">中通快递</option>
  93. <option value="zjs">宅急送</option>
  94. <option value="yunda">韵达快递</option>
  95. <option value="cces">cces快递</option>
  96. <option value="pick">上门提货</option>
  97. <option value="htky">汇通快递</option>
  98. <option value="ttkdex">天天快递</option>
  99. <option value="stars">星晨急便</option>
  100. <option value="jd">京东快递</option>
  101. <option value="dbkd">德邦快递</option>
  102. <option value="01">其他</option>
  103. <option value="02">上门送货</option>
  104. <option value="lianhaowuliu">联昊通</option>
  105. </select>
  106. </span>
  107. </div>
  108. </div>
  109. <div class="formControls col-4 col-sm-4">
  110. <input style="margin-right: 10px;" type="text" class="input-text" value="" placeholder="请输入快递单号" id="relationBackLogisticsNo" name="relationBackLogisticsNo" seleType="send">
  111. <#--<input style="width: 150px;margin-right: 10px;" type="text" class="input-text" value="" placeholder="寄回邮费" id="renewedBackPostage" name="renewedBackPostage">
  112. <input style="width: 150px;" type="text" class="input-text" value="" placeholder="用户支付宝账户" id="renewedAlipay" name="renewedAlipay">-->
  113. </div>
  114. </div>
  115. <div class="row cl" style="position: relative;" id="backUserInfo">
  116. <div class="formControls col-2 col-sm-2 text-r">
  117. <strong>寄件信息</strong>
  118. </div>
  119. <div class="formControls col-4 col-sm-4">
  120. <input type="text" class="input-text" value="" placeholder="寄件人姓名" id="relationBackName" name="relationBackName" seleType="send">
  121. </div>
  122. <div class="formControls col-4 col-sm-4">
  123. <input type="text" class="input-text" value="" placeholder="寄件人电话" id="relationBackTel" name="relationBackTel" seleType="send">
  124. </div>
  125. </div>
  126. <div class="row cl" style="position: relative;/*display: none;*/">
  127. <div class="formControls col-2 col-sm-2 text-r">
  128. <strong>仓库签收时间</strong>
  129. </div>
  130. <div class="formControls col-4 col-sm-4">
  131. <input type="text" placeholder="请选择仓库签收时间" id="relationBackReceiptDate" name="relationBackReceiptDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" readonly="readonly" seleType="send">
  132. </div>
  133. </div>
  134. <div class="row cl">
  135. <div class="formControls col-2 col-sm-2">
  136. </div>
  137. <div class="formControls col-8 col-sm-8 text-c">
  138. <button onClick="update_relation_info(1);" class="btn btn-primary" type="button">确认修改</button>
  139. </div>
  140. </div>
  141. </div>
  142. <div <#if procMethod.procMethodIsBack == 1>class="tabCon"</#if> style="display: none;">
  143. <div class="row cl" id="backTransferInfo">
  144. <div class="formControls col-2 col-sm-2 text-r">
  145. <strong>邮费处理</strong>
  146. </div>
  147. <div class="formControls col-8 col-sm-8 skin-minimal">
  148. <div class="radio-box">
  149. <input type="radio" id="tel-6" name="relationIsTransfer" value="0" seleType="postage">
  150. <label for="tel-6">不需要转账</label>
  151. </div>
  152. <#--<div class="radio-box">-->
  153. <#--<input type="radio" id="tel-10" name="renewedIsTransfer" value="10" seleType="postage">-->
  154. <#--<label for="tel-10">需要转账</label>-->
  155. <#--</div>-->
  156. <div class="radio-box">
  157. <input type="radio" id="tel-7" name="relationIsTransfer" value="1" seleType="postage">
  158. <label for="tel-7">已转账</label>
  159. </div>
  160. <div class="radio-box">
  161. <input type="radio" id="tel-8" name="relationIsTransfer" value="2" seleType="postage">
  162. <label for="tel-8">已申请待转账</label>
  163. </div>
  164. <div class="radio-box">
  165. <input type="radio" id="tel-9" name="relationIsTransfer" value="3" seleType="postage">
  166. <label for="tel-9">未申请</label>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="row cl" id="postageInformation">
  171. <div class="formControls col-2 col-sm-2 text-r">
  172. <strong>邮费信息</strong>
  173. </div>
  174. <div class="formControls col-9 col-sm-9 text-r">
  175. <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
  176. <input type="text" class="input-text" value="" placeholder="寄回邮费" id="relationBackPostage" name="relationBackPostage" seleType="postage">
  177. </div>
  178. <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
  179. <input type="text" class="input-text" value="" placeholder="用户支付宝账户" id="relationAlipay" name="relationAlipay" seleType="postage">
  180. </div>
  181. <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
  182. <input type="text" class="input-text" value="" placeholder="用户支付宝姓名" id="relationAlipayName" name="relationAlipayName" seleType="postage">
  183. </div>
  184. </div>
  185. </div>
  186. <div class="row cl">
  187. <div class="formControls col-2 col-sm-2">
  188. </div>
  189. <div class="formControls col-8 col-sm-8 text-c">
  190. <button onClick="update_relation_info(2);" class="btn btn-primary" type="button">确认修改</button>
  191. </div>
  192. </div>
  193. </div>
  194. <div <#if procMethod.procMethodIsSend == 1>class="tabCon"</#if>style="display: none;">
  195. <div class="row cl">
  196. <div class="formControls col-2 col-sm-2 text-r">
  197. <strong>是否寄出</strong>
  198. </div>
  199. <div class="formControls col-10 col-sm-10 skin-minimal">
  200. <div class="radio-box">
  201. <input type="radio" id="tel-10" name="relationSendStatus" value="1" seleType="sendInformation">
  202. <label for="tel-10">未寄出</label>
  203. </div>
  204. <div class="radio-box">
  205. <input type="radio" id="tel-11" name="relationSendStatus" value="2" seleType="sendInformation">
  206. <label for="tel-11">已寄出</label>
  207. </div>
  208. <div class="radio-box">
  209. <input type="radio" id="tel-12" name="relationSendStatus" value="3" seleType="sendInformation">
  210. <label for="tel-12">已收货</label>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="row cl">
  215. <div class="formControls col-2 col-sm-2 text-r">
  216. <strong>Efast订单号</strong>
  217. </div>
  218. <div class="formControls col-5 col-sm-5">
  219. <input type="text" class="input-text" value="" placeholder="Efast订单号" id="relationBackEfastOrderId" name="relationBackEfastOrderId" seleType="sendInformation">
  220. </div>
  221. </div>
  222. <#--<div class="row cl">
  223. <div class="formControls col-2 col-sm-2 text-r">
  224. <strong>寄出产品</strong>
  225. </div>
  226. <div class="formControls col-10 col-sm-10">
  227. <div class="update-parts" id="sendProduct"></div>
  228. </div>
  229. </div>
  230. <div class="row cl">
  231. <div class="formControls col-2 col-sm-2">
  232. </div>
  233. <div class="formControls col-10 col-sm-10">
  234. (如需修改,在Efast系统作废订单,重新生成订单,并与此处修改Efast重新生成的订单号!)
  235. </div>
  236. </div>-->
  237. <div class="row cl" id="sendUserInfo">
  238. <div class="formControls col-2 col-sm-2 text-r">
  239. <strong>用户信息</strong>
  240. </div>
  241. <div class="formControls col-5 col-sm-5">
  242. <input type="text" class="input-text" placeholder="填写收件人姓名" id="relationSendName" name="relationSendName" seleType="sendInformation">
  243. </div>
  244. <div class="formControls col-5 col-sm-5">
  245. <input type="text" class="input-text" placeholder="填写收件人手机号" id="relationSendTel" name="relationSendTel" seleType="sendInformation">
  246. </div>
  247. </div>
  248. <div class="row cl" id="sendAddressInfo">
  249. <div class="formControls col-2 col-sm-2 text-r">
  250. </div>
  251. <div class="formControls col-10 col-sm-10">
  252. <div style="width: 188px;display: inline-block;margin-right: 20px;">
  253. <span class="select-box" style="padding-right: 0px;">
  254. <select name="provinceNumber" id="provinceNumber" class="select" seleType="sendInformation"></select>
  255. </span>
  256. </div>
  257. <div style="width: 188px;display: inline-block;margin-right: 20px;">
  258. <span class="select-box" style="padding-right: 0px;">
  259. <select name="cityNumber" id="cityNumber" class="select" seleType="sendInformation"></select>
  260. </span>
  261. </div>
  262. <div style="width: 189px;display: inline-block;">
  263. <span class="select-box" style="padding-right: 0px;">
  264. <select name="areaNumber" id="areaNumber" class="select" seleType="sendInformation"></select>
  265. <input type="hidden" id="merge_address" name="merge_address" seleType="sendInformation">
  266. </span>
  267. </div>
  268. </div>
  269. </div>
  270. <div class="row cl" id="sendaddressDescInfo">
  271. <label class="form-label col-2 col-sm-2"></label>
  272. <div class="formControls col-10 col-sm-10">
  273. <input type="text" class="input-text" placeholder="请填写详细地址" id="relationSendAddress" name="relationSendAddress" seleType="sendInformation">
  274. </div>
  275. </div>
  276. <div class="row cl" id="sendLogisticsInfo">
  277. <div class="formControls col-2 col-sm-2 text-r">
  278. <strong>寄出信息</strong>
  279. </div>
  280. <div class="formControls col-10 col-sm-10">
  281. <div style="width: 300px;display: inline-block;margin-right: 10px;">
  282. <span class="select-box">
  283. <select name="relationSendLogisticsCompany" id="relationSendLogisticsCompany" class="select" seleType="sendInformation">
  284. <option value="">物流公司</option>
  285. <option value="sto">申通快递</option>
  286. <option value="yto">圆通快递</option>
  287. <option value="sf">顺丰快递</option>
  288. <option value="ems">邮政EMS</option>
  289. <option value="zto">中通快递</option>
  290. <option value="zjs">宅急送</option>
  291. <option value="yunda">韵达快递</option>
  292. <option value="cces">cces快递</option>
  293. <option value="pick">上门提货</option>
  294. <option value="htky">汇通快递</option>
  295. <option value="ttkdex">天天快递</option>
  296. <option value="stars">星晨急便</option>
  297. <option value="jd">京东快递</option>
  298. <option value="dbkd">德邦快递</option>
  299. <option value="02">上门送货</option>
  300. <option value="lianhaowuliu">联昊通</option>
  301. </select>
  302. </span>
  303. </div>
  304. <input style="width: 300px;" type="text" class="input-text" value="" placeholder="快递单号" id="relationSendLogisticsNo" name="relationSendLogisticsNo" seleType="sendInformation">
  305. </div>
  306. </div>
  307. <div class="row cl" id="sendDescInfo">
  308. <div class="formControls col-2 col-sm-2 text-r">
  309. <strong>寄出备注</strong>
  310. </div>
  311. <div class="formControls col-10 col-sm-10">
  312. <input type="text" class="input-text" placeholder="寄出备注" id="relationDesc" name="relationDesc" seleType="sendInformation">
  313. </div>
  314. </div>
  315. <div class="row cl">
  316. <div class="formControls col-2 col-sm-2">
  317. </div>
  318. <div class="formControls col-8 col-sm-8 text-c">
  319. <button onClick="update_relation_info(3);" class="btn btn-primary" type="button">确认修改</button>
  320. </div>
  321. </div>
  322. </div>
  323. <#if procMethod.procMethodIsBack == 1>
  324. <div class="tabCon">
  325. <div class="row cl" style="margin-left: -70px;">
  326. <div class="formControls col-2 col-sm-2 text-r">
  327. <strong>QC进度</strong>
  328. </div>
  329. <div class="formControls col-10 col-sm-10">
  330. <table class="table table-border table-bg table-bordered">
  331. <tbody class="text-c" id="detect_table"><tr>
  332. <th>工厂检测现象</th><th>故障分类</th><th>故障原因</th><th>判定结果</th><th>故障指向</th><th>原因分析</th><th>生产维修</th>
  333. </tr>
  334. </tbody></table>
  335. </div>
  336. </div>
  337. </div>
  338. <div class="tabCon">
  339. <div class="row cl" style="margin-left: -70px;">
  340. <div class="formControls col-2 col-sm-2 text-r">
  341. <strong>返修进度</strong>
  342. </div>
  343. <div class="formControls col-10 col-sm-10">
  344. <table class="table table-border table-bg table-bordered">
  345. <tbody class="text-c" id="maintenance_table"><tr>
  346. <th>是否可返修</th><th>返修内容</th><th>返修日期</th>
  347. </tr>
  348. </tbody></table>
  349. </div>
  350. </div>
  351. </div>
  352. </#if>
  353. </div>
  354. <input type="hidden" id="customerId" name="customerId" value="${customerId!''}" seleType="primary">
  355. </form>
  356. </article>
  357. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  358. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  359. <script type="text/javascript">
  360. //产品类型
  361. var productType = null;
  362. $(function(){
  363. $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")});
  364. // #tab_demo 父级id
  365. // #tab_demo .tabBar span 控制条
  366. // #tab_demo .tabCon 内容区
  367. // click 事件 点击切换,可以换成mousemove 移动鼠标切换
  368. // 1 默认第2个tab为当前状态(从0开始)
  369. var mobile= /^1(3|4|5|7|8)\d{9}$/; //手机号码
  370. var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
  371. var money = /^(0{1}|([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
  372. $(function(){
  373. $('.skin-minimal input').iCheck({
  374. checkboxClass: 'icheckbox-blue',
  375. radioClass: 'iradio-blue',
  376. increaseArea: '20%'
  377. });
  378. get_cmRelation_info();
  379. showUpdateSendProduct();
  380. get_product_type();
  381. /*/!* 监听寄回状态按钮 *!/
  382. $("input[name='renewedBackStatus']").change(function (){
  383. initBackInfo($(this).val());
  384. })
  385. /!* 监听寄出状态按钮 *!/
  386. $("input[name='renewedSendStatus']").change(function (){
  387. initSendInfo($(this).val());
  388. })
  389. /!* 监听邮费状态按钮 *!/
  390. $("input[name='renewedIsTransfer']").change(function (){
  391. initPostageInfo($(this).val());
  392. })*/
  393. });
  394. /*/!*初始化寄回信息*!/
  395. function initBackInfo(statusCode){
  396. if(statusCode == 1){
  397. $("#backLogisticsInfo").hide();
  398. /!*$("#backTransferInfo").hide();*!/
  399. $("#backUserInfo").hide();
  400. }else{
  401. $("#backLogisticsInfo").show();
  402. $("#backTransferInfo").show();
  403. $("#backUserInfo").show();
  404. }
  405. }
  406. /!*显示隐藏邮费信息*!/
  407. function initPostageInfo(statusCode){
  408. if(statusCode == 1){
  409. $("#postageInformation").show();
  410. }else{
  411. $("#postageInformation").hide();
  412. }
  413. }
  414. /!*初始化寄出信息*!/
  415. function initSendInfo(statusCode){
  416. if(statusCode == 1){
  417. $("#sendUserInfo").hide();
  418. $("#sendAddressInfo").hide();
  419. $("#sendaddressDescInfo").hide();
  420. $("#sendLogisticsInfo").hide();
  421. $("#sendDescInfo").hide();
  422. }else{
  423. $("#sendUserInfo").show();
  424. $("#sendAddressInfo").show();
  425. $("#sendaddressDescInfo").show();
  426. $("#sendLogisticsInfo").show();
  427. $("#sendDescInfo").show();
  428. }
  429. }*/
  430. /*显示所有产品及配件信息*/
  431. function showUpdateSendProduct() {
  432. var productList = getProduct() ; //所有产品
  433. var html = "";
  434. if(productList == null){
  435. return false;
  436. }
  437. for(var i=0;i<productList.length;i++) {
  438. var product = productList[i];
  439. var produceFittings = product.fittingsList; //获取该产品的所有配件
  440. var colorList = product.colorList; //该产品的所有颜色
  441. var colorHtml = '';
  442. if(colorList != null && colorList.length >0 ){
  443. colorHtml += '<table style="height: 100%;">';
  444. for(var j=0;j<colorList.length;j++){
  445. var number = "";
  446. var color = colorList[j];
  447. /*for(var k=0;k<orderItemList.length;k++){
  448. var item = orderItemList[k];
  449. if(item.itemColorId == color.colorId){
  450. number = item.itemNum;
  451. }
  452. }*/
  453. var fristInputStyle = "border-top: 1px solid #ddd;";
  454. if(color.colorProductId == product.productId) {
  455. colorHtml += '<tr >' +
  456. ' <td width="75" class="input-color-name" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
  457. ' <td width="25" style="'+ fristInputStyle +'">' +
  458. ' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
  459. ' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
  460. ' <input type="hidden" class="input-produce-name" value="' + product.productName + '">' +
  461. ' <input type="text" class="input-text input-color-number number-input" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
  462. ' </td>' +
  463. ' </tr>';
  464. fristInputStyle = "";
  465. }
  466. }
  467. colorHtml += '</table>';
  468. }else{
  469. colorHtml += '<span>暂无该产品的颜色!<span>';
  470. }
  471. var produceFittingsHtml = '';
  472. if(produceFittings != null && produceFittings.length > 0){
  473. produceFittingsHtml += '<table style="height: 100%;">';
  474. for(var m=0;m<produceFittings.length;m++){
  475. var produceFit = produceFittings[m];
  476. if(produceFit.productId == product.productId) {
  477. var fristInputStyle = "border-top: 1px solid #ddd;";
  478. produceFittingsHtml += '<tr >' +
  479. ' <td width="75" class="input-fittings-name" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
  480. ' <td width="25" style="'+ fristInputStyle +'">' +
  481. ' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
  482. ' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
  483. ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="配件数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
  484. ' </td>' +
  485. ' </tr>';
  486. fristInputStyle = "";
  487. }
  488. }
  489. produceFittingsHtml += '</table>';
  490. }else{
  491. produceFittingsHtml += '<span>暂无产品配件!<span>';
  492. }
  493. var produceHtml = '<input type="hidden" value="'+ product.productId +'">' +
  494. '<span>'+ product.productName +'</span>';
  495. html += ' <tr >' +
  496. ' <td width="70">'+ produceHtml +'</td>' +
  497. ' <td style="padding: 0px;text-align: center;">' +
  498. colorHtml +
  499. ' </td>' +
  500. ' <td style="padding: 0px;text-align: center;">' +
  501. produceFittingsHtml +
  502. ' </td>' +
  503. '</tr>';
  504. }
  505. html += '<tr><td colspan="3" style="text-align: center;"><button onClick="hideProductList();" class="btn btn-primary" type="button">确认</button></td></tr>'
  506. $("#addProduct").html(html);
  507. }
  508. function showProductList() {
  509. $('#produceSelect').show();
  510. }
  511. function hideProductList() {
  512. var txt_product = '';
  513. var color_numbers = '';
  514. var fittings_numbers = '';
  515. $("#addProduct").find(".input-color-number").each(function(){
  516. var number = $(this).val();
  517. if(number != null && number != ""){
  518. var productId = $(this).parent().find(".input-produce-id").val();
  519. var colorId = $(this).parent().find(".input-color-id").val();
  520. var productName = $(this).parent().find(".input-produce-name").val();
  521. //var colorName = $(this).parent().find(".input-color-name").val();
  522. //封装更换的所有产品
  523. color_numbers += productId + ':' + colorId + ":" + number + ",";
  524. txt_product += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ productName + '*' + number + '台</span>';
  525. }
  526. });
  527. $("#addProduct").find(".input-fittings-number").each(function(){
  528. var number = $(this).val();
  529. if(number != null && number != ""){
  530. var productId = $(this).parent().find(".input-produce-id").val();
  531. var fittingsId = $(this).parent().find(".input-fittings-id").val();
  532. var fittingsName = $(this).parent().parent().find(".input-fittings-name").html();
  533. //var colorName = $(this).parent().find(".input-color-name").val();
  534. //封装更换的所有产品
  535. fittings_numbers += productId + ':' + fittingsId + ":" + number + ",";
  536. txt_product += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ fittingsName + '*' + number + '件</span>';
  537. }
  538. })
  539. $('#renewedProduct').html(txt_product);
  540. $('#closed_products').val(color_numbers);
  541. $('#closed_fittings').val(fittings_numbers);
  542. $('#produceSelect').hide();
  543. }
  544. /*获取产品*/
  545. function getProduct(){
  546. var productList;
  547. var productName = $("#selectProcuct").val();
  548. if(productName == null || productName == ""){
  549. var productTable = '<td colspan="3">暂无数据!</td>';
  550. $("#addProduct").html(productTable);
  551. return null;
  552. }
  553. $.ajax({
  554. type: "POST",
  555. data:{'productName':productName},
  556. url: "${path}/admin/signclosed/select_product",
  557. async: false,
  558. success: function(data){
  559. if (data.returnCode == 200) {
  560. $("#addProduct").html("");
  561. productList = data.returnMsg.productList;
  562. }else{
  563. var productTable = '<td colspan="3">暂无数据!</td>';
  564. $("#addProduct").html(productTable);
  565. return null;
  566. }
  567. },
  568. error: function(XmlHttpRequest, textStatus, errorThrown){
  569. }
  570. });
  571. return productList;
  572. }
  573. /*获取换新信息*/
  574. function get_cmRelation_info() {
  575. $.ajax({
  576. cache: true,
  577. type: "POST",
  578. data: {"customerId":${customerId}},
  579. url: "${path}/admin/customer/get_cmRelation_info",
  580. async: false,
  581. success: function(data){
  582. if (data.returnCode == 200) {
  583. var relation = data.returnMsg.cmRelation;
  584. console.log(relation);
  585. getProvince('provinceNumber');
  586. getCity('cityNumber',relation.provinceNumber);
  587. getDistrict('areaNumber',relation.cityNumber);
  588. var relationSchedule = '';
  589. switch (relation.relationBackStatus) {
  590. case 1:relationSchedule += '未寄回,';break;
  591. case 2:relationSchedule += '已寄回,';break;
  592. case 3:relationSchedule += '已收货,';break;
  593. }
  594. switch (relation.relationSendStatus) {
  595. case 1:relationSchedule += '未寄出';break;
  596. case 2:relationSchedule += '已寄出';break;
  597. case 3:relationSchedule += '已收货';break;
  598. }
  599. var relationProduct = '';
  600. if (relation.closedProdcues != null && relation.closedProdcues.length > 0) {
  601. $.each(relation.closedProdcues,function(index,element){
  602. relationProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.closedProductName + '*' + this.closedProdcueNumber + '台</span>';
  603. })
  604. }
  605. if (relation.closedFittings != null && relation.closedFittings.length > 0) {
  606. $.each(relation.closedFittings,function(index,element){
  607. relationProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.closedFittingsName + '*' + this.closedFittingNumber + '件</span>';
  608. })
  609. }
  610. $('#relationProduct').html(relationProduct);
  611. var sendProduct = '';
  612. if (relation.sendProdcues != null && relation.sendProdcues.length > 0) {
  613. $.each(relation.sendProdcues,function(index,element){
  614. sendProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.sendProduceName + '*' + this.sendProdcueNumber + '台</span>';
  615. })
  616. }
  617. if (relation.sendFittings != null && relation.sendFittings.length > 0) {
  618. $.each(relation.sendFittings,function(index,element){
  619. sendProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.sendFittingsName + '*' + this.sendFittingNumber + '件</span>';
  620. })
  621. }
  622. $('#sendProduct').html(sendProduct);
  623. $('#relationId').val(relation.relationId);
  624. $('input[name="relationBackStatus"]').each(function(){
  625. if (this.value == relation.relationBackStatus) {
  626. $(this).iCheck('check');
  627. }
  628. });
  629. $('input[name="relationSendStatus"]').each(function(){
  630. if (this.value == relation.relationSendStatus) {
  631. $(this).iCheck('check');
  632. }
  633. });
  634. /*/!*初始化寄回信息*!/
  635. initBackInfo(renewed.renewedBackStatus);
  636. /!*初始化寄出信息*!/
  637. initSendInfo(renewed.renewedSendStatus);
  638. //初始化邮费信息
  639. initPostageInfo(renewed.renewedIsTransfer);*/
  640. $('#relationSchedule').html(relationSchedule);
  641. $("#relationBackLogisticsCompany option[value='" + relation.relationBackLogisticsCompany + "']").attr("selected","true");
  642. $("#relationSendLogisticsCompany option[value='" + relation.relationSendLogisticsCompany + "']").attr("selected","true");
  643. $("#provinceNumber option[value='" + relation.provinceNumber + "']").attr("selected","true");
  644. $("#cityNumber option[value='" + relation.cityNumber + "']").attr("selected","true");
  645. $("#areaNumber option[value='" + relation.areaNumber + "']").attr("selected","true");
  646. $('#relationBackLogisticsNo').val(relation.relationBackLogisticsNo);
  647. $('#relationBackPostage').val(relation.relationBackPostage/100);
  648. $('#relationAlipay').val(relation.relationAlipay);
  649. $('#relationAlipayName').val(relation.relationAlipayName);
  650. $('input[name="relationIsTransfer"]').each(function(){
  651. if (this.value == relation.relationIsTransfer) {
  652. $(this).iCheck('check');
  653. }
  654. });
  655. $('#relationBackName').val(relation.relationBackName);
  656. $('#relationBackTel').val(relation.relationBackTel);
  657. //$('#renewedBackMachineNo').val(renewed.renewedBackMachineNo);
  658. $('#relationBackEfastOrderId').val(relation.relationBackEfastOrderId);
  659. $('#relationSendName').val(relation.relationSendName);
  660. $('#relationSendTel').val(relation.relationSendTel);
  661. $('#relationSendAddress').val(relation.relationSendAddress);
  662. $('#relationSendLogisticsNo').val(relation.relationSendLogisticsNo);
  663. $('#relationDesc').val(relation.relationDesc);
  664. $('#relationBackReceiptDate').val(relation.relationBackReceiptDate);
  665. var detect_table = $('#detect_table');
  666. var maintenance_table = $('#maintenance_table');
  667. if (relation.complaintDetectList != null) {
  668. $.each(relation.complaintDetectList,function (i,item) {
  669. var detectRevolutionProducedMsg = "";
  670. switch (this.detectRevolutionProduced){
  671. case 1:
  672. detectRevolutionProducedMsg = "待转入";
  673. break;
  674. case 2:
  675. detectRevolutionProducedMsg = "已转入";
  676. break;
  677. case 3:
  678. detectRevolutionProducedMsg = "不需要转入";
  679. break;
  680. }
  681. var detect_tr = '<tr><td>'+convertUndefinedToEmpty(this.detectPhenomenon)+'</td>'
  682. + '<td>'+convertUndefinedToEmpty(this.detectFailureClassification)+'</td>'
  683. + '<td>'+convertUndefinedToEmpty(this.detectFailureCause)+'</td>'
  684. + '<td>'+convertUndefinedToEmpty(this.detectResults)+'</td>'
  685. + '<td>'+convertUndefinedToEmpty(this.detectPoint)+'</td>'
  686. + '<td>'+convertUndefinedToEmpty(this.detectAnalysis)+'</td>'
  687. + '<td>'+convertUndefinedToEmpty(detectRevolutionProducedMsg)+'</td></tr>';
  688. detect_table.append(detect_tr);
  689. var maintenance_tr = '<tr><td>'+convertUndefinedToEmpty(this.maintenanceIdRepair)+'</td>'
  690. + '<td>'+convertUndefinedToEmpty(this.maintenanceContent)+'</td>'
  691. + '<td>'+convertUndefinedToEmpty(this.maintenanceContentDate)+'</td></tr>';
  692. maintenance_table.append(maintenance_tr);
  693. })
  694. }
  695. $('#relationSchedule').html(relationSchedule);
  696. }
  697. },
  698. error: function(XmlHttpRequest, textStatus, errorThrown){
  699. }
  700. })
  701. }
  702. function getseleType(type){
  703. var obj = new Object();
  704. var oldName = "";
  705. $("[seleType="+ type +"]").each(function(){
  706. var name = $(this).attr("name");
  707. if(oldName != name){
  708. oldName = name
  709. if($(this).attr("type") == "radio"){
  710. obj[name] = $("[name="+ name +"]:checked").val();
  711. }else{
  712. obj[name] = $("[name="+ name +"]").val();
  713. }
  714. }
  715. });
  716. $("[seleType='primary']").each(function(){
  717. var name = $(this).attr("name");
  718. if(oldName != name){
  719. oldName = name;
  720. obj[name] = $("[name="+ name +"]").val();
  721. }
  722. });
  723. return obj;
  724. }
  725. /*修改换新信息*/
  726. function update_relation_info(type) {
  727. var relation_flag = checkRenewed(type);
  728. //省市县
  729. var provinceNumber = $("#provinceNumber").find("option:selected").text();
  730. var cityNumber = $("#cityNumber").find("option:selected").text();
  731. var areaNumber = $("#areaNumber").find("option:selected").text();
  732. $('#merge_address').val(provinceNumber+'-'+cityNumber+'-'+areaNumber);
  733. //寄回邮费
  734. var relationBackPostage = $("#relationBackPostage").val();
  735. $("#relationBackPostage").val(parseInt(relationBackPostage*100));
  736. var obj = null;
  737. if(type == 1){
  738. obj = getseleType("send");
  739. }else if(type == 2){
  740. obj = getseleType("postage");
  741. }else if(type ==3){
  742. obj = getseleType("sendInformation");
  743. }
  744. if (relation_flag) {
  745. $.ajax({
  746. cache: true,
  747. type: "POST",
  748. data: obj,
  749. url: "${path}/admin/customer/update_cmRelation_info",
  750. async: false,
  751. success: function(data){
  752. if (data.returnCode == 200) {
  753. window.parent.custome_result(data.resultMsg,1);
  754. parent.location.reload();
  755. var index = parent.layer.getFrameIndex(window.name);
  756. parent.layer.close(index);
  757. } else {
  758. window.parent.custome_result(data.resultMsg,5);
  759. }
  760. },
  761. error: function(XmlHttpRequest, textStatus, errorThrown){
  762. window.parent.admin_result("修改失败!",5);
  763. var index = parent.layer.getFrameIndex(window.name);
  764. parent.layer.close(index);
  765. }
  766. })
  767. }
  768. }
  769. /*校验换新填写信息*/
  770. function checkRenewed(type) {
  771. var relation_flag = true;
  772. var relationBackLogisticsNo = $('#relationBackLogisticsNo').val().trim();//寄回物流单号
  773. var relationBackLogisticsCompany = $("#relationBackLogisticsCompany option:selected").val();//寄回物流公司
  774. var relationBackName = $('#relationBackName').val();//寄件人姓名
  775. var relationBackTel = $('#relationBackTel').val();//寄件人电话
  776. if(type == 1){
  777. var relationBackStatus = $('input[name="relationBackStatus"]:checked').val();//寄回状态
  778. if (relationBackStatus == 1) {
  779. // if (renewedBackLogisticsNo != null && renewedBackLogisticsNo != '') {
  780. // layer.msg("产品未寄回,不能有物流信息!",{icon: 5,time:1000});
  781. // renewed_flag = false;
  782. // return renewed_flag;
  783. // }
  784. // if (renewedBackPostage != null && renewedBackPostage != '' && renewedBackPostage != 0) {
  785. // layer.msg("产品未寄回,不能有邮费!",{icon: 5,time:1000});
  786. // renewed_flag = false;
  787. // return renewed_flag;
  788. // }
  789. // if (renewedBackLogisticsCompany != null && renewedBackLogisticsCompany != '') {
  790. // layer.msg("产品未寄回,不能选择物流公司!",{icon: 5,time:1000});
  791. // renewed_flag = false;
  792. // return renewed_flag;
  793. // }
  794. // if (renewedBackName != null && renewedBackName != '') {
  795. // layer.msg("产品未寄回,不能填写寄回人信息!",{icon: 5,time:1000});
  796. // renewed_flag = false;
  797. // return renewed_flag;
  798. // }
  799. // if (renewedBackTel != null && renewedBackTel != '') {
  800. // layer.msg("产品未寄回,不能填写寄回人电话号码!",{icon: 5,time:1000});
  801. // renewed_flag = false;
  802. // return renewed_flag;
  803. // }
  804. } else if (relationBackStatus == 2 || relationBackStatus == 3) {
  805. if (relationBackLogisticsNo == null || relationBackLogisticsNo == '') {
  806. layer.msg("物流单号不能为空!",{icon: 5,time:1000});
  807. relation_flag = false;
  808. return relation_flag;
  809. }
  810. if (relationBackLogisticsCompany == null || relationBackLogisticsCompany == '') {
  811. layer.msg("请选择物流公司!",{icon: 5,time:1000});
  812. relation_flag = false;
  813. return relation_flag;
  814. }
  815. // if (!uname.test(renewedBackName)) {
  816. // layer.msg("寄回人信息格式不正确,请重新输入!",{icon: 5,time:1000});
  817. // renewed_flag = false;
  818. // return renewed_flag;
  819. // }
  820. if (!mobile.test(relationBackTel)) {
  821. layer.msg("寄回人电话号码格式不正确,请重新输入!",{icon: 5,time:1000});
  822. relation_flag = false;
  823. return relation_flag;
  824. }
  825. }
  826. if (relationBackStatus == 3) {
  827. var relationBackReceiptDate = $('#relationBackReceiptDate').val();//仓库签收时间
  828. if (relationBackReceiptDate == null || relationBackReceiptDate == '') {
  829. layer.msg("仓库签收时间不能为空",{icon: 5,time:1000});
  830. relation_flag = false;
  831. return relation_flag;
  832. }
  833. }
  834. }else if(type == 2){
  835. var relationIsTransfer = $('input[name="relationIsTransfer"]:checked').val();
  836. var relationBackPostage = $('#relationBackPostage').val().trim();//寄回邮费
  837. var relationAlipay = $('#relationAlipay').val().trim();//支付宝账户
  838. var relationAlipayName = $('#relationAlipayName').val().trim();//支付宝账户姓名
  839. if(relationIsTransfer == 1){
  840. if (!money.test(relationBackPostage)) {
  841. layer.msg("邮费格式不正确,请重新输入!",{icon: 5,time:1000});
  842. relation_flag = false;
  843. return relation_flag;
  844. }
  845. // if (!money.test(renewedAlipay)) {
  846. // layer.msg("支付宝账户格式不正确,请重新输入!",{icon: 5,time:1000});
  847. // renewed_flag = false;
  848. // return renewed_flag;
  849. // }
  850. // if (renewedAlipayName == null || renewedAlipayName == '') {
  851. // layer.msg("支付宝姓名不能为空,请重新输入!",{icon: 5,time:1000});
  852. // renewed_flag = false;
  853. // return renewed_flag;
  854. // }
  855. }
  856. }else if(type == 3){
  857. var relationSendStatus = $('input[name="relationSendStatus"]:checked').val();//寄回状态
  858. var relationSendLogisticsCompany = $('#relationSendLogisticsCompany').val();//寄出物流公司
  859. var relationSendLogisticsNo = $('#relationSendLogisticsNo').val();//寄出物流单号
  860. if (relationSendStatus == 1) {
  861. var relationBackStatus = $('input[name="relationBackStatus"]:checked').val();//寄回状态
  862. if (productType != 2) {
  863. var relationBackEfastOrderId = $('#relationBackEfastOrderId').val();//efast订单号
  864. if (relationBackEfastOrderId == null || relationBackEfastOrderId == '') {
  865. layer.msg("Efast订单号不能为空!", {icon: 5, time: 1000});
  866. relation_flag = false;
  867. return relation_flag;
  868. }
  869. }
  870. // if (renewedSendLogisticsCompany != null && renewedSendLogisticsCompany != '') {
  871. // layer.msg("产品未寄送,不能选择物流公司!",{icon: 5,time:1000});
  872. // renewed_flag = false;
  873. // return renewed_flag;
  874. // }
  875. // if (renewedSendLogisticsNo != null && renewedSendLogisticsNo != '') {
  876. // layer.msg("产品未寄送,不能填写物流单号!",{icon: 5,time:1000});
  877. // renewed_flag = false;
  878. // return renewed_flag;
  879. // }
  880. } else if (relationSendStatus == 2 || relationSendStatus == 3) {
  881. if (relationSendLogisticsCompany == null || relationSendLogisticsCompany == '') {
  882. layer.msg("请选择寄回物流公司!",{icon: 5,time:1000});
  883. relation_flag = false;
  884. return relation_flag;
  885. }
  886. if (relationSendLogisticsNo == null || relationSendLogisticsNo == '') {
  887. layer.msg("请填写物流单号!",{icon: 5,time:1000});
  888. relation_flag = false;
  889. return relation_flag;
  890. }
  891. var relationSendTel = $('#relationSendTel').val();//收件人电话
  892. if (!mobile.test(relationSendTel)) {
  893. layer.msg("收件人电话号码格式不正确,请重新输入!",{icon: 5,time:1000});
  894. relation_flag = false;
  895. return relation_flag;
  896. }
  897. var relationSendName = $('#relationSendName').val();//收件人姓名
  898. if (relationSendName == null || relationSendName == '') {
  899. layer.msg("收件人姓名格式不正确,请重新输入!",{icon: 5,time:1000});
  900. relation_flag = false;
  901. return relation_flag;
  902. }
  903. var relationSendAddress = $('#relationSendAddress').val();
  904. if (relationSendAddress == null || relationSendAddress == '') {
  905. layer.msg("寄出地址不能为空!",{icon: 5,time:1000});
  906. relation_flag = false;
  907. return relation_flag;
  908. }
  909. }
  910. }
  911. return relation_flag;
  912. }
  913. /**
  914. * 获取省
  915. */
  916. function getProvince(provinceNum) {
  917. var province = listProvince();
  918. if(province!=null){
  919. var provinceHtml = '';
  920. for(var i=0;i<province.length;i++){
  921. provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
  922. }
  923. $('#'+provinceNum).append(provinceHtml);
  924. }
  925. }
  926. /**
  927. * 获取市
  928. */
  929. function getCity(cityNum,provineceId) {
  930. var city = listCity(provineceId,'');
  931. if(city!=null){
  932. var cityHtml = '';
  933. for(var i=0;i<city.length;i++){
  934. cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
  935. }
  936. $('#'+cityNum).append(cityHtml);
  937. }
  938. }
  939. /**
  940. * 获取区
  941. */
  942. function getDistrict(districtNum,cityId) {
  943. var district = listDistrict(cityId,'');
  944. if(district!=null){
  945. var districtHtml = '';
  946. for(var i=0;i<district.length;i++){
  947. districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
  948. }
  949. $('#'+districtNum).append(districtHtml);
  950. }
  951. }
  952. /*监听市选择事件*/
  953. $(document).on('change', '#cityNumber', function() {
  954. var city = $("#cityNumber").val();
  955. $('#areaNumber option').remove();
  956. getDistrict('areaNumber',city);
  957. });
  958. /*监听省选择事件*/
  959. $(document).on('change', '#provinceNumber', function() {
  960. var proId = $("#provinceNumber").val();
  961. $('#cityNumber option').remove();
  962. getCity('cityNumber',proId);
  963. var cityId = $("#cityNumber").val();
  964. $('#areaNumber option').remove();
  965. getDistrict('areaNumber',cityId);
  966. });
  967. /*获取产品信息*/
  968. function get_product_type() {
  969. $.ajax({
  970. cache: true,
  971. type: "POST",
  972. data: {"customerId":${customerId}},
  973. url: "${path}/admin/customer/getProductType",
  974. async: false,
  975. success: function(data){
  976. if (data.returnCode == 200) {
  977. productType = data.returnMsg.productType.typeCompany;
  978. }
  979. },
  980. error: function(XmlHttpRequest, textStatus, errorThrown){
  981. }
  982. })
  983. }
  984. </script>
  985. </body>
  986. </html>