superivseList-add.jsp 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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?doAdd">
  19. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  20. <tr>
  21. <td align="right">
  22. <label class="Validform_label">
  23. <span color="red" class="requiredIcon">*</span>督查日期:
  24. </label>
  25. </td>
  26. <td class="value">
  27. <input id="superviseDate" name="superviseDate" type="text" style="width: 150px" class="Wdate"
  28. onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" ignore="checked"/>
  29. <span class="Validform_checktip"></span>
  30. <label class="Validform_label" style="display: none;">督查日期</label>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td align="right">
  35. <label class="Validform_label">
  36. <span color="red" class="requiredIcon">*</span>督察人员:
  37. </label>
  38. </td>
  39. <td class="value">
  40. <input id="userName" name="userName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(1)"
  41. placeholder="请选择" datatype="*">
  42. <input id="userId" name="userId" type="hidden">
  43. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(1)">选择</a>
  44. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(1)">清空</a>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td align="right">
  49. <label class="Validform_label">
  50. <span color="red" class="requiredIcon">*</span>督察区域:
  51. </label>
  52. </td>
  53. <td class="value">
  54. <t:dictSelect id="area" field="area" type="list" datatype="*" typeGroupCode="superivseArea" hasLabel="false" title="督察区域"></t:dictSelect>
  55. <span class="Validform_checktip"></span>
  56. <label class="Validform_label" style="display: none;">督察区域</label>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td align="right">
  61. <label class="Validform_label">
  62. <span color="red" class="requiredIcon">*</span>业务类型:
  63. </label>
  64. </td>
  65. <td class="value">
  66. <t:dictSelect id="type" field="type" type="list" datatype="*" typeGroupCode="superivseType" hasLabel="false" title="业务类型"></t:dictSelect>
  67. <span class="Validform_checktip"></span>
  68. <label class="Validform_label" style="display: none;">业务类型</label>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td align="right">
  73. <label class="Validform_label">
  74. <span color="red" class="requiredIcon">*</span>问题类型:
  75. </label>
  76. </td>
  77. <td class="value">
  78. <t:dictSelect id="source" field="source" type="list" datatype="*" typeGroupCode="complainType" hasLabel="false" title="问题类型"></t:dictSelect>
  79. <span class="Validform_checktip"></span>
  80. <label class="Validform_label" style="display: none;">问题类型</label>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td align="right">
  85. <label class="Validform_label">
  86. <span color="red" class="requiredIcon">*</span>问题作业位置:
  87. </label>
  88. </td>
  89. <td class="value">
  90. <input id="location" name="location" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  91. <span class="Validform_checktip"></span>
  92. <label class="Validform_label" style="display: none;">问题作业位置</label>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td align="right">
  97. <label class="Validform_label">
  98. *位置地点:
  99. </label>
  100. </td>
  101. <td class="value">
  102. <input id="position" name="position" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  103. <span class="Validform_checktip"></span>
  104. <label class="Validform_label" style="display: none;">位置地点</label>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td align="right">
  109. <label class="Validform_label">
  110. <span color="red" class="requiredIcon">*</span>现场评价:
  111. </label>
  112. </td>
  113. <td class="value">
  114. <input id="context" name="context" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  115. <span class="Validform_checktip"></span>
  116. <label class="Validform_label" style="display: none;">现场评价</label>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td align="right">
  121. <label class="Validform_label">
  122. <span color="red" class="requiredIcon">*</span>问题照片:
  123. </label>
  124. </td>
  125. <td class="value">
  126. <input id="imgUrl" name="imgUrl" type="hidden">
  127. <t:webUploader name="okpath" auto="true" callback="uploadSucc" showImgDiv="" type="image" dataType="*" buttonStyle="btn-green" fileNumLimit="1" url="cgUploadController.do?ajaxSaveFile"></t:webUploader>
  128. </td>
  129. <td colspan="2" id="instructionfile" class="value">
  130. <div id="fileShow" ></div>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td align="right">
  135. <label class="Validform_label">
  136. <span color="red" class="requiredIcon">*</span>责任人:
  137. </label>
  138. </td>
  139. <td class="value">
  140. <input id="responsibleUserName" name="responsibleUserName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(2)"
  141. placeholder="请选择" datatype="*">
  142. <input id="responsibleUserId" name="responsibleUserId" type="hidden">
  143. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(2)">选择</a>
  144. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(2)">清空</a>
  145. </td>
  146. </tr>
  147. <%-- <tr>--%>
  148. <%-- <td align="right">--%>
  149. <%-- <label class="Validform_label">--%>
  150. <%-- 班组长:--%>
  151. <%-- </label>--%>
  152. <%-- </td>--%>
  153. <%-- <td class="value">--%>
  154. <%-- <input id="leaderUserName" name="leaderUserName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(3)"--%>
  155. <%-- placeholder="请选择">--%>
  156. <%-- <input id="leaderUserId" name="leaderUserId" type="hidden">--%>
  157. <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(3)">选择</a>--%>
  158. <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(3)">清空</a>--%>
  159. <%-- </td>--%>
  160. <%-- </tr>--%>
  161. <tr>
  162. <td align="right">
  163. <label class="Validform_label">
  164. <span color="red" class="requiredIcon">*</span>备注:
  165. </label>
  166. </td>
  167. <td class="value">
  168. <input value='${common.deal_remark}' id="deal_remark" name="deal_remark" type="text" style="width: 150px" datatype="*" ignore="checked"/>
  169. <span class="Validform_checktip"></span>
  170. <label class="Validform_label" style="display: none;">现场评价</label>
  171. </td>
  172. </tr>
  173. </table>
  174. </t:formvalid>
  175. </body>
  176. <script type="text/javascript">
  177. function uploadSucc(response){
  178. if(response.success){
  179. $('#imgUrl').val(response.attributes.url);
  180. }
  181. }
  182. function openManagerSelect(type) {
  183. $.dialog({
  184. content: 'url:publicpageController.do?userSelect', zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '650px', opacity: 0.4, button: [
  185. {name: '确定', callback: function (){
  186. var iframe = this.iframe.contentWindow;
  187. if(iframe.getReason().length>0){
  188. var strData=eval(iframe.getReason());
  189. setUser(type, strData);
  190. }
  191. }, focus: true},
  192. {name: '取消', callback: function (){}}
  193. ]}).zindex();
  194. }
  195. function callbackClean(type) {
  196. if(type == 1){
  197. $("#userId").val('');
  198. $("#userName").val('');
  199. }else if(type == 2){
  200. $("#responsibleUserId").val('');
  201. $("#responsibleUserName").val('');
  202. }else if(type == 3){
  203. $("#leaderUserId").val('');
  204. $("#leaderUserName").val('');
  205. }
  206. }
  207. function setUser(type, strData) {
  208. if(type == 1){
  209. $("#userId").val(strData[0].strId);
  210. $("#userName").val(strData[0].strName);
  211. }else if(type == 2){
  212. $("#responsibleUserId").val(strData[0].strId);
  213. $("#responsibleUserName").val(strData[0].strName);
  214. }else if(type == 3){
  215. $("#leaderUserId").val(strData[0].strId);
  216. $("#leaderUserName").val(strData[0].strName);
  217. }
  218. }
  219. function callbackCleanUser(type){
  220. if(type == 1){
  221. $('#userName').val('');
  222. $('#userId').val('');
  223. }else if(type == 2){
  224. $("#responsibleUserId").val('');
  225. $("#responsibleUserName").val('');
  226. }else if(type == 3){
  227. $("#leaderUserId").val('');
  228. $("#leaderUserName").val('');
  229. }
  230. }
  231. </script>