fullordertt_edit.html 31 KB

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