allocationCreate.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>耗材调拨申请</title>
  6. <link href="/css/ims/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: 500px;
  42. margin-bottom: 15px;
  43. }
  44. .list .student-list_box>ul {
  45. height: 260px;
  46. overflow: auto;
  47. padding: 20px;
  48. background-color: #eef3ff;
  49. }
  50. .list .student-list_box li {
  51. line-height: 30px;
  52. cursor: pointer;
  53. }
  54. .list .student-list {
  55. display: none;
  56. margin-left: 20px;
  57. }
  58. .list .student-list li.active .btn-select_all {
  59. display: inline-block;
  60. }
  61. .list .student-list span {
  62. cursor: pointer;
  63. }
  64. .list .btn-select_all {
  65. margin-left: 84px;
  66. color: #2977ff;
  67. }
  68. .student-name_box li {
  69. position: relative;
  70. margin-left: 28px;
  71. line-height: 30px;
  72. }
  73. .student-name_box input {
  74. position: absolute;
  75. left: 155px;
  76. top: 8px;
  77. }
  78. .btn-select_all,
  79. .student-name_box {
  80. display: none;
  81. }
  82. .student-selected {
  83. width: 320px;
  84. height: 300px;
  85. overflow: auto;
  86. }
  87. .student-selected li {
  88. float: left;
  89. margin-right: 24px;
  90. margin-bottom: 12px;
  91. width: 280px;
  92. height: 26px;
  93. line-height: 26px;
  94. text-indent: 20px;
  95. background-color: #f2f2f2;
  96. }
  97. .student-selected .btn-delete {
  98. float: right;
  99. margin-right: 20px;
  100. color: red;
  101. cursor: pointer;
  102. }
  103. .btn-confirm_purchase {
  104. display: block;
  105. margin: 0 auto;
  106. margin-top: 100px;
  107. margin-bottom: 50px;
  108. width: 430px;
  109. line-height: 54px;
  110. color: #fff;
  111. font-family: PingFangSC-Regular, "PingFang SC";
  112. font-weight: 400;
  113. font-style: normal;
  114. font-size: 20px;
  115. text-align: center;
  116. background-color: #2977ff;
  117. cursor: pointer;
  118. }
  119. .sale-table input {
  120. border: 1px solid #ccc;
  121. border-radius: 4px;
  122. }
  123. #imgPreview {
  124. display: inline-block;
  125. margin-top: 12px;
  126. }
  127. #imgPreview > img {
  128. max-width: 100px;
  129. max-height: 100px;
  130. margin-right: 5px;
  131. }
  132. .layui-layer-btn .layui-layer-btn0 {
  133. border-color: #2977ff !important;
  134. background-color: #2977ff !important;
  135. color: #fff;
  136. }
  137. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  138. line-height: 140px;
  139. text-align: center;
  140. }
  141. </style>
  142. </head>
  143. <body>
  144. <h3 class="sale-title">耗材调拨申请</h3>
  145. <input type="hidden" name="itemName">
  146. <input type="hidden" name="itemSpec">
  147. <input type="hidden" name="itemCode">
  148. <input type="hidden" name="unitId">
  149. <div class="sale-table">
  150. <table width="100%">
  151. <tr>
  152. <th><em class="red">*</em>调拨单标题</th>
  153. <td colspan="3">
  154. <?php echo $title?>
  155. </td>
  156. </tr>
  157. <tr>
  158. <th><em class="red">*</em>申请发货仓库</th>
  159. <td >
  160. <select class="warehouse" name="warehouse">
  161. <option value="0">请选择</option>
  162. <?php if($warehouse){
  163. foreach ($warehouse as $info) {
  164. ?>
  165. <option value="<?php echo $info['storageId']; ?>" utype="<?php echo $info['type']?>" username="<?php echo $info['storageUserName']?>" mobile="<?php echo $info['mobile']?>" place="<?php echo $info['place']?>"><?php echo $info['storageName']; ?></option>
  166. <?php
  167. }
  168. }?>
  169. </select>
  170. </td>
  171. <th><em class="red">*</em>发货仓库管理员</th>
  172. <td >
  173. 平台管理员
  174. </td>
  175. </tr>
  176. <tr>
  177. <th><em class="red">*</em>接收仓库</th>
  178. <td >
  179. <select class="receiveStorage" name="receiveStorage">
  180. <option value="0">请选择</option>
  181. <?php if($warehouse){
  182. foreach ($warehouse as $info) {
  183. ?>
  184. <option value="<?php echo $info['storageId']; ?>" utype="<?php echo $info['type']?>" username="<?php echo $info['storageUserName']?>" mobile="<?php echo $info['mobile']?>" place="<?php echo $info['place']?>"><?php echo $info['storageName']; ?></option>
  185. <?php
  186. }
  187. }?>
  188. </select>
  189. </td>
  190. <th><em class="red">*</em>申请接收时间</th>
  191. <td >
  192. <input type="text" readonly name="receiveDate" class="some_class" value="" id="some_class_2"/>
  193. </td>
  194. </tr>
  195. <tr>
  196. <th><em class="red">*</em>收货人</th>
  197. <td >
  198. <input type="text" id="receiveUser" name="receiveUser" class="diy_select_input" value="">
  199. </td>
  200. <th><em class="red">*</em>收货电话</th>
  201. <td >
  202. <input type="text" id="telephone" name="telephone" class="diy_select_input" value="<?php echo $coach_phone;?>">
  203. </td>
  204. </tr>
  205. <tr>
  206. <th><em class="red">*</em>详细地址</th>
  207. <td colspan="3">
  208. <input type="text" id="address" name="address" class="use-explain" value="<?php echo $address;?>">
  209. </td>
  210. </tr>
  211. <tr>
  212. <th><em class="red">*</em>发货凭证</th>
  213. <td colspan="3">
  214. <label class="add-img">
  215. <span>+</span>
  216. <input type="file" id="uploadImg" accept="image/*" style="display: none;"/>
  217. </label>
  218. <span>图片上传</span>
  219. <div id="imgPreview"></div>
  220. </td>
  221. </tr>
  222. <tr>
  223. <th>备注</th>
  224. <td colspan="3">
  225. <textarea name="remark" id="remark" cols="50" class="use-explain" rows="5"></textarea>
  226. </td>
  227. </tr>
  228. </table>
  229. <button type="button" class="label-primary-s bth-s create-allocation">添加品目</button>
  230. <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="P_list">
  231. <tr>
  232. <td>品目名称</td>
  233. <td>品目类型</td>
  234. <td>品目数量</td>
  235. <td>库存数</td>
  236. <td>单位</td>
  237. <td>操作</td>
  238. </tr>
  239. </table>
  240. <button type="button" class="label-primary-s bth-s create-part" disabled>添加零件类型</button>
  241. <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="part_list">
  242. <tr>
  243. <td>零件类型</td>
  244. <td>使用设备编号</td>
  245. <td>设备名称</td>
  246. <td>设备规格</td>
  247. <td>申请数量</td>
  248. <td>操作</td>
  249. </tr>
  250. </table>
  251. </div>
  252. <div class="sale-submit" style="margin-top: 25px;">
  253. <button type="button" class=" label-primary-s bth-s" id="savebutton">提交</button>
  254. </div>
  255. <!-- 编辑名单弹层 -->
  256. <div class="layer-edit">
  257. <p class="red"></p>
  258. <div class="list">
  259. <div class="student-list_box fl">
  260. <span>品目类型</span>
  261. <select name="pm_type" class="pm_type">
  262. <option value="0">选择类型</option>
  263. <?php
  264. if(isset($pm_type) && $pm_type){
  265. foreach ($pm_type as $val){
  266. echo '<option value="'.$val['typeId'].'">'.$val['typeName'].'</option>';
  267. }
  268. }
  269. ?>
  270. </select>
  271. <span>品目名称</span>
  272. <input type="text" name="pm_name" value="">
  273. <button class="search_pm">查询</button>
  274. </div>
  275. <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  276. <tr>
  277. <td></td>
  278. <td>品目编号</td>
  279. <td>品目名称</td>
  280. <td>品目类型</td>
  281. <td>库存数</td>
  282. </tr>
  283. <tbody class="item_list">
  284. </tbody>
  285. </table>
  286. <div class="fr">
  287. <a href="#" class="prev">上一页</a>
  288. <span class="now_page">1</span>/<span class="last_page">1</span>
  289. <a href="#" class="next">下一页</a>
  290. </div>
  291. </div>
  292. </div>
  293. <script src="/js/jquery-2.2.2.min.js" ></script>
  294. <script src="/js/jquery.datetimepicker.js"></script>
  295. <script src="/js/layer/layer.js"></script>
  296. <script src="/js/xsgl.js"></script>
  297. <?php include_once '_allocationJs.php'?>
  298. </body>
  299. </html>