allocationEdit.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. <?php
  150. $partDisable=false;
  151. ?>
  152. <div class="sale-table">
  153. <table width="100%">
  154. <tr>
  155. <th><em class="red">*</em>调拨单标题</th>
  156. <td colspan="3">
  157. <?php echo $title?>
  158. </td>
  159. </tr>
  160. <tr>
  161. <th><em class="red">*</em>申请发货仓库</th>
  162. <td >
  163. <select class="warehouse" name="warehouse">
  164. <option value="0">请选择</option>
  165. <?php if($warehouse){
  166. foreach ($warehouse as $info) {
  167. if($deliverStorage==$info['storageId'] && $info['type']==1){
  168. $partDisable=true;
  169. }
  170. ?>
  171. <option utype="<?php echo $info['type']?>" <?php if($deliverStorage==$info['storageId']) echo 'selected';?> value="<?php echo $info['storageId']; ?>" username="<?php echo $info['storageUserName']?>" mobile="<?php echo $info['mobile']?>" place="<?php echo $info['place']?>"><?php echo $info['storageName']; ?></option>
  172. <?php
  173. }
  174. }?>
  175. </select>
  176. </td>
  177. <th><em class="red">*</em>发货仓库管理员</th>
  178. <td >
  179. <?php echo $consignorName;?>
  180. </td>
  181. </tr>
  182. <tr>
  183. <th><em class="red">*</em>接收仓库</th>
  184. <td >
  185. <select class="receiveStorage" name="receiveStorage">
  186. <option value="0">请选择</option>
  187. <?php if($warehouse){
  188. foreach ($warehouse as $info) {
  189. ?>
  190. <option <?php if($receiveStorage==$info['storageId']) echo 'selected';?> value="<?php echo $info['storageId']; ?>" username="<?php echo $info['storageUserName']?>" mobile="<?php echo $info['mobile']?>" place="<?php echo $info['place']?>"><?php echo $info['storageName']; ?></option>
  191. <?php
  192. }
  193. }?>
  194. </select>
  195. </td>
  196. <th><em class="red">*</em>申请接收时间</th>
  197. <td >
  198. <input type="text" readonly name="receiveDate" class="some_class" value="<?php echo $receiveDate;?>" id="some_class_2"/>
  199. </td>
  200. </tr>
  201. <tr>
  202. <th><em class="red">*</em>收货人</th>
  203. <td >
  204. <input type="text" id="receiveUser" name="receiveUser" class="diy_select_input" value="<?php echo $receiveUser;?>">
  205. </td>
  206. <th><em class="red">*</em>收货电话</th>
  207. <td >
  208. <input type="text" id="telephone" name="telephone" class="diy_select_input" value="<?php echo $telephone;?>">
  209. </td>
  210. </tr>
  211. <tr>
  212. <th><em class="red">*</em>详细地址</th>
  213. <td colspan="3">
  214. <input type="text" id="address" name="address" class="use-explain" value="<?php echo $address;?>">
  215. </td>
  216. </tr>
  217. <tr>
  218. <th><em class="red">*</em>发货凭证</th>
  219. <td colspan="3">
  220. <label class="add-img">
  221. <span>+</span>
  222. <input type="file" id="uploadImg" accept="image/*" style="display: none;"/>
  223. </label>
  224. <span>图片上传</span>
  225. <div id="imgPreview">
  226. <?php foreach($images as $val):?>
  227. <img src="<?php echo $val;?>">
  228. <?php endforeach;?>
  229. </div>
  230. </td>
  231. </tr>
  232. <tr>
  233. <th>备注</th>
  234. <td colspan="3">
  235. <textarea name="remark" id="remark" cols="50" class="use-explain" rows="5"><?php echo $remark;?></textarea>
  236. </td>
  237. </tr>
  238. </table>
  239. <button type="button" class="label-primary-s bth-s create-allocation">添加品目</button>
  240. <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="P_list">
  241. <tr>
  242. <td>品目名称</td>
  243. <td>品目类型</td>
  244. <td>品目数量</td>
  245. <td>库存数</td>
  246. <td>单位</td>
  247. <td>操作</td>
  248. </tr>
  249. <?php
  250. if(isset($allocateDetail) && $allocateDetail){
  251. foreach($allocateDetail as $val){
  252. ?>
  253. <tr class="allocateDetail" id="<?php echo $val['itemId']?>">
  254. <td><?php echo $val['itemName']?></td>
  255. <td><?php echo $val['typeName']?></td>
  256. <td><input type="text" name="num" class="num" value="<?php echo $val['applyNo']?>"></td>
  257. <td><?php echo $val['invNo']?></td>
  258. <td><?php echo $val['unitName']?></td>
  259. <td><a href="#" class="removePM">移除</a></td>
  260. </tr>
  261. <?php
  262. }
  263. }
  264. ?>
  265. </table>
  266. <button type="button" class="label-primary-s bth-s create-part" <?php if($partDisable){ echo 'disabled';}?>>添加零件类型</button>
  267. <table width="100%" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" id="part_list">
  268. <tr>
  269. <td>零件类型</td>
  270. <td>使用设备编号</td>
  271. <td>设备名称</td>
  272. <td>设备规格</td>
  273. <td>申请数量</td>
  274. <td>操作</td>
  275. </tr>
  276. <?php
  277. if(isset($partDetailList) && $partDetailList){
  278. foreach($partDetailList as $val){
  279. ?>
  280. <tr class="add_part" >
  281. <td>
  282. <?php
  283. echo $val['part_list']
  284. ?>
  285. </td>
  286. <td>
  287. <?php
  288. echo $val['device_list']
  289. ?>
  290. </td>
  291. <td><?php echo $val['itemName']?></td>
  292. <td><?php echo $val['itemSpec']?></td>
  293. <td>
  294. <input type="text" name="num" class="num" value="<?php echo $val['applyNo']?>"></td>
  295. <td><a href="#" class="remove_part">移除</a></td>
  296. </tr>
  297. <?php
  298. }
  299. }
  300. ?>
  301. </table>
  302. </div>
  303. <div class="sale-submit" style="margin-top: 25px;">
  304. <input type="hidden" name="atCode" value='<?php echo $atCode?>'>
  305. <input type="hidden" name="atId" value='<?php echo $atId?>'>
  306. <button type="button" class=" label-primary-s bth-s" id="savebutton">提交</button>
  307. </div>
  308. <!-- 编辑名单弹层 -->
  309. <div class="layer-edit">
  310. <p class="red"></p>
  311. <div class="list">
  312. <div class="student-list_box fl">
  313. <span>品目类型</span>
  314. <select name="pm_type" class="pm_type">
  315. <option value="0">选择类型</option>
  316. <?php
  317. if(isset($pm_type) && $pm_type){
  318. foreach ($pm_type as $val){
  319. echo '<option value="'.$val['typeId'].'">'.$val['typeName'].'</option>';
  320. }
  321. }
  322. ?>
  323. </select>
  324. <span>品目名称</span>
  325. <input type="text" name="pm_name" value="">
  326. <button class="search_pm">查询</button>
  327. </div>
  328. <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  329. <tr>
  330. <td></td>
  331. <td>品目编号</td>
  332. <td>品目名称</td>
  333. <td>品目类型</td>
  334. <td>库存数</td>
  335. </tr>
  336. <tbody class="item_list">
  337. </tbody>
  338. </table>
  339. <div class="fr">
  340. <a href="#" class="prev">上一页</a>
  341. <span class="now_page">1</span>/<span class="last_page">1</span>
  342. <a href="#" class="next">下一页</a>
  343. </div>
  344. </div>
  345. </div>
  346. <script src="/js/jquery-2.2.2.min.js" ></script>
  347. <script src="/js/jquery.datetimepicker.js"></script>
  348. <script src="/js/layer/layer.js"></script>
  349. <script src="/js/xsgl.js"></script>
  350. <?php include_once '_allocationJs.php'?>
  351. </body>
  352. </html>