fullorder_edit.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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>Quantity:</em>
  203. <b {if $qc > 0}style="color:#F00"{/if}>{$fullorder['quantity']}</b>
  204. </li>
  205. <li>
  206. <em>运单号:</em>
  207. <input name="waybill" value="{$fullorder['waybill']}" type="text">
  208. </li>
  209. <li class="length">
  210. <em>客户留言:</em>
  211. <b style="color:#F00">{$fullorder['clientremarks']}</b>
  212. </li>
  213. {else}
  214. <li class="length">
  215. <em>运单号:</em>
  216. <input name="waybill" value="{$fullorder['waybill']}" type="text">
  217. </li>
  218. {/if}
  219. <li class="length remark">
  220. <em>订单备注:</em>
  221. <textarea name="orderremarks" style="height:25px;">{$fullorder['orderremarks']}</textarea>
  222. </li>
  223. <li class="length remark">
  224. <em>仓库品名:</em>
  225. <textarea name="shipremarks">{$fullorder['shipremarks']}</textarea>
  226. </li>
  227. <li style="position:relative;overflow:visible">
  228. <em>交易号:</em>
  229. {if $power ==1 && $fullorder['source'] == 1}<input name="paypal" value="{$fullorder['paypal']}" type="text" {$klarnacolor}>{else}<b {$klarnacolor}>{$fullorder['paypal']}{/if}</b>
  230. {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}
  231. {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)}
  232. <i class="fa fa-random fa-rotate-90" id="hqklarna" style="position:absolute;z-index:1;right:60px;top:8px;"></i>
  233. {else}
  234. <i class="fa fa-plus" id="klarnadata" style="position:absolute;z-index:1;right:60px;top:8px;"></i>
  235. {/if}
  236. {/if}
  237. </li>
  238. <li class="lengthfour">
  239. <em>支付方式:</em>
  240. {if $vip == '1' && $fullorder['source'] == 1}
  241. <select name="pay" class="select class">
  242. {loop typeclass(4,3,100) as $val}
  243. <option value="{$val['id']}" {if $fullorder['pay'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  244. {/loop}</select>
  245. {else}
  246. <b>{loop typeclass(4,3,100) as $val}{if $fullorder['pay'] == $val['id']}{$val['title']}{/if}{/loop}</b>
  247. {/if}
  248. </li>
  249. <li class="lengthfour">
  250. <em>卖家保障:</em>
  251. <b style="width:38%;color:#F00">{$fullorder['guarantee']}</b>
  252. </li>
  253. {if isset($klarnadata[1]) && $fullorder['pay'] == 23}
  254. <div class="klarnadata none">
  255. <!--
  256. <li class="length">
  257. <em>Payment:</em>
  258. <b>{$klarnadata[1]}</b>
  259. </li>
  260. -->
  261. <li class="length">
  262. <em>billing:</em>
  263. <b>{$klarnadata[2]}</b>
  264. </li>
  265. <li class="length">
  266. <em>shipping:</em>
  267. <b{if str_replace(' ','',strtoupper($klarnadata['color'])) != str_replace(' ','',strtoupper($fullorder['saddress']))} style="color:#f00"{/if}>{$klarnadata[3]}</b>
  268. </li>
  269. </div>
  270. {/if}
  271. {if isset($klarnadata[1]) && ($fullorder['pay'] == 26 || $fullorder['pay'] == 27 || $fullorder['pay'] == 28 || $fullorder['pay'] == 29)}
  272. <div class="klarnadata none">
  273. <li class="length">
  274. <em>Email:</em>
  275. <b>{$klarnadata[0]}</b>
  276. </li>
  277. <li class="length">
  278. <em>billing:</em>
  279. <b>{$klarnadata[1]}</b>
  280. </li>
  281. <li class="length">
  282. <em>shipping:</em>
  283. <b>{$klarnadata[2]}</b>
  284. </li>
  285. </div>
  286. {/if}
  287. {if isset($klarnadata[1]) && ($fullorder['pay'] == 22 || $fullorder['pay'] == 7)}
  288. <div class="klarnadata none">
  289. <li class="length">
  290. <em>name:</em>
  291. <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>
  292. </li>
  293. <li class="length">
  294. <em>address:</em>
  295. <b {if str_replace(array(' ','.',','),'',strtoupper($fullorder['saddress'])) != str_replace(array(' ','.',','),'',strtoupper($klarnadata[1]['address']))}style="color:#f00"{/if}>{$klarnadata[1]['address']}</b>
  296. </li>
  297. <li class="length">
  298. <em>email:</em>
  299. <b {if strtoupper($klarnadata[1]['email']) != strtoupper($fullorder['email'])}style="color:#f00"{/if}>{$klarnadata[1]['email']}</b>
  300. </li>
  301. </div>
  302. {/if}
  303. {if isset($klarnadata[1]) && $fullorder['pay'] == 1211}
  304. <div class="klarnadata none">
  305. <li class="length">
  306. <em>Stripe Amount:</em>
  307. <b>{$klarnadata[1]['shouldmoney']}</b>
  308. </li>
  309. </div>
  310. {/if}
  311. <li>
  312. <em>Bill Name:</em>
  313. <b>{$fullorder['bname']}</b>
  314. </li>
  315. <li>
  316. <em>Ship Name:</em>
  317. <b>{$fullorder['sname']}</b>
  318. </li>
  319. <li class="length">
  320. <em>Bill Address:</em>
  321. <b {if strcasecmp($fullorder['baddress'],$fullorder['saddress']) != 0}style="color:#09F"{/if}>{$fullorder['baddress']}</b>
  322. </li>
  323. <li class="length">
  324. <em>Ship Address:</em>
  325. <b>{$fullorder['saddress']}</b>
  326. </li>
  327. <li>
  328. <em>邮箱:</em>
  329. <input name="email" value="{$fullorder['email']}" type="text">
  330. </li>
  331. <li>
  332. <em>国家:</em>
  333. <select name="country" class="select class">
  334. {loop $country as $val}
  335. <option value="{$val['id']}" {if $fullorder['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
  336. {/loop}
  337. </select>
  338. </li>
  339. <li>
  340. <em>联系方式:</em>
  341. <input name="phone" class="must" value="{$fullorder['phone']}" type="text">
  342. </li>
  343. <li>
  344. <em>省州:</em>
  345. <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}>
  346. </li>
  347. <li>
  348. <em>公司名:</em>
  349. <input name="client" value="{$fullorder['client']}" type="text">
  350. </li>
  351. <li>
  352. <em>城市:</em>
  353. <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}>
  354. </li>
  355. <li>
  356. <em>收货人姓名:</em>
  357. <input name="name" class="must" value="{$fullorder['name']}" type="text">
  358. </li>
  359. <li>
  360. <em>邮编:</em>
  361. <input value="{$fullorder['zipcode']}" name="zipcode" type="text">
  362. </li>
  363. {if $is == 5}
  364. <li class="length">
  365. <em>街道:</em>
  366. <input value="{$fullorder['street']}" name="street" type="text">
  367. </li>
  368. {/if}
  369. <li class="length">
  370. <em>地址2:</em>
  371. <input value="{$fullorder['address2']}" name="address2" type="text">
  372. </li>
  373. <li class="length">
  374. <em>地址1:</em>
  375. <input value="{$fullorder['address']}" name="address" type="text">
  376. </li>
  377. <li class="lengththree">
  378. <em>申报品名:</em>
  379. <select name="sbpm" class="select class" style="width:59%">
  380. {loop customsdeclaration(50) as $val}
  381. <option value="{$val['ename']}" {if $fullorder['sbpm'] == $val['ename']}selected="selected"{/if}>{$val['ename']}</option>
  382. {/loop}
  383. </select>
  384. </li>
  385. <li class="lengththree">
  386. <em>中文品名:</em>
  387. <select name="zwpm" class="select class" style="width:50%">
  388. {loop customsdeclaration(50) as $val}
  389. <option value="{$val['zname']}" {if $fullorder['zwpm'] == $val['zname']}selected="selected"{/if}>{$val['zname']}</option>
  390. {/loop}
  391. </select>
  392. </li>
  393. <li class="lengththree">
  394. <em>海关编码:</em>
  395. <select name="hgbm" class="select class">
  396. {loop customsdeclaration(50) as $val}
  397. <option value="{$val['bname']}" {if $fullorder['hgbm'] == $val['bname']}selected="selected"{/if}>{$val['bname']}</option>
  398. {/loop}
  399. </select>
  400. </li>
  401. <li class="lengththree">
  402. <em>条数:</em>
  403. <input name="ts" class="must" value="{$fullorder['ts']}" type="text">
  404. </li>
  405. <li class="lengththree">
  406. <em>单条申报价:</em>
  407. <input name="dtsbjz" class="must" value="{$fullorder['dtsbjz']}" type="text">
  408. </li>
  409. <li class="lengththree">
  410. <em>总申报价:</em>
  411. <input name="zsbjz" class="must" value="{$fullorder['zsbjz']}" type="text" readonly style="background-color: #ebebe4;">
  412. </li>
  413. <li class="lengththree">
  414. <em>总重量:</em>
  415. <input name="zzl" class="must" value="{$fullorder['zzl']}" type="text"> <font class="zzldw">{$zzhl}</font>
  416. </li>
  417. <li class="lengththree">
  418. <em>总件数:</em>
  419. <input name="zjs" class="must" value="{$fullorder['zjs']}" type="text" readonly style="background-color: #ebebe4;">
  420. </li>
  421. <li class="lengththree" style="position:relative;overflow:visible">
  422. {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}
  423. <em>快递方式:</em>
  424. <select name="express" class="select class">
  425. {loop express(100) as $val}
  426. <option value="{$val['id']}" data-type="{$val['type']}" {if $fullorder['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  427. {/loop}
  428. </select>
  429. <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>
  430. </li>
  431. <li class="lengththree">
  432. <em>打印类型:</em>
  433. <select name="printtype" class="printtype select class">
  434. <option value="1" {if $fullorder['printtype'] == 1}selected="selected"{/if}>运单</option>
  435. <option value="2" {if $fullorder['printtype'] == 2}selected="selected"{/if}>发货单</option>
  436. <option value="3" {if $fullorder['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
  437. </select>
  438. </li>
  439. <li class="none">
  440. <em>发送留言:</em>
  441. <select name="msg" class="printtype select class">
  442. <option value="1" {if $fullorder['msg'] == 1}selected="selected"{/if}>1</option>
  443. <option value="2" {if $fullorder['msg'] == 2}selected="selected"{/if}>2</option>
  444. </select>
  445. </li>
  446. <li class="lengththree">
  447. <em>审核状态:</em>
  448. <b>
  449. {if $fullorder['review'] == 1}
  450. 未送审
  451. {else if $fullorder['review'] == 2}
  452. 待审核
  453. {else if $fullorder['review'] == 3}
  454. 不通过
  455. {else if $fullorder['review'] == 4}
  456. 取消重审
  457. {else if $fullorder['review'] == 5}
  458. 审核通过
  459. {else if $fullorder['review'] == 6 && $fullorder['reviewtime']!= ''}
  460. {date('Y-m-d H:i',$fullorder['reviewtime'])}
  461. {/if}
  462. </b>
  463. </li>
  464. <li class="lengththree">
  465. <em>IOSS:</em>
  466. <select name="ioss" class="select class">
  467. <option value="" {if $fullorder['ioss'] == ''}selected="selected"{/if}>未选择</option>
  468. {loop ioss(100) as $val}
  469. <option value="{$val['ioss']}" {if $fullorder['ioss'] == $val['ioss']}selected="selected"{/if}>{$val['title']}</option>
  470. {/loop}
  471. </select>
  472. </li>
  473. <li class="lengththree">
  474. <em>购买保险:</em>
  475. {if $fullorder['print'] != 99}
  476. <input name="bx" class="must" value="{$fullorder['bx']}" type="text"> USD
  477. {else}
  478. <b>{$fullorder['bx']}</b> USD
  479. {/if}
  480. </li>
  481. <li class="lengththree">
  482. <em>是否签名:</em>
  483. {if ($fullorder['review'] < 5 || $vip == '1') && ($fullorder['express'] == 2 || $fullorder['express'] == 24 || $fullorder['express'] == 31)}
  484. <select name="qm" class="printtype select class">
  485. <option value="0" {if $fullorder['qm'] == 0}selected="selected"{/if}>默认</option>
  486. <option value="1" {if $fullorder['qm'] == 1}selected="selected"{/if}>成人签名</option>
  487. </select>
  488. {else}
  489. <select name="qm" class="printtype select class">
  490. <option value="0">无</option>
  491. </select>
  492. <!--
  493. <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>
  494. -->
  495. {/if}
  496. </li>
  497. <!--<li class="lengththree">-->
  498. <!--<em>服务类型:</em>-->
  499. <!--{if $fullorder['print'] != 3 || ($fullorder['print'] == 3 && $vip == '1')}-->
  500. <!--<select name="js" class="printtype select class">-->
  501. <!--<option value="0" {if $fullorder['js'] == 0}selected="selected"{/if}>Ground Advantage</option>-->
  502. <!--<option value="1" {if $fullorder['js'] == 1}selected="selected"{/if}>PRIORITY</option>-->
  503. <!--<option value="2" {if $fullorder['js'] == 2}selected="selected"{/if}>EXPRESS</option>-->
  504. <!-- <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  505. <!--</select>-->
  506. <!--{else}-->
  507. <!--<b>{if $fullorder['js'] == 0}Ground Advantage{else if $fullorder['js'] == 1}PRIORITY{else if $fullorder['js'] == 2}EXPRESS{/if}</b>-->
  508. <!--{/if}-->
  509. <!--</li>-->
  510. <li class="lengththree">
  511. <em>服务类型: </em>
  512. {if $fullorder['print'] != 3 || ($fullorder['print'] == 3 && $vip == '1')}
  513. {if in_array($fullorder['express'],[24,31])}
  514. <select name="js" class="printtype select class">
  515. <option value="4" {if $fullorder['js'] != 3}selected="selected"{/if}>FICP</option>
  516. <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>IP</option>
  517. </select>
  518. {else}
  519. <select name="js" class="printtype select class">
  520. <option value="0" {if $fullorder['js'] == 0}selected="selected"{/if}>Ground Advantage</option>
  521. <option value="1" {if $fullorder['js'] == 1}selected="selected"{/if}>PRIORITY</option>
  522. <option value="2" {if $fullorder['js'] == 2}selected="selected"{/if}>EXPRESS</option>
  523. <!-- <option value="3" {if $fullorder['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  524. </select>
  525. {/if}
  526. {else}
  527. {if in_array($fullorder['express'],[24,31])}
  528. <b>{if ($fullorder['js'] == 3)} IP {else} FICP{/if}</b>
  529. {else}
  530. <b>{if $fullorder['js'] == 0}Ground Advantage{else if $fullorder['js'] == 1}PRIORITY{else if $fullorder['js'] == 2}EXPRESS{/if}</b>
  531. {/if}
  532. {/if}
  533. </li>
  534. <!--
  535. <li class="lengththree">
  536. <em>延迟发货:</em>
  537. {if $fullorder['print'] != 3}
  538. <select name="yc" class="printtype select class">
  539. <option value="0" {if $fullorder['yc'] == 0}selected="selected"{/if}>0</option>
  540. <option value="1" {if $fullorder['yc'] == 1}selected="selected"{/if}>1</option>
  541. <option value="2" {if $fullorder['yc'] == 2}selected="selected"{/if}>2</option>
  542. <option value="3" {if $fullorder['yc'] == 3}selected="selected"{/if}>3</option>
  543. <option value="4" {if $fullorder['yc'] == 4}selected="selected"{/if}>4</option>
  544. <option value="5" {if $fullorder['yc'] == 5}selected="selected"{/if}>5</option>
  545. <option value="6" {if $fullorder['yc'] == 6}selected="selected"{/if}>6</option>
  546. <option value="7" {if $fullorder['yc'] == 7}selected="selected"{/if}>7</option>
  547. </select>
  548. {else}
  549. <b>{$fullorder['yc']}</b>
  550. {/if}
  551. </li>
  552. -->
  553. <!--
  554. <li class="productdescription none">
  555. <em>产品描述:</em>
  556. <select name="productdescription" class="select class">
  557. </select>
  558. </li>
  559. <li class="customs none">
  560. <em>海关价值:</em>
  561. <input class="must" value="{$fullorder['customs']}" name="customs" type="text"> <font class="currency">CNY</font>
  562. </li>
  563. -->
  564. <li class="length">
  565. <em>不合格原因</em>
  566. <b>{$fullorder['failed']}</b>
  567. </li>
  568. <li class="lengththree">
  569. <em>打印状态:</em>
  570. <b>
  571. {if $fullorder['print'] == 1}
  572. 不可打印
  573. {else if $fullorder['print'] == 2}
  574. 未打印
  575. {else if $fullorder['print'] == 3}
  576. 已打印
  577. {/if}
  578. </b>
  579. </li>
  580. <li class="lengththree">
  581. <em>打印时间:</em>
  582. <b>{if $fullorder['printtime'] != 0}{date('Y-m-d H:i',$fullorder['printtime'])}{else}无{/if}
  583. </li>
  584. <li class="lengththree">
  585. <em>打印次数:</em>
  586. <b>{$fullorder['printnumber']}</b>
  587. </li>
  588. <li class="lengththree">
  589. <em>出库状态:</em>
  590. <b class="clearreturnedit1">
  591. {if $fullorder['library'] == 1}
  592. 未出库
  593. {else if $fullorder['library'] == 2}
  594. 已出库
  595. {else if $fullorder['library'] == 3}
  596. 已退库
  597. {/if}
  598. </b>
  599. </li>
  600. <li class="lengththree">
  601. <em>出库时间:</em>
  602. <b>
  603. {if $fullorder['librarytime'] != 0}{date('Y-m-d H:i',$fullorder['librarytime'])}{else}无{/if}
  604. </b>
  605. </li>
  606. <li class="lengththree clearreturnedit2">
  607. {if $fullorder['library'] == 3}
  608. <em>退库时间:</em>
  609. {else}
  610. <em>允许发货:</em>
  611. {/if}
  612. <b>
  613. {if $fullorder['library'] == 3}
  614. {date('Y-m-d H:i',$fullorder['retreattime'])}
  615. {else}
  616. {if $fullorder['libraryconfirm'] == 1}
  617. 不允许出库
  618. {else if $fullorder['libraryconfirm'] == 2}
  619. 允许出库
  620. {/if}
  621. {/if}
  622. </b>
  623. </li>
  624. <li class="length">
  625. <em>不能出库原因:</em>
  626. <b>{$fullorder['librarynot']}</b>
  627. </li>
  628. <li class="length">
  629. <em>历史运单号:</em>
  630. <b>{$downwaybill}</b>
  631. </li>
  632. <li class="length">
  633. <em>历史打印时间:</em>
  634. <b>{$printtime}</b>
  635. </li>
  636. <li class="length">
  637. <em>退货信息:</em>
  638. <b class="return">{$fullorder['returndata']}</b>
  639. </li>
  640. <li class="length">
  641. <em>生产追踪:</em>
  642. <b>{loop $systemwigsout as $val}{$val}{/loop}</b>
  643. </li>
  644. {if $fullorder['waybill2'] != ''}
  645. <li class="length">
  646. <em>GES转DHL单号:</em>
  647. <b>{$fullorder['waybill2']}</b>
  648. </li>
  649. {/if}
  650. </div>
  651. <div style="clear:both;"></div>
  652. </ul>
  653. <div class="need"><input type="hidden" name="id" value="{$fullorder['id']}" />
  654. <input type="hidden" name="purchase" value="{$fullorder['purchase']}" />
  655. <input type="hidden" name="cost" value="{$fullorder['cost']}" /></div>
  656. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  657. <input type="hidden" name="shop" value="{$fullorder['shop']}" />
  658. <input type="hidden" name="whlabel" value="{$fullorder['whlabel']}" />
  659. <input type="hidden" name="number" value="{$fullorder['number']}" />
  660. <input type="hidden" name="data_shipremarks" value="{$fullorder['shipremarks']}" />
  661. <input type="hidden" name="jgyc" value="1" />
  662. <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="/returngoods/add/{$fullorder['orderinfo']}">售后登记</a></font>{else}<font style="float:left;margin-left:20px;">已登记售后</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>
  663. </div>
  664. <div class="none fullorderdata"></div>
  665. <div class="zm none"></div>
  666. <script type="text/javascript">var addedit="/fullorder/edit/";var fh="/fullorder";
  667. $(".yzxx").click(function() {
  668. var zsbjz = "{$fullorder['zsbjz']}";
  669. var data_shipremarks = $("input[name='data_shipremarks']").val();
  670. var shipremarks = $("textarea[name='shipremarks']").val();
  671. if(zsbjz == 0 || data_shipremarks != shipremarks)
  672. {
  673. yzxx();
  674. }
  675. else
  676. {
  677. $(".fullorderdata-ts").click();
  678. }
  679. });
  680. function yzxx() {
  681. $(".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>");
  682. $(".datatext tr").each(function() {
  683. $(".addful .addwp .datatitle").append("<tr><td>"+$(this).find("td:eq(0)").text()+"</td><td>"+$(this).find("td:eq(1)").text()+"</td></tr>");
  684. });
  685. $(".addful .addwp .data").css("min-width","100%");
  686. $(".addful .addwp").css("max-height","80%");
  687. $(".addful .addwp").css("overflow-y","scroll");
  688. $(".addful .addwp .datatitle tr td:eq(10)").css("display","none");
  689. $(".addful .addwp .datatitle tr td:eq(11)").css("display","none");
  690. $(".addful .addwp .datatext tr td:eq(10)").css("display","none");
  691. $(".addful .addwp .datatext tr td:eq(11)").css("display","none");
  692. $( ".addwp" ).draggable({revert: true,iframeFix:true});// revert: true,axis: "x"
  693. window.setInterval("reinitIframe()", 200);
  694. $(".addful").show();
  695. };
  696. function crcol(){
  697. if( $("select[name=country]").find("option:selected").val() == 192)
  698. {
  699. $("select[name=country]").css("color","#000");
  700. }
  701. else
  702. {
  703. $("select[name=country]").css("color","#F00");
  704. }
  705. };
  706. $("select[name=country]").change(function(){
  707. crcol();
  708. });
  709. $(document).ready(function() {
  710. var eid = $("select[name='express']").children("option:selected").val();
  711. var jsxz = '{$fullorder["js"]}';
  712. if(eid == '2' || eid == '64')//联邦的话替换签名选项
  713. {
  714. $("select[name='js']").html('<option value="0">Ground Advantage</option><option value="1">PRIORITY</option><option value="2">EXPRESS</option>');
  715. $("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  716. }
  717. else if(eid == 24 || eid == 31){
  718. //fedex杭州的服务选择
  719. //$("select[name='js']").html('<option value="3">IP</option><option value="4">FICP</option>');
  720. //$("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  721. //fedex杭州的服务选择
  722. $("select[name='js']").html('<option value="4">FICP</option><option value="3">IP</option>');
  723. if(jsxz == 3){
  724. $("select[name='js']").find('option[value="3"]').prop('selected','selected');
  725. }else{
  726. $("select[name='js']").find('option[value="4"]').prop('selected','selected');
  727. }
  728. }
  729. else
  730. {
  731. $("select[name='js']").html('<option value="0" selected="selected">无</option>');//<option value="1">需要</option>
  732. }
  733. /**
  734. if($("select[name='express']").find("option:selected").val() == '24' || $("select[name='express']").find("option:selected").val() == '31')//联邦的话替换签名选项11
  735. {
  736. $("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>');
  737. }
  738. else
  739. {
  740. $("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>');
  741. }
  742. **/
  743. $("#refundtime").calendar();
  744. crcol();
  745. var index = $("#currency").find("option:selected").text();
  746. $(".currency").text(index);
  747. $(".datatext tr").each(function() {
  748. //$(this).find("td:eq(9)").text(index);
  749. //currencymoney需要更改的价格
  750. });
  751. custom();
  752. pptskc('2');
  753. var index = $("select[name='printtype']").find("option:selected").index();
  754. if(index == 0)
  755. {
  756. var e = $("select[name=express]").find("option:selected").val();
  757. var c = $("select[name=country]").find("option:selected").val();
  758. if(c != 192)
  759. {
  760. $("select[name=country]").css("color","#F00");
  761. }
  762. $.ajax({
  763. url: "/fullorder/customs/",
  764. data: "e="+e+"&c="+c,
  765. type: "POST",
  766. dataType: "json",
  767. success: function(a) {
  768. if (a && a.success) {
  769. $("input[name=customs]").val(a.money);
  770. for(i=0;i<a.msg.length;i++)
  771. {
  772. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  773. }
  774. $(".productdescription").show();
  775. $(".customs").show();
  776. } else {
  777. $(".productdescription").hide();
  778. $(".customs").hide();
  779. }
  780. }
  781. });
  782. }else
  783. {
  784. $(".productdescription").hide();
  785. $(".customs").hide();
  786. }
  787. });
  788. function custom() {
  789. var num = $('.packing .datatitle tr').children().length;
  790. $('.data tr td').css("width","5%");
  791. $(".data tr").each(function() {
  792. $(this).find('td:eq(0)').css("width","30%");
  793. $(this).find('td:eq(1)').css("width","3%");
  794. $(this).find('td:eq(10)').css("width","10%");
  795. });}
  796. //监听input开始
  797. $("input[name=dtsbjz]").bind("input propertychange",function(event){
  798. var ts = $("input[name=ts]").val()*1;
  799. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  800. //直接把单挑申报价改为 2位
  801. dtsbjz = (dtsbjz.toFixed(2))*1
  802. $("input[name=dtsbjz]").val(dtsbjz)
  803. var num = ts*dtsbjz;
  804. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  805. });
  806. $("input[name=ts]").bind("input propertychange",function(event){
  807. var ts = $("input[name=ts]").val()*1;
  808. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  809. //直接把单挑申报价改为 2位
  810. dtsbjz = (dtsbjz.toFixed(2))*1
  811. $("input[name=dtsbjz]").val(dtsbjz)
  812. var num = ts*dtsbjz;
  813. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  814. });
  815. $("input[name=refundy]").bind("input propertychange",function(event){
  816. var refundy = $("input[name=refundy]").val();
  817. if(refundy != 0)
  818. {
  819. $(".refund").show();
  820. $("input[name=rtime]").addClass("must");
  821. $("input[name=rpaypal]").addClass("must");
  822. $("input[name=rtext]").addClass("must");
  823. }
  824. else
  825. {
  826. $("input[name=rtime]").val("");
  827. $("input[name=rpaypal]").val("");
  828. $("input[name=rtext]").val("");
  829. $("input[name=rtime]").removeClass("must");
  830. $("input[name=rpaypal]").removeClass("must");
  831. $("input[name=rtext]").removeClass("must");
  832. $(".refund").hide();
  833. }
  834. });
  835. //监听input结束
  836. layx.tip('订单物流类型:{$fullorder["shippingmethod"]}',document.getElementById('method'),'bottom');
  837. $("#klarnadata").click(function() {
  838. $(".klarnadata").fadeToggle(300);
  839. });
  840. $("#hqklarna").click(function() {
  841. layx.load('loadId','获取中');
  842. $.ajax({
  843. url: "/fullorder/klarnadata/",
  844. data: "number="+$("input[name=number]").val(),
  845. type: "POST",
  846. dataType: "json",
  847. success: function(a) {
  848. layx.destroy('loadId');
  849. if (a && a.success) {
  850. layx.alert('提示',a.msg);
  851. } else {
  852. layx.alert('提示',a.msg);
  853. }
  854. }
  855. });
  856. });
  857. $('.ckthfpdata').click(function()
  858. {
  859. if($('.thfpdata').is(':hidden'))
  860. {
  861. $('.thfpdata').slideDown(100);
  862. $('.ckthfpdata').text("关闭替换内容");
  863. }
  864. else
  865. {
  866. $('.thfpdata').slideUp(100);
  867. $('.ckthfpdata').text("查看替换内容");
  868. }
  869. })
  870. $(".thfpdata tr").mouseenter(function(event){
  871. var list = $(this).data("tid");
  872. $(".datatext tr").each(function() {
  873. if($(this).data("list") == list)
  874. {
  875. $(this).css("background-color","#f8f094")
  876. }
  877. });
  878. });
  879. $(".thfpdata tr").mouseleave(function(event){
  880. $(".datatext tr").each(function() {
  881. $(this).removeAttr("style")
  882. });
  883. });
  884. $('.fullorderdata-ts').click(function()
  885. {
  886. var tjje = $("input[name='shouldmoney']").val();
  887. var tjwl = $("select[name='express']").children("option:selected").val();
  888. var tjqm = $("select[name='qm']").children("option:selected").val();
  889. var fwlx = $("select[name='js']").children("option:selected").val();
  890. if(tjje > 750 && (tjwl == 24 || tjwl == 31 || tjwl == 2) && tjqm != 1)
  891. {
  892. layx.confirm('提示','此金额和物流可以选择购买“签名”服务',null,{
  893. buttons:[
  894. {
  895. label:'操作签名',
  896. callback:function(id, button, event){
  897. layx.destroy(id);
  898. }
  899. },
  900. {
  901. label:'保存信息',
  902. callback:function(id, button, event){
  903. $('.fullorderdata').click();
  904. layx.destroy(id);
  905. }
  906. }
  907. ]
  908. });
  909. }
  910. else if(fwlx == 2)
  911. {
  912. layx.confirm('提示','确定要发“收费加急”吗?(请提前收取加急运费)',null,{
  913. buttons:[
  914. {
  915. label:'确定',
  916. callback:function(id, button, event){
  917. $('.fullorderdata').click();
  918. layx.destroy(id);
  919. }
  920. },
  921. {
  922. label:'取消',
  923. callback:function(id, button, event){
  924. layx.destroy(id);
  925. }
  926. }
  927. ]
  928. });
  929. }
  930. else
  931. {
  932. $('.fullorderdata').click();
  933. }
  934. });
  935. </script>
  936. <script src="{$theme}js/fullorder-addedit.js?v=2024011500021"></script>
  937. <script type="text/javascript" src="{$theme}js/time.js"></script>
  938. {Template footer}