fullorder_edit.html 34 KB

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