viewRecord.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?php
  2. $priority_arr = array(1=>'紧急维修',2=>'巡检');
  3. $repairType_arr = array(0=>'远程维修',1=>'上门维修');
  4. $allocationType_arr = array(0=>'内部派单',1=>'外部派单');
  5. $repairResult_arr = array(0=>'确认已修好',1=>'未修好',2=>'申请已修好');
  6. ?>
  7. <!DOCTYPE html>
  8. <html lang="en">
  9. <head>
  10. <meta charset="UTF-8">
  11. <title>查看维修工单</title>
  12. <link href="/css/base.css" rel="stylesheet">
  13. <link href="/css/ims/ims.css" rel="stylesheet">
  14. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  15. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  16. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  17. <style>
  18. .ims-box {
  19. margin: 20px;
  20. }
  21. .screen {
  22. padding-left: 20px;
  23. height: 44px;
  24. line-height: 44px;
  25. background-color: #eff4fa;
  26. }
  27. .screen li {
  28. float: left;
  29. margin-right: 65px;
  30. }
  31. .bg-d9bf6e {
  32. margin-left: 5px;
  33. padding: 0 20px;
  34. color: #fff;
  35. background-color: #d9bf6e;
  36. }
  37. .list {
  38. padding: 0 40px;
  39. /*margin-top: 40px;*/
  40. overflow: hidden;
  41. }
  42. .list h2 {
  43. line-height: 30px;
  44. font-size: 14px;
  45. }
  46. .list .student-list_box {
  47. width: 300px;
  48. }
  49. .list .student-list_box > ul {
  50. height: 260px;
  51. overflow: auto;
  52. padding: 20px;
  53. background-color: #eef3ff;
  54. }
  55. .list .student-list_box li {
  56. line-height: 30px;
  57. cursor: pointer;
  58. }
  59. .list .student-selected_box {
  60. margin-left: 60px;
  61. }
  62. .list .student-list {
  63. display: none;
  64. margin-left: 20px;
  65. }
  66. .list .student-list li.active .btn-select_all {
  67. display: inline-block;
  68. }
  69. .list .student-list span {
  70. cursor: pointer;
  71. }
  72. .list .btn-select_all {
  73. margin-left: 84px;
  74. color: #008000;
  75. }
  76. .student-name_box li {
  77. position: relative;
  78. margin-left: 28px;
  79. line-height: 30px;
  80. }
  81. .student-name_box input {
  82. position: absolute;
  83. left: 155px;
  84. top: 8px;
  85. }
  86. .btn-select_all,
  87. .student-name_box {
  88. display: none;
  89. }
  90. .student-selected {
  91. width: 320px;
  92. height: 220px;
  93. overflow: auto;
  94. }
  95. .student-selected li {
  96. float: left;
  97. margin-right: 24px;
  98. margin-bottom: 12px;
  99. height: 26px;
  100. line-height: 26px;
  101. text-indent: 20px;
  102. background-color: #f2f2f2;
  103. }
  104. .student-selected .btn-delete {
  105. float: right;
  106. margin-right: 20px;
  107. color: red;
  108. cursor: pointer;
  109. }
  110. .btn-confirm_purchase {
  111. display: block;
  112. margin: 0 auto;
  113. margin-top: 100px;
  114. margin-bottom: 50px;
  115. width: 430px;
  116. line-height: 54px;
  117. color: #fff;
  118. font-family: PingFangSC-Regular, "PingFang SC";
  119. font-weight: 400;
  120. font-style: normal;
  121. font-size: 20px;
  122. text-align: center;
  123. background-color: rgba(0, 153, 102, 1);
  124. cursor: pointer;
  125. }
  126. #imgPreview {
  127. display: inline-block;
  128. margin-top: 12px;
  129. }
  130. #imgPreview > img {
  131. max-width: 100px;
  132. max-height: 100px;
  133. margin-right: 5px;
  134. }
  135. .layui-layer-btn .layui-layer-btn0 {
  136. border-color: #15ae68 !important;
  137. background-color: #15ae68 !important;
  138. color: #fff;
  139. }
  140. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  141. line-height: 140px;
  142. text-align: center;
  143. }
  144. </style>
  145. </head>
  146. <body>
  147. <h3 class="sale-title">维修记录</h3>
  148. <div class="sale-table">
  149. <table width="100%">
  150. <tr>
  151. <th>状态</th>
  152. <td><?php echo $orderStatusName;?></td>
  153. <th>记录单号</th>
  154. <td><?php echo $code;?></td>
  155. </tr>
  156. <tr>
  157. <th>派单类型</th>
  158. <td>
  159. <?php echo isset($allocationType_arr[$allocationType])?$allocationType_arr[$allocationType]:'';?>
  160. </td>
  161. <th>维修人</th>
  162. <td>
  163. <?php echo $createBy;
  164. ?>
  165. </td>
  166. </tr>
  167. <tr>
  168. <th>维修时间</th>
  169. <td>
  170. <?php echo $createTime;?>
  171. </td>
  172. <th>仓库</th>
  173. <td>
  174. <?php echo $storageName;
  175. ?>
  176. </td>
  177. </tr>
  178. </table>
  179. </div>
  180. <h3 class="sale-title">维修状况</h3>
  181. <div class="sale-table">
  182. <table width="100%">
  183. <tr>
  184. <th>维修方式</th>
  185. <td>
  186. <?php echo isset($repairType) && isset($repairType_arr[$repairType]) ? $repairType_arr[$repairType] :'';?>
  187. </td>
  188. <th>维修结果</th>
  189. <td>
  190. <?php echo isset($repairResult_arr[$repairResult])?$repairResult_arr[$repairResult]:'';?>
  191. </td>
  192. </tr>
  193. <tr>
  194. <th>维修图片</th>
  195. <td colspan="3">
  196. <div id="imgPreview">
  197. <?php foreach ($imgUrls as $val):?>
  198. <img src="<?php echo $val;?>">
  199. <?php endforeach;?>
  200. </div>
  201. </td>
  202. </tr>
  203. <tr>
  204. <th>维修备注</th>
  205. <td colspan="3">
  206. <?php echo $remarks;?>
  207. </td>
  208. </tr>
  209. </table>
  210. </div>
  211. <div class="clearfix student-list">
  212. <div class="fl">维修品目</div>
  213. </div>
  214. <div style="margin-left: 10px;"><em class="red">*</em>关联工单:<a href="<?php echo $this->createUrl('imsDevice/viewRepairOrder',array('id'=>$rId));?>"><?php echo $rCode;?></a></div>
  215. <div style="font-size:12px;max-height: 350px;overflow-y: scroll;margin-left:10px;margin-bottom: 25px;">
  216. <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="margin-bottom: 20px;">
  217. <thead>
  218. <tr>
  219. <th>仓库</th>
  220. <th>预约维修日期</th>
  221. <th>维修地点</th>
  222. <th>维修品目</th>
  223. <th>品目类型</th>
  224. <th>规格</th>
  225. </tr>
  226. </thead>
  227. <tbody id="active-submit-stu">
  228. <tr>
  229. <td><?php echo $storageName;;?></td>
  230. <td><?php echo $reserveTime;?></td>
  231. <td><?php echo $address;?></td>
  232. <td><?php echo $itemName;?></td>
  233. <td><?php echo $itemType;?></td>
  234. <td><?php echo $itemSpec;?></td>
  235. </tr>
  236. </tbody>
  237. </table>
  238. </div>
  239. <div class="sale-submit">
  240. <button type="button" id="returnList" class="label-primary-s bth-s">返回</button>
  241. </div>
  242. <script src="/js/productset/jquery.min.js"></script>
  243. <script src="/js/ims/jquery.datetimepicker.js"></script>
  244. <script src="/js/ims/layer/layer.js"></script>
  245. <script src="/js/ims/xsgl.js"></script>
  246. <script>
  247. $(document).ready(function () {
  248. $('#outTimet').datetimepicker({
  249. format: "Y-m-d", //格式化日期
  250. timepicker: false //关闭时间选项
  251. });
  252. $('#returnList').click(function () {
  253. window.location.href = "<?php echo $this->createUrl('imsDevice/repairRecord');?>";
  254. });
  255. })
  256. $('#imgPreview img').click(function () {
  257. layer.open({
  258. type: 1,
  259. skin: 'layui-layer-rim', //加上边框
  260. area: ['800px', '600px'], //宽高
  261. content: $(this)
  262. });
  263. });
  264. </script>
  265. </body>
  266. </html>