view.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. {extend name="layout/content"}
  2. {block name="content"}
  3. <style type="text/css" xmlns="http://www.w3.org/1999/html">
  4. .panel-heading{
  5. color:#333;
  6. background-color:#f5f5f5;
  7. border-color:#ddd
  8. }
  9. .spacing {
  10. margin-bottom: 10px;
  11. padding-right:4px;
  12. padding-left: 4px;
  13. }
  14. #integralInfoForm label {
  15. font-size: xx-small;
  16. }
  17. .has-feedback .form-control {
  18. padding-right: 5px;
  19. }
  20. .control-label{
  21. color: #337ab7;
  22. }
  23. .rowGroup{
  24. padding-bottom: 5px;
  25. }
  26. .imgs>li{
  27. list-style: none;
  28. float: left;
  29. border: 1px solid #d8d1d1;
  30. text-align: center;
  31. height: 35px;
  32. width:100%;
  33. padding:5px 0;
  34. }
  35. .imgs li>div{float:left;}
  36. .info td{background:#f5f5f5 !important;}
  37. .table .td-label{
  38. display: block;
  39. text-align: left;
  40. border-bottom: 1px solid #ccc;
  41. margin-bottom: 10px;
  42. }
  43. .word-wrap{
  44. width:100%;
  45. white-space:normal;
  46. word-wrap:break-word;
  47. word-break:break-all;
  48. }
  49. ul{
  50. padding: 0;
  51. }
  52. .control-symbol{
  53. display: inline-block;
  54. position:absolute;
  55. right:0;
  56. top:50%;
  57. font-style:normal;
  58. margin-top: -16px;
  59. height:32px;
  60. width:32px;
  61. line-height:32px;
  62. text-align:center;
  63. border-left:1px solid #ddd;
  64. }
  65. .has-feedback label~.form-control-feedback{
  66. top: 31px;
  67. }
  68. </style>
  69. <div class="ibox float-e-margins">
  70. <div class="ibox-content">
  71. <div class="form-horizontal">
  72. <div class="row">
  73. <div class="col-sm-12" >
  74. <div class="tab-content">
  75. <div id="tab-1" class="tab-pane active">
  76. <form id="integralInfoForm" action="/enterprise/integral/apply" method="post" enctype="multipart/form-data" target="hiddenIframe">
  77. <input type="hidden" name="id" id="id" value="{$row.id}"/>
  78. <input type="hidden" name="year" id="year" value="{$year}"/>
  79. <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}"/>
  80. <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}"/>
  81. <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}"/>
  82. <input type="hidden" name="realState" id="realState" value="{$row.real_state}"/>
  83. <input type="hidden" name="files" id="files" value="{$row.modify_files}"/>
  84. <input type="hidden" name="fields" id="fields" value="{$row.modify_fields}"/>
  85. <div class="panel panel-default">
  86. <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
  87. <div class="panel-body">
  88. <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
  89. <tr>
  90. <td>
  91. <div class="rowGroup">
  92. <label class="control-label spacing td-label"><span style="color: red">*</span>姓名</label>
  93. <input type="text" class="form-control" id="name" name="name" value="{$row.name}"/>
  94. </div>
  95. </td>
  96. <td>
  97. <div class="rowGroup">
  98. <label class=" control-label spacing td-label"><span style="color: red">*</span>证件类型</label>
  99. <select class="form-control" id="card_type" name="card_type" value="{$row.card_type}">
  100. <option value="">请选择</option>
  101. <option value="1">身份证</option>
  102. <option value="2">通行证</option>
  103. <option value="3">护照</option>
  104. </select>
  105. </div>
  106. </td>
  107. <td>
  108. <div class="rowGroup">
  109. <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
  110. <input class="form-control" id="card_number" name="card_number" value="{$row.card_number}">
  111. </div>
  112. </td>
  113. <td>
  114. <div class="rowGroup">
  115. <label class="control-label spacing td-label"><span style="color: red">*</span>手机号码</label>
  116. <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
  117. </div>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td>
  122. <div class="rowGroup">
  123. <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
  124. <input type="text" class="form-control" id="email" name="email" value="{$row.email}"/>
  125. </div>
  126. </td>
  127. <td>
  128. <div class="rowGroup">
  129. <label class=" control-label spacing td-label"><span style="color: red">*</span>单位名称</label>
  130. <div class="form-control" style="border: none">{$row.enterprise.name}</div>
  131. </div>
  132. </td>
  133. <td>
  134. <div class="rowGroup">
  135. <label class=" control-label spacing td-label"><span style="color: red">*</span>所属街道</label>
  136. <div class="form-control" style="border: none">{$row.enterprise.streetName}</div>
  137. </div>
  138. </td>
  139. <td>
  140. <div class="rowGroup">
  141. <label class=" control-label spacing td-label"><span style="color: red">*</span>是否股东</label>
  142. <select class="form-control" id="shareholder" name="shareholder" value="{$row.shareholder}">
  143. <option value="">请选择</option>
  144. <option value="1">是</option>
  145. <option value="2">否</option>
  146. </select>
  147. </div>
  148. </td>
  149. </tr>
  150. </table>
  151. </div>
  152. </div>
  153. <div class="panel panel-default">
  154. <div class="panel-heading" onclick="$(this).next().toggle()">申报项目</div>
  155. <div class="panel-body" id="itemList">
  156. {volist name="row.items" id="item"}
  157. <table style="width:100%;border-collapse: collapse;" class="table table-bordered">
  158. <tr>
  159. <td>
  160. <div class="rowGroup">
  161. <label class=" control-label spacing td-label"><span style="color: red">*</span>项目类别</label>
  162. <select class="form-control" name="projectType[]" value="{$item.item_id|getCacheById='IntegralItem',###,'projectId'|getCacheById='IntegralProject',###,'projectType'}" onchange="IntegralInfoDlg.onProjectTypeChange(this);">
  163. <option value="">请选择</option>
  164. <option value="1">基础分</option>
  165. <option value="2">贡献分</option>
  166. <option value="3">资历分</option>
  167. </select>
  168. </div>
  169. </td>
  170. <td>
  171. <div class="rowGroup">
  172. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分项目</label>
  173. <select class="form-control" name="projectId[]" value="{$item.item_id|getCacheById='IntegralItem',###,'projectId'}" onchange="IntegralInfoDlg.onProjectChange(this);">
  174. <option value="">请选择</option>
  175. </select>
  176. </div>
  177. </td>
  178. <td>
  179. <div class="rowGroup">
  180. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分标准</label>
  181. <select class="form-control" name="item_id[]" value="{$item.item_id}" onchange="IntegralInfoDlg.onItemChange(this);">
  182. <option value="">请选择</option>
  183. </select>
  184. </div>
  185. </td>
  186. <td>
  187. <div class="rowGroup">
  188. <label class="control-label spacing td-label"><span style="color: red">*</span>数额<span class="unit"></span></label>
  189. <input type="text" class="form-control" name="amount[]" value="{$item.amount}"/>
  190. </div>
  191. </td>
  192. <td>
  193. <div class="rowGroup">
  194. <label class=" control-label spacing td-label">预估积分</label>
  195. <div class="form-control points" style="border: none">{$item.pre_point}</div>
  196. </div>
  197. </td>
  198. </tr>
  199. <!--<tr>
  200. <td colspan="5">
  201. <table class="fileTable"></table>
  202. </td>
  203. </tr>-->
  204. </table>
  205. {/volist}
  206. </div>
  207. </div>
  208. <div class="panel panel-default">
  209. <div class="panel-heading" onclick="$(this).next().toggle()">附件</div>
  210. <div class="panel-body" id="itemList">
  211. <table class="fileTable"></table>
  212. </div>
  213. </div>
  214. </form>
  215. <form id="uploadForm" action="/common/api/addTalentFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
  216. <input type='hidden' id="fileId" name="fileId" />
  217. <input type='file' id="upload_file" name="fileUrl" style='display: none'/>
  218. <input type='hidden' id="mainId" name="mainId" />
  219. <input type='hidden' id="fileTypeId" name="fileTypeId" />
  220. <input type='hidden' id="index" name="index" />
  221. <input type='hidden' id="tableIndex" name="tableIndex" />
  222. <input type='hidden' id="trIndex" name="trIndex" />
  223. <input type="hidden" name="backName" value="IntegralInfoDlg.callBack"/>
  224. <input type="type" name="type" value="20"/>
  225. </form>
  226. <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
  227. <table id="logTable">
  228. </table>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
  237. <!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_info.js"></script>-->
  238. <script type="text/javascript">
  239. document.write('<script src="/static/modular/gate/integral/integralInfo_select.js?v=' + (new Date()).getTime() + '"><\/script>');
  240. document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
  241. </script>
  242. {/block}