stockEdit.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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: 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: #008000;
  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: 300px;
  87. overflow: auto;
  88. }
  89. .student-selected li {
  90. float: left;
  91. margin-right: 24px;
  92. margin-bottom: 12px;
  93. width: 280px;
  94. height: 26px;
  95. line-height: 26px;
  96. text-indent: 20px;
  97. background-color: #f2f2f2;
  98. }
  99. .student-selected .btn-delete {
  100. float: right;
  101. margin-right: 20px;
  102. color: red;
  103. cursor: pointer;
  104. }
  105. .btn-confirm_purchase {
  106. display: block;
  107. margin: 0 auto;
  108. margin-top: 100px;
  109. margin-bottom: 50px;
  110. width: 430px;
  111. line-height: 54px;
  112. color: #fff;
  113. font-family: PingFangSC-Regular, "PingFang SC";
  114. font-weight: 400;
  115. font-style: normal;
  116. font-size: 20px;
  117. text-align: center;
  118. background-color: rgba(0, 153, 102, 1);
  119. cursor: pointer;
  120. }
  121. .sale-table input {
  122. border: 1px solid #ccc;
  123. border-radius: 4px;
  124. }
  125. #imgPreview {
  126. display: inline-block;
  127. margin-top: 12px;
  128. }
  129. #imgPreview > img {
  130. max-width: 100px;
  131. max-height: 100px;
  132. margin-right: 5px;
  133. }
  134. .layui-layer-btn .layui-layer-btn0 {
  135. border-color: #15ae68 !important;
  136. background-color: #15ae68 !important;
  137. color: #fff;
  138. }
  139. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  140. line-height: 140px;
  141. text-align: center;
  142. }
  143. </style>
  144. </head>
  145. <body>
  146. <h3 class="sale-title">库存盘点单</h3>
  147. <input type="hidden" name="itemName">
  148. <input type="hidden" name="itemSpec">
  149. <input type="hidden" name="itemCode">
  150. <input type="hidden" name="unitId">
  151. <div class="sale-table">
  152. <table width="100%">
  153. <tr>
  154. <th><em class="red">*</em>标题</th>
  155. <td colspan="3">
  156. <input type="text" style="width:50%;" name="stockTitle" value="<?php echo $detail['stockTitle'];?>">
  157. </td>
  158. </tr>
  159. <tr>
  160. <th><em class="red">*</em>品目类别</th>
  161. <td colspan="3">
  162. <label for=""><input type="radio" name="itemType" value="0" <?php if ($detail['itemType']==0) echo 'checked'?> > 固定资产</label>
  163. <label for="" style="margin-left: 15px;"><input type="radio" name="itemType" value="1" <?php if ($detail['itemType']==1) echo 'checked'?> > 原材料</label>
  164. <label for="" style="margin-left: 15px;"><input type="radio" name="itemType" value="2" <?php if ($detail['itemType']==2) echo 'checked'?> > 产成品</label>
  165. <label for="" style="margin-left: 15px;"><input type="radio" name="itemType" value="3" <?php if ($detail['itemType']==3) echo 'checked'?> > 低值易耗品</label>
  166. </td>
  167. </tr>
  168. <tr>
  169. <th><em class="red">*</em>品目名称<input value="0" name="invNo" type="hidden" id="invNo"></th>
  170. <td colspan="3">
  171. <div class="diy_select select-itemId">
  172. <input type="hidden" id="itemId" name="itemId" class="diy_select_input" value="0">
  173. <div class="diy_select_txt">请选择</div>
  174. <div class="diy_select_btn"></div>
  175. <ul class="diy_select_list" style="display: none;">
  176. <li val="0">请选择</li>
  177. <?php foreach ($itemList as $item):?>
  178. <li val="<?php echo $item['itemId']?>"
  179. itemSpec="<?php echo $item['itemSpec']?>"
  180. unitName="<?php echo $item['unitName']?>"
  181. unitId="<?php echo $item['unitId']?>"
  182. invNo="<?php echo $item['invNo']?>"
  183. itemCode="<?php echo $item['itemCode']?>"
  184. itemName="<?php echo $item['itemName']?>" >
  185. <?php echo $item['itemName']?>
  186. </li>
  187. <?php endforeach;?>
  188. </ul>
  189. </div>
  190. <div class="fl item_desc" style="margin-left: 20px;height: 30px;line-height: 30px;"></div>
  191. </td>
  192. </tr>
  193. <tr style="display: none;" id="fixCode">
  194. <th><em class="red">*</em>固定资产编号</th>
  195. <td colspan="3" >
  196. </td>
  197. </tr>
  198. <tr>
  199. <th><em class="red">*</em>盘点日期</th>
  200. <td colspan="3">
  201. <input id="stocktakingDate" type="text" name="stocktakingDate" style="width:50%;" readonly value="<?php echo date('Y-m-d', strtotime($detail['stocktakingDate']));?>">
  202. </td>
  203. </tr>
  204. <tr>
  205. <th><em class="red">*</em>盘点数量</th>
  206. <td colspan="3">
  207. <input type="number" id="stockNo" name="stockNo" style="width:100%; max-width: 130px;" value="<?php echo $detail['stockNo'];?>">
  208. </td>
  209. </tr>
  210. <tr>
  211. <!-- more less same-->
  212. <td colspan="4" class="sale-num get-status">
  213. </td>
  214. </tr>
  215. <tr>
  216. <th><em class="red">*</em>盘点凭证</th>
  217. <td colspan="3">
  218. <label class="add-img">
  219. <span>+</span>
  220. <input type="file" id="fileImg" accept="image/*" style="display: none;" />
  221. </label>
  222. <span> 请上传货品盘点的照片</span>
  223. <div id="imgPreview">
  224. <?php foreach ($detail['images'] as $image):?>
  225. <img style=" max-width: 100px;max-height: 100px;margin-right: 5px;" src="<?php echo $image;?>" alt="">
  226. <?php endforeach;?>
  227. </div>
  228. </td>
  229. </tr>
  230. <tr>
  231. <th>备注</th>
  232. <td colspan="3">
  233. <textarea name="remark" id="remark" readonly rows="6" cols="60"><?php echo $detail['remark'];?></textarea>
  234. </td>
  235. </tr>
  236. </table>
  237. </div>
  238. <div class="sale-submit" style="margin-top: 25px;">
  239. <button type="button" class=" label-primary-s bth-s" id="savebutton">提交</button>
  240. </div>
  241. <script src="/js/jquery-2.2.2.min.js" ></script>
  242. <script src="/js/jquery.datetimepicker.js"></script>
  243. <script src="/js/layer/layer.js"></script>
  244. <script src="/js/xsgl.js"></script>
  245. <?php include_once '_stock.php'?>
  246. </body>
  247. </html>