fullorder_edit.html 40 KB

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