superivseList-update.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>设备档案</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
  9. <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
  10. <script src="plug-in/layer/layer.js"></script>
  11. <script>
  12. </script>
  13. <script type="text/javascript">
  14. //编写自定义JS代码
  15. </script>
  16. </head>
  17. <body>
  18. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="scheduleSuperivseController.do?doUpdate">
  19. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  20. <input id="pageTag" name="pageTag" value="update" type="hidden">
  21. <input id="id" name="id" value='${common.id}' type="hidden">
  22. <tr>
  23. <td align="right">
  24. <label class="Validform_label">
  25. <span color="red" class="requiredIcon">*</span>督查日期:
  26. </label>
  27. </td>
  28. <td class="value">
  29. <input value='${common.superviseDate}' id="superviseDate" name="superviseDate" type="text" style="width: 150px" class="Wdate"
  30. onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" ignore="checked"/>
  31. <span class="Validform_checktip"></span>
  32. <label class="Validform_label" style="display: none;">督查日期</label>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td align="right">
  37. <label class="Validform_label">
  38. <span color="red" class="requiredIcon">*</span>督察人员:
  39. </label>
  40. </td>
  41. <td class="value">
  42. <input id="userName" name="userName" type="text" value="${userName}" readonly="readonly" class="inputxt" onclick="openManagerSelect(1)"
  43. placeholder="请选择" datatype="*">
  44. <input value='${common.userId}' id="userId" name="userId" type="hidden">
  45. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(1)">选择</a>
  46. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(1)">清空</a>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td align="right">
  51. <label class="Validform_label">
  52. <span color="red" class="requiredIcon">*</span>督察区域:
  53. </label>
  54. </td>
  55. <td class="value">
  56. <t:dictSelect defaultVal='${common.area}' datatype="*" id="area" field="area" type="list" typeGroupCode="superivseArea" hasLabel="false" title="督察区域"></t:dictSelect>
  57. <span class="Validform_checktip"></span>
  58. <label class="Validform_label" style="display: none;">督察区域</label>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td align="right">
  63. <label class="Validform_label">
  64. <span color="red" class="requiredIcon">*</span>业务类型:
  65. </label>
  66. </td>
  67. <td class="value">
  68. <t:dictSelect defaultVal='${common.type}' datatype="*" id="type" field="type" type="list" typeGroupCode="superivseType" hasLabel="false" title="业务类型"></t:dictSelect>
  69. <span class="Validform_checktip"></span>
  70. <label class="Validform_label" style="display: none;">业务类型</label>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td align="right">
  75. <label class="Validform_label">
  76. <span color="red" class="requiredIcon">*</span>问题类型:
  77. </label>
  78. </td>
  79. <td class="value">
  80. <t:dictSelect defaultVal='${common.source}' datatype="*" id="source" field="source" type="list" typeGroupCode="complainType" hasLabel="false" title="问题类型"></t:dictSelect>
  81. <span class="Validform_checktip"></span>
  82. <label class="Validform_label" style="display: none;">问题类型</label>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td align="right">
  87. <label class="Validform_label">
  88. *问题作业位置:
  89. </label>
  90. </td>
  91. <td class="value">
  92. <input value='${common.location}' id="location" name="location" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  93. <span class="Validform_checktip"></span>
  94. <label class="Validform_label" style="display: none;">问题作业位置</label>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td align="right">
  99. <label class="Validform_label">
  100. *位置地点:
  101. </label>
  102. </td>
  103. <td class="value">
  104. <input value='${common.position}' id="position" name="position" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  105. <span class="Validform_checktip"></span>
  106. <label class="Validform_label" style="display: none;">位置地点</label>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td align="right">
  111. <label class="Validform_label">
  112. <span color="red" class="requiredIcon">*</span>现场评价:
  113. </label>
  114. </td>
  115. <td class="value">
  116. <input value='${common.context}' id="context" name="context" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  117. <span class="Validform_checktip"></span>
  118. <label class="Validform_label" style="display: none;">现场评价</label>
  119. </td>
  120. </tr>
  121. <c:if test="${fn:length(common.imgUrlList) > 0}">
  122. <tr>
  123. <td align="right">
  124. <label class="Validform_label">
  125. <span color="red" class="requiredIcon">*</span>问题照片:
  126. </label>
  127. </td>
  128. <td class="value">
  129. <c:forEach items="${common.imgUrlList}" var="imgUrlItem" varStatus="stuts">
  130. <img class="iamgeBox" src="${imgUrlItem}"/>
  131. </c:forEach>
  132. </td>
  133. </tr>
  134. </c:if>
  135. <c:if test="${fn:length(common.videosList) > 0}">
  136. <tr>
  137. <td align="right">
  138. <label class="Validform_label">
  139. <span color="red" class="requiredIcon">*</span>问题视频:
  140. </label>
  141. </td>
  142. <td class="value multimediaBox">
  143. <c:forEach items="${common.videosList}" var="videoItem" varStatus="stuts">
  144. <video controls class="iamgeBox" src="${videoItem}">
  145. <source src="${videoItem}" type="video/mp4"/>
  146. </video>
  147. </c:forEach>
  148. </td>
  149. </tr>
  150. </c:if>
  151. <tr>
  152. <td align="right">
  153. <label class="Validform_label">
  154. <span color="red" class="requiredIcon">*</span>责任人:
  155. </label>
  156. </td>
  157. <td class="value multimediaBox">
  158. <input id="responsibleUserName" name="responsibleUserName" value="${responsibleUserName}" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(2)"
  159. placeholder="请选择" datatype="*">
  160. <input id="responsibleUserId" name="responsibleUserId" value="${common.responsibleUserId}" type="hidden">
  161. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(2)">选择</a>
  162. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(2)">清空</a>
  163. </td>
  164. </tr>
  165. <%-- <tr>--%>
  166. <%-- <td align="right">--%>
  167. <%-- <label class="Validform_label">--%>
  168. <%-- 班组长:--%>
  169. <%-- </label>--%>
  170. <%-- </td>--%>
  171. <%-- <td class="value">--%>
  172. <%-- <input id="leaderUserName" name="leaderUserName" value="${leaderUserName}" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(3)"--%>
  173. <%-- placeholder="请选择">--%>
  174. <%-- <input id="leaderUserId" name="leaderUserId" value="${common.leaderUserId}" type="hidden">--%>
  175. <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(3)">选择</a>--%>
  176. <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(3)">清空</a>--%>
  177. <%-- </td>--%>
  178. <%-- </tr>--%>
  179. <tr>
  180. <td align="right">
  181. <label class="Validform_label">
  182. <span color="red" class="requiredIcon">*</span>备注:
  183. </label>
  184. </td>
  185. <td class="value">
  186. <input value='${common.dealRemark}' id="deal_remark" name="deal_remark" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  187. <span class="Validform_checktip"></span>
  188. <label class="Validform_label" style="display: none;">现场评价</label>
  189. </td>
  190. </tr>
  191. <c:if test="${not empty noRecord}">
  192. <p>${noRecord}</p>
  193. </c:if>
  194. <%-- <p>${noRecord}</p>--%>
  195. <c:forEach items="${list}" var="item">
  196. <tr>
  197. <td align="right">
  198. <label class="Validform_label">
  199. 整改时间:
  200. </label>
  201. </td>
  202. <td class="value">
  203. <input type="text" style="width: 150px;border: none;" value="${item.dealDate}" disabled/>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td align="right">
  208. <label class="Validform_label">
  209. 附件照片:
  210. </label>
  211. </td>
  212. <td class="value">
  213. <img src="${item.imgUrl}" style="width:50%;"/>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>
  218. <div>&nbsp;</div>
  219. </td>
  220. </tr>
  221. </c:forEach>
  222. </table>
  223. </t:formvalid>
  224. </body>
  225. <script type="text/javascript">
  226. $(()=>{
  227. if(location.href.indexOf("load=detail")!=-1) {
  228. $(":input").attr("disabled", "true");
  229. $(".datagrid-toolbar").hide();
  230. }
  231. })
  232. function uploadSucc(response){
  233. if(response.success){
  234. $('#imgUrl').val(response.attributes.url);
  235. }
  236. }
  237. function openManagerSelect(type) {
  238. $.dialog({
  239. content: 'url:publicpageController.do?userSelect', zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '650px', opacity: 0.4, button: [
  240. {name: '确定', callback: function (){
  241. var iframe = this.iframe.contentWindow;
  242. if(iframe.getReason().length>0){
  243. var strData=eval(iframe.getReason());
  244. setUser(type, strData);
  245. }
  246. }, focus: true},
  247. {name: '取消', callback: function (){}}
  248. ]}).zindex();
  249. }
  250. function setUser(type, strData) {
  251. if(type == 1){
  252. $("#userId").val(strData[0].strId);
  253. $("#userName").val(strData[0].strName);
  254. }else if(type == 2){
  255. $("#responsibleUserId").val(strData[0].strId);
  256. $("#responsibleUserName").val(strData[0].strName);
  257. }else if(type == 3){
  258. $("#leaderUserId").val(strData[0].strId);
  259. $("#leaderUserName").val(strData[0].strName);
  260. }
  261. }
  262. function callbackCleanUser(type){
  263. if(type == 1){
  264. $('#userName').val('');
  265. $('#userId').val('');
  266. }else if(type == 2){
  267. $("#responsibleUserId").val('');
  268. $("#responsibleUserName").val('');
  269. }else if(type == 3){
  270. $("#leaderUserId").val('');
  271. $("#leaderUserName").val('');
  272. }
  273. }
  274. </script>
  275. <style>
  276. .multimediaBox{
  277. display: flex;
  278. }
  279. .iamgeBox{
  280. width: 200px;
  281. max-height: 400px;
  282. }
  283. </style>