boss.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. {Template header}
  2. <div class="warp">
  3. <ul class="search bossout" style="border-bottom: 1px solid #ccc;padding:16px 0">
  4. <p style="color:#666;font-size: 18px;line-height:50px;">订单出库并指定时间</p>
  5. <li>运单号:<input value="" name="order" type="text" style="width:268px"></li>
  6. <li>重 量:<input value="" name="weight" type="text" placeholder="只填数字"></li>
  7. <li>出库时间:<input id="time" value="" name="time" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
  8. <li><font class="bossok" data-c="bossout" data-u="out">确定出库</font></li>
  9. </ul>
  10. <ul class="search qczd" style="border-bottom: 1px solid #ccc;padding:16px 0">
  11. <p style="color:#666;font-size: 18px;line-height:50px;">清除占单</p>
  12. <li>订单编号:<input value="" name="number" type="text" style="width:150px;text-align: center;"></li>
  13. <li><font class="bossok" data-c="qczd" data-u="qczd">确定</font></li>
  14. </ul>
  15. <ul class="search ggdd" style="border-bottom: 1px solid #ccc;padding:16px 0">
  16. <p style="color:#666;font-size: 18px;line-height:50px;">更改订单信息(不更改的留空)</p>
  17. <li>订单编号:<input value="" name="number" type="text" style="width:150px;text-align: center;"></li>
  18. <li>卖家保障:<input value="" name="guarantee" type="text" style="width:150px;text-align: center;"></li>
  19. <li>Quantity:<input value="" name="quantity" type="text" style="width:150px;text-align: center;"></li>
  20. <li><font class="bossok" data-c="ggdd" data-u="ggdd">确定</font></li>
  21. </ul>
  22. <ul class="search dpex" style="border-bottom: 1px solid #ccc;padding:16px 0">
  23. <p style="color:#666;font-size: 18px;line-height:50px;">DPEX运单</p>
  24. <li style="width:100%;">订单编号:<input value="" name="number" type="text" style="width:268px;"></li>
  25. <div class="dpexxq">
  26. <li style="width:100%;">
  27. <em>申报品名:</em>
  28. <select name="en" class="select class" style="width:200px">
  29. {loop customsdeclaration(50) as $val}
  30. <option value="{$val['ename']}" {if $val['ename'] == 'Synthetic Hair'}selected="selected"{/if}>{$val['ename']}</option>
  31. {/loop}
  32. </select>
  33. <em>中文品名:</em>
  34. <select name="zh" class="select class" style="width:200px">
  35. {loop customsdeclaration(50) as $val}
  36. <option value="{$val['zname']}" {if $val['zname'] == '化纤发'}selected="selected"{/if}>{$val['zname']}</option>
  37. {/loop}
  38. </select>
  39. <em>海关编码:</em>
  40. <select name="hg" class="select class" style="width:200px">
  41. {loop customsdeclaration(50) as $val}
  42. <option value="{$val['bname']}" {if $val['bname'] == '6704190000'}selected="selected"{/if}>{$val['bname']}</option>
  43. {/loop}
  44. </select>
  45. 条数:<input value="1" name="num" type="text" style="width:60px;">
  46. 单条申报:<input value="10" name="dj" type="text" style="width:60px;">
  47. <input value="0.1" name="zl" type="text" class="none" style="width:60px;">
  48. <font class="sc">X</font>
  49. </li>
  50. <li style="width:100%;">
  51. <em>申报品名:</em>
  52. <select name="en" class="select class" style="width:200px">
  53. {loop customsdeclaration(50) as $val}
  54. <option value="{$val['ename']}" {if $val['ename'] == 'Hair Accessories'}selected="selected"{/if}>{$val['ename']}</option>
  55. {/loop}
  56. </select>
  57. <em>中文品名:</em>
  58. <select name="zh" class="select class" style="width:200px">
  59. {loop customsdeclaration(50) as $val}
  60. <option value="{$val['zname']}" {if $val['zname'] == '头饰'}selected="selected"{/if}>{$val['zname']}</option>
  61. {/loop}
  62. </select>
  63. <em>海关编码:</em>
  64. <select name="hg" class="select class" style="width:200px">
  65. {loop customsdeclaration(50) as $val}
  66. <option value="{$val['bname']}" {if $val['bname'] == '9615110000'}selected="selected"{/if}>{$val['bname']}</option>
  67. {/loop}
  68. </select>
  69. 条数:<input value="1" name="num" type="text" style="width:60px;">
  70. 单条申报:<input value="0.5" name="dj" type="text" style="width:60px;">
  71. <input value="0.1" name="zl" type="text" class="none" style="width:60px;">
  72. <font class="sc">X</font>
  73. </li>
  74. <li style="width:100%;">
  75. <em>申报品名:</em>
  76. <select name="en" class="select class" style="width:200px">
  77. {loop customsdeclaration(50) as $val}
  78. <option value="{$val['ename']}" {if $val['ename'] == 'Hairbrush'}selected="selected"{/if}>{$val['ename']}</option>
  79. {/loop}
  80. </select>
  81. <em>中文品名:</em>
  82. <select name="zh" class="select class" style="width:200px">
  83. {loop customsdeclaration(50) as $val}
  84. <option value="{$val['zname']}" {if $val['zname'] == '小刷子'}selected="selected"{/if}>{$val['zname']}</option>
  85. {/loop}
  86. </select>
  87. <em>海关编码:</em>
  88. <select name="hg" class="select class" style="width:200px">
  89. {loop customsdeclaration(50) as $val}
  90. <option value="{$val['bname']}" {if $val['bname'] == '9603290090'}selected="selected"{/if}>{$val['bname']}</option>
  91. {/loop}
  92. </select>
  93. 条数:<input value="1" name="num" type="text" style="width:60px;">
  94. 单条申报:<input value="0.5" name="dj" type="text" style="width:60px;">
  95. <input value="0.1" name="zl" type="text" class="none" style="width:60px;">
  96. <font class="sc">X</font>
  97. </li>
  98. <li style="width:100%;">
  99. <em>申报品名:</em>
  100. <select name="en" class="select class" style="width:200px">
  101. {loop customsdeclaration(50) as $val}
  102. <option value="{$val['ename']}" {if $val['ename'] == 'Satin Bag'}selected="selected"{/if}>{$val['ename']}</option>
  103. {/loop}
  104. </select>
  105. <em>中文品名:</em>
  106. <select name="zh" class="select class" style="width:200px">
  107. {loop customsdeclaration(50) as $val}
  108. <option value="{$val['zname']}" {if $val['zname'] == '袋子'}selected="selected"{/if}>{$val['zname']}</option>
  109. {/loop}
  110. </select>
  111. <em>海关编码:</em>
  112. <select name="hg" class="select class" style="width:200px">
  113. {loop customsdeclaration(50) as $val}
  114. <option value="{$val['bname']}" {if $val['bname'] == '4202320000'}selected="selected"{/if}>{$val['bname']}</option>
  115. {/loop}
  116. </select>
  117. 条数:<input value="1" name="num" type="text" style="width:60px;">
  118. 单条申报:<input value="0.5" name="dj" type="text" style="width:60px;">
  119. <input value="0.1" name="zl" type="text" class="none" style="width:60px;">
  120. <font class="sc">X</font>
  121. </li>
  122. <li style="width:100%;">
  123. <em>申报品名:</em>
  124. <select name="en" class="select class" style="width:200px">
  125. {loop customsdeclaration(50) as $val}
  126. <option value="{$val['ename']}" {if $val['ename'] == 'Eyelashes'}selected="selected"{/if}>{$val['ename']}</option>
  127. {/loop}
  128. </select>
  129. <em>中文品名:</em>
  130. <select name="zh" class="select class" style="width:200px">
  131. {loop customsdeclaration(50) as $val}
  132. <option value="{$val['zname']}" {if $val['zname'] == '假睫毛'}selected="selected"{/if}>{$val['zname']}</option>
  133. {/loop}
  134. </select>
  135. <em>海关编码:</em>
  136. <select name="hg" class="select class" style="width:200px">
  137. {loop customsdeclaration(50) as $val}
  138. <option value="{$val['bname']}" {if $val['bname'] == '6704200000'}selected="selected"{/if}>{$val['bname']}</option>
  139. {/loop}
  140. </select>
  141. 条数:<input value="1" name="num" type="text" style="width:60px;">
  142. 单条申报:<input value="0.5" name="dj" type="text" style="width:60px;">
  143. <input value="0.1" name="zl" type="text" class="none" style="width:60px;">
  144. <font class="sc">X</font>
  145. </li>
  146. </div>
  147. <li class="dpexyd"></li>
  148. <li><font class="bossdpex" style="height:30px;line-height:30px;background:#2ca8a1;text-align:center;color:#fff;border-radius:5px;display:inline-block;margin-left:20px;padding:0 15px;cursor:pointer;">获取DPEX运单及发票</font></li>
  149. </ul>
  150. </div>
  151. <script type="text/javascript" src="{$theme}js/laydate2.js"></script>
  152. <script>
  153. $("select[name='en']").change(function(){
  154. var index = $(this).find("option:selected").index();
  155. $(this).parent("li").find("select[name='zh'] option:eq("+index+")").prop('selected','selected');
  156. $(this).parent("li").find("select[name='hg'] option:eq("+index+")").prop('selected','selected');
  157. });
  158. $("select[name='zh']").change(function(){
  159. var index = $(this).find("option:selected").index();
  160. $(this).parent("li").find("select[name='en'] option:eq("+index+")").prop('selected','selected');
  161. $(this).parent("li").find("select[name='hg'] option:eq("+index+")").prop('selected','selected');
  162. });
  163. $("select[name='hg']").change(function(){
  164. var index = $(this).find("option:selected").index();
  165. $(this).parent("li").find("select[name='zh'] option:eq("+index+")").prop('selected','selected');
  166. $(this).parent("li").find("select[name='en'] option:eq("+index+")").prop('selected','selected');
  167. });
  168. $(".sc").click(function() {
  169. $(this).parent("li").remove();
  170. });
  171. $(".bossdpex").click(function() {
  172. var f = {}; var i = 0;
  173. $(".dpexxq li").each(function() {
  174. var v = {};
  175. $(this).find('input').each(function() {
  176. v[$(this).attr("name")] = $(this).val();
  177. });
  178. $(this).find('.select').each(function() {
  179. v[$(this).attr("name")] = $(this).children("option:selected").val();
  180. });
  181. f[i] = v;
  182. i++;
  183. });
  184. var d = "n=" + $(".dpex input[name='number']").val() + "&postdata="+JSON.stringify(f);
  185. layx.load('loadId','处理中,请稍后');
  186. $.ajax({
  187. url: "/boss/dpex",
  188. data: d,
  189. type: "POST",
  190. dataType: "json",
  191. success: function(a) {
  192. layx.destroy('loadId');
  193. if (a && a.success) {
  194. $(".dpexyd").html(a.msg);
  195. } else {
  196. $(".express p:eq(0)").html(a.msg);
  197. $(".express p:eq(1)").html("<font class='esc'>确 定</font>");
  198. $(".express").show();
  199. }
  200. }
  201. });
  202. });
  203. </script>
  204. {Template footer}