fullorder_edit.html 40 KB

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