fullordertt_edit.html 34 KB

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