deliveryEdit.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>编辑销售出库单</title>
  6. <link href="/css/base.css" rel="stylesheet">
  7. <link href="/css/ims/ims.css" rel="stylesheet">
  8. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css" />
  9. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css" />
  10. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  11. <style>
  12. .ims-box {
  13. margin: 20px;
  14. }
  15. .screen {
  16. padding-left: 20px;
  17. height: 44px;
  18. line-height: 44px;
  19. background-color: #eff4fa;
  20. }
  21. .screen li {
  22. float: left;
  23. margin-right: 65px;
  24. }
  25. .bg-d9bf6e {
  26. margin-left: 5px;
  27. padding: 0 20px;
  28. color: #fff;
  29. background-color: #d9bf6e;
  30. }
  31. .list {
  32. padding: 0 40px;
  33. /*margin-top: 40px;*/
  34. overflow: hidden;
  35. }
  36. .list h2 {
  37. line-height: 30px;
  38. font-size: 14px;
  39. }
  40. .list .student-list_box {
  41. width: 300px;
  42. }
  43. .list .student-list_box > ul {
  44. height: 260px;
  45. overflow: auto;
  46. padding: 20px;
  47. background-color: #eef3ff;
  48. }
  49. .list .student-list_box li {
  50. line-height: 30px;
  51. cursor: pointer;
  52. }
  53. .list .student-selected_box {
  54. margin-left: 60px;
  55. }
  56. .list .student-list {
  57. display: none;
  58. margin-left: 20px;
  59. }
  60. .list .student-list li.active .btn-select_all {
  61. display: inline-block;
  62. }
  63. .list .student-list span {
  64. cursor: pointer;
  65. }
  66. .list .btn-select_all {
  67. margin-left: 84px;
  68. color: #2977ff;
  69. }
  70. .student-name_box li {
  71. position: relative;
  72. margin-left: 28px;
  73. line-height: 30px;
  74. }
  75. .student-name_box input {
  76. position: absolute;
  77. left: 155px;
  78. top: 8px;
  79. }
  80. .btn-select_all,
  81. .student-name_box {
  82. display: none;
  83. }
  84. .student-selected {
  85. width: 320px;
  86. height: 220px;
  87. overflow: auto;
  88. }
  89. .student-selected li {
  90. float: left;
  91. margin-right: 24px;
  92. margin-bottom: 12px;
  93. height: 26px;
  94. line-height: 26px;
  95. text-indent: 20px;
  96. background-color: #f2f2f2;
  97. }
  98. .student-selected .btn-delete {
  99. float: right;
  100. margin-right: 20px;
  101. color: red;
  102. cursor: pointer;
  103. }
  104. .btn-confirm_purchase {
  105. display: block;
  106. margin: 0 auto;
  107. margin-top: 100px;
  108. margin-bottom: 50px;
  109. width: 430px;
  110. line-height: 54px;
  111. color: #fff;
  112. font-family: PingFangSC-Regular, "PingFang SC";
  113. font-weight: 400;
  114. font-style: normal;
  115. font-size: 20px;
  116. text-align: center;
  117. background-color: #2977ff;
  118. cursor: pointer;
  119. }
  120. #imgPreview {
  121. display: inline-block;
  122. margin-top: 12px;
  123. }
  124. #imgPreview > img {
  125. max-width: 100px;
  126. max-height: 100px;
  127. margin-right: 5px;
  128. }
  129. .layui-layer-btn .layui-layer-btn0 {
  130. border-color: #2977ff !important;
  131. background-color: #2977ff !important;
  132. color: #fff;
  133. }
  134. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  135. line-height: 140px;
  136. text-align: center;
  137. }
  138. </style>
  139. </head>
  140. <body>
  141. <h3 class="sale-title">销售出库单</h3>
  142. <input type="hidden" name="oldOrderId" id="oldOrderId" value="<?php echo $pmData['orderId'];?>">
  143. <div class="sale-table">
  144. <table width="100%">
  145. <tr>
  146. <th><em class="red">*</em>标题</th>
  147. <td colspan="3"><input type="text" style="width:100%;" placeholder="请输入标题" name="outTitle" value="<?php echo $pmData['outTitle'];?>"></td>
  148. </tr>
  149. <tr>
  150. <th><em class="red">*</em>出库品名</th>
  151. <td>
  152. <div class="diy_select select-itemId">
  153. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="">
  154. <div class="diy_select_txt pm_name_txt">请选择</div>
  155. <div class="diy_select_btn"></div>
  156. <ul class="diy_select_list pm_name" style="display: none;">
  157. <li val="0">请选择</li>
  158. <?php foreach($pmNameList as $key => $value):?>
  159. <?php if($value['itemId'] == '326644304959246336'){ continue;}?>
  160. <li val="<?php echo $value['itemId'];?>"><?php echo $value['itemName'];?></li>
  161. <?php endforeach;?>
  162. </ul>
  163. </div>
  164. <span class="fr">单位:个</span>
  165. </td>
  166. <th><em class="red">*</em>出库日期</th>
  167. <td><input type="text" readonly id="outTimet" name="out_date" style="width:100%;" placeholder="请输入出库日期" value=""></td>
  168. </tr>
  169. <tr>
  170. <th><em class="red">*</em>关联财务订单</th>
  171. <td>
  172. <a href="javascript:;" class="relate-goods" doType="edit" orderId="<?php echo $pmData['orderId'];?>"><?php echo $pmData['orderNo'];?></a>
  173. <span class="fr">关联人数:<span class="rel-peapor-num"><?php echo $reStudentCount;?></span></span>
  174. </td>
  175. <th>每个学生领取数量</th>
  176. <td>
  177. <input type="text" name="stu_get_num" placeholder="请输入领取数量" value="<?php echo $total/$pmData['studentNo'];?>">
  178. <span class="fr">个</span>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td colspan="4" class="sale-num">出库数量:<span class="red out-num"><?php echo $total;?></span>个</td>
  183. </tr>
  184. <tr>
  185. <th><em class="red">*</em>发货凭证</th>
  186. <td colspan="3">
  187. <label class="add-img">
  188. <span>+</span>
  189. 请上传收货人与货品的合照
  190. <input type="file" name="uploadImg" id="uploadImg" accept="image/*" style="display: none;" />
  191. </label>
  192. <div id="imgPreview">
  193. <?php if(isset($pmData['images']) && $pmData['images']):?>
  194. <?php foreach($pmData['images'] as $url):?>
  195. <img src="<?php echo $url;?>" alt="">
  196. <?php endforeach;?>
  197. <?php endif;?>
  198. </div>
  199. </td>
  200. </tr>
  201. </table>
  202. </div>
  203. <div class="clearfix student-list">
  204. <div class="fl">领用学生名单</div>
  205. <button type="button" class="edit-btn fr label-primary-s bth-s" doType="edit">编辑名单</button>
  206. </div>
  207. <div style="font-size:12px;margin-bottom: 25px;">
  208. <table style="margin-bottom:0" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  209. <thead>
  210. <tr>
  211. <th width="200">序号</th>
  212. <th width="300">学生姓名</th>
  213. <th>班级</th>
  214. </tr>
  215. </thead>
  216. </table>
  217. <div style="margin-top:-1px; max-height: 400px;overflow-y: scroll;">
  218. <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  219. <tbody id="active-submit-stu">
  220. <?php if ($pmStudent):?>
  221. <?php foreach ($pmStudent as $index=>$item):?>
  222. <tr stuId="<?php echo $item['osId'];?>">
  223. <td width="200"><?php echo $index+1 ;?></td>
  224. <td width="300"><?php echo $item['studentName'] ;?></td>
  225. <td><?php echo $item['clazzName'] ;?></td>
  226. </tr>
  227. <?php endforeach;?>
  228. <?php endif;?>
  229. </tbody>
  230. </table>
  231. </div>
  232. </div>
  233. <div class="sale-submit"><button type="button" class=" label-primary-s bth-s">提交</button></div>
  234. <!-- 关联订单弹层 -->
  235. <div class="layer-relate">
  236. <div class="layer-filter"></div>
  237. <table class="order-table table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  238. <thead>
  239. <tr>
  240. <th>选择</th>
  241. <th>财务订单编号</th>
  242. <th>商品名称</th>
  243. <th>套餐</th>
  244. <th>下单时间</th>
  245. <th>申请人数</th>
  246. <th>已关联人数</th>
  247. <th>剩余名额</th>
  248. </tr>
  249. </thead>
  250. <tbody>
  251. </tbody>
  252. </table>
  253. <div class="col-sm-12">
  254. <ul class="pagination">
  255. </ul>
  256. </div>
  257. </div>
  258. <!-- 编辑名单弹层 -->
  259. <div class="layer-edit">
  260. <p class="red">说明:选择发货学生名单,可选学生必须是财务订单中已订购的学生</p>
  261. <div class="list">
  262. <div class="student-list_box fl">
  263. <h2>可选学生</h2>
  264. <ul></ul>
  265. </div>
  266. <div class="student-selected_box fl">
  267. <h2>已选择(<span id="studentSelectedLength">0</span>)</h2>
  268. <ul class="student-selected">
  269. </ul>
  270. </div>
  271. </div>
  272. </div>
  273. <script src="/js/productset/jquery.min.js"></script>
  274. <script src="/js/ims/jquery.datetimepicker.js"></script>
  275. <script src="/js/ims/layer/layer.js"></script>
  276. <script src="/js/ims/xsgl.js"></script>
  277. <?php include_once '_delivery.php'?>
  278. </body>
  279. </html>