fullorderxw_edit.html 28 KB

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