fullordersmt_edit.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. {Template header}
  2. <style type="text/css">
  3. .calendar{POSITION:absolute;}
  4. </style>
  5. <body>
  6. <div class="warp">
  7. <div class="packing">
  8. <div class="control">
  9. <a href="javascript:void(0);" class="exptj">添 加</a>
  10. <a href="javascript:void(0);" class="expxg">修 改</a>
  11. <a href="javascript:void(0);" class="expsc">删 除</a>
  12. <!-- {if $thfpdata != ''}
  13. <a href="javascript:void(0);" class="ckthfpdata">查看替换内容</a>
  14. {/if} -->
  15. </div>
  16. <div id="datatext">
  17. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  18. <tr>
  19. <td>商品名称</td>
  20. <td>数量</td>
  21. <td class="none">单价</td>
  22. <td class="none">总价</td>
  23. <td class="none">币种</td>
  24. <td class="none"></td>
  25. <td class="none"></td>
  26. <td class="none"></td>
  27. <td class="none"></td>
  28. <td class="none"></td>
  29. <td>占单</td>
  30. <td>操作</td>
  31. </tr>
  32. </table>
  33. </div>
  34. <table class="datatext data" border="0" style="border-collapse:collapse;">
  35. {loop $fpdata as $val}
  36. <tr data-list="{$val['0']}">
  37. <td>{$val['1']}</td>
  38. <td>{$val['2']}</td>
  39. <td class="none">{$val['3']}</td>
  40. <td class="none">{$val['4']}</td>
  41. <td class="none">CNY</td>
  42. <td class="none">{$val['5']}</td>
  43. <td class="none">{$val['6']}</td>
  44. <td class="none">{$val['7']}</td>
  45. <td class="none">{$val['8']}</td>
  46. <td class="none val9">{if isset($val['9'])}{$val['9']}{else}0{/if}</td>
  47. <td {if isset($val['zd']) && $fullorder['type'] == 13}style="color:#f00"{/if}>{if isset($val['zd'])}{$val['zd']}{/if}</td>
  48. <td class="czzd">{if $val['9'] != 'DNOTO'}<font class="jzzd">禁止占单</font>{else}<font class="yxzd">允许占单<font>{/if}</td>
  49. </tr>
  50. {/loop}
  51. </table>
  52. {if $thfpdata != ''}
  53. <table class="thfpdata data" border="0" style="border-collapse:collapse;margin-top:30px;display: none;">
  54. <tr style="background: #ececec;">
  55. <td>替换详情</td>
  56. <td>数量</td>
  57. <td>说明</td>
  58. </tr>
  59. <tr>
  60. {loop $thfpdata as $val}
  61. <tr>
  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. {if $xwuser == 0}
  76. <select name="warehouse" id="warehouse" class="select class">
  77. {loop warehouse(100) as $val}
  78. <option value="{$val['id']}" {if $fullordersmt['type'] == $val['id']}selected="selected"{/if} data-e="{$val['express']}">{$val['title']}</option>
  79. {/loop}</select>
  80. {else}
  81. <select name="warehouse" id="warehouse" class="select class">
  82. {loop $warehouse as $val}
  83. <option value="{$val['id']}" {if $fullordersmt['type'] == $val['id']}selected="selected"{/if} data-e="{$val['express']}">{$val['title']}</option>
  84. {/loop}</select>
  85. {/if}
  86. </li>
  87. <li>
  88. <em>结算币种:</em>
  89. <select name="currency" id="currency" class="select class">
  90. {loop typeclass(30) as $val}
  91. <option value="{$val['id']}" {if $fullordersmt['currency'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  92. {/loop}
  93. </select>
  94. </li>
  95. <li>
  96. <em>订单号:</em>
  97. <b class="orderinfo">{$fullordersmt['orderinfo']}</b>
  98. {if $fullordersmt['source'] != 1}
  99. <a href="https://trade.aliexpress.com/order_detail.htm?orderId={$fullordersmt['orderinfo']}" target="_blank"><i class="fa fa-send-o" style="margin-left:-26px;color:#39F"></i></a>
  100. {/if}
  101. </li>
  102. <li>
  103. <em>编号:</em>
  104. <b>{$fullordersmt['number']}</b>
  105. </li>
  106. <!-- 独立站使用下单时间,平台使用付款时间 -->
  107. {if $is == 1}
  108. <li>
  109. <em>订单时间:</em>
  110. <b>{$dtime}</b>
  111. </li>
  112. {else}
  113. <li>
  114. <em>付款时间:</em>
  115. <b>{date('Y-m-d H:i:s',$fullordersmt['buytime'])}</b>
  116. </li>
  117. {/if}
  118. <li>
  119. <!--
  120. <em>预估到帐金额:</em>
  121. <b class="currencymoney budget">{$fullordersmt['budget']}</b>
  122. -->
  123. <em>收款金额:</em>
  124. <input name="skje" class="must currencymoney" value="{$fullordersmt['skje']}" type="text">
  125. <div class="none"><b class="currencymoney budget">{$fullordersmt['budget']}</b></div>
  126. </li>
  127. <li>
  128. <em>订单状态:</em>
  129. <select name="state" class="select class">
  130. {loop typeclass(29,1) as $val}
  131. <option value="{$val['id']}" {if $fullordersmt['state'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  132. {/loop}
  133. </select>
  134. </li>
  135. <li>
  136. <em>资金状态:</em>
  137. <select name="capital" class="select class">
  138. <option value="1" {if $fullordersmt['capital'] == 1}selected="selected"{/if}>暂未支付</option>
  139. <option value="2" {if $fullordersmt['capital'] == 2}selected="selected"{/if}>部分支付</option>
  140. <option value="3" {if $fullordersmt['capital'] == 3}selected="selected"{/if}>全部支付</option>
  141. </select>
  142. </li>
  143. <!--
  144. <li class="lengththree">
  145. <em>运费:</em>
  146. <input name="freight" class="must currencymoney" value="{$fullordersmt['freight']}" type="text"> <font class="currency">CNY</font>
  147. </li>
  148. -->
  149. <li class="lengthfour">
  150. <em>物流金额:</em>
  151. <input name="expressmoney" class="must currencymoney" value="{$fullordersmt['expressmoney']}" type="text">
  152. </li>
  153. <li class="lengthfour">
  154. <em>补/退原额:</em>
  155. <input name="refundy" class="must currencymoney" value="{$fullordersmt['refundy']}" type="text">
  156. </li>
  157. <li class="lengthfour">
  158. <em>补/退净额:</em>
  159. <input name="refundj" class="must currencymoney" value="{$fullordersmt['refundj']}" type="text">
  160. </li>
  161. <li class="lengthfour">
  162. <em>订单金额:</em>
  163. <input name="shouldmoney" class="must currencymoney" value="{$fullordersmt['shouldmoney']}" type="text" {if $fullordersmt['shouldmoney'] > 200}style="color:#F00"{/if}>
  164. </li>
  165. <div class="refund {if $fullordersmt['refundy'] == 0}none{/if}">
  166. <li>
  167. <em>日 期:</em>
  168. <input name="rtime" id="refundtime" value="{$fullordersmt['rtime']!=0?date('Y-m-d',$fullordersmt['rtime']):''}" type="text">
  169. </li>
  170. <li>
  171. <em>交易号:</em>
  172. <input name="rpaypal" value="{$fullordersmt['rpaypal']}" type="text">
  173. </li>
  174. <li class="length">
  175. <em>原 因:</em>
  176. <textarea name="rtext" style="height:46px;">{$fullordersmt['rtext']}</textarea>
  177. </li>
  178. </div>
  179. <li>
  180. <em>付款方式:</em>
  181. <input name="pay" value="{$fullordersmt['pay']}" type="text">
  182. </li>
  183. <li>
  184. <em>运单号:</em>
  185. <input name="waybill" value="{$fullordersmt['waybill']}" type="text">
  186. </li>
  187. <li class="length">
  188. <em>交易号:</em>
  189. <b>{$fullordersmt['paypal']}</b>
  190. </li>
  191. <li class="length">
  192. <em>客户留言:</em>
  193. <b style="color:#F00">{$fullordersmt['clientremarks']}</b>
  194. </li>
  195. <li class="length">
  196. <em>商品名称:</em>
  197. <b>{$product}</b>
  198. </li>
  199. <li class="length">
  200. <em>SKU:</em>
  201. <b>{$fullordersmt['sku']}</b>
  202. </li>
  203. <li class="length remark">
  204. <em>订单备注:</em>
  205. <textarea name="orderremarks" style="height:25px;">{$fullordersmt['orderremarks']}</textarea>
  206. </li>
  207. <li class="length remark">
  208. <em>仓库品名:</em>
  209. <textarea name="shipremarks">{$fullordersmt['shipremarks']}</textarea>
  210. </li>
  211. <li>
  212. <em>买家ID:</em>
  213. <b>{if $fullordersmt['state'] == 1}无{else}{$fullordersmt['fullname']}{/if}</b>
  214. </li>
  215. <li>
  216. <em>国家:</em>
  217. <select name="country" class="select class">
  218. {loop $country as $val}
  219. <option value="{$val['id']}" {if $fullordersmt['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
  220. {/loop}
  221. </select>
  222. </li>
  223. <li>
  224. <em>公司名:</em>
  225. <input name="client" class="must" value="{$fullordersmt['client']}" type="text"><font style="color:#F00"> *</font>
  226. </li>
  227. <li>
  228. <em>省州:</em>
  229. <input value="{$fullordersmt['province']}" name="province" type="text" {if (($fullordersmt['city'] == 'Newark' || $fullordersmt['city'] == 'Camden') && ($fullordersmt['province'] == 'New Jersey' || $fullordersmt['province'] == 'NJ')) || $fullordersmt['province'] == 'Jersey'}style="color:#F00"{/if}><font style="color:#F00"> *</font>
  230. </li>
  231. <li>
  232. <em>收货人姓名:</em>
  233. <input name="name" class="must" value="{$fullordersmt['name']}" type="text"><font style="color:#F00"> *</font>
  234. </li>
  235. <li>
  236. <em>城市:</em>
  237. <input class="must" value="{$fullordersmt['city']}" name="city" type="text"><font style="color:#F00"> *</font>
  238. </li>
  239. <li>
  240. <em>联系方式:</em>
  241. <input name="phone" class="must" value="{$fullordersmt['phone']}" type="text"><font style="color:#F00"> *</font>
  242. </li>
  243. <li>
  244. <em>邮编:</em>
  245. <input value="{$fullordersmt['zipcode']}" name="zipcode" type="text"><font style="color:#F00"> *</font>
  246. </li>
  247. <li class="length">
  248. <em>地址2:</em>
  249. <input value="{$fullordersmt['address2']}" name="address2" type="text">
  250. </li>
  251. <li class="length">
  252. <em>地址1:</em>
  253. <input value="{$fullordersmt['address']}" name="address" type="text"><font style="color:#F00"> *</font>
  254. </li>
  255. <li class="length">
  256. <em>详细地址预览:</em>
  257. <b class="address">{$fullordersmt['address2']} {$fullordersmt['address']} {$fullordersmt['city']} {$fullordersmt['province']} {loop $country as $val}{if $fullordersmt['country'] == $val['id']}{$val['name']}{/if}{/loop}</b>
  258. </li>
  259. <li class="lengththree">
  260. <em>申报品名:</em>
  261. <select name="sbpm" class="select class">
  262. {loop customsdeclaration(50) as $val}
  263. <option value="{$val['ename']}" {if $fullordersmt['sbpm'] == $val['ename']}selected="selected"{/if}>{$val['ename']}</option>
  264. {/loop}
  265. </select>
  266. </li>
  267. <li class="lengththree">
  268. <em>中文品名:</em>
  269. <select name="zwpm" class="select class">
  270. {loop customsdeclaration(50) as $val}
  271. <option value="{$val['zname']}" {if $fullordersmt['zwpm'] == $val['zname']}selected="selected"{/if}>{$val['zname']}</option>
  272. {/loop}
  273. </select>
  274. </li>
  275. <li class="lengththree">
  276. <em>海关编码:</em>
  277. <select name="hgbm" class="select class">
  278. {loop customsdeclaration(50) as $val}
  279. <option value="{$val['bname']}" {if $fullordersmt['hgbm'] == $val['bname']}selected="selected"{/if}>{$val['bname']}</option>
  280. {/loop}
  281. </select>
  282. </li>
  283. <li class="lengththree">
  284. <em>条数:</em>
  285. <input name="ts" class="must" value="{$fullordersmt['ts']}" type="text"><font style="color:#F00"> *</font>
  286. </li>
  287. <li class="lengththree">
  288. <em>单条申报价:</em>
  289. <input name="dtsbjz" class="must" value="{$fullordersmt['dtsbjz']}" type="text"><font style="color:#F00"> *</font>
  290. </li>
  291. <li class="lengththree">
  292. <em>总申报价:</em>
  293. <input name="zsbjz" class="must" value="{$fullordersmt['zsbjz']}" type="text" readonly style="background-color: #ebebe4;"><font style="color:#F00"> *</font>
  294. </li>
  295. <li class="lengththree">
  296. <em>总重量:</em>
  297. <input name="zzl" class="must" value="{$fullordersmt['zzl']}" type="text"> <font class="zzldw">{$zzhl}</font>
  298. </li>
  299. <li class="lengththree">
  300. <em>总件数:</em>
  301. <input name="zjs" class="must" value="{$fullordersmt['zjs']}" type="text" readonly style="background-color: #ebebe4;"><font style="color:#F00"> *</font>
  302. </li>
  303. <li class="lengththree">
  304. <em>购买保险:</em>
  305. {if $fullordersmt['print'] != 3}
  306. <input name="bx" class="must" value="{$fullordersmt['bx']}" type="text"> USD
  307. {else}
  308. <b>{$fullordersmt['bx']}</b> USD
  309. {/if}
  310. </li>
  311. <li>
  312. <em>IOSS:</em>
  313. <select name="ioss" class="select class">
  314. <option value="" {if $fullordersmt['ioss'] == ''}selected="selected"{/if}>未选择</option>
  315. {loop ioss(100) as $val}
  316. <option value="{$val['ioss']}" {if $fullordersmt['ioss'] == $val['ioss']}selected="selected"{/if}>{$val['title']}</option>
  317. {/loop}
  318. </select>
  319. </li>
  320. <li>
  321. <em>获取平台信息:</em>
  322. <select name="tb" class="select class">
  323. <option value="0" {if $fullordersmt['tb'] == '0'}selected="selected"{/if}>是</option>
  324. <option value="1" {if $fullordersmt['tb'] == '1'}selected="selected"{/if}>否</option>
  325. </select>
  326. </li>
  327. <li>
  328. <em>快递方式:</em>
  329. <select name="express" class="select class">
  330. {if $user['power'] != 47}
  331. {loop express(100,'smt') as $val}
  332. <option value="{$val['id']}" data-type="{$val['type']}" {if $fullordersmt['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  333. {/loop}
  334. {else}
  335. {loop xwexpress(100) as $val}
  336. <option value="{$val['id']}" data-type="{$val['type']}" {if $fullordersmt['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  337. {/loop}
  338. {/if}
  339. </select>
  340. <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>
  341. </li>
  342. <li>
  343. <em>打印类型:</em>
  344. <select name="printtype" class="printtype select class">
  345. <option value="1" {if $fullordersmt['printtype'] == 1}selected="selected"{/if}>运单</option>
  346. <option value="2" {if $fullordersmt['printtype'] == 2}selected="selected"{/if}>发货单</option>
  347. <option value="3" {if $fullordersmt['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
  348. </select>
  349. </li>
  350. <div style="width:100%;float:left">
  351. <li class="qm none">
  352. <em>是否签名:</em>
  353. {if ($fullordersmt['review'] < 5 || $vip == '1') && ($fullordersmt['express'] == 2 || $fullordersmt['express'] == 24 || $fullordersmt['express'] == 31)}
  354. <select name="qm" class="select class">
  355. <option value="0" {if $fullordersmt['qm'] == '0'}selected="selected"{/if}>不需要</option>
  356. <option value="1" {if $fullordersmt['qm'] == '1'}selected="selected"{/if}>需要</option>
  357. </select>
  358. {else}
  359. <select name="qm" class="printtype select class">
  360. <option value="0">无</option>
  361. </select>
  362. <!--
  363. <b>{if $fullordersmt['express'] != 24 && $fullordersmt['express'] != 31}{if $fullordersmt['qm'] == 0}不需要{else if $fullordersmt['qm'] == 1}需要{/if}{else}{if $fullordersmt['qm'] == 0}默认{else if $fullordersmt['qm'] == 1}成人签名{else if $fullordersmt['qm'] == 2}必须签名但可代签{/if}{/if}</b>-->
  364. {/if}
  365. </li>
  366. <!--<li class="usps none">-->
  367. <!--<em>服务类型:</em>-->
  368. <!--{if $fullordersmt['print'] != 3}-->
  369. <!--<select name="js" class="select class">-->
  370. <!--<option value="0" {if $fullordersmt['js'] == 0}selected="selected"{/if}>Ground Advantage</option>-->
  371. <!--<option value="1" {if $fullordersmt['js'] == 1}selected="selected"{/if}>PRIORITY</option>-->
  372. <!--<option value="2" {if $fullordersmt['js'] == 2}selected="selected"{/if}>EXPRESS</option>-->
  373. <!-- <option value="3" {if $fullordersmt['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  374. <!--</select>-->
  375. <!--{else}-->
  376. <!--<b>{if $fullordersmt['js'] == 0}Ground Advantage{else if $fullordersmt['js'] == 1}PRIORITY{/if}</b>-->
  377. <!--{/if}-->
  378. <!--</li>-->
  379. <li class="usps none">
  380. <em>服务类型:</em>
  381. {if $fullordersmt['print'] != 3}
  382. {if in_array($fullordersmt['express'],[24,31])}
  383. <select name="js" class="select class">
  384. <option value="4" {if $fullordersmt['js'] != 3}selected="selected"{/if}>FICP</option>
  385. <option value="3" {if $fullordersmt['js'] == 3}selected="selected"{/if}>IP</option>
  386. </select>
  387. {else}
  388. <select name="js" class="select class">
  389. <option value="0" {if $fullordersmt['js'] == 0}selected="selected"{/if}>Ground Advantage</option>
  390. <option value="1" {if $fullordersmt['js'] == 1}selected="selected"{/if}>PRIORITY</option>
  391. <option value="2" {if $fullordersmt['js'] == 2}selected="selected"{/if}>EXPRESS</option>
  392. <!-- <option value="3" {if $fullordersmt['js'] == 3}selected="selected"{/if}>ENVELOPE</option>-->
  393. </select>
  394. {/if}
  395. {else}
  396. <b>
  397. {if in_array($fullordersmt['express'],[24,31])}
  398. <b>{if ($fullordersmt['js'] == 3)} IP {else} FICP{/if}</b>
  399. {else}
  400. <b>{if $fullordersmt['js'] == 0}Ground Advantage{else if $fullordersmt['js'] == 1}PRIORITY{else if $fullordersmt['js'] == 2}EXPRESS{/if}</b>
  401. {/if}
  402. {/if}
  403. </li>
  404. </div>
  405. <!--
  406. <li class="productdescription none">
  407. <em>产品描述:</em>
  408. <select name="productdescription" class="select class">
  409. </select>
  410. </li>
  411. <li class="customs none">
  412. <em>海关价值:</em>
  413. <input class="must" value="{$fullordersmt['customs']}" name="customs" type="text"> <font class="currency">CNY</font>
  414. </li>
  415. -->
  416. <li>
  417. <em>审核状态:</em>
  418. <b>
  419. {if $fullordersmt['review'] == 1}
  420. 未送审
  421. {else if $fullordersmt['review'] == 2}
  422. 待审核
  423. {else if $fullordersmt['review'] == 3}
  424. 不通过
  425. {else if $fullordersmt['review'] == 4}
  426. 取消重审
  427. {else if $fullordersmt['review'] == 5}
  428. 审核通过
  429. {else if $fullordersmt['review'] == 6 && $fullordersmt['reviewtime']!= ''}
  430. {date('Y-m-d H:i',$fullordersmt['reviewtime'])}
  431. {/if}
  432. </b>
  433. </li>
  434. <li>
  435. <em>不合格原因</em>
  436. <b>{$fullordersmt['failed']}</b>
  437. </li>
  438. <li class="lengththree">
  439. <em>打印状态:</em>
  440. <b>
  441. {if $fullordersmt['print'] == 1}
  442. 不可打印
  443. {else if $fullordersmt['print'] == 2}
  444. 未打印
  445. {else if $fullordersmt['print'] == 3}
  446. 已打印
  447. {/if}
  448. </b>
  449. </li>
  450. <li class="lengththree">
  451. <em>打印时间:</em>
  452. <b>{if $fullordersmt['printtime'] != 0}{date('Y-m-d H:i',$fullordersmt['printtime'])}{else}无{/if}
  453. </li>
  454. <li class="lengththree">
  455. <em>打印次数:</em>
  456. <b>{$fullordersmt['printnumber']}</b>
  457. </li>
  458. <li class="lengththree">
  459. <em>出库状态:</em>
  460. <b>
  461. {if $fullordersmt['library'] == 1}
  462. 未出库
  463. {else if $fullordersmt['library'] == 2}
  464. 已出库
  465. {else if $fullordersmt['library'] == 3}
  466. 已退库
  467. {/if}
  468. </b>
  469. </li>
  470. <li class="lengththree">
  471. <em>出库时间:</em>
  472. <b>
  473. {if $fullordersmt['librarytime'] != 0}{date('Y-m-d H:i',$fullordersmt['librarytime'])}{else}无{/if}
  474. </b>
  475. </li>
  476. <li class="lengththree">
  477. {if $fullordersmt['library'] == 3}
  478. <em>退库时间:</em>
  479. {else}
  480. <em>允许发货:</em>
  481. {/if}
  482. <b>
  483. {if $fullordersmt['library'] == 3}
  484. {date('Y-m-d H:i',$fullordersmt['retreattime'])}
  485. {else}
  486. {if $fullordersmt['libraryconfirm'] == 1}
  487. 不允许出库
  488. {else if $fullordersmt['libraryconfirm'] == 2}
  489. 允许出库
  490. {/if}
  491. {/if}
  492. </b>
  493. </li>
  494. <li class="length">
  495. <em>不能出库原因:</em>
  496. <b>{$fullordersmt['librarynot']}</b>
  497. </li>
  498. <li class="length">
  499. <em>历史运单号:</em>
  500. <b>{$downwaybill}</b>
  501. </li>
  502. <li class="length">
  503. <em>历史打印时间:</em>
  504. <b>{$printtime}</b>
  505. </li>
  506. <li class="length">
  507. <em>退货信息:</em>
  508. <b class="return">{$fullordersmt['returndata']}</b>
  509. </li>
  510. <li class="length">
  511. <em>生产追踪:</em>
  512. <b class="return">{loop $systemwigsout as $val}{$val}{/loop}</b>
  513. </li>
  514. {if $fullordersmt['waybill2'] != ''}
  515. <li class="length">
  516. <em>GES转DHL单号:</em>
  517. <b>{$fullordersmt['waybill2']}</b>
  518. </li>
  519. {/if}
  520. </div>
  521. <div style="clear:both;"></div>
  522. </ul>
  523. <div class="need"><input type="hidden" name="id" value="{$fullordersmt['id']}" />
  524. <input type="hidden" name="purchase" value="{$fullordersmt['purchase']}" />
  525. <input type="hidden" name="cost" value="{$fullordersmt['cost']}" /></div>
  526. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  527. <input type="hidden" name="shop" value="{$fullordersmt['shop']}" />
  528. <input type="hidden" name="pdbcbz" value="{$fullordersmt['orderremarks']}" />
  529. <input type="hidden" name="whlabel" value="{$fullordersmt['whlabel']}" />
  530. <input type="hidden" name="data_shipremarks" value="{$fullordersmt['shipremarks']}" />
  531. <input type="hidden" name="number" value="{$fullordersmt['number']}" />
  532. <div class="button">{if $power ==1}<font class="power" style="float:left;">重置</font><font class="return" style="float:left;margin-left:20px;">生成退货标签</font>{/if}<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/{$fullordersmt['orderinfo']}/{$fullordersmt['id']}">售后登记</a></font>{else}<font style="float:left;margin-left:20px;">已登记售后</font>{/if}<font class="ddcf" data-f="fullordersmt" style="float:left;margin-left:20px;">订单拆分</font> <font class="yzaddress usps none" style="margin-right:60px;">验证地址</font> {if $fullordersmt['merge'] ==0 || $fullordersmt['merge'] == $fullordersmt['id']}<font class="yzxx">保 存</font> <font class="bcbz" style="display: none;">保 存</font> {/if}<font class="fh">关 闭</font></div>
  533. </div>
  534. <div class="zm none"></div>
  535. <script type="text/javascript">
  536. var addedit="/fullordersmt/edit/";var fh="/fullordersmt";
  537. $(".yzxx").click(function() {
  538. var zsbjz = "{$fullordersmt['zsbjz']}";
  539. var data_shipremarks = $("input[name='data_shipremarks']").val();
  540. var shipremarks = $("textarea[name='shipremarks']").val();
  541. if(zsbjz == 0 || data_shipremarks != shipremarks)
  542. {
  543. yzxx();
  544. }
  545. else
  546. {
  547. $(".bcbz").click();
  548. }
  549. });
  550. function yzxx() {
  551. $(".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_bcbz' 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>");
  552. $(".datatext tr").each(function() {
  553. $(".addful .addwp .datatitle").append("<tr><td>"+$(this).find("td:eq(0)").text()+"</td><td>"+$(this).find("td:eq(1)").text()+"</td></tr>");
  554. });
  555. $(".addful .addwp .data").css("min-width","100%");
  556. $(".addful .addwp").css("max-height","80%");
  557. $(".addful .addwp").css("overflow-y","scroll");
  558. $(".addful .addwp .datatitle tr td:eq(10)").css("display","none");
  559. $(".addful .addwp .datatitle tr td:eq(11)").css("display","none");
  560. $(".addful .addwp .datatext tr td:eq(10)").css("display","none");
  561. $(".addful .addwp .datatext tr td:eq(11)").css("display","none");
  562. $( ".addwp" ).draggable({revert: true,iframeFix:true});// revert: true,axis: "x"
  563. window.setInterval("reinitIframe()", 200);
  564. $(".addful").show();
  565. };
  566. function crcol(){
  567. if( $("select[name=country]").find("option:selected").val() == 192)
  568. {
  569. $("select[name=country]").css("color","#000");
  570. }
  571. else
  572. {
  573. $("select[name=country]").css("color","#F00");
  574. }
  575. };
  576. $("select[name=country]").change(function(){
  577. crcol();
  578. });
  579. $(document).ready(function() {
  580. var eid = $("select[name='express']").children("option:selected").val();
  581. var jsxz = '{$fullordersmt["js"]}';
  582. if(eid == '2' || eid == '64')//联邦的话替换签名选项
  583. {
  584. $("select[name='js']").html('<option value="0">Ground Advantage</option><option value="1">PRIORITY</option><option value="2">EXPRESS</option>');
  585. $("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  586. }
  587. else if(eid == 24 || eid == 31){
  588. //fedex杭州的服务选择
  589. // $("select[name='js']").html('<option value="3">IP</option><option value="4">FICP</option>');
  590. // $("select[name='js']").find('option[value="'+jsxz+'"]').prop('selected','selected');
  591. //fedex杭州的服务选择
  592. if(jsxz == 3){
  593. $("select[name='js']").html('<option value="4">FICP</option><option value="3">IP</option>');
  594. $("select[name='js']").find('option[value="3"]').prop('selected','selected');
  595. }else{
  596. $("select[name='js']").html('<option value="4">FICP</option>');
  597. $("select[name='js']").find('option[value="4"]').prop('selected','selected');
  598. }
  599. }
  600. else
  601. {
  602. $("select[name='js']").html('<option value="0" selected="selected">无</option>');//<option value="1">需要</option>
  603. }
  604. if($("select[name='express']").find("option:selected").val() == '24' || $("select[name='express']").find("option:selected").val() == '31')//联邦的话替换签名选项
  605. {
  606. $("select[name='qm']").html('<option value="0" {if $fullordersmt["qm"] == "0"}selected="selected"{/if}>默认</option><option value="1" {if $fullordersmt["qm"] == "1"}selected="selected"{/if}>成人签名</option>');
  607. $(".qm").show();
  608. }
  609. else
  610. {
  611. $("select[name='qm']").html('<option value="0" {if $fullordersmt["qm"] == "0"}selected="selected"{/if}>不需要</option><option value="1" {if $fullordersmt["qm"] == "1"}selected="selected"{/if}>需要</option>');
  612. }
  613. if($("select[name='express']").find("option:selected").val() == '2' || $("select[name='express']").find("option:selected").val() == '64')
  614. {
  615. $(".usps").show();
  616. $(".qm").show();
  617. }
  618. else if( ($("select[name='express']").find("option:selected").val() == '24') || ($("select[name='express']").find("option:selected").val() == '31') ){
  619. $(".usps").show();
  620. $(".qm").show();
  621. }
  622. $("#refundtime").calendar();
  623. crcol();
  624. var index = $("#currency").find("option:selected").text();
  625. $(".currency").text(index);
  626. $(".datatext tr").each(function() {
  627. //$(this).find("td:eq(9)").text(index);
  628. //currencymoney需要更改的价格
  629. });
  630. custom();
  631. pptskc('2');
  632. var index = $("select[name='printtype']").find("option:selected").index();
  633. if(index == 0)
  634. {
  635. var e = $("select[name=express]").find("option:selected").val();
  636. var c = $("select[name=country]").find("option:selected").val();
  637. if(c != 192)
  638. {
  639. $("select[name=country]").css("color","#F00");
  640. }
  641. $.ajax({
  642. url: "/fullordersmt/customs/",
  643. data: "e="+e+"&c="+c,
  644. type: "POST",
  645. dataType: "json",
  646. success: function(a) {
  647. if (a && a.success) {
  648. $("input[name=customs]").val(a.money);
  649. for(i=0;i<a.msg.length;i++)
  650. {
  651. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  652. }
  653. $(".productdescription").show();
  654. $(".customs").show();
  655. } else {
  656. $(".productdescription").hide();
  657. $(".customs").hide();
  658. }
  659. }
  660. });
  661. }else
  662. {
  663. $(".productdescription").hide();
  664. $(".customs").hide();
  665. }
  666. });
  667. function custom() {
  668. var num = $('.packing .datatitle tr').children().length;
  669. $('.data tr td').css("width","5%");
  670. $(".data tr").each(function() {
  671. $(this).find('td:eq(0)').css("width","30%");
  672. $(this).find('td:eq(1)').css("width","3%");
  673. $(this).find('td:eq(10)').css("width","10%");
  674. });}
  675. //监听input开始
  676. $("input[name=dtsbjz]").bind("input propertychange",function(event){
  677. var ts = $("input[name=ts]").val()*1;
  678. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  679. var num = ts*dtsbjz;
  680. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  681. });
  682. $("input[name=ts]").bind("input propertychange",function(event){
  683. var ts = $("input[name=ts]").val()*1;
  684. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  685. var num = ts*dtsbjz;
  686. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  687. });
  688. $("input[name=refundy]").bind("input propertychange",function(event){
  689. var refundy = $("input[name=refundy]").val();
  690. if(refundy != 0)
  691. {
  692. $(".refund").show();
  693. $("input[name=rtime]").addClass("must");
  694. $("input[name=rpaypal]").addClass("must");
  695. $("input[name=rtext]").addClass("must");
  696. }
  697. else
  698. {
  699. $("input[name=rtime]").val("");
  700. $("input[name=rpaypal]").val("");
  701. $("input[name=rtext]").val("");
  702. $("input[name=rtime]").removeClass("must");
  703. $("input[name=rpaypal]").removeClass("must");
  704. $("input[name=rtext]").removeClass("must");
  705. $(".refund").hide();
  706. }
  707. });
  708. //监听input结束
  709. $('.ckthfpdata').click(function()
  710. {
  711. if($('.thfpdata').is(':hidden'))
  712. {
  713. $('.thfpdata').slideDown(100);
  714. $('.ckthfpdata').text("关闭替换内容");
  715. }
  716. else
  717. {
  718. $('.thfpdata').slideUp(100);
  719. $('.ckthfpdata').text("查看替换内容");
  720. }
  721. })
  722. $(".thfpdata tr").mouseenter(function(event){
  723. var list = $(this).data("tid");
  724. $(".datatext tr").each(function() {
  725. if($(this).data("list") == list)
  726. {
  727. $(this).css("background-color","#f8f094")
  728. }
  729. });
  730. });
  731. $(".thfpdata tr").mouseleave(function(event){
  732. $(".datatext tr").each(function() {
  733. $(this).removeAttr("style")
  734. });
  735. });
  736. function addShouhu(that){
  737. let url = $(that).data("uu")
  738. layx.load('loadId','请求中。。。');
  739. location.href=url
  740. }
  741. </script>
  742. <script src="{$theme}js/fullorder-addedit.js?v=202401150002"></script>
  743. <script type="text/javascript" src="{$theme}js/time.js"></script>
  744. {Template footer}