issueDetails.html 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>发布运价</title>
  6. <link rel="stylesheet" href="../css/main.css" />
  7. <link rel="stylesheet" href="../css/head.css"/>
  8. <link rel="stylesheet" href="../font/iconfont.css" />
  9. <script src="../js/flexible.js"></script>
  10. <script src="../js/api.js"></script>
  11. <script src="../js/checkLanguage.js"></script>
  12. </head>
  13. <body class="ub ub-ver">
  14. <div id="header">
  15. <img src="../images/headerBG.jpg" alt=" " class="headerBG">
  16. <i id="backBtn"><img src="../images/backBtn.png" alt=""></i>
  17. <h3 class="headTit"></h3>
  18. <!--<a href="javascript;" id="head-txt" class="fz28 blue pr25">保存</a>-->
  19. <ul class="headGN">
  20. <li><i></i></li>
  21. </ul>
  22. </div>
  23. <div style="overflow-y: auto" class="ub-f1 hid" id="main">
  24. <div class="price-method ub ub-pac bgff plr25 bb mt20" id="nav">
  25. <a href="javascript:;" class="fz28 ub-f1 c3d ub ub-pac" rel="ship"><span class="method-active nav1"></span></a>
  26. <a href="javascript:;" class="fz28 ub-f1 c3d ub ub-pac" rel="plane"><span class="nav2"></span></a>
  27. <a href="javascript:;" class="fz28 ub-f1 c3d ub ub-pac" rel="train"><span class="nav3"></span></a>
  28. <a href="javascript:;" class="fz28 ub-f1 c3d ub ub-pac" rel="car"><span class="nav4"></span></a>
  29. </div>
  30. <h3 class="fz30 c3d tx-c bgff ptb30 mt20" id="h3"></h3>
  31. <ul class="bgff bt bb pl25 c81 reset-pwd h-price">
  32. <li class="bb ub ub-ac" id="pol">
  33. <b class="fz28 c81"><em class="red">*</em><span class="list1"></span>:</b>
  34. <div class="ub-f1">
  35. <input type="text" value="" id="polInput" readonly="readonly"/>
  36. </div>
  37. <i class="iconfont icon-jiantou cbc pr25"></i>
  38. </li>
  39. <li class="bb ub ub-ac" id="pod">
  40. <b class="fz28 c81"><em class="red">*</em><span class="list2"></span>:</b>
  41. <div class="ub-f1">
  42. <input type="text" value="" id="podInput" readonly="readonly"/>
  43. </div>
  44. <i class="iconfont icon-jiantou cbc pr25"></i>
  45. </li>
  46. <li class="ub ub-pac h-edit-input" id="cyr">
  47. <b class="fz26 c81 db"><em class="red">*</em><span class="list3"></span>:</b>
  48. <div class="h-input-box ub-f1 ub bb ub-pac">
  49. <input type="text" name="" id="cyrVal" value="" class="ub-f1" readonly="readonly"/>
  50. </div>
  51. <i class="iconfont icon-jiantou cbc pr50"></i>
  52. </li>
  53. <li class="ub ub-ac" id="typename">
  54. <b class="fz28 c81 list4"></b>
  55. <div class="ub-f1">
  56. <input type="text" value="" id="typenameVal" class="list4Input" placeholder="" readonly="readonly"/>
  57. </div>
  58. <i class="iconfont icon-jiantou cbc pr25"></i>
  59. </li>
  60. </ul>
  61. <ul class="bgff bt bb pl25 c81 reset-pwd h-price mt20">
  62. <li class="bb ub ub-ac" id="time">
  63. <b class="fz28 c81"><em class="red">*</em><span class="list5"></span>:</b>
  64. <div class="ub-f1">
  65. <input type="text" value="" id="needDay" class="list6Input" placeholder=""/>
  66. </div>
  67. <span class="fz28 ub-f1 list6"></span>
  68. <div class="ub-f2">
  69. <input type="text" value="" id="needHour" class="list7Input" placeholder=""/>
  70. </div>
  71. <span class="fz28 ub-f1 list7"></span>
  72. </li>
  73. <li class="bb ub ub-ac" id="lgrq">
  74. <b class="fz28 c81"><em class="red">*</em><span class="list8"></span>:</b>
  75. <div class="ub-f1">
  76. <input type="text" placeholder="" id="lgTime" readonly="readonly"/>
  77. </div>
  78. <i class="iconfont icon-jiantou cbc pr25"></i>
  79. </li>
  80. <!--<li class="bb ub ub-ac" id="schedule">-->
  81. <!--<b class="fz28 c81">船期:</b>-->
  82. <!--<div class="ub-f1">-->
  83. <!--<input type="text" value="" id="scheduleVal" />-->
  84. <!--</div>-->
  85. <!--</li>-->
  86. <li class="bb ub ub-ac" id="jgrq">
  87. <b class="fz28 c81"><em class="red">*</em><span class="list9"></span>:</b>
  88. <div class="ub-f1">
  89. <input type="text" value="" id="jgTime" readonly="readonly"/>
  90. </div>
  91. <i class="iconfont icon-jiantou cbc pr25"></i>
  92. </li>
  93. <div id="capacityDiv">
  94. <div class="capacityLiDiv" rel="{{capacityId}}">
  95. <li class="ub ub-ver h-edit-input">
  96. <div class="ub ub-pj pr25 ptb30">
  97. <b class="fz26 c81 db ub-f1"><em class="red">*</em><span class="list10"></span>:</b>
  98. <p class="fz24 blue newYL list11" onclick="addCapacity(this,capacityModel)"></p>
  99. </div>
  100. </li>
  101. <li class="bb ub ub-ac capacity">
  102. <b class="fz28 c81 list12"></b>
  103. <div class="ub-f1">
  104. <input type="text" value="{{transportCapacity}}" class="list12Input" placeholder=""/>
  105. </div>
  106. <div class="ub-f2 capacityFn">
  107. <input type="text" rel="{{transportCapacityUnion}}" value="{{theCode}}" class="list13Input" readonly="readonly" placeholder=""/>
  108. </div>
  109. <i class="iconfont icon-jiantou cbc pr25"></i>
  110. </li>
  111. <li class="ub ub-ver h-edit-input">
  112. <div class="ub ub-pj pr25 ptb30">
  113. <b class="fz26 c81 db ub-f1"><em class="red">*</em><span class="list14"></span>:</b>
  114. <p class="fz24 blue newYJ" onclick="addExpense(this,expenseModel)"></p>
  115. </div>
  116. </li>
  117. <div class="expenseDiv">
  118. {{expenseLi}}
  119. </div>
  120. </div>
  121. </div>
  122. <li class="bb ub ub-ac" id="subjoin">
  123. <b class="fz28 c81 list15"></b>
  124. <div class="ub-f1">
  125. <input type="text" value="" id="subjoinVal" readonly="readonly"/>
  126. </div>
  127. <i class="iconfont icon-jiantou cbc pr25 pl90"></i>
  128. </li>
  129. <li class="bb ub ub-ac" id="yxrq">
  130. <b class="fz28 c81"><em class="red">*</em><span class="list16"></span></b>
  131. <div class="ub-f1">
  132. <input type="text" id="yxTime" value="" readonly="readonly"/>
  133. </div>
  134. <i class="iconfont icon-jiantou cbc pr25"></i>
  135. </li>
  136. <li class="pt30 ub-ac" id="bz">
  137. <b class="fz28 c81"><span class="list17"></span>:</b>
  138. <div class="mt30 mb30 company-profile">
  139. <textarea name="" rows="5" id="bzVal" cols="" placeholder=""></textarea>
  140. </div>
  141. </li>
  142. </ul>
  143. <div class="plr25 mt50 pt20 ub ub-ac">
  144. <button type="button" class="release-btn mb30 btn-box pr25 fz30 cff btn1" id="sureBtn"></button>
  145. </div>
  146. <div id="capacityProDiv" class="hid">
  147. <div class="capacityLiDiv" rel="{{capacityId}}">
  148. <li class="ub ub-ver h-edit-input">
  149. <div class="ub ub-pj pr25 ptb30">
  150. <b class="fz26 c81 db ub-f1"><em class="red">*</em><span class="list18"></span>:</b>
  151. <p class="fz24 blue newYL list19" onclick="addCapacity(this,capacityModel)"></p>
  152. </div>
  153. </li>
  154. <li class="bb ub ub-ac capacity">
  155. <b class="fz28 c81 list20"></b>
  156. <div class="ub-f1">
  157. <input type="text" value="" class="list20Input" placeholder=""/>
  158. </div>
  159. <div class="ub-f2 capacityFn">
  160. <input type="text" rel="" value="" class="list21Input" readonly="readonly" placeholder=""/>
  161. </div>
  162. <i class="iconfont icon-jiantou cbc pr25"></i>
  163. </li>
  164. <li class="ub ub-ver h-edit-input">
  165. <div class="ub ub-pj pr25 ptb30">
  166. <b class="fz26 c81 db ub-f1"><em class="red">*</em><span class="list22"></span>:</b>
  167. <p class="fz24 blue newYJ" onclick="addExpense(this,expenseModel)"></p>
  168. </div>
  169. </li>
  170. <div class="expenseDiv">
  171. <li class="bb ub ub-ac expense">
  172. <b class="fz28 c81 list23"></b>
  173. <div class="ub-f1">
  174. <input type="text" value="" placeholder="0.00"/>
  175. </div>
  176. <div class="ub-f2 expenseFn">
  177. <input type="text" value="" readonly="readonly" class="list23Input" placeholder=""/>
  178. </div>
  179. <i class="iconfont icon-jiantou cbc pr25"></i>
  180. </li>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <script type="text/javascript">
  186. try {
  187. var text=languages.issueDetails;
  188. $api.dom(".headTit").innerText=text.tit;
  189. $api.dom(".nav1").innerText=text.nav1;
  190. $api.dom(".nav2").innerText=text.nav2;
  191. $api.dom(".nav3").innerText=text.nav3;
  192. $api.dom(".nav4").innerText=text.nav4;
  193. $api.dom("#h3").innerText=text.h3;
  194. $api.dom(".list1").innerText=text.list1;
  195. $api.dom(".list2").innerText=text.list2;
  196. $api.dom(".list3").innerText=text.list3;
  197. $api.dom(".list4").innerText=text.list4;
  198. $api.dom(".list4Input").setAttribute("placeholder",text.list4Input);
  199. $api.dom(".list5").innerText=text.list5;
  200. $api.dom(".list6").innerText=text.list6;
  201. $api.dom(".list6Input").setAttribute("placeholder",text.list6Input);
  202. $api.dom(".list7").innerText=text.list7;
  203. $api.dom(".list7Input").setAttribute("placeholder",text.list7Input);
  204. $api.dom(".list8").innerText=text.list8;
  205. $api.dom(".list9").innerText=text.list9;
  206. $api.dom(".list10").innerText=text.list10;
  207. $api.dom(".list11").innerText=text.list11;
  208. $api.dom(".list12").innerText=text.list12;
  209. $api.dom(".list12Input").setAttribute("placeholder",text.list12Input);
  210. $api.dom(".list13Input").setAttribute("placeholder",text.list13Input);
  211. $api.dom(".list14").innerText=text.list14;
  212. $api.dom(".list15").innerText=text.list15;
  213. $api.dom(".list16").innerText=text.list16;
  214. $api.dom(".list17").innerText=text.list17;
  215. $api.dom(".list18").innerText=text.list10;
  216. $api.dom(".list19").innerText=text.list11;
  217. $api.dom(".list20").innerText=text.list12;
  218. $api.dom(".list20Input").setAttribute("placeholder",text.list12Input);
  219. $api.dom(".list21Input").setAttribute("placeholder",text.list13Input);
  220. $api.dom(".list22").innerText=text.list14;
  221. $api.dom(".list23").innerText=text.list15;
  222. $api.dom(".list23Input").setAttribute("placeholder",text.list13Input);
  223. $api.dom(".btn1").innerText=text.btn1;
  224. }catch (e){
  225. alert(languages.all.list5)
  226. }
  227. </script>
  228. <script src="../js/publicData.js"></script>
  229. <script src="../js/createTime.js"></script>
  230. <script>
  231. var expenseDiv=$api.dom(".expenseDiv"),capacityProDiv=$api.dom("#capacityProDiv"),capacityDiv=$api.dom("#capacityDiv"),expenseProDiv=$api.dom(capacityProDiv,".expenseDiv")
  232. var expenseModel=expenseProDiv.innerHTML;
  233. var capacityModel=capacityProDiv.innerHTML.replace(languages.issueDetails.list11,languages.issueDetails.list24).replace("addCapacity","delCapacity");
  234. var newCapacity=capacityProDiv.innerHTML;
  235. var expenseUpModel=expenseDiv.innerHTML;
  236. var newCapacityUpModel=capacityDiv.innerHTML;
  237. var capacityUpModel=capacityDiv.innerHTML.replace(languages.issueDetails.list11,languages.issueDetails.list24).replace("addCapacity","delCapacity");
  238. var expenseLi='<li class="bb ub ub-ac expense" rel="{{expenseId}}"> <b class="fz28 c81">'+languages.issueDetails.list23+'</b> <div class="ub-f1"> <input type="text" value="{{price}}" placeholder='+languages.issueDetails.list12Input+'/> </div> <div class="ub-f2 expenseFn"> <input type="text" rel="{{currencyId}}" value="{{code}}" class="list23Input" readonly="readonly" placeholder='+languages.issueDetails.list13Input+'/></div> <i class="iconfont icon-jiantou cbc pr25"></i> </li>'
  239. var unit=[],name=[],money=[],timedata={};
  240. var nav=$api.dom("#nav"),navLi=$api.domAll(nav,"a");
  241. var issueTypeArr=$api.getStorage("carriageType"),issueType=issueTypeArr[0].id,carriageType=0;
  242. money=$api.getStorage("money");
  243. var ifClick=false;
  244. apiready=function () {
  245. api.showProgress({
  246. title: languages.all.list21+'...',
  247. text: languages.all.list25+'...',
  248. modal: true
  249. });
  250. var backBtn=$api.dom("#backBtn"),sureBtn=$api.dom("#sureBtn"),main=$api.dom("#main");
  251. var selTime={
  252. dateFrom:"",
  253. dateTo:""
  254. };
  255. unit=$api.getStorage(navLi[0].getAttribute("rel")+"Unit");
  256. name=$api.getStorage(navLi[0].getAttribute("rel")+"Name");
  257. api.ajax({
  258. url: pageUrl+'price/get_price_info',
  259. method: 'get',
  260. timeout: 30,
  261. dataType: 'json',
  262. returnAll: false,
  263. headers:{
  264. "content-type":"application/json"
  265. },
  266. data: {
  267. body: {id: api.pageParam.id}
  268. }
  269. }, function (ret, err) {
  270. switch (ret.data[0]['tnameCn']){
  271. case "海运":
  272. navLi[0].click();
  273. break;
  274. case "空运":
  275. navLi[1].click();
  276. break;
  277. case "铁路":
  278. navLi[2].click();
  279. break;
  280. case "集卡":
  281. navLi[3].click();
  282. break;
  283. }
  284. for(var pol in ret.data[0]['pol']){
  285. $api.dom("#polInput").value=ret.data[0]['pol'][pol]['nameCn'];
  286. $api.dom("#polInput").setAttribute("rel",pol);
  287. }
  288. for(var pod in ret.data[0]['pod']){
  289. $api.dom("#podInput").value=ret.data[0]['pod'][pod]['nameCn'];
  290. $api.dom("#podInput").setAttribute("rel",pod);
  291. }
  292. $api.dom("#cyrVal").value=ret.data[0]['tcnameCn'];
  293. $api.dom("#cyrVal").setAttribute("rel",ret.data[0]['commoncarrierId']);
  294. $api.dom("#typenameVal").value=ret.data[0]['nameOfboard'];
  295. // $api.dom("#scheduleVal").value=ret.data[0]['detail'][0]['scheduled'];
  296. $api.dom("#yxTime").value=ret.data[0]['detail'][0]['dateFrom'].split(" ")[0].split("-").join(".")+"-"+ret.data[0]['detail'][0]['dateTo'].split(" ")[0].split("-").join(".");
  297. selTime={
  298. dateFrom:ret.data[0]['detail'][0]['dateFrom'],
  299. dateTo:ret.data[0]['detail'][0]['dateTo']
  300. }
  301. $api.dom("#jgTime").value=ret.data[0]['detail'][0]['dateOfEndGate'];
  302. $api.dom("#lgTime").value=ret.data[0]['detail'][0]['dateOfStart'];
  303. $api.dom("#needDay").value=ret.data[0]['detail'][0]['timeSpendDay']||"";
  304. $api.dom("#needHour").value=ret.data[0]['detail'][0]['timeSpendHour']||"";
  305. $api.dom("#bzVal").value=ret.data[0]['detail'][0]['remark'];
  306. $api.dom("#subjoinVal").value=ret.data[0]['detail'][0]['child'][0]['additionalPrice'];
  307. var str="",str2="";
  308. for(var capacityNum in ret.data[0]['detail']){
  309. if(capacityNum==0){
  310. str=newCapacityUpModel.replace("{{transportCapacity}}",ret.data[0]['detail'][capacityNum]['transportCapacity']).replace("{{capacityId}}",ret.data[0]['detail'][capacityNum]['id'])
  311. .replace("{{theCode}}",ret.data[0]['detail'][capacityNum]['theCode']).replace("{{transportCapacityUnion}}",ret.data[0]['detail'][capacityNum]['transportCapacityUnion'])
  312. for(var expenseNum in ret.data[0]['detail'][capacityNum]['child']){
  313. str2+=expenseLi.replace("{{code}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['code']).replace("{{price}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['price'])
  314. .replace("{{currencyId}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['currencyId']).replace("{{expenseId}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['id']);
  315. }
  316. str=str.replace("{{expenseLi}}",str2);
  317. capacityDiv.innerHTML=str;
  318. }else {
  319. str=capacityUpModel.replace("{{transportCapacity}}",ret.data[0]['detail'][capacityNum]['transportCapacity']).replace("{{capacityId}}",ret.data[0]['detail'][capacityNum]['id'])
  320. .replace("{{theCode}}",ret.data[0]['detail'][capacityNum]['theCode']).replace("{{transportCapacityUnion}}",ret.data[0]['detail'][capacityNum]['transportCapacityUnion'])
  321. for(var expenseNum in ret.data[0]['detail'][capacityNum]['child']){
  322. str2+=expenseLi.replace("{{code}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['code']).replace("{{price}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['price'])
  323. .replace("{{currencyId}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['currencyId']).replace("{{expenseId}}",ret.data[0]['detail'][capacityNum]['child'][expenseNum]['id']);
  324. }
  325. str=str.replace("{{expenseLi}}",str2);
  326. capacityDiv.insertAdjacentHTML("beforeend",str);
  327. }
  328. str=str2="";
  329. }
  330. addCapacityFn();
  331. addExpenseFN();
  332. main.className=main.className.replace("hid","");
  333. api.hideProgress();
  334. });
  335. $api.dom(".capacityFn").onclick=function () {
  336. showBox(this.getElementsByTagName("input")[0],unit,true);
  337. }
  338. // $api.dom(".expenseFn").onclick=function () {
  339. // showBox(this.getElementsByTagName("input")[0],money,true);
  340. // }
  341. $api.dom("#cyr").onclick=function () {
  342. showBox(this.getElementsByTagName("input")[0],JSON.parse(name),true)
  343. }
  344. $api.dom("#subjoin").onclick=function () {
  345. showBox(this.getElementsByTagName("input")[0],$api.getStorage("subjoin"),true)
  346. }
  347. // $api.dom("#schedule").onclick=function () {
  348. // showBox(this.getElementsByTagName("input")[0],$api.getStorage("schedule"),true)
  349. // }
  350. $api.dom("#pol").onclick=function () {
  351. api.openWin({
  352. name: 'chosen',
  353. url: 'chosen.html',
  354. pageParam: {
  355. index: '#pol',
  356. name:"issueDetails",
  357. type:carriageType
  358. }
  359. });
  360. }
  361. $api.dom("#pod").onclick=function () {
  362. api.openWin({
  363. name: 'chosen',
  364. url: 'chosen.html',
  365. pageParam: {
  366. index: '#pod',
  367. name:"issueDetails",
  368. type:carriageType
  369. }
  370. });
  371. }
  372. backBtn.onclick=function () {
  373. toBack();
  374. }
  375. $api.dom("#yxrq").onclick=function () {
  376. var now=new Date(),arr=[];
  377. arr[0]=0;
  378. arr[1]=now.getMonth();
  379. arr[2]=now.getDate()-1;
  380. showTime(this,timeJson,languages.issueDetails.remind2,undefined,arr);
  381. }
  382. $api.dom("#lgrq").onclick=function () {
  383. var arr=[],data=[languages.issueDetails.remind3,languages.issueDetails.remind4,languages.issueDetails.remind5,languages.issueDetails.remind6,languages.issueDetails.remind7,languages.issueDetails.remind8,languages.issueDetails.remind9];
  384. for(var i=0;i<7;i++){
  385. arr[i]={
  386. id:0,
  387. text: data[i],
  388. status: 'normal'
  389. }
  390. }
  391. showBox(this.getElementsByTagName("input")[0],arr,false)
  392. }
  393. $api.dom("#jgrq").onclick=function () {
  394. var arr=[],data=[languages.issueDetails.remind3,languages.issueDetails.remind4,languages.issueDetails.remind5,languages.issueDetails.remind6,languages.issueDetails.remind7,languages.issueDetails.remind8,languages.issueDetails.remind9];
  395. for(var i=0;i<7;i++){
  396. arr[i]={
  397. id:0,
  398. text: data[i],
  399. status: 'normal'
  400. }
  401. }
  402. showBox(this.getElementsByTagName("input")[0],arr,false)
  403. }
  404. for(var navLiNum=0,len=navLi.length;navLiNum<len;navLiNum++){
  405. !function (i) {
  406. navLi[i].onclick=function (e) {
  407. e.preventDefault();
  408. issueType=issueTypeArr[i].id;
  409. carriageType=i;
  410. for(var j=0;j<len;j++){
  411. navLi[j].childNodes[0].className="";
  412. }
  413. this.childNodes[0].className="method-active";
  414. switch (i){
  415. case 0:
  416. $api.dom($api.dom("#lgrq"),"b").innerText=languages.issueDetails.list8;
  417. $api.dom($api.dom("#typename"),"b").innerText=languages.issueDetails.list4;
  418. break;
  419. case 1:
  420. $api.dom($api.dom("#lgrq"),"b").innerText=languages.issueDetails.remind10;
  421. $api.dom($api.dom("#typename"),"b").innerText=languages.issueDetails.remind11;
  422. break;
  423. case 2:
  424. $api.dom($api.dom("#lgrq"),"b").innerText=languages.issueDetails.remind10;
  425. $api.dom($api.dom("#typename"),"b").innerText=languages.issueDetails.remind12;
  426. break;
  427. case 3:
  428. $api.dom($api.dom("#lgrq"),"b").innerText=languages.issueDetails.remind10;
  429. $api.dom($api.dom("#typename"),"b").innerText=languages.issueDetails.remind13;
  430. break;
  431. }
  432. unit=$api.getStorage(this.getAttribute("rel")+"Unit");
  433. name=$api.getStorage(this.getAttribute("rel")+"Name");
  434. capacityDiv.innerHTML=newCapacity;
  435. $api.dom("#cyrVal").value="";
  436. $api.dom("#pol").getElementsByTagName('input')[0].value="";
  437. $api.dom("#pod").getElementsByTagName('input')[0].value="";
  438. $api.dom("#typenameVal").value="";
  439. // $api.dom("#scheduleVal").value="";
  440. $api.dom(".capacityFn").onclick=function () {
  441. showBox(this.getElementsByTagName("input")[0],unit,true);
  442. }
  443. $api.dom("#cyr").onclick=function () {
  444. showBox(this.getElementsByTagName("input")[0],JSON.parse(name),true);
  445. }
  446. // $api.dom(".expenseFn").onclick=function () {
  447. // showBox(this.getElementsByTagName("input")[0],money,true);
  448. // }
  449. }
  450. }(navLiNum)
  451. }
  452. sureBtn.onclick=function () {
  453. if(ifClick) return;
  454. api.toast({
  455. msg: languages.issueDetails.remind14+'...',
  456. duration: 2000,
  457. location: 'bottom'
  458. });
  459. ifClick=true;
  460. var postArr=[];
  461. if(check($api.dom("#pol").getElementsByTagName("input")[0].value,"null",languages.issueDetails.remind15)) return;
  462. if(check($api.dom("#pod").getElementsByTagName("input")[0].value,"null",languages.issueDetails.remind16)) return;
  463. if(check($api.dom("#cyrVal").value,"null",languages.issueDetails.remind17)) return;
  464. if(check($api.dom("#time").getElementsByTagName("input")[0].value,"num",languages.issueDetails.remind18)) return;
  465. if(check($api.dom("#time").getElementsByTagName("input")[1].value||1,"hour",languages.issueDetails.remind19)) return;
  466. if(check($api.dom("#jgrq").getElementsByTagName("input")[0].value,"null",languages.issueDetails.remind20)) return;
  467. if(check($api.dom("#lgrq").getElementsByTagName("input")[0].value,"null",languages.issueDetails.remind21)) return;
  468. if(check($api.dom("#yxrq").getElementsByTagName("input")[0].value,"null",languages.issueDetails.remind22)) return;
  469. if(check($api.dom("#bz").getElementsByTagName("textarea")[0].value||"1","text",languages.issueDetails.remind23)) return;
  470. var locData={
  471. id:api.pageParam.id,
  472. transeTypeId:issueType,
  473. pol:$api.dom("#pol").getElementsByTagName("input")[0].getAttribute("rel"),
  474. pod:$api.dom("#pod").getElementsByTagName("input")[0].getAttribute("rel"),
  475. commoncarrierId:$api.dom("#cyr").getElementsByTagName("input")[0].getAttribute("rel"),
  476. nameOfboard:$api.dom("#typename").getElementsByTagName("input")[0].value
  477. }
  478. var price=[],child=[];
  479. var capacityLiDiv=$api.domAll(".capacityLiDiv");
  480. for(var i=0,len=capacityLiDiv.length;i<len-1;i++){
  481. if(check(capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[0].value,"num",languages.issueDetails.remind24)) return;
  482. if(check(capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),"null",languages.issueDetails.remind25)) return;
  483. if(capacityLiDiv[i].getAttribute("rel")&&capacityLiDiv[i].getAttribute("rel")!="{{capacityId}}"){
  484. price[i]={
  485. id:capacityLiDiv[i].getAttribute("rel"),
  486. isDirect:"直达",
  487. // scheduled:$api.dom("#schedule").getElementsByTagName("input")[0].value,
  488. dateFrom:selTime.dateFrom,
  489. dateTo:selTime.dateTo,
  490. dateOfEndGate:$api.dom("#jgrq").getElementsByTagName("input")[0].value,
  491. dateOfStart:$api.dom("#lgrq").getElementsByTagName("input")[0].value,
  492. timeSpendDay:$api.dom("#time").getElementsByTagName("input")[0].value,
  493. timeSpendHour:$api.dom("#time").getElementsByTagName("input")[1].value==""?0:$api.dom("#time").getElementsByTagName("input")[1].value,
  494. remark:$api.dom("#bz").getElementsByTagName("textarea")[0].value||languages.all.list36,
  495. transportCapacity:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[0].value,
  496. transportCapacityUnion:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),
  497. child:[]
  498. };
  499. for(var j=0;j<capacityLiDiv[i].getElementsByClassName("expense").length;j++){
  500. child[j]={};
  501. if(check(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[0].value,"price",languages.issueDetails.remind26)) return;
  502. if(check(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[1].getAttribute("rel"),"null",languages.issueDetails.remind25)) return;
  503. if(capacityLiDiv[i].getElementsByClassName("expense")[j].getAttribute("rel")&&capacityLiDiv[i].getElementsByClassName("expense")[j].getAttribute("rel")!="{{expenseId}}"){
  504. child[j]={
  505. id:capacityLiDiv[i].getElementsByClassName("expense")[j].getAttribute("rel"),
  506. price:(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[0].value-0).toFixed(2),
  507. currencyId:capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[1].getAttribute("rel"),
  508. currencyUnion:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),
  509. additionalPrice:$api.dom("#subjoin").getElementsByTagName("input")[0].value
  510. };
  511. }else {
  512. child[j]={
  513. price:(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[0].value-0).toFixed(2),
  514. currencyId:capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[1].getAttribute("rel"),
  515. currencyUnion:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),
  516. additionalPrice:$api.dom("#subjoin").getElementsByTagName("input")[0].value
  517. };
  518. }
  519. }
  520. }else {
  521. price[i]={
  522. isDirect:"直达",
  523. // scheduled:$api.dom("#schedule").getElementsByTagName("input")[0].value,
  524. dateFrom:selTime.dateFrom,
  525. dateTo:selTime.dateTo,
  526. dateOfEndGate:$api.dom("#jgrq").getElementsByTagName("input")[0].value,
  527. dateOfStart:$api.dom("#lgrq").getElementsByTagName("input")[0].value,
  528. timeSpendDay:$api.dom("#time").getElementsByTagName("input")[0].value,
  529. timeSpendHour:$api.dom("#time").getElementsByTagName("input")[1].value==""?0:$api.dom("#time").getElementsByTagName("input")[1].value,
  530. remark:$api.dom("#bz").getElementsByTagName("textarea")[0].value||languages.all.list36,
  531. transportCapacity:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[0].value,
  532. transportCapacityUnion:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),
  533. child:[]
  534. };
  535. for(var j=0;j<capacityLiDiv[i].getElementsByClassName("expense").length;j++){
  536. child[j]={};
  537. if(check(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[0].value,"price",languages.issueDetails.remind26)) return;
  538. if(check(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[1].getAttribute("rel"),"null",languages.issueDetails.remind25)) return;
  539. child[j]={
  540. price:(capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[0].value-0).toFixed(2),
  541. currencyId:capacityLiDiv[i].getElementsByClassName("expense")[j].getElementsByTagName("input")[1].getAttribute("rel"),
  542. currencyUnion:capacityLiDiv[i].getElementsByClassName("capacity")[0].getElementsByTagName("input")[1].getAttribute("rel"),
  543. additionalPrice:$api.dom("#subjoin").getElementsByTagName("input")[0].value
  544. };
  545. }
  546. }
  547. price[i].child=child;
  548. child=[]
  549. }
  550. postArr[0]=locData;
  551. postArr[1]=price;
  552. api.ajax({
  553. url: pageUrl+"Price/edit_price",
  554. method: 'post',
  555. timeout: 30,
  556. dataType: 'json',
  557. returnAll: false,
  558. headers:{
  559. "content-type":"application/json"
  560. },
  561. data: {
  562. body:postArr
  563. }
  564. }, function (ret, err) {
  565. var arr=ret.data.split(""),remind=null;
  566. arr[1]==0&&arr[2]==0?remind=languages.all.list46:remind=null;
  567. api.toast({
  568. msg: remind||ret.message,
  569. duration: 2000,
  570. location: 'bottom'
  571. });
  572. if(ret.status=="200"){
  573. api.sendEvent({
  574. name: api.pageParam.reloadName,
  575. extra: {key1: 'value', key2: 'value'}
  576. });
  577. api.toast({
  578. msg: languages.all.list45,
  579. duration: 2000,
  580. location: 'bottom'
  581. });
  582. setTimeout(function () {
  583. api.closeWin();
  584. },500)
  585. }else {
  586. ifClick=false;
  587. }
  588. })
  589. }
  590. api.addEventListener({
  591. name:'keyback'
  592. },function(ret, err){
  593. toBack()
  594. });
  595. function toBack() {
  596. api.closeWin();
  597. }
  598. function showTime(that,data,Tit,col,activeTime) {
  599. var UIActionSelector = api.require('UIActionSelector'),thisCol=3;
  600. UIActionSelector.open({
  601. datas: data,
  602. layout: {
  603. row: 5,
  604. col: col||thisCol,
  605. height: 30,
  606. size: 12,
  607. sizeActive: 14,
  608. rowSpacing: 5,
  609. colSpacing: 10,
  610. maskBg: 'rgba(0,0,0,0.2)',
  611. bg: '#fff',
  612. color: '#e0e0e0',
  613. colorActive: '#838383',
  614. colorSelected: '#838383'
  615. },
  616. actives:activeTime,
  617. animation: true,
  618. cancel: {
  619. text:"",
  620. w: 60,
  621. h: 30,
  622. bg: 'widget://images/cancel.png',
  623. bgActive: 'widget://images/cancel.png'
  624. },
  625. ok: {
  626. text:"",
  627. w: 60,
  628. h: 30,
  629. bg: 'widget://images/finish.png',
  630. bgActive: 'widget://images/finish.png'
  631. },
  632. title: {
  633. text:Tit,
  634. size: 15,
  635. h: 44,
  636. bg: '#efefef'
  637. }
  638. }, function(ret, err) {
  639. if (ret) {
  640. if(ret.eventType=="ok"){
  641. var val=ret.level1+"-"+ret.level2+"-"+ret.level3+" 00:00:00";
  642. var time="";
  643. if(!timedata.year||timedata.year==""){
  644. time=ret.level1+"."+ret.level2+"."+ret.level3;
  645. timedata.year=time;
  646. selTime.dateFrom=val;
  647. selTime.dateTo="";
  648. var now=new Date(),arr=[];
  649. arr[0]=0;
  650. arr[1]=now.getMonth()+1;
  651. arr[2]=now.getDate()-1;
  652. showTime(that,timeJson,languages.issueDetails.remind27,undefined,arr);
  653. }else {
  654. // time=checkTime(ret.level1.replace("时",""))+":"+checkTime(ret.level2.replace("分",""));
  655. time=ret.level1+"."+ret.level2+"."+ret.level3;
  656. if(new Date(timedata.day).getTime()-new Date(timedata.year).getTime() <=0){
  657. api.toast({
  658. msg: languages.issueDetails.remind28,
  659. duration: 2000,
  660. location: 'bottom'
  661. });
  662. }else {
  663. timedata.day=time;
  664. selTime.dateTo=val;
  665. that.getElementsByTagName("input")[0].value=timedata.year+"-"+timedata.day;
  666. }
  667. timedata={};
  668. }
  669. }else {
  670. timedata={};
  671. if(!selTime.dateTo||selTime.dateTo==""){
  672. selTime={
  673. dateFrom:"",
  674. dateTo:""
  675. }
  676. }
  677. }
  678. } else {
  679. api.toast({
  680. msg: languages.issueDetails.remind29,
  681. duration: 2000,
  682. location: 'bottom'
  683. });
  684. }
  685. });
  686. }
  687. function checkTime(val) {
  688. var val=val;
  689. if((val+"").length==1){
  690. val="0"+val;
  691. }
  692. return val
  693. }
  694. }
  695. function popups(val,fn) {
  696. var dialogBox = api.require('dialogBox');
  697. dialogBox.alert({
  698. texts: {
  699. title: languages.all.list18,
  700. content: val,
  701. leftBtnTitle: languages.all.list2,
  702. rightBtnTitle: languages.all.list18
  703. },
  704. styles: {
  705. bg: '#fff',
  706. w: 300,
  707. title: {
  708. marginT: 20,
  709. icon: 'widget://res/gou.png',
  710. iconSize: 40,
  711. titleSize: 13,
  712. titleColor: '#000'
  713. },
  714. content: {
  715. color: '#000',
  716. size: 16
  717. },
  718. left: {
  719. marginB: 0,
  720. marginL: 0,
  721. w: 150,
  722. h: 60,
  723. corner: 2,
  724. bg: '#f9f9f9',
  725. color: '#818181',
  726. size: 12
  727. },
  728. right: {
  729. marginB: 0,
  730. marginL: 0,
  731. w: 150,
  732. h:60,
  733. corner: 2,
  734. bg: '#51c4d4',
  735. color: '#fff',
  736. size: 12
  737. }
  738. }
  739. }, function(ret) {
  740. fn(ret,dialogBox)
  741. });
  742. }
  743. function addExpense(that,expenseModel) {
  744. that.parentNode.parentNode.parentNode.getElementsByClassName("expenseDiv")[0].insertAdjacentHTML("beforeend",expenseModel);
  745. addExpenseFN();
  746. }
  747. function addExpenseFN() {
  748. var expenseFn=$api.domAll(".expenseFn");
  749. for(var j=0,len=expenseFn.length;j<len;j++){
  750. !function (i) {
  751. expenseFn[i].onclick=function () {
  752. showBox(this.getElementsByTagName("input")[0],money,true);
  753. }
  754. }(j)
  755. }
  756. }
  757. function addCapacity(that,capacityModel) {
  758. capacityDiv.insertAdjacentHTML("beforeend",capacityModel);
  759. addCapacityFn();
  760. }
  761. function addCapacityFn() {
  762. var capacityFn=$api.domAll(".capacityFn"),expenseFn=$api.domAll(".expenseFn");
  763. for(var i=0,len=capacityFn.length;i<len;i++){
  764. !function (i) {
  765. capacityFn[i].onclick=function () {
  766. showBox(this.getElementsByTagName("input")[0],unit,true);
  767. }
  768. }(i)
  769. }
  770. for(var j=0,len=expenseFn.length;j<len;j++){
  771. !function (i) {
  772. expenseFn[i].onclick=function () {
  773. showBox(this.getElementsByTagName("input")[0],money,true);
  774. }
  775. }(j)
  776. }
  777. }
  778. function delCapacity(that) {
  779. popups(languages.all.list22,function (ret,dialogBox) {
  780. if(ret.eventType == 'right') {
  781. api.showProgress({
  782. title: languages.all.list21+'...',
  783. text: languages.all.list25+'...',
  784. modal: true
  785. });
  786. var id={id:that.parentNode.parentNode.parentNode.getAttribute("rel")};
  787. api.ajax({
  788. url: pageUrl+'Price/del_pricedetail',
  789. method: 'post',
  790. timeout: 30,
  791. headers:{
  792. "content-type":"application/json"
  793. },
  794. dataType: 'json',
  795. returnAll: false,
  796. data: {
  797. body: id
  798. }
  799. }, function (ret, err) {
  800. api.hideProgress();
  801. if(ret.status=="200"){
  802. api.toast({
  803. msg: languages.all.list23,
  804. duration: 2000,
  805. location: 'bottom'
  806. });
  807. that.parentNode.parentNode.parentNode.parentNode.removeChild(that.parentNode.parentNode.parentNode);
  808. }else {
  809. that.parentNode.parentNode.parentNode.parentNode.removeChild(that.parentNode.parentNode.parentNode);
  810. }
  811. });
  812. dialogBox.close({
  813. dialogName: 'alert'
  814. });
  815. }else if (ret.eventType == 'left') {
  816. dialogBox.close({
  817. dialogName: 'alert'
  818. });
  819. }
  820. })
  821. }
  822. function showBox(that,data,bl) {
  823. var UIMultiSelector = api.require('UIMultiSelector');
  824. var height=40;
  825. if(height>=api.winHeight){
  826. height=api.winHeight
  827. }else {
  828. if(data.length>4){
  829. height=data.length*40
  830. }else {
  831. height=data.length*40+80
  832. }
  833. }
  834. if(data.length==0) {
  835. api.toast({
  836. msg: languages.all.list21,
  837. duration: 2000,
  838. location: 'bottom'
  839. });
  840. return;
  841. }
  842. UIMultiSelector.open({
  843. rect: {
  844. h: height
  845. },
  846. text: {
  847. title: '',
  848. leftBtn: '',
  849. rightBtn: '',
  850. selectAll: languages.all.list20
  851. },
  852. max: 0,
  853. singleSelection:bl,
  854. styles: {
  855. mask: 'rgba(0,0,0,0.2)',
  856. title: {
  857. bg: '#efefef',
  858. h: 44
  859. },
  860. leftButton: {
  861. w: 60,
  862. h: 30,
  863. marginT: 5,
  864. marginL: 8,
  865. bg:"widget://images/cancel.png"
  866. },
  867. rightButton: {
  868. w: 60,
  869. h: 30,
  870. marginT: 5,
  871. marginR: 8,
  872. bg:"widget://images/finish.png"
  873. },
  874. item: {
  875. h: 40,
  876. bg: '#fff',
  877. bgActive: '#fff',
  878. bgHighlight: '#fff',
  879. color: '#818181',
  880. active: '#818181',
  881. highlight: '#818181',
  882. size: 14,
  883. lineColor: '#efefef',
  884. textAlign: 'left',
  885. marginR:5
  886. },
  887. icon: {
  888. w: 20,
  889. h: 20,
  890. marginT: 11,
  891. marginH: 8,
  892. bg: 'widget://images/select.png',
  893. bgActive: 'widget://images/selected.png',
  894. align: 'left'
  895. }
  896. },
  897. animation: true,
  898. items: data
  899. }, function(ret, err) {
  900. if (ret) {
  901. if(ret.eventType=="clickRight"){
  902. var nameStr="",arr=[],arr2=[],tool=[];
  903. try{
  904. for(var i in ret.items){
  905. arr[i]={
  906. type:ret.items[i].id,
  907. name:ret.items[i].text
  908. }
  909. arr2.push(ret.items[i].id);
  910. if(i==ret.items.length-1||ret.items.length==1){
  911. nameStr+=ret.items[i].text;
  912. }else {
  913. nameStr+=ret.items[i].text+"、";
  914. }
  915. }
  916. console.log(that.className)
  917. if(~that.className.indexOf("list23Input")){
  918. var input=document.getElementsByClassName("list23Input");
  919. for(var i=0,len=input.length;i<len;i++){
  920. input[i].value=nameStr;
  921. input[i].setAttribute("rel",arr2[0]);
  922. }
  923. }else {
  924. that.value=nameStr;
  925. that.setAttribute("rel",arr2[0]);
  926. }
  927. if(that.parentNode.parentNode.id=="cyr"){
  928. if(ret.items[0]['tool']["boardNameCn"]){
  929. $api.setStorage("tool",[{id:0,text:ret.items[0]['tool']["boardNameCn"],status:'normal'}]);
  930. }else {
  931. $api.setStorage("tool",[{id:0,text:ret.items[0].text,status:'normal'}]);
  932. }
  933. $api.dom("#typename").onclick=function () {
  934. showBox(this.getElementsByTagName("input")[0],$api.getStorage("tool"),true)
  935. }
  936. }
  937. }catch (e){
  938. nameStr="";
  939. }
  940. UIMultiSelector.close();
  941. }else if(ret.eventType=="clickLeft"){
  942. UIMultiSelector.close();
  943. }
  944. } else {
  945. }
  946. });
  947. }
  948. function check(val,type,txt) {
  949. switch (type){
  950. case "null":
  951. if(!val){
  952. remindTxt(txt);
  953. return true;
  954. }
  955. break;
  956. case "num":
  957. if(val&&!(/^\d+$/g.test(val))){
  958. remindTxt(txt);
  959. return true;
  960. }else {
  961. var hour=$api.dom("#needHour").value;
  962. if((!val||val==0)&&!hour){
  963. api.toast({
  964. msg: languages.issueDetails.remind30,
  965. duration: 2000,
  966. location: 'bottom'
  967. });
  968. ifClick=false;
  969. return true;
  970. }
  971. }
  972. break;
  973. case "price":
  974. if(!val||!(/(^[\\+\\-]?[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/.test(val))){
  975. remindTxt(txt);
  976. return true;
  977. }
  978. break;
  979. case "hour":
  980. if(!(/^(([0-9])|(1\d)|(2[0-3]))$/.test(val))){
  981. remindTxt(txt);
  982. return true;
  983. }
  984. break;
  985. case "text":
  986. if(val.length>25){
  987. remindTxt(txt);
  988. return true;
  989. }
  990. break;
  991. }
  992. }
  993. function remindTxt(txt) {
  994. api.toast({
  995. msg: txt,
  996. duration: 2000,
  997. location: 'bottom'
  998. });
  999. ifClick=false;
  1000. }
  1001. function changeType(data,id){
  1002. var div=$api.dom(id),input= $api.dom(div, 'input'),bl=false;
  1003. switch (id){
  1004. case "#pod":
  1005. if($api.dom("#pol").getElementsByTagName('input')[0].getAttribute("rel")==data['id']){
  1006. bl=true;
  1007. }
  1008. break;
  1009. case "#pol":
  1010. if($api.dom("#pod").getElementsByTagName('input')[0].getAttribute("rel")==data['id']){
  1011. bl=true;
  1012. }
  1013. break;
  1014. }
  1015. if(bl){
  1016. api.toast({
  1017. msg: languages.issueDetails.remind31,
  1018. duration: 2000,
  1019. location: 'bottom'
  1020. });
  1021. return;
  1022. }
  1023. input.value=data['nameCn'];
  1024. input.setAttribute("rel",data['id']);
  1025. }
  1026. </script>
  1027. </body>
  1028. </html>