fullordersmt_edit.html 27 KB

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