fullordersmt_b.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. {Template header}
  2. <style type="text/css">
  3. .calendar{POSITION:absolute;}
  4. </style>
  5. <body>
  6. <div class="warp">
  7. <div class="title">修改订单</div>
  8. <div class="packing">
  9. <div class="control">
  10. <a href="javascript:void(0);" class="exptj">添 加</a>
  11. <a href="javascript:void(0);" class="expxg">修 改</a>
  12. <a href="javascript:void(0);" class="expsc">删 除</a>
  13. </div>
  14. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  15. <tr>
  16. <td>商品名称</td>
  17. <td>数量</td>
  18. <td>单价</td>
  19. <td>总价</td>
  20. <td>币种</td>
  21. </tr>
  22. </table>
  23. <table class="datatext data" border="0" style="border-collapse:collapse;">
  24. {loop $fpdata as $val}
  25. <tr data-list="{$val['0']}">
  26. <td>{$val['1']}</td>
  27. <td>{$val['2']}</td>
  28. <td>{$val['3']}</td>
  29. <td>{$val['4']}</td>
  30. <td>CNY</td>
  31. <td class="none">{$val['5']}</td>
  32. <td class="none">{$val['6']}</td>
  33. <td class="none">{$val['7']}</td>
  34. </tr>
  35. {/loop}
  36. </table>
  37. </div>
  38. <ul class="setting">
  39. <div class="need">
  40. <li>
  41. <em>发货仓库:</em>
  42. <select name="warehouse" id="warehouse" class="select class">
  43. {loop warehouse(100) as $val}
  44. <option value="{$val['id']}" {if $fullordersmt['type'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  45. {/loop}</select>
  46. </li>
  47. <li>
  48. <em>结算币种:</em>
  49. <select name="currency" id="currency" class="select class">
  50. {loop typeclass(30) as $val}
  51. <option value="{$val['id']}" {if $fullordersmt['currency'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  52. {/loop}
  53. </select>
  54. </li>
  55. <li>
  56. <em>订单号:</em>
  57. <b class="orderinfo">{$fullordersmt['orderinfo']}</b>
  58. </li>
  59. <li>
  60. <em>编号:</em>
  61. <b>{$fullordersmt['number']}</b>
  62. </li>
  63. <!-- 独立站使用下单时间,平台使用付款时间 -->
  64. {if $is == 1}
  65. <li>
  66. <em>订单时间:</em>
  67. <b>{$dtime}</b>
  68. </li>
  69. {else}
  70. <li>
  71. <em>付款时间:</em>
  72. <b>{date('Y-m-d H:i:s',$fullordersmt['buytime'])}</b>
  73. </li>
  74. {/if}
  75. <li>
  76. <em>预估到帐金额:</em>
  77. <b class="currencymoney budget">{$fullordersmt['budget']}</b>
  78. </li>
  79. <li>
  80. <em>订单状态:</em>
  81. <select name="state" class="select class">
  82. {loop typeclass(29,1) as $val}
  83. <option value="{$val['id']}" {if $fullordersmt['state'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
  84. {/loop}
  85. </select>
  86. </li>
  87. <li>
  88. <em>资金状态:</em>
  89. <select name="capital" class="select class">
  90. <option value="1" {if $fullordersmt['capital'] == 1}selected="selected"{/if}>暂未支付</option>
  91. <option value="2" {if $fullordersmt['capital'] == 2}selected="selected"{/if}>部分支付</option>
  92. <option value="3" {if $fullordersmt['capital'] == 3}selected="selected"{/if}>全部支付</option>
  93. </select>
  94. </li>
  95. <!--
  96. <li class="lengththree">
  97. <em>运费:</em>
  98. <input name="freight" class="must currencymoney" value="{$fullordersmt['freight']}" type="text"> <font class="currency">CNY</font>
  99. </li>
  100. -->
  101. <li class="lengthfour">
  102. <em>物流金额:</em>
  103. <input name="expressmoney" class="must currencymoney" value="{$fullordersmt['expressmoney']}" type="text">
  104. </li>
  105. <li class="lengthfour">
  106. <em>补/退原额:</em>
  107. <input name="refundy" class="must currencymoney" value="{$fullordersmt['refundy']}" type="text">
  108. </li>
  109. <li class="lengthfour">
  110. <em>补/退净额:</em>
  111. <input name="refundj" class="must currencymoney" value="{$fullordersmt['refundj']}" type="text">
  112. </li>
  113. <li class="lengthfour">
  114. <em>订单金额:</em>
  115. <input name="shouldmoney" class="must currencymoney" value="{$fullordersmt['shouldmoney']}" type="text" {if $fullordersmt['shouldmoney'] > 200}style="color:#F00"{/if}>
  116. </li>
  117. <div class="refund {if $fullordersmt['refundy'] == 0}none{/if}">
  118. <li>
  119. <em>日 期:</em>
  120. <input name="rtime" id="refundtime" value="{$fullordersmt['rtime']!=0?date('Y-m-d',$fullordersmt['rtime']):''}" type="text">
  121. </li>
  122. <li>
  123. <em>交易号:</em>
  124. <input name="rpaypal" value="{$fullordersmt['rpaypal']}" type="text">
  125. </li>
  126. <li class="length">
  127. <em>原 因:</em>
  128. <input name="rtext" value="{$fullordersmt['rtext']}" type="text">
  129. </li>
  130. </div>
  131. <li>
  132. <em>付款方式:</em>
  133. <input name="pay" value="{$fullordersmt['pay']}" type="text">
  134. </li>
  135. <li>
  136. <em>运单号:</em>
  137. <input name="waybill" value="{$fullordersmt['waybill']}" type="text">
  138. </li>
  139. <li class="length">
  140. <em>交易号:</em>
  141. <b>{$fullordersmt['paypal']}</b>
  142. </li>
  143. <li class="length">
  144. <em>客户留言:</em>
  145. <b style="color:#F00">{$fullordersmt['clientremarks']}</b>
  146. </li>
  147. <li class="length">
  148. <em>商品名称:</em>
  149. <b>{$fullordersmt['product']}</b>
  150. </li>
  151. <li class="length">
  152. <em>SKU:</em>
  153. <b>{$fullordersmt['sku']}</b>
  154. </li>
  155. <li class="length remark">
  156. <em>订单备注:</em>
  157. <textarea name="orderremarks">{$fullordersmt['orderremarks']}</textarea>
  158. </li>
  159. <li class="length remark">
  160. <em>仓库品名:</em>
  161. <textarea name="shipremarks">{$fullordersmt['shipremarks']}</textarea>
  162. </li>
  163. <li>
  164. <em>买家ID:</em>
  165. <b>{if $fullordersmt['state'] == 1}无{else}{$fullordersmt['fullname']}{/if}</b>
  166. </li>
  167. <li>
  168. <em>国家:</em>
  169. <select name="country" class="select class">
  170. {loop $country as $val}
  171. <option value="{$val['id']}" {if $fullordersmt['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
  172. {/loop}
  173. </select>
  174. </li>
  175. <li>
  176. <em>公司名:</em>
  177. <input name="client" class="must" value="{$fullordersmt['client']}" type="text">
  178. </li>
  179. <li>
  180. <em>省州:</em>
  181. <input value="{$fullordersmt['province']}" name="province" type="text">
  182. </li>
  183. <li>
  184. <em>收货人姓名:</em>
  185. <input name="name" class="must" value="{$fullordersmt['name']}" type="text">
  186. </li>
  187. <li>
  188. <em>城市:</em>
  189. <input class="must" value="{$fullordersmt['city']}" name="city" type="text">
  190. </li>
  191. <li>
  192. <em>联系方式:</em>
  193. <input name="phone" class="must" value="{$fullordersmt['phone']}" type="text">
  194. </li>
  195. <li>
  196. <em>邮编:</em>
  197. <input value="{$fullordersmt['zipcode']}" name="zipcode" type="text">
  198. </li>
  199. <li class="length">
  200. <em>地址2:</em>
  201. <input value="{$fullordersmt['address2']}" name="address2" type="text">
  202. </li>
  203. <li class="length">
  204. <em>地址:</em>
  205. <input value="{$fullordersmt['address']}" name="address" type="text">
  206. </li>
  207. <li class="length">
  208. <em>详细地址预览:</em>
  209. <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>
  210. </li>
  211. <li>
  212. <em>申报品名:</em>
  213. <select name="sbpm" class="select class">
  214. <option value="Hair Sample" {if $fullordersmt['sbpm'] == 'Hair Sample'}selected="selected"{/if}>Hair Sample</option>
  215. <option value="Synthetic Hair" {if $fullordersmt['sbpm'] == 'Synthetic Hair'}selected="selected"{/if}>Synthetic Hair</option>
  216. </select>
  217. </li>
  218. <li>
  219. <em>中文品名:</em>
  220. <select name="zwpm" class="select class">
  221. <option value="假发" {if $fullordersmt['zwpm'] == '假发'}selected="selected"{/if}>假发</option>
  222. <option value="化纤发" {if $fullordersmt['zwpm'] == '化纤发'}selected="selected"{/if}>化纤发</option>
  223. </select>
  224. </li>
  225. <li class="lengththree">
  226. <em>条数:</em>
  227. <input name="ts" class="must" value="{$fullordersmt['ts']}" type="text">
  228. </li>
  229. <li class="lengththree">
  230. <em>单条申报价:</em>
  231. <input name="dtsbjz" class="must" value="{$fullordersmt['dtsbjz']}" type="text">
  232. </li>
  233. <li class="lengththree">
  234. <em>总申报价:</em>
  235. <input name="zsbjz" class="must" value="{$fullordersmt['zsbjz']}" type="text" readonly style="background-color: #ebebe4;">
  236. </li>
  237. <li class="lengththree">
  238. <em>总重量:</em>
  239. <input name="zzl" class="must" value="{$fullordersmt['zzl']}" type="text">
  240. </li>
  241. <li class="lengththree">
  242. <em>总件数:</em>
  243. <input name="zjs" class="must" value="{$fullordersmt['zjs']}" type="text">
  244. </li>
  245. <li class="lengththree">
  246. <em>购买保险:</em>
  247. {if $fullordersmt['print'] != 3}
  248. <input name="bx" class="must" value="{$fullordersmt['bx']}" type="text"> USD
  249. {else}
  250. <b>{$fullordersmt['bx']}</b> USD
  251. {/if}
  252. </li>
  253. <li>
  254. <em>快递公司:</em>
  255. <select name="express" class="select class">
  256. {loop express(100,'smt') as $val}
  257. <option value="{$val['id']}" {if $fullordersmt['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  258. {/loop}
  259. </select>
  260. </li>
  261. <li>
  262. <em>打印类型:</em>
  263. <select name="printtype" class="printtype select class">
  264. <option value="2" {if $fullordersmt['printtype'] == 2}selected="selected"{/if}>发货单</option>
  265. <option value="1" {if $fullordersmt['printtype'] == 1}selected="selected"{/if}>运单</option>
  266. <option value="3" {if $fullordersmt['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
  267. </select>
  268. </li>
  269. <li class="usps none">
  270. <em>是否签名:</em>
  271. {if $fullordersmt['print'] != 3}
  272. <select name="qm" class="select class">
  273. <option value="0" {if $fullordersmt['qm'] == 0}selected="selected"{/if}>不需要</option>
  274. <option value="1" {if $fullordersmt['qm'] == 1}selected="selected"{/if}>需要</option>
  275. </select>
  276. {else}
  277. <b>{if $fullordersmt['qm'] == 0}不需要{else if $fullordersmt['qm'] == 1}需要{/if}</b>
  278. {/if}
  279. </li>
  280. <li class="usps none">
  281. <em>服务类型:</em>
  282. {if $fullordersmt['print'] != 3}
  283. <select name="js" class="select class">
  284. <option value="0" {if $fullordersmt['js'] == 0}selected="selected"{/if}>FIRST CLASS</option>
  285. <option value="1" {if $fullordersmt['js'] == 1}selected="selected"{/if}>PRIORITY</option>
  286. </select>
  287. {else}
  288. <b>{if $fullordersmt['js'] == 0}FIRST CLASS{else if $fullordersmt['js'] == 1}PRIORITY{/if}</b>
  289. {/if}
  290. </li>
  291. <!--
  292. <li class="productdescription none">
  293. <em>产品描述:</em>
  294. <select name="productdescription" class="select class">
  295. </select>
  296. </li>
  297. <li class="customs none">
  298. <em>海关价值:</em>
  299. <input class="must" value="{$fullordersmt['customs']}" name="customs" type="text"> <font class="currency">CNY</font>
  300. </li>
  301. -->
  302. <li>
  303. <em>审核状态:</em>
  304. <b>
  305. {if $fullordersmt['review'] == 1}
  306. 未送审
  307. {else if $fullordersmt['review'] == 2}
  308. 待审核
  309. {else if $fullordersmt['review'] == 3}
  310. 不通过
  311. {else if $fullordersmt['review'] == 4}
  312. 取消重审
  313. {else if $fullordersmt['review'] == 5}
  314. 审核通过
  315. {else if $fullordersmt['review'] == 6 && $fullordersmt['reviewtime']!= ''}
  316. {date('Y-m-d H:i',$fullordersmt['reviewtime'])}
  317. {/if}
  318. </b>
  319. </li>
  320. <li>
  321. <em>不合格原因</em>
  322. <b>{$fullordersmt['failed']}</b>
  323. </li>
  324. <li class="lengththree">
  325. <em>打印状态:</em>
  326. <b>
  327. {if $fullordersmt['print'] == 1}
  328. 不可打印
  329. {else if $fullordersmt['print'] == 2}
  330. 未打印
  331. {else if $fullordersmt['print'] == 3}
  332. 已打印
  333. {/if}
  334. </b>
  335. </li>
  336. <li class="lengththree">
  337. <em>打印时间:</em>
  338. <b>{if $fullordersmt['printtime'] != 0}{date('Y-m-d H:i',$fullordersmt['printtime'])}{else}无{/if}
  339. </li>
  340. <li class="lengththree">
  341. <em>打印次数:</em>
  342. <b>{$fullordersmt['printnumber']}</b>
  343. </li>
  344. <li class="lengththree">
  345. <em>出库状态:</em>
  346. <b>
  347. {if $fullordersmt['library'] == 1}
  348. 未出库
  349. {else if $fullordersmt['library'] == 2}
  350. 已出库
  351. {else if $fullordersmt['library'] == 3}
  352. 已退库
  353. {/if}
  354. </b>
  355. </li>
  356. <li class="lengththree">
  357. <em>出库时间:</em>
  358. <b>
  359. {if $fullordersmt['librarytime'] != 0}{date('Y-m-d H:i',$fullordersmt['librarytime'])}{else}无{/if}
  360. </b>
  361. </li>
  362. <li class="lengththree">
  363. {if $fullordersmt['library'] == 3}
  364. <em>退库时间:</em>
  365. {else}
  366. <em>允许发货:</em>
  367. {/if}
  368. <b>
  369. {if $fullordersmt['library'] == 3}
  370. {date('Y-m-d H:i',$fullordersmt['retreattime'])}
  371. {else}
  372. {if $fullordersmt['libraryconfirm'] == 1}
  373. 不允许出库
  374. {else if $fullordersmt['libraryconfirm'] == 2}
  375. 允许出库
  376. {/if}
  377. {/if}
  378. </b>
  379. </li>
  380. <li class="length">
  381. <em>不能出库原因:</em>
  382. <b>{$fullordersmt['librarynot']}</b>
  383. </li>
  384. <li class="length">
  385. <em>历史运单号:</em>
  386. <b>{$downwaybill}</b>
  387. </li>
  388. <li class="length">
  389. <em>退货信息:</em>
  390. <b class="return">{$fullordersmt['return']}</b>
  391. </li>
  392. </div>
  393. <div style="clear:both;"></div>
  394. </ul>
  395. <div class="need"><input type="hidden" name="id" value="{$fullordersmt['id']}" />
  396. <input type="hidden" name="purchase" value="{$fullordersmt['purchase']}" />
  397. <input type="hidden" name="cost" value="{$fullordersmt['cost']}" /></div>
  398. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  399. <input type="hidden" name="shop" value="{$fullordersmt['shop']}" />
  400. <input type="hidden" name="pdbcbz" value="{$fullordersmt['orderremarks']}" />
  401. <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="yzaddress usps none" style="margin-right:160px;">验证地址</font> <font class="bcbz">保 存</font> <font class="fullorderdata">提交审核</font> <font class="fh">关 闭</font></div>
  402. </div>
  403. <div class="zm none"></div>
  404. <script type="text/javascript">var addedit="/fullordersmt/edit/";var fh="/fullordersmt";
  405. function crcol(){
  406. if( $("select[name=country]").find("option:selected").val() == 192)
  407. {
  408. $("select[name=country]").css("color","#000");
  409. }
  410. else
  411. {
  412. $("select[name=country]").css("color","#F00");
  413. }
  414. };
  415. $("select[name=country]").change(function(){
  416. crcol();
  417. });
  418. $(document).ready(function() {
  419. $("#refundtime").calendar();
  420. crcol();
  421. var index = $("#currency").find("option:selected").text();
  422. $(".currency").text(index);
  423. $(".datatext tr").each(function() {
  424. //$(this).find("td:eq(9)").text(index);
  425. //currencymoney需要更改的价格
  426. });
  427. custom();
  428. var index = $("select[name='printtype']").find("option:selected").index();
  429. if(index == 0)
  430. {
  431. var e = $("select[name=express]").find("option:selected").val();
  432. var c = $("select[name=country]").find("option:selected").val();
  433. if(c != 192)
  434. {
  435. $("select[name=country]").css("color","#F00");
  436. }
  437. $.ajax({
  438. url: "/fullordersmt/customs/",
  439. data: "e="+e+"&c="+c,
  440. type: "POST",
  441. dataType: "json",
  442. success: function(a) {
  443. if (a && a.success) {
  444. $("input[name=customs]").val(a.money);
  445. for(i=0;i<a.msg.length;i++)
  446. {
  447. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  448. }
  449. $(".productdescription").show();
  450. $(".customs").show();
  451. } else {
  452. $(".productdescription").hide();
  453. $(".customs").hide();
  454. }
  455. }
  456. });
  457. }else
  458. {
  459. $(".productdescription").hide();
  460. $(".customs").hide();
  461. }
  462. });
  463. function custom() {
  464. var num = $('.packing .datatitle tr').children().length;
  465. $('.data tr td').css("width","5%");
  466. $(".data tr").each(function() {
  467. $(this).find('td:eq(0)').css("width","30%");
  468. });}
  469. $("select[name='express']").change(function() { //usps 显示 签名和服务类型
  470. var nr = $("select[name='express']").find("option:selected").val();
  471. if(nr == "2")
  472. {
  473. $(".usps").show();
  474. }
  475. else
  476. {
  477. $(".usps").hide();
  478. }
  479. })
  480. //监听input开始
  481. $("input[name=dtsbjz]").bind("input propertychange",function(event){
  482. var ts = $("input[name=ts]").val()*1;
  483. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  484. var num = ts*dtsbjz;
  485. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  486. });
  487. $("input[name=ts]").bind("input propertychange",function(event){
  488. var ts = $("input[name=ts]").val()*1;
  489. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  490. var num = ts*dtsbjz;
  491. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  492. });
  493. $("input[name=refundy]").bind("input propertychange",function(event){
  494. var refundy = $("input[name=refundy]").val();
  495. if(refundy != 0)
  496. {
  497. $(".refund").show();
  498. $("input[name=rtime]").addClass("must");
  499. $("input[name=rpaypal]").addClass("must");
  500. $("input[name=rtext]").addClass("must");
  501. }
  502. else
  503. {
  504. $("input[name=rtime]").val("");
  505. $("input[name=rpaypal]").val("");
  506. $("input[name=rtext]").val("");
  507. $("input[name=rtime]").removeClass("must");
  508. $("input[name=rpaypal]").removeClass("must");
  509. $("input[name=rtext]").removeClass("must");
  510. $(".refund").hide();
  511. }
  512. });
  513. //监听input结束
  514. </script>
  515. <script src="{$theme}js/fullorder-addedit.js?v=201905170005"></script>
  516. <script type="text/javascript" src="{$theme}js/time.js"></script>
  517. {Template footer}