customertt_mdedit.html 15 KB

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