fullorder_edit.html 40 KB

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