fullorder_edit.html 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243
  1. {Template header}
  2. <style type="text/css">
  3. .calendar{POSITION:absolute;}
  4. .datatext_bak{
  5. border-top: 0px #ccc solid;
  6. }
  7. .data_bak{
  8. width: 100%;
  9. border: 1px #ccc solid;
  10. }
  11. .isjiaji{
  12. color:red;
  13. font-size:20px;
  14. font-weight: bold;
  15. padding:10px
  16. }
  17. .isjiaji_hid{
  18. display: none;
  19. }
  20. </style>
  21. <body>
  22. <div class="warp">
  23. <div class="packing">
  24. <div class="control">
  25. <a href="javascript:void(0);" class="exptj">添 加</a>
  26. <a href="javascript:void(0);" class="expxg">修 改</a>
  27. <a href="javascript:void(0);" class="expsc">删 除</a>
  28. <!-- {if $thfpdata != ''}
  29. <a href="javascript:void(0);" class="ckthfpdata">查看替换内容</a>
  30. {/if} -->
  31. </div>
  32. <div id="datatext">
  33. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  34. <tr>
  35. <td>商品名称</td>
  36. <td>数量</td>
  37. <td class="none">单价</td>
  38. <td class="none">总价</td>
  39. <td class="none">币种</td>
  40. <td class="none"></td>
  41. <td class="none"></td>
  42. <td class="none"></td>
  43. <td class="none"></td>
  44. <td class="none"></td>
  45. <td>占单</td>
  46. <td>操作</td>
  47. </tr>
  48. </table>
  49. </div>
  50. <table class="datatext data" border="0" style="border-collapse:collapse;">
  51. {loop $fpdata as $val}
  52. <tr data-list="{$val['0']}">
  53. <td>{$val['1']}</td>
  54. <td>{$val['2']}</td>
  55. <td class="none">{$val['3']}</td>
  56. <td class="none">{$val['4']}</td>
  57. <td class="none">CNY</td>
  58. <td class="none">{$val['5']}</td>
  59. <td class="none">{$val['6']}</td>
  60. <td class="none">{$val['7']}</td>
  61. <td class="none">{$val['8']}</td>
  62. <td class="none val9">{if isset($val['9'])}{$val['9']}{else}0{/if}</td>
  63. <td {if isset($val['zd']) && $fullorder['type'] == 13}style="color:#f00"{/if}>{if isset($val['zd'])}{$val['zd']}{/if}</td>
  64. <td class="czzd">{if $val['9'] != 'DNOTO'}<font class="jzzd">禁止占单</font>{else}<font class="yxzd">允许占单<font>{/if}</td>
  65. </tr>
  66. {/loop}
  67. </table>
  68. {if $thfpdata != ''}
  69. <table class="thfpdata data" border="0" style="border-collapse:collapse;margin-top:30px;display: none;">
  70. <tr style="background: #ececec;">
  71. <td>替换详情</td>
  72. <td>数量</td>
  73. <td>说明</td>
  74. </tr>
  75. <tr>
  76. {loop $thfpdata as $val}
  77. <tr data-tid="{$val['3']}">
  78. <td>{$val['0']}</td>
  79. <td>{$val['1']}</td>
  80. <td>{$val['2']}</td>
  81. </tr>
  82. {/loop}
  83. </tr>
  84. </table>
  85. {/if}
  86. </div>
  87. <ul class="setting">
  88. <div class="need">
  89. <li>
  90. <em>发货仓库:</em>
  91. <select name="warehouse" id="warehouse" class="select class">
  92. {loop warehouse(100) as $val}
  93. <option value="{$val['id']}" {if $fullorder['type'] == $val['id']}selected="selected"{/if} data-e="{$val['express']}">{$val['title']}</option>
  94. {/loop}</select>
  95. </li>
  96. <!-- 独立站使用下单时间,平台使用付款时间 -->
  97. {if $is == 1}
  98. <li>
  99. <em>订单时间:</em>
  100. <b>{$dtime}</b>
  101. </li>
  102. {else}
  103. <li>
  104. <em>付款时间:</em>
  105. <b>{date('Y-m-d H:i:s',$fullorder['buytime'])}</b>
  106. </li>
  107. {/if}
  108. <li class="none">
  109. <em>结算币种:</em>
  110. <select name="currency" id="currency" class="select class">
  111. {loop typeclass(30) as $val}
  112. <option value="{$val['id']}" {if $fullorder['currency'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  113. {/loop}
  114. </select>
  115. </li>
  116. <li>
  117. <em>订单号:</em>
  118. <b class="orderinfo">{$fullorder['orderinfo']}</b>
  119. </li>
  120. <li>
  121. <em>编号:</em>
  122. <b>{$fullorder['number']}</b>
  123. </li>
  124. <li>
  125. <em>订单状态:</em>
  126. {if ($fullorder['state'] == 214 || $fullorder['state'] == 217) && $vip != '1'}
  127. {loop typeclass(29,2) as $val}
  128. {if ($val['id'] == $fullorder['state'])}
  129. <b>{$val['spare']}</b>
  130. {/if}
  131. {/loop}
  132. {else}
  133. <select name="state" class="select class">
  134. {loop typeclass(29,2) as $val}
  135. <option value="{$val['id']}" {if $fullorder['state'] == $val['id']}selected="selected"{/if}>{$val['spare']}</option>
  136. {/loop}
  137. <option value="283" {if $fullorder['state'] == '283' || $fullorder['state'] == '0'}selected="selected"{/if}>null</option>
  138. </select>
  139. {/if}
  140. </li>
  141. <li>
  142. <em>资金状态:</em>
  143. <select name="capital" class="select class">
  144. <option value="1" {if $fullorder['capital'] == 1}selected="selected"{/if}>暂未支付</option>
  145. <option value="2" {if $fullorder['capital'] == 2}selected="selected"{/if}>部分支付</option>
  146. <option value="3" {if $fullorder['capital'] == 3}selected="selected"{/if}>全部支付</option>
  147. </select>
  148. </li>
  149. <li class="lengthtwo">
  150. <em>丢件险:</em>
  151. <b>{$fullorder['insurance']}</b>
  152. </li>
  153. <!-- <li class="lengththree">
  154. <em>收款金额:</em>
  155. <input name="skje" class="must currencymoney" value="{$fullorder['skje']}" type="text">
  156. <div class="none"><b class="currencymoney budget">{$fullorder['budget']}</b></div>
  157. </li> -->
  158. <li class="lengthtwo">
  159. <em>预估到帐金额:</em>
  160. <b class="currencymoney budget">{$fullorder['budget']}</b>
  161. </li>
  162. <!--
  163. <li class="lengththree">
  164. <em>运费:</em>
  165. <input name="freight" class="must currencymoney" value="{$fullorder['freight']}" type="text"> <font class="currency">CNY</font>
  166. </li>
  167. <li class="lengthfour">
  168. <em>物流金额:</em>
  169. <input name="expressmoney" class="must currencymoney" value="{$fullorder['expressmoney']}" type="text">
  170. </li>
  171. -->
  172. <li class="lengththree">
  173. <em>补/退原额:</em>
  174. <input name="refundy" class="must currencymoney" value="{$fullorder['refundy']}" type="text">
  175. </li>
  176. <li class="lengththree">
  177. <em>补/退净额:</em>
  178. <input name="refundj" class="must currencymoney" value="{$fullorder['refundj']}" type="text">
  179. </li>
  180. <li class="lengththree">
  181. <em>订单金额:</em>
  182. {if $power ==1}
  183. <input name="shouldmoney" class="must currencymoney" value="{$fullorder['shouldmoney']}" type="text" {if $fullorder['shouldmoney'] > 499}style="color:#F00"{/if}>
  184. {else}
  185. <input name="shouldmoney" class="must currencymoney" value="{$fullorder['shouldmoney']}" type="text" readonly style="background-color: #ebebe4;{if $fullorder['shouldmoney'] > 499}color:#F00{/if}">
  186. {/if}
  187. </li>
  188. <div class="refund {if $fullorder['refundy'] == 0}none{/if}">
  189. <li>
  190. <em>日 期:</em>
  191. <input name="rtime" id="refundtime" value="{$fullorder['rtime']!=0?date('Y-m-d',$fullorder['rtime']):''}" type="text">
  192. </li>
  193. <li>
  194. <em>交易号:</em>
  195. <input name="rpaypal" value="{$fullorder['rpaypal']}" type="text">
  196. </li>
  197. <li class="length">
  198. <em>原 因:</em>
  199. <textarea name="rtext" style="height:46px;">{$fullorder['rtext']}</textarea>
  200. </li>
  201. </div>
  202. <input type="hidden" id="check_fpdata" value="{$fullorder['fpdata']}">
  203. {if $is == 1}
  204. <li class="length">
  205. <em>产品标题:</em>
  206. <b>{$product}</b>
  207. </li>
  208. {if $fullorder['source'] != 1}
  209. <li class="length">
  210. <em>商品属性:</em>
  211. <b>{$fullorder['parameter']}</b>
  212. </li>
  213. <li class="length">
  214. <em>SKU:</em>
  215. <b>{$fullorder['issku']}</b>
  216. </li>
  217. {/if}
  218. <li>
  219. <em>Subtotal:</em>
  220. <b >{$sub_total}</b>
  221. </li>
  222. <li>
  223. <em>Row Total:</em>
  224. <b >{$row_total}</b>
  225. </li>
  226. <li class="lengththree">
  227. <em >Quantity:</em>
  228. <b {if $qc > 0}style="color:#F00"{/if}>{$fullorder['quantity']}</b>
  229. </li>
  230. <li class="lengththree">
  231. <em style="width: 80px;">转单号:</em>
  232. <input style="width: 60%;" name="waybillid" value="{$fullorder['waybillid']}" type="text">
  233. </li>
  234. <li class="lengththree">
  235. <em style="width: 80px;">运单号:</em>
  236. <input style="width: 60%;" name="waybill" value="{$fullorder['waybill']}" type="text">
  237. </li>
  238. <li class="length">
  239. <em>客户留言:</em>
  240. <b style="color:#F00">{$fullorder['clientremarks']}</b>
  241. </li>
  242. {else}
  243. <li class="length">
  244. <em>运单号:</em>
  245. <input name="waybill" value="{$fullorder['waybill']}" type="text">
  246. </li>
  247. {/if}
  248. <li class="length remark">
  249. <em>订单备注:</em>
  250. <textarea name="orderremarks" style="height:25px;">{$fullorder['orderremarks']}</textarea>
  251. </li>
  252. <li class="length remark">
  253. <em>仓库品名:</em>
  254. <textarea name="shipremarks">{$fullorder['shipremarks']}</textarea>
  255. </li>
  256. <li class="length remark">
  257. <em>是否加急:</em>
  258. <select id="is_jiaji_id" name="is_jiaji" class="select" >
  259. <option value="0" {if $fullorder['is_jiaji'] == 0}selected="selected"{/if}>否</option>
  260. <option value="1" {if $fullorder['is_jiaji'] == 1}selected="selected"{/if}>是</option>
  261. </select>
  262. <span id="isjiaji_flag" class="isjiaji {if $fullorder['is_jiaji'] == 0} isjiaji_hid{/if}">*</span>
  263. </li>
  264. <li style="position:relative;overflow:visible">
  265. <em>交易号:</em>
  266. {if $power ==1 && $fullorder['source'] == 1}<input name="paypal" value="{$fullorder['paypal']}" type="text" {$klarnacolor}>{else}<b {$klarnacolor}>{$fullorder['paypal']}{/if}</b>
  267. {if $fullorder['pay'] == 22 || $fullorder['pay'] == 23 || $fullorder['pay'] == 26 || $fullorder['pay'] == 27 || $fullorder['pay'] == 28 || $fullorder['pay'] == 29 || $fullorder['pay'] == 1211 || $fullorder['pay'] == 7}
  268. {if $klarnadata == '' && ($fullorder['pay'] == 22 || $fullorder['pay'] == 23 || $fullorder['pay'] == 26 || $fullorder['pay'] == 27 || $fullorder['pay'] == 28 || $fullorder['pay'] == 29 || $fullorder['pay'] == 1211 || $fullorder['pay'] == 7)}
  269. <i class="fa fa-random fa-rotate-90" id="hqklarna" style="position:absolute;z-index:1;right:60px;top:8px;"></i>
  270. {else}
  271. <i class="fa fa-plus" id="klarnadata" style="position:absolute;z-index:1;right:60px;top:8px;"></i>
  272. {/if}
  273. {/if}
  274. </li>
  275. <li class="lengthfour">
  276. <em>支付方式:</em>
  277. {if $vip == '1' && $fullorder['source'] == 1}
  278. <select name="pay" class="select class">
  279. {loop typeclass(4,3,100) as $val}
  280. <option value="{$val['id']}" {if $fullorder['pay'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  281. {/loop}</select>
  282. {else}
  283. <b>{loop typeclass(4,3,100) as $val}{if $fullorder['pay'] == $val['id']}{$val['title']}{/if}{/loop}</b>
  284. {/if}
  285. </li>
  286. <li class="lengthfour">
  287. <em>卖家保障:</em>
  288. <b style="width:38%;color:#F00">{$fullorder['guarantee']}</b>
  289. </li>
  290. {if isset($klarnadata[1]) && $fullorder['pay'] == 23}
  291. <div class="klarnadata none">
  292. <!--
  293. <li class="length">
  294. <em>Payment:</em>
  295. <b>{$klarnadata[1]}</b>
  296. </li>
  297. -->
  298. <li class="length">
  299. <em>billing:</em>
  300. <b>{$klarnadata[2]}</b>
  301. </li>
  302. <li class="length">
  303. <em>shipping:</em>
  304. <b{if str_replace(' ','',strtoupper($klarnadata['color'])) != str_replace(' ','',strtoupper($fullorder['saddress']))} style="color:#f00"{/if}>{$klarnadata[3]}</b>
  305. </li>
  306. </div>
  307. {/if}
  308. {if isset($klarnadata[1]) && ($fullorder['pay'] == 26 || $fullorder['pay'] == 27 || $fullorder['pay'] == 28 || $fullorder['pay'] == 29)}
  309. <div class="klarnadata none">
  310. <li class="length">
  311. <em>Email:</em>
  312. <b>{$klarnadata[0]}</b>
  313. </li>
  314. <li class="length">
  315. <em>billing:</em>
  316. <b>{$klarnadata[1]}</b>
  317. </li>
  318. <li class="length">
  319. <em>shipping:</em>
  320. <b>{$klarnadata[2]}</b>
  321. </li>
  322. </div>
  323. {/if}
  324. {if isset($klarnadata[1]) && ($fullorder['pay'] == 22 || $fullorder['pay'] == 7)}
  325. <div class="klarnadata none">
  326. <li class="length">
  327. <em>name:</em>
  328. <b {if str_replace(' ','',strtoupper($klarnadata[1]['name'])) != str_replace(' ','',strtoupper($fullorder['sname'])) || str_replace(' ','',strtoupper($klarnadata[1]['name'])) != str_replace(' ','',strtoupper($fullorder['bname']))}style="color:#f00"{/if}>{$klarnadata[1]['name']}</b>
  329. </li>
  330. <li class="length">
  331. <em>address:</em>
  332. <b {if str_replace(array(' ','.',','),'',strtoupper($fullorder['saddress'])) != str_replace(array(' ','.',','),'',strtoupper($klarnadata[1]['address']))}style="color:#f00"{/if}>{$klarnadata[1]['address']}</b>
  333. </li>
  334. <li class="length">
  335. <em>email:</em>
  336. <b {if strtoupper($klarnadata[1]['email']) != strtoupper($fullorder['email'])}style="color:#f00"{/if}>{$klarnadata[1]['email']}</b>
  337. </li>
  338. </div>
  339. {/if}
  340. {if isset($klarnadata[1]) && $fullorder['pay'] == 1211}
  341. <div class="klarnadata none">
  342. <li class="length">
  343. <em>Stripe Amount:</em>
  344. <b>{$klarnadata[1]['shouldmoney']}</b>
  345. </li>
  346. </div>
  347. {/if}
  348. <li>
  349. <em>Bill Name:</em>
  350. <b>{$fullorder['bname']}</b>
  351. </li>
  352. <li>
  353. <em>Ship Name:</em>
  354. <b>{$fullorder['sname']}</b>
  355. </li>
  356. <li class="length">
  357. <em>Bill Address:</em>
  358. <b {if strcasecmp($fullorder['baddress'],$fullorder['saddress']) != 0}style="color:#09F"{/if}>{$fullorder['baddress']}</b>
  359. </li>
  360. <li class="length">
  361. <em>Ship Address:</em>
  362. <b>{$fullorder['saddress']}</b>
  363. </li>
  364. <li>
  365. <em>邮箱:</em>
  366. {if empty($fullorder['send_email'])}
  367. <input name="send_email" value="{$fullorder['email'] }" type="text">
  368. {else}
  369. <input name="send_email" value="{$fullorder['send_email']}" type="text">
  370. {/if}
  371. <input type="hidden" name="email" value="{$fullorder['email']}" >
  372. </li>
  373. <li>
  374. <em>国家:</em>
  375. <select name="country" class="select class">
  376. {loop $country as $val}
  377. <option value="{$val['id']}" {if $fullorder['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
  378. {/loop}
  379. </select>
  380. </li>
  381. <li>
  382. <em>联系方式:</em>
  383. <input name="phone" class="must" value="{$fullorder['phone']}" type="text">
  384. </li>
  385. <li>
  386. <em>省州:</em>
  387. <input value="{$fullorder['province']}" name="province" type="text" {if (($fullorder['city'] == 'Newark' || $fullorder['city'] == 'Camden') && ($fullorder['province'] == 'New Jersey' || $fullorder['province'] == 'NJ')) || $fullorder['province'] == 'Jersey'}style="color:#F00"{/if}>
  388. </li>
  389. <li>
  390. <em>公司名:</em>
  391. <input name="client" value="{$fullorder['client']}" type="text">
  392. </li>
  393. <li>
  394. <em>城市:</em>
  395. <input class="must" value="{$fullorder['city']}" name="city" type="text" {if ($fullorder['city'] == 'Newark' || $fullorder['city'] == 'Camden') && ($fullorder['province'] == 'New Jersey' || $fullorder['province'] == 'NJ')}style="color:#F00"{/if}>
  396. </li>
  397. <li>
  398. <em>收货人姓名:</em>
  399. <input name="name" class="must" value="{$fullorder['name']}" type="text">
  400. </li>
  401. <li>
  402. <em>邮编:</em>
  403. <input value="{$fullorder['zipcode']}" name="zipcode" type="text">
  404. </li>
  405. {if $is == 5}
  406. <li class="length">
  407. <em>街道:</em>
  408. <input value="{$fullorder['street']}" name="street" type="text">
  409. </li>
  410. {/if}
  411. <li class="length">
  412. <em>地址2:</em>
  413. <input value="{$fullorder['address2']}" name="address2" type="text">
  414. </li>
  415. <li class="length">
  416. <em>地址1:</em>
  417. <input value="{$fullorder['address']}" name="address" type="text">
  418. </li>
  419. <li class="lengththree">
  420. <em>申报品名:</em>
  421. <select name="sbpm" class="select class" style="width:59%">
  422. {loop customsdeclaration(50) as $val}
  423. <option value="{$val['ename']}" {if $fullorder['sbpm'] == $val['ename']}selected="selected"{/if}>{$val['ename']}</option>
  424. {/loop}
  425. </select>
  426. </li>
  427. <li class="lengththree">
  428. <em>中文品名:</em>
  429. <select name="zwpm" class="select class" style="width:50%">
  430. {loop customsdeclaration(50) as $val}
  431. <option value="{$val['zname']}" {if $fullorder['zwpm'] == $val['zname']}selected="selected"{/if}>{$val['zname']}</option>
  432. {/loop}
  433. </select>
  434. </li>
  435. <li class="lengththree">
  436. <em>海关编码:</em>
  437. <select name="hgbm" class="select class">
  438. {loop customsdeclaration(50) as $val}
  439. <option value="{$val['bname']}" {if $fullorder['hgbm'] == $val['bname']}selected="selected"{/if}>{$val['bname']}</option>
  440. {/loop}
  441. </select>
  442. </li>
  443. <li class="lengththree">
  444. <em>条数:</em>
  445. <input name="ts" class="must" value="{$fullorder['ts']}" type="text">
  446. </li>
  447. <li class="lengththree">
  448. <em>单条申报价:</em>
  449. <input name="dtsbjz" class="must" value="{$fullorder['dtsbjz']}" type="text">
  450. </li>
  451. <li class="lengththree">
  452. <em>总申报价:</em>
  453. <input name="zsbjz" class="must" value="{$fullorder['zsbjz']}" type="text" readonly style="background-color: #ebebe4;">
  454. </li>
  455. <li class="lengththree">
  456. <em>总重量:</em>
  457. <input name="zzl" class="must" value="{$fullorder['zzl']}" type="text"> <font class="zzldw">{$zzhl}</font>
  458. </li>
  459. <li class="lengththree">
  460. <em>总件数:</em>
  461. <input name="zjs" class="must" value="{$fullorder['zjs']}" type="text" readonly style="background-color: #ebebe4;">
  462. </li>
  463. <li class="lengththree" style="position:relative;overflow:visible">
  464. {if $fullorder["source"] != 1}<i class="fa fa-exclamation-circle" id="method" style="position:absolute;z-index:1;left:-15px;top:8px;{if stripos($fullorder["shippingmethod"],';') !== false}color:#F66{/if}"></i>{/if}
  465. <em>快递方式:</em>
  466. <select name="express" class="select class">
  467. {loop express(100) as $val}
  468. <option value="{$val['id']}" data-sbpm="{$val['sbpm']}" data-type="{$val['type']}" {if $fullorder['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  469. {/loop}
  470. </select>
  471. <font class="expressfa"><i id="tipdata" class="fa fa-question-circle none"></i><font class="expressfa1 none"><font class="expressfa2" style="color:#903"></font></font></font>
  472. </li>
  473. <li class="lengththree">
  474. <em>打印类型:</em>
  475. <select name="printtype" class="printtype select class">
  476. {if $fullorder['type'] == 5}
  477. <option value="1" {if $fullorder['printtype'] == 1}selected="selected"{/if}>运单</option>
  478. <option value="2" {if $fullorder['printtype'] == 2}selected="selected"{/if}>发货单</option>
  479. <option value="3" {if $fullorder['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
  480. {else}
  481. <option value="2" {if $fullorder['printtype'] == 2}selected="selected"{/if}>发货单</option>
  482. <option value="1" {if $fullorder['printtype'] == 1}selected="selected"{/if}>运单</option>
  483. <option value="3" {if $fullorder['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
  484. {/if}
  485. </select>
  486. </li>
  487. <li class="none">
  488. <em>发送留言:</em>
  489. <select name="msg" class="printtype select class">
  490. <option value="1" {if $fullorder['msg'] == 1}selected="selected"{/if}>1</option>
  491. <option value="2" {if $fullorder['msg'] == 2}selected="selected"{/if}>2</option>
  492. </select>
  493. </li>
  494. <li class="lengththree">
  495. <em>审核状态:</em>
  496. <b>
  497. {if $fullorder['review'] == 1}
  498. 未送审
  499. {else if $fullorder['review'] == 2}
  500. 待审核
  501. {else if $fullorder['review'] == 3}
  502. 不通过
  503. {else if $fullorder['review'] == 4}
  504. 取消重审
  505. {else if $fullorder['review'] == 5}
  506. 审核通过
  507. {else if $fullorder['review'] == 6 && $fullorder['reviewtime']!= ''}
  508. {date('Y-m-d H:i',$fullorder['reviewtime'])}
  509. {/if}
  510. </b>
  511. </li>
  512. <li class="lengththree">
  513. <em>IOSS:</em>
  514. <select name="ioss" class="select class">
  515. <option value="" {if $fullorder['ioss'] == ''}selected="selected"{/if}>未选择</option>
  516. {loop ioss(100) as $val}
  517. <option value="{$val['ioss']}" {if $fullorder['ioss'] == $val['ioss']}selected="selected"{/if}>{$val['title']}</option>
  518. {/loop}
  519. </select>
  520. </li>
  521. <li class="lengththree">
  522. <em>购买保险:</em>
  523. {if $fullorder['print'] != 99}
  524. <input name="bx" class="must" value="{$fullorder['bx']}" type="text"> USD
  525. {else}
  526. <b>{$fullorder['bx']}</b> USD
  527. {/if}
  528. </li>
  529. <li class="lengththree">
  530. <em>是否签名:</em>
  531. {if ($fullorder['review'] < 5 || $vip == '1') && ($fullorder['express'] == 2 || $fullorder['express'] == 24 || $fullorder['express'] == 31)}
  532. {if $fullorder['express'] == 2}
  533. <select name="qm" class="printtype select class">
  534. <option value="0" {if $fullorder['qm'] == 0}selected="selected"{/if}>默认</option>
  535. <option value="1" {if $fullorder['qm'] == 1}selected="selected"{/if}>签名</option>
  536. </select>
  537. {else}
  538. <select name="qm" class="printtype select class">
  539. <option value="0" {if $fullorder['qm'] == 0}selected="selected"{/if}>默认</option>
  540. <option value="1" {if $fullorder['qm'] == 1}selected="selected"{/if}>成人签名</option>
  541. </select>
  542. {/if}
  543. {else}
  544. <select name="qm" class="printtype select class">
  545. <option value="0">无</option>
  546. </select>
  547. <!--
  548. <b>{if $fullorder['express'] != 24 && $fullorder['express'] != 31}{if $fullorder['qm'] == 0}不需要{else if $fullorder['qm'] == 1}需要{/if}{else}{if $fullorder['qm'] == 0}默认{else if $fullorder['qm'] == 1}成人签名{else if $fullorder['qm'] == 2}必须签名但可代签{/if}{/if}</b>
  549. -->
  550. {/if}
  551. </li>
  552. <!--<li class="lengththree">-->
  553. <!--<em>服务类型:</em>-->
  554. <!--{if $fullorder['print'] != 3 || ($fullorder['print'] == 3 && $vip == '1')}-->
  555. <!--<select name="js" class="printtype select class">-->
  556. <!--<option value="0" {if $fullorder['js'] == 0}selected="selected"{/if}>Ground Advantage</option>-->
  557. <!--<option value="1" {if $fullorder['js'] == 1}selected="selected"{/if}>PRIORITY</option>-->
  558. <!--<option value="2" {if $fullorder['js'] == 2}selected="selected"{/if}>EXPRESS</option>-->
  559. <!-- <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  560. <!--</select>-->
  561. <!--{else}-->
  562. <!--<b>{if $fullorder['js'] == 0}Ground Advantage{else if $fullorder['js'] == 1}PRIORITY{else if $fullorder['js'] == 2}EXPRESS{/if}</b>-->
  563. <!--{/if}-->
  564. <!--</li>-->
  565. <li class="lengththree">
  566. <em>服务类型:</em>
  567. {if $fullorder['print'] != 3 || ($fullorder['print'] == 3 && $vip == '1')}
  568. {if in_array($fullorder['express'],[24,31])}
  569. <select name="js" class="printtype select class">
  570. <option value="4" {if $fullorder['js'] != 3}selected="selected"{/if}>FICP</option>
  571. <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>IP</option>
  572. </select>
  573. {else if $fullorder['express'] == 1}
  574. <select name="js" class="printtype select class">
  575. <option value="5" {if $fullorder['js'] != 6}selected="selected"{/if}>无 </option>
  576. <option value="6" {if $fullorder['js'] == 6}selected="selected"{/if}>从发件方付税 </option>
  577. </select>
  578. {else}
  579. <select name="js" class="printtype select class">
  580. <option value="0" {if $fullorder['js'] == 0}selected="selected"{/if}>Ground Advantage</option>
  581. <option value="1" {if $fullorder['js'] == 1}selected="selected"{/if}>PRIORITY</option>
  582. <option value="2" {if $fullorder['js'] == 2}selected="selected"{/if}>EXPRESS</option>
  583. <!-- <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  584. </select>
  585. {/if}
  586. {else}
  587. {if in_array($fullorder['express'],[24,31])}
  588. <b>{if ($fullorder['js'] == 3)} IP {else} FICP{/if}</b>
  589. {else if $fullorder['express'] == 1}
  590. <b>{if ($fullorder['js'] == 6)} 从发件方付税 {else } 无 {/if}</b>
  591. {else}
  592. <b>{if $fullorder['js'] == 0}Ground Advantage{else if $fullorder['js'] == 1}PRIORITY{else if $fullorder['js'] == 2}EXPRESS{/if}</b>
  593. {/if}
  594. {/if}
  595. </li>
  596. <!-- DHL官方 如果是墨西哥或巴西 必须填写收件人的税号 -->
  597. {if ( in_array($fullorder['country'],[119 ]) && $fullorder['express'] == 1)}
  598. <li class = "r_tax_id " >
  599. <em style="width: 120px !important;">收件人税号填写:</em>
  600. <input value="{$fullorder['r_tax_id']}" name="r_tax_id" type="text">
  601. </li>
  602. {else}
  603. <li class = "r_tax_id none">
  604. <em style="width: 120px !important;">收件人税号填写:</em>
  605. <input value="{$fullorder['r_tax_id']}" name="r_tax_id" type="text">
  606. </li>
  607. {/if}
  608. <!--
  609. <li class="lengththree">
  610. <em>延迟发货:</em>
  611. {if $fullorder['print'] != 3}
  612. <select name="yc" class="printtype select class">
  613. <option value="0" {if $fullorder['yc'] == 0}selected="selected"{/if}>0</option>
  614. <option value="1" {if $fullorder['yc'] == 1}selected="selected"{/if}>1</option>
  615. <option value="2" {if $fullorder['yc'] == 2}selected="selected"{/if}>2</option>
  616. <option value="3" {if $fullorder['yc'] == 3}selected="selected"{/if}>3</option>
  617. <option value="4" {if $fullorder['yc'] == 4}selected="selected"{/if}>4</option>
  618. <option value="5" {if $fullorder['yc'] == 5}selected="selected"{/if}>5</option>
  619. <option value="6" {if $fullorder['yc'] == 6}selected="selected"{/if}>6</option>
  620. <option value="7" {if $fullorder['yc'] == 7}selected="selected"{/if}>7</option>
  621. </select>
  622. {else}
  623. <b>{$fullorder['yc']}</b>
  624. {/if}
  625. </li>
  626. -->
  627. <!--
  628. <li class="productdescription none">
  629. <em>产品描述:</em>
  630. <select name="productdescription" class="select class">
  631. </select>
  632. </li>
  633. <li class="customs none">
  634. <em>海关价值:</em>
  635. <input class="must" value="{$fullorder['customs']}" name="customs" type="text"> <font class="currency">CNY</font>
  636. </li>
  637. -->
  638. <li class="length">
  639. <em>不合格原因</em>
  640. <b>{$fullorder['failed']}</b>
  641. </li>
  642. <li class="lengththree">
  643. <em>打印状态:</em>
  644. <b>
  645. {if $fullorder['print'] == 1}
  646. 不可打印
  647. {else if $fullorder['print'] == 2}
  648. 未打印
  649. {else if $fullorder['print'] == 3}
  650. 已打印
  651. {/if}
  652. </b>
  653. </li>
  654. <li class="lengththree">
  655. <em>打印时间:</em>
  656. <b>{if $fullorder['printtime'] != 0}{date('Y-m-d H:i',$fullorder['printtime'])}{else}无{/if}
  657. </li>
  658. <li class="lengththree">
  659. <em>打印次数:</em>
  660. <b>{$fullorder['printnumber']}</b>
  661. </li>
  662. <li class="lengththree">
  663. <em>出库状态:</em>
  664. <b class="clearreturnedit1">
  665. {if $fullorder['library'] == 1}
  666. 未出库
  667. {else if $fullorder['library'] == 2}
  668. 已出库
  669. {else if $fullorder['library'] == 3}
  670. 已退库
  671. {/if}
  672. </b>
  673. </li>
  674. <li class="lengththree">
  675. <em>出库时间:</em>
  676. <b>
  677. {if $fullorder['librarytime'] != 0}{date('Y-m-d H:i',$fullorder['librarytime'])}{else}无{/if}
  678. </b>
  679. </li>
  680. <li class="lengththree clearreturnedit2">
  681. {if $fullorder['library'] == 3}
  682. <em>退库时间:</em>
  683. {else}
  684. <em>允许发货:</em>
  685. {/if}
  686. <b>
  687. {if $fullorder['library'] == 3}
  688. {date('Y-m-d H:i',$fullorder['retreattime'])}
  689. {else}
  690. {if $fullorder['libraryconfirm'] == 1}
  691. 不允许出库
  692. {else if $fullorder['libraryconfirm'] == 2}
  693. 允许出库
  694. {/if}
  695. {/if}
  696. </b>
  697. </li>
  698. <li class="length">
  699. <em>不能出库原因:</em>
  700. <b>{$fullorder['librarynot']}</b>
  701. </li>
  702. <li class="length">
  703. <em>历史运单号:</em>
  704. <b>{$downwaybill}</b>
  705. </li>
  706. <li class="length">
  707. <em>历史打印时间:</em>
  708. <b>{$printtime}</b>
  709. </li>
  710. <li class="length">
  711. <em>退货信息:</em>
  712. <b class="return">{$fullorder['returndata']}</b>
  713. </li>
  714. <li class="length">
  715. <em>生产追踪:</em>
  716. <b>{loop $systemwigsout as $val}{$val}{/loop}</b>
  717. </li>
  718. {if $fullorder['waybill2'] != ''}
  719. <li class="length">
  720. <em>GES转DHL单号:</em>
  721. <b>{$fullorder['waybill2']}</b>
  722. </li>
  723. {/if}
  724. </div>
  725. <div style="clear:both;"></div>
  726. </ul>
  727. <div class="need"><input type="hidden" name="id" value="{$fullorder['id']}" />
  728. <input type="hidden" name="purchase" value="{$fullorder['purchase']}" />
  729. <input type="hidden" name="cost" value="{$fullorder['cost']}" /></div>
  730. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  731. <input type="hidden" name="shop" value="{$fullorder['shop']}" />
  732. <input type="hidden" name="whlabel" value="{$fullorder['whlabel']}" />
  733. <input type="hidden" name="number" value="{$fullorder['number']}" />
  734. <input type="hidden" name="data_shipremarks" value="{$fullorder['shipremarks']}" />
  735. <input type="hidden" name="jgyc" value="1" />
  736. <div class="button">{if $power ==1}<font class="power" style="float:left;">重置</font>{if $userid == 10}<font class="clearreturn" style="float:left;margin-left:20px;">清除退货信息</font>{/if}{/if}<font class="return" style="float:left;margin-left:20px;">生成退货标签</font><font class="epod" style="float:left;margin-left:20px;">获取DHL签收单</font>{if $returngoods == 0}<font style="float:left;margin-left:20px;"><a href="javascript:void(0)" onclick="addShouhu(this)" data-uu="/returngoods/add/{$fullorder['orderinfo']}/{$fullorder['id']}">售后登记</a></font>{else}<font style="float:left;margin-left:20px;" class="tz_returngoods" data-url="/returngoods?orderinfo={$fullorder['orderinfo']}">已登记售后</font>{/if}<font class="ddcf" data-f="fullorder" style="float:left;margin-left:20px;">订单拆分</font><font class="yzaddress" style="margin-right:60px;">USPS验证地址</font> <font class="yzxx">保 存</font><font class="fullorderdata-ts" style="display: none;">保 存</font> <font class="fh">关 闭</font></div>
  737. </div>
  738. <div class="none fullorderdata"></div>
  739. <div class="zm none"></div>
  740. <script type="text/javascript">var addedit="/fullorder/edit/";var fh="/fullorder";
  741. $(".yzxx").click(function() {
  742. var zsbjz = "{$fullorder['zsbjz']}";
  743. var data_shipremarks = $("input[name='data_shipremarks']").val();
  744. var shipremarks = $("textarea[name='shipremarks']").val();
  745. // 判断下上边的数据改变没有
  746. let e = "";
  747. $(".datatext tr").each(function() {
  748. var td0 = $(this).find("td:eq(0)").text().replace(/\+/g, "%2B");
  749. var td0 = td0.replace(/&/g, "%26");
  750. var td8 = '';
  751. if ($(this).find("td:eq(8)").length > 0) {
  752. if ($(this).find("td:eq(8)").text() == '') {
  753. td8 = '0';
  754. } else {
  755. td8 = $(this).find("td:eq(8)").text();
  756. }
  757. } else {
  758. td8 = '0';
  759. }
  760. e = e + $(this).attr("data-list") + "|" + td0 + "|" + $(this).find("td:eq(1)").text() + "|" + $(
  761. this).find("td:eq(2)").text() + "|" + $(this).find("td:eq(3)").text() + "|" + $(this)
  762. .find("td:eq(5)").text() + "|" + $(this).find("td:eq(6)").text() + "|" + $(this).find(
  763. "td:eq(7)").text() + "|" + td8 + "|" + $(this).find("td:eq(9)").text() + ";";
  764. });
  765. e = e.replace(/(有可用特殊库存|已选择特殊库存|有可用现货库存|已选择现货库存|已选择库存)/g, '');
  766. if(!e){
  767. layx.alert('提示',"没有产品不允许提交");
  768. return ;
  769. }
  770. let fpdata = $("#check_fpdata").val();
  771. if(zsbjz == 0 || data_shipremarks != shipremarks || e != fpdata)
  772. {
  773. $.ajax({
  774. url: "/choice/check_pm_sku/",
  775. data: "fpdata="+encodeURI(e)+"&shipremarks="+shipremarks,
  776. type: "POST",
  777. dataType: "json",
  778. success: function(a) {
  779. if(a.flag){
  780. $(".fullorderdata-ts").click();
  781. }else{
  782. yzxx(a)
  783. }
  784. }
  785. });
  786. }
  787. else
  788. {
  789. $(".fullorderdata-ts").click();
  790. }
  791. });
  792. function yzxx(a) {
  793. let pmen_list = a.pmen_list;
  794. let str = "";
  795. str = "<p style='margin:10px 0;font-weight: bold;text-align: center;font-size: 18px;'>请确认商品是否和仓库品名一致";
  796. str += '<table class="datatext_bak data_bak" border="0" style="border-collapse:collapse;">';
  797. str += "<tr data-list='0'><td style='padding:10px'><b>商品名称</b></td><td style='padding:10px'><b>数量</b></td></tr>";
  798. for(var i in pmen_list){
  799. str += '<tr data-list="'+pmen_list[i].feature+'">';
  800. str += '<td style="padding:10px">'+pmen_list[i].title+'</td>';
  801. str += '<td style="padding:10px">'+pmen_list[i].qty+'</td>';
  802. str += '</tr>';
  803. }
  804. str += '</table>';
  805. str +="<div><p style='margin:10px 0;font-weight: bold;'>仓库品名:</p>";
  806. str +=" "+$("textarea[name='shipremarks']").val()+" ";
  807. str +="</div><p style='margin-top:20px;text-align: right;'><font class='qdtjxx_fullorderdata' style='cursor: pointer;padding: 0 16px;height: 24px;line-height: normal;color: #000;font-size: 14px;border: 1px solid #adadad;outline: 0;margin-left: 8px;display: inline-block;background-color: #e1e1e1;'>确认提交</font><font class='qxxx' style='cursor: pointer;padding: 0 16px;height: 24px;line-height: normal;color: #000;font-size: 14px;border: 1px solid #adadad;outline: 0;margin-left: 8px;display: inline-block;background-color: #e1e1e1;'>取 消</font></p>";
  808. $(".addful .addwp").html(str);
  809. str = ""
  810. $(".datatext tr").each(function() {
  811. $(".addful .addwp .datatitle").append("<tr><td>"+$(this).find("td:eq(0)").text()+"</td><td>"+$(this).find("td:eq(1)").text()+"</td></tr>");
  812. });
  813. $(".addful .addwp .data").css("min-width","100%");
  814. $(".addful .addwp").css("max-height","80%");
  815. $(".addful .addwp").css("overflow-y","scroll");
  816. $(".addful .addwp .datatitle tr td:eq(10)").css("display","none");
  817. $(".addful .addwp .datatitle tr td:eq(11)").css("display","none");
  818. $(".addful .addwp .datatext tr td:eq(10)").css("display","none");
  819. $(".addful .addwp .datatext tr td:eq(11)").css("display","none");
  820. $( ".addwp" ).draggable({revert: true,iframeFix:true});// revert: true,axis: "x"
  821. window.setInterval("reinitIframe()", 200);
  822. $(".addful").show();
  823. };
  824. function crcol(){
  825. if( $("select[name=country]").find("option:selected").val() == 192)
  826. {
  827. $("select[name=country]").css("color","#000");
  828. }
  829. else
  830. {
  831. $("select[name=country]").css("color","#F00");
  832. }
  833. };
  834. $("select[name=country]").change(function(){
  835. crcol();
  836. });
  837. $(document).ready(function() {
  838. var eid = $("select[name='express']").children("option:selected").val();
  839. var jsxz = '{$fullorder["js"]}';
  840. if(eid == '2' || eid == '64')//联邦的话替换签名选项
  841. {
  842. $("select[name='js']").html('<option value="0">Ground Advantage</option><option value="1">PRIORITY</option><option value="2">EXPRESS</option>');
  843. $("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  844. }
  845. else if(eid == 24 || eid == 31){
  846. //fedex杭州的服务选择
  847. //$("select[name='js']").html('<option value="3">IP</option><option value="4">FICP</option>');
  848. //$("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  849. //fedex杭州的服务选择
  850. if(jsxz == 3){
  851. $("select[name='js']").html('<option value="4">FICP</option><option value="3">IP</option>');
  852. $("select[name='js']").find('option[value="3"]').prop('selected','selected');
  853. }else{
  854. $("select[name='js']").html('<option value="4">FICP</option>');
  855. $("select[name='js']").find('option[value="4"]').prop('selected','selected');
  856. }
  857. }
  858. else if(eid == 1){
  859. $("select[name='js']").html('<option value="5">无</option><option value="6">从发件方付税</option>');
  860. if(jsxz == 6){
  861. $("select[name='js']").find('option[value="6"]').prop('selected','selected');
  862. }else{
  863. $("select[name='js']").find('option[value="5"]').prop('selected','selected');
  864. }
  865. }
  866. else
  867. {
  868. $("select[name='js']").html('<option value="0" selected="selected">无</option>');//<option value="1">需要</option>
  869. }
  870. /**
  871. if($("select[name='express']").find("option:selected").val() == '24' || $("select[name='express']").find("option:selected").val() == '31')//联邦的话替换签名选项11
  872. {
  873. $("select[name='qm']").html('<option value="0" {if $fullorder["qm"] == 0}selected="selected"{/if}>默认</option><option value="1" {if $fullorder["qm"] == 1}selected="selected"{/if}>成人签名</option>');
  874. }
  875. else
  876. {
  877. $("select[name='qm']").html('<option value="0" {if $fullorder["qm"] == 0}selected="selected"{/if}>不需要</option><option value="1" {if $fullorder["qm"] == 1}selected="selected"{/if}>需要</option>');
  878. }
  879. **/
  880. $("#refundtime").calendar();
  881. crcol();
  882. var index = $("#currency").find("option:selected").text();
  883. $(".currency").text(index);
  884. $(".datatext tr").each(function() {
  885. //$(this).find("td:eq(9)").text(index);
  886. //currencymoney需要更改的价格
  887. });
  888. custom();
  889. pptskc('2');
  890. var index = $("select[name='printtype']").find("option:selected").index();
  891. if(index == 0)
  892. {
  893. var e = $("select[name=express]").find("option:selected").val();
  894. var c = $("select[name=country]").find("option:selected").val();
  895. if(c != 192)
  896. {
  897. $("select[name=country]").css("color","#F00");
  898. }
  899. $.ajax({
  900. url: "/fullorder/customs/",
  901. data: "e="+e+"&c="+c,
  902. type: "POST",
  903. dataType: "json",
  904. success: function(a) {
  905. if (a && a.success) {
  906. $("input[name=customs]").val(a.money);
  907. for(i=0;i<a.msg.length;i++)
  908. {
  909. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  910. }
  911. $(".productdescription").show();
  912. $(".customs").show();
  913. } else {
  914. $(".productdescription").hide();
  915. $(".customs").hide();
  916. }
  917. }
  918. });
  919. }else
  920. {
  921. $(".productdescription").hide();
  922. $(".customs").hide();
  923. }
  924. let printtype = "{$fullorder['printtype']}";
  925. console.log("=====================")
  926. if(printtype*1 == 0){
  927. let tmp_express = $("select[name=express]").find("option:selected").val();
  928. console.log(tmp_express)
  929. if(tmp_express){
  930. $("select[name=printtype]").val($("select[name=express]").find("option:selected").data('type'))
  931. }else{
  932. let tmp_first_express = $("select[name=express] option")[0].data('type');
  933. console.log(tmp_first_express)
  934. $("select[name=printtype]").val(tmp_first_express)
  935. }
  936. }
  937. console.log("--------------------------")
  938. });
  939. function custom() {
  940. var num = $('.packing .datatitle tr').children().length;
  941. $('.data tr td').css("width","5%");
  942. $(".data tr").each(function() {
  943. $(this).find('td:eq(0)').css("width","30%");
  944. $(this).find('td:eq(1)').css("width","3%");
  945. $(this).find('td:eq(10)').css("width","10%");
  946. });}
  947. //监听input开始
  948. $("input[name=dtsbjz]").bind("input propertychange",function(event){
  949. var ts = $("input[name=ts]").val()*1;
  950. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  951. let regex = /^-?\d+(\.\d+)+$/;
  952. if(regex.test(dtsbjz)){
  953. //直接把单挑申报价改为 2位
  954. dtsbjz = (dtsbjz.toFixed(2))*1
  955. $("input[name=dtsbjz]").val(dtsbjz)
  956. }else{
  957. dtsbjz = dtsbjz*1;
  958. }
  959. var num = ts*dtsbjz;
  960. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  961. });
  962. $("input[name=ts]").bind("input propertychange",function(event){
  963. var ts = $("input[name=ts]").val()*1;
  964. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  965. let regex = /^-?\d+(\.\d+)+$/;
  966. if(regex.test(dtsbjz)){
  967. //直接把单挑申报价改为 2位
  968. dtsbjz = (dtsbjz.toFixed(2))*1
  969. $("input[name=dtsbjz]").val(dtsbjz)
  970. }else{
  971. dtsbjz = dtsbjz*1;
  972. }
  973. var num = ts*dtsbjz;
  974. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  975. });
  976. $("input[name=refundy]").bind("input propertychange",function(event){
  977. var refundy = $("input[name=refundy]").val();
  978. if(refundy != 0)
  979. {
  980. $(".refund").show();
  981. $("input[name=rtime]").addClass("must");
  982. $("input[name=rpaypal]").addClass("must");
  983. $("input[name=rtext]").addClass("must");
  984. }
  985. else
  986. {
  987. $("input[name=rtime]").val("");
  988. $("input[name=rpaypal]").val("");
  989. $("input[name=rtext]").val("");
  990. $("input[name=rtime]").removeClass("must");
  991. $("input[name=rpaypal]").removeClass("must");
  992. $("input[name=rtext]").removeClass("must");
  993. $(".refund").hide();
  994. }
  995. });
  996. //监听input结束
  997. layx.tip('订单物流类型:{$fullorder["shippingmethod"]}',document.getElementById('method'),'bottom');
  998. $("#klarnadata").click(function() {
  999. $(".klarnadata").fadeToggle(300);
  1000. });
  1001. $("#hqklarna").click(function() {
  1002. layx.load('loadId','获取中');
  1003. $.ajax({
  1004. url: "/fullorder/klarnadata/",
  1005. data: "number="+$("input[name=number]").val(),
  1006. type: "POST",
  1007. dataType: "json",
  1008. success: function(a) {
  1009. layx.destroy('loadId');
  1010. if (a && a.success) {
  1011. layx.alert('提示',a.msg);
  1012. } else {
  1013. layx.alert('提示',a.msg);
  1014. }
  1015. }
  1016. });
  1017. });
  1018. $('.ckthfpdata').click(function()
  1019. {
  1020. if($('.thfpdata').is(':hidden'))
  1021. {
  1022. $('.thfpdata').slideDown(100);
  1023. $('.ckthfpdata').text("关闭替换内容");
  1024. }
  1025. else
  1026. {
  1027. $('.thfpdata').slideUp(100);
  1028. $('.ckthfpdata').text("查看替换内容");
  1029. }
  1030. })
  1031. $(".thfpdata tr").mouseenter(function(event){
  1032. var list = $(this).data("tid");
  1033. $(".datatext tr").each(function() {
  1034. if($(this).data("list") == list)
  1035. {
  1036. $(this).css("background-color","#f8f094")
  1037. }
  1038. });
  1039. });
  1040. $(".thfpdata tr").mouseleave(function(event){
  1041. $(".datatext tr").each(function() {
  1042. $(this).removeAttr("style")
  1043. });
  1044. });
  1045. $('.fullorderdata-ts').click(function()
  1046. {
  1047. var tjje = $("input[name='shouldmoney']").val();
  1048. var tjwl = $("select[name='express']").children("option:selected").val();
  1049. var tjqm = $("select[name='qm']").children("option:selected").val();
  1050. var fwlx = $("select[name='js']").children("option:selected").val();
  1051. if(tjje > 750 && (tjwl == 24 || tjwl == 31 || tjwl == 2) && tjqm != 1)
  1052. {
  1053. layx.confirm('提示','此金额和物流可以选择购买“签名”服务',null,{
  1054. buttons:[
  1055. {
  1056. label:'操作签名',
  1057. callback:function(id, button, event){
  1058. layx.destroy(id);
  1059. }
  1060. },
  1061. {
  1062. label:'保存信息',
  1063. callback:function(id, button, event){
  1064. $('.fullorderdata').click();
  1065. layx.destroy(id);
  1066. }
  1067. }
  1068. ]
  1069. });
  1070. }
  1071. else if(fwlx == 2)
  1072. {
  1073. layx.confirm('提示','确定要发“收费加急”吗?(请提前收取加急运费)',null,{
  1074. buttons:[
  1075. {
  1076. label:'确定',
  1077. callback:function(id, button, event){
  1078. $('.fullorderdata').click();
  1079. layx.destroy(id);
  1080. }
  1081. },
  1082. {
  1083. label:'取消',
  1084. callback:function(id, button, event){
  1085. layx.destroy(id);
  1086. }
  1087. }
  1088. ]
  1089. });
  1090. }
  1091. else
  1092. {
  1093. $('.fullorderdata').click();
  1094. }
  1095. });
  1096. $(".tz_returngoods").on("click",function(){
  1097. let url = $(this).data("url")
  1098. window.parent.open(url,'_blank')
  1099. //window.parent.location.href=url
  1100. });
  1101. function addShouhu(that){
  1102. let url = $(that).data("uu")
  1103. layx.load('loadId','请求中。。。');
  1104. url =url.replace(/#/g, '%23');
  1105. location.href=url
  1106. }
  1107. $("#is_jiaji_id").on('change',function(){
  1108. $("#isjiaji_flag").toggle()
  1109. });
  1110. </script>
  1111. <script src="{$theme}js/fullorder-addedit.js?v={time()}"></script>
  1112. <script type="text/javascript" src="{$theme}js/time.js"></script>
  1113. {Template footer}