fullorderabf_yjtj.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. {Template header}
  2. <style>
  3. .isjiaji{
  4. color:red;
  5. font-size:20px;
  6. font-weight: bold;
  7. padding:10px
  8. }
  9. .isjiaji_hid{
  10. display: none;
  11. }
  12. </style>
  13. <body>
  14. <div class="warp">
  15. <div class="packing">
  16. <div class="control">
  17. <a href="javascript:void(0);" class="exptj">添 加</a>
  18. <a href="javascript:void(0);" class="expxg">修 改</a>
  19. <a href="javascript:void(0);" class="expsc">删 除</a>
  20. <a href="/data/excelmoban/batchu9jm.xlsx">料品导入模板</a>
  21. <a href="javascript:void(0);" class="batchu9jm">料品导入</a>
  22. </div>
  23. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  24. <tr>
  25. <td>商品名称</td>
  26. <td>数量</td>
  27. <td class="none">单价</td>
  28. <td class="none">总价</td>
  29. <td class="none">币种</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>操作</td>
  37. </tr>
  38. </table>
  39. <table class="datatext data" border="0" style="border-collapse:collapse;">
  40. {loop $fpdata as $val}
  41. <tr data-list="{$val['0']}">
  42. <td>{$val['1']}</td>
  43. <td>{$val['2']}</td>
  44. <td class="none">{$val['3']}</td>
  45. <td class="none">{$val['4']}</td>
  46. <td class="none">CNY</td>
  47. <td class="none">{$val['5']}</td>
  48. <td class="none">{$val['6']}</td>
  49. <td class="none">{$val['7']}</td>
  50. <td class="none">{$val['8']}</td>
  51. <td class="none val9">{if isset($val['9'])}{$val['9']}{else}0{/if}</td>
  52. <td class="czzd">{if $val['9'] != 'DNOTO'}<font class="jzzd">禁止占单</font>{else}<font class="yxzd">允许占单<font>{/if}</td>
  53. </tr>
  54. {/loop}
  55. </table>
  56. </div>
  57. <ul class="setting">
  58. <div class="need">
  59. <li>
  60. <em>订单号:</em>
  61. <input name="orderinfo" value="" type="text" readonly style="background-color: #ebebe4;">
  62. </li>
  63. <li>
  64. <em>线下单类型:</em>
  65. <select name="sourcetype" class="select class">
  66. <option value="1">网红单</option>
  67. <option value="2">批发单</option>
  68. <option value="3">线下单</option>
  69. <option value="4">售后单</option>
  70. <option value="5" selected="selected">其它</option>
  71. </select>
  72. </li>
  73. <li>
  74. <em>发货仓库:</em>
  75. <select name="warehouse" id="warehouse" class="select class">
  76. {loop warehouse(100) as $val}
  77. <option value="{$val['id']}" data-e="{$val['express']}">{$val['title']}</option>
  78. {/loop}</select>
  79. </li>
  80. <li>
  81. <em>结算币种:</em>
  82. <select name="currency" id="currency" class="select class">
  83. {loop typeclass(30) as $val}
  84. <option value="{$val['id']}" {if $val['id'] == '219'}selected="selected"{/if}>{$val['title']}</option>
  85. {/loop}
  86. </select>
  87. </li>
  88. <li>
  89. <em>资金状态:</em>
  90. <select name="capital" class="select class">
  91. <option value="3" {if $fullorder['capital'] == 3}selected="selected"{/if}>全部支付</option>
  92. <option value="1" {if $fullorder['capital'] == 1}selected="selected"{/if}>暂未支付</option>
  93. <option value="2" {if $fullorder['capital'] == 2}selected="selected"{/if}>部分支付</option>
  94. </select>
  95. </li>
  96. <li>
  97. <em>所属店铺:</em>
  98. <select name="shop" class="select class">
  99. {loop usershop() as $val}
  100. <option value="{$val['id']}" {if $customer['shop'] == $val['id']}selected="selected"{/if}>{$val['shopname']}</option>
  101. {/loop}</select>
  102. </li>
  103. <li>
  104. <em>订单金额:</em>
  105. <input name="shouldmoney" class="must currencymoney" value="" type="text" {if $fullorder['shouldmoney'] > 200}style="color:#F00"{/if}> <font class="currency">CNY</font>
  106. </li>
  107. <li class="none">
  108. <em>运费:</em>
  109. <input name="freight" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
  110. </li>
  111. <li class="none">
  112. <em>物流金额:</em>
  113. <input name="expressmoney" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
  114. </li>
  115. <li>
  116. <em>丢件险:</em>
  117. <input name="insurance" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
  118. </li>
  119. <li class="length remark">
  120. <em>产品标题:</em>
  121. <textarea class="must" name="product">N/A</textarea>
  122. </li>
  123. <li>
  124. <em>交易号:</em>
  125. <input name="paypal" value="" type="text">
  126. </li>
  127. <li>
  128. <em>卖家保障:</em>
  129. <input name="guarantee" value="" type="text">
  130. </li>
  131. <li class="lengththree">
  132. <em>支付方式:</em>
  133. <select name="pay" class="select class">
  134. {loop typeclass(4,3,100) as $val}
  135. <option value="{$val['id']}">{$val['title']}</option>
  136. {/loop}</select>
  137. </li>
  138. <li class="lengththree">
  139. <em>Quantity:</em>
  140. <input class="must" name="quantity" value="1" type="text">
  141. </li>
  142. <li class="lengththree">
  143. <em>付款时间:</em>
  144. <input id="buytime" class="must" value="{date('Y-m-d')}" name="buytime" type="text" >
  145. <i class="time fa fa-calendar fa-lg"></i>
  146. </li>
  147. <li class="length remark">
  148. <em>订单备注:</em>
  149. <textarea name="orderremarks"></textarea>
  150. </li>
  151. <li class="length remark">
  152. <em>仓库品名:</em>
  153. <textarea class="must" name="shipremarks"></textarea>
  154. </li>
  155. <li class="length remark">
  156. <em>是否加急:</em>
  157. <select id="is_jiaji_id" name="is_jiaji" class="select" >
  158. <option value="0" selected="selected">否</option>
  159. <option value="1" >是</option>
  160. </select>
  161. <span id="isjiaji_flag" class="isjiaji {if $fullorderamz['is_jiaji'] == 0} isjiaji_hid{/if}">*</span>
  162. </li>
  163. <li>
  164. <em>Bill Name:</em>
  165. <input name="bname" class="must" value="{$customer['name']}" type="text">
  166. </li>
  167. <li>
  168. <em>Ship Name:</em>
  169. <input name="sname" class="must" value="{$customer['name']}" type="text">
  170. </li>
  171. <li class="length remark">
  172. <em>Bill Address:</em>
  173. <input class="must" name="baddress" value="{$customer['address']},{$customer['city']},{$customer['province']},{$customer['zipcode']},{$bm['al']},{$customer['phone']}" type="text">
  174. </li>
  175. <li class="length remark">
  176. <em>Ship Address:</em>
  177. <input class="must" name="saddress" value="{$customer['address']},{$customer['city']},{$customer['province']},{$customer['zipcode']},{$bm['al']},{$customer['phone']}" type="text">
  178. </li>
  179. <li>
  180. <em>邮箱:</em>
  181. <input class="must" name="email" value="{$customer['email']}" type="text">
  182. </li>
  183. <li>
  184. <em>国家:</em>
  185. <select name="country" class="select class">
  186. {loop $country as $val}
  187. <option value="{$val['id']}" {if $customer['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
  188. {/loop}
  189. </select>
  190. </li>
  191. <li>
  192. <em>联系方式:</em>
  193. <input name="phone" class="must" value="{$customer['phone']}" type="text">
  194. </li>
  195. <li>
  196. <em>省州:</em>
  197. <input class="must" value="{$customer['province']}" name="province" type="text">
  198. </li>
  199. <li>
  200. <em>公司名:</em>
  201. <input class="must" name="client" value="{$customer['name']}" type="text">
  202. </li>
  203. <li>
  204. <em>城市:</em>
  205. <input class="must" value="{$customer['city']}" name="city" type="text">
  206. </li>
  207. <li>
  208. <em>收货人姓名:</em>
  209. <input name="name" class="must" value="{$customer['name']}" type="text">
  210. </li>
  211. <li>
  212. <em>邮编:</em>
  213. <input value="{$customer['zipcode']}" name="zipcode" type="text">
  214. </li>
  215. {if $is == 5}
  216. <!--
  217. <li class="length">
  218. <em>街道:</em>
  219. <input value="{$customer['street']}" name="street" type="text">
  220. </li>
  221. -->
  222. {/if}
  223. <li class="length">
  224. <em>地址2:</em>
  225. <input value="{$customer['address2']}" name="address2" type="text">
  226. </li>
  227. <li class="length">
  228. <em>地址1:</em>
  229. <input value="{$customer['address']}" name="address" type="text">
  230. </li>
  231. <li class="lengththree">
  232. <em>申报品名:</em>
  233. <select name="sbpm" class="select class">
  234. {loop customsdeclaration(50) as $val}
  235. <option value="{$val['ename']}">{$val['ename']}</option>
  236. {/loop}
  237. </select>
  238. </li>
  239. <li class="lengththree">
  240. <em>中文品名:</em>
  241. <select name="zwpm" class="select class">
  242. {loop customsdeclaration(50) as $val}
  243. <option value="{$val['zname']}">{$val['zname']}</option>
  244. {/loop}
  245. </select>
  246. </li>
  247. <li class="lengththree">
  248. <em>海关编码:</em>
  249. <select name="hgbm" class="select class">
  250. {loop customsdeclaration(50) as $val}
  251. <option value="{$val['bname']}">{$val['bname']}</option>
  252. {/loop}
  253. </select>
  254. </li>
  255. <li class="lengththree">
  256. <em>条数:</em>
  257. <input name="ts" class="must" value="" type="text">
  258. </li>
  259. <li class="lengththree">
  260. <em>单条申报价:</em>
  261. <input name="dtsbjz" class="must" value="1" type="text">
  262. </li>
  263. <li class="lengththree">
  264. <em>总申报价:</em>
  265. <input name="zsbjz" class="must" value="" type="text">
  266. </li>
  267. <li class="lengththree">
  268. <em>申报重量:</em>
  269. <input name="zzl" class="must" value="0.4" type="text">
  270. </li>
  271. <li class="lengththree">
  272. <em>总件数:</em>
  273. <input name="zjs" class="must" value="1" type="text" readonly style="background-color: #ebebe4;">
  274. </li>
  275. <li class="lengththree">
  276. <em>快递方式:</em>
  277. <select name="express" class="select class">
  278. {loop express(100) as $val}
  279. <option value="{$val['id']}" data-sbpm="{$val['sbpm']}" data-ts="{$val['xxts']}" data-type="{$val['type']}" {if $customer['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
  280. {/loop}
  281. </select>
  282. </li>
  283. <li class="lengththree">
  284. <em>打印类型:</em>
  285. <select name="printtype" class="printtype select class">
  286. <option value="1">运单</option>
  287. <option value="2" selected="selected">发货单</option>
  288. <option value="3">不打印单据</option>
  289. </select>
  290. </li>
  291. <li class="lengththree">
  292. <div class="none">
  293. <em>发送留言:</em>
  294. <select name="msg" class="printtype select class">
  295. <option value="1">1</option>
  296. <option value="2">2</option>
  297. </select>
  298. </div>
  299. </li>
  300. <li class="lengththree">
  301. <em>IOSS:</em>
  302. <select name="ioss" class="select class">
  303. <option value="">未选择</option>
  304. {loop ioss(100) as $val}
  305. <option value="{$val['ioss']}">{$val['title']}</option>
  306. {/loop}
  307. </select>
  308. </li>
  309. <li class="lengththree">
  310. <em>购买保险:</em>
  311. <input name="bx" class="must" value="{if $fullorder['bx']}{$fullorder['bx']}{else}0.00{/if}" type="text"> USD
  312. </li>
  313. <li class="lengththree">
  314. <em>是否签名:</em>
  315. <select name="qm" class="printtype select class">
  316. <option value="0">不需要</option>
  317. <option value="1">需要</option>
  318. </select>
  319. </li>
  320. <li class="lengththree">
  321. <em>服务类型:</em>
  322. <select name="js" class="printtype select class">
  323. <option value="0" {if $fullorder['js'] == 0}selected="selected"{/if}>Ground Advantage</option>
  324. <option value="1" {if $fullorder['js'] == 1}selected="selected"{/if}>PRIORITY</option>
  325. <option value="2" {if $fullorder['js'] == 2}selected="selected"{/if}>EXPRESS</option>
  326. </select>
  327. </li>
  328. <li class="lengththree none">
  329. <em>延迟发货:</em>
  330. <select name="yc" class="printtype select class">
  331. <option value="0" {if $fullorder['yc'] == 0}selected="selected"{/if}>0</option>
  332. <option value="1" {if $fullorder['yc'] == 1}selected="selected"{/if}>1</option>
  333. <option value="2" {if $fullorder['yc'] == 2}selected="selected"{/if}>2</option>
  334. <option value="3" {if $fullorder['yc'] == 3}selected="selected"{/if}>3</option>
  335. <option value="4" {if $fullorder['yc'] == 4}selected="selected"{/if}>4</option>
  336. <option value="5" {if $fullorder['yc'] == 5}selected="selected"{/if}>5</option>
  337. <option value="6" {if $fullorder['yc'] == 6}selected="selected"{/if}>6</option>
  338. <option value="7" {if $fullorder['yc'] == 7}selected="selected"{/if}>7</option>
  339. </select>
  340. </li>
  341. <!--
  342. <li class="productdescription none">
  343. <em>产品描述:</em>
  344. <select name="productdescription" class="select class">
  345. </select>
  346. </li>
  347. <li class="customs none">
  348. <em>海关价值:</em>
  349. <input value="" name="customs" type="text"> <font class="currency">CNY</font>
  350. </li>
  351. -->
  352. </div>
  353. <div style="clear:both;"></div>
  354. </ul>
  355. <div class="need"><input type="hidden" name="id" value="" />
  356. <input type="hidden" name="purchase" value="" />
  357. <input type="hidden" name="cost" value="" />
  358. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  359. <input type="hidden" name="jgyc" value="1" />
  360. <input type="hidden" name="customerid" value="{$customer['id']}" />
  361. <input type="hidden" name="shop" value="{$customer['shop']}" />
  362. <input type="hidden" name="mdedit" value="" />
  363. </div>
  364. <div class="button"><font class="yzaddress" style="margin-right:160px;">USPS验证地址</font> <font class="fullorderdata-ts">保 存</font> <font class="fh">关 闭</font></div>
  365. </div>
  366. <div class="none fullorderdata"></div>
  367. <div class="zm none"></div>
  368. <div style="display:none;">
  369. <input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
  370. </div>
  371. <script type="text/javascript">
  372. var addedit="/fullorderabf/yjtj/";
  373. var fh="/fullorder";
  374. $(document).ready(function() {
  375. if($("select[name='express']").find("option:selected").val() == '24')//联邦的话替换签名选项
  376. {
  377. $("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>');
  378. }
  379. else
  380. {
  381. $("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>');
  382. }
  383. $("#buytime").calendar();$("#buytimeCalendar").css('position','absolute')
  384. var index = $("#currency").find("option:selected").text();
  385. $(".currency").text(index);
  386. $(".datatext tr").each(function() {
  387. $(this).find("td:eq(9)").text(index);
  388. //currencymoney需要更改的价格
  389. });
  390. custom();
  391. var index = $("select[name='printtype']").find("option:selected").index();
  392. if(index == 0)
  393. {
  394. var e = $("select[name=express]").find("option:selected").val();
  395. var c = $("select[name=country]").find("option:selected").val();
  396. $.ajax({
  397. url: "/fullorder/customs/",
  398. data: "e="+e+"&c="+c,
  399. type: "POST",
  400. dataType: "json",
  401. success: function(a) {
  402. if (a && a.success) {
  403. $("input[name=customs]").val(a.money);
  404. for(i=0;i<a.msg.length;i++)
  405. {
  406. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  407. }
  408. $(".productdescription").show();
  409. $(".customs").show();
  410. } else {
  411. $(".productdescription").hide();
  412. $(".customs").hide();
  413. }
  414. }
  415. });
  416. }else
  417. {
  418. $(".productdescription").hide();
  419. $(".customs").hide();
  420. }
  421. });
  422. function custom() {
  423. var num = $('.packing .datatitle tr').children().length;
  424. $('.data tr td').css("width","5%");
  425. $(".data tr").each(function() {
  426. $(this).find('td:eq(0)').css("width","30%");
  427. });}
  428. //监听input开始
  429. $("input[name=dtsbjz]").bind("input propertychange",function(event){
  430. var ts = $("input[name=ts]").val()*1;
  431. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  432. var num = ts*dtsbjz;
  433. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  434. });
  435. $("input[name=ts]").bind("input propertychange",function(event){
  436. var ts = $("input[name=ts]").val()*1;
  437. var dtsbjz = $("input[name=dtsbjz]").val()*1;
  438. var num = ts*dtsbjz;
  439. console.log($("input[name=zsbjz]").val(num.toFixed(2)))
  440. });
  441. //监听input结束
  442. $(".window2").click(function() {
  443. var h = $(this).data("h");var t = $(this).data("t");
  444. window.parent.window2(t,h);
  445. });
  446. $('.fullorderdata-ts').click(function()
  447. {
  448. var tjje = $("input[name='shouldmoney']").val();
  449. var tjwl = $("select[name='express']").children("option:selected").val();
  450. var tjqm = $("select[name='qm']").children("option:selected").val();
  451. var fwlx = $("select[name='js']").children("option:selected").val();
  452. if(tjje > 750 && (tjwl == 24 || tjwl == 31 || tjwl == 2) && tjqm != 1)
  453. {
  454. layx.confirm('提示','此金额和物流可以选择购买“签名”服务',null,{
  455. buttons:[
  456. {
  457. label:'操作签名',
  458. callback:function(id, button, event){
  459. layx.destroy(id);
  460. }
  461. },
  462. {
  463. label:'保存信息',
  464. callback:function(id, button, event){
  465. $('.fullorderdata').click();
  466. layx.destroy(id);
  467. }
  468. }
  469. ]
  470. });
  471. }
  472. else if(fwlx == 2)
  473. {
  474. layx.confirm('提示','确定要发“收费加急”吗?(请提前收取加急运费)',null,{
  475. buttons:[
  476. {
  477. label:'确定',
  478. callback:function(id, button, event){
  479. $('.fullorderdata').click();
  480. layx.destroy(id);
  481. }
  482. },
  483. {
  484. label:'取消',
  485. callback:function(id, button, event){
  486. layx.destroy(id);
  487. }
  488. }
  489. ]
  490. });
  491. }
  492. else
  493. {
  494. $('.fullorderdata').click();
  495. }
  496. });
  497. $("#is_jiaji_id").on('change',function(){
  498. $("#isjiaji_flag").toggle()
  499. });
  500. </script>
  501. <script type="text/javascript" src="{$theme}js/time.js"></script>
  502. <script src="{$theme}js/fullorder-addedit.js?v=202309060"></script>
  503. <script type="text/javascript" src="{$theme}js/fullorder_addeditbc.js?v=2023090600021" ></script>
  504. <script type="text/javascript" src="{$theme}js/excel/xlxs.js" ></script>
  505. {Template footer}