apply.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. {:token_field()}
  78. <input type="hidden" name="id" id="id" value="{$row.id}"/>
  79. <input type="hidden" name="year" id="year" value="{$year}"/>
  80. <input type="hidden" name="enterprise_id" id="enterpriseId" value="{$row.enterprise.id}"/>
  81. <input type="hidden" name="enterprise_type" id="type" value="{$row.enterprise.type}"/>
  82. <input type="hidden" name="checkState" id="checkState" value="{$row.checkState}"/>
  83. <input type="hidden" name="realState" id="realState" value="{$row.real_state}"/>
  84. <input type="hidden" name="files" id="files" value="{$row.modify_files}"/>
  85. <input type="hidden" name="fields" id="fields" value="{$row.modify_fields}"/>
  86. <div class="panel panel-default">
  87. <div class="panel-heading" onclick="$(this).next().toggle()">基础信息</div>
  88. <div class="panel-body">
  89. <div class="form-control" id="tips"></div>
  90. <table style="width: 100%;border-collapse: collapse;" class="table table-bordered">
  91. <tr>
  92. <td>
  93. <div class="rowGroup">
  94. <label class="control-label spacing td-label"><span style="color: red">*</span>姓名</label>
  95. <input type="text" class="form-control" id="name" name="name" value="{$row.name}"/>
  96. </div>
  97. </td>
  98. <td>
  99. <div class="rowGroup">
  100. <label class=" control-label spacing td-label"><span style="color: red">*</span>证件类型</label>
  101. <select class="form-control" id="card_type" name="card_type" value="{$row.card_type}" onchange="IntegralInfoDlg.multipleRefreshPoints();">
  102. <option value="">请选择</option>
  103. <option value="1">身份证</option>
  104. <option value="2">通行证</option>
  105. <option value="3">护照</option>
  106. </select>
  107. </div>
  108. </td>
  109. <td>
  110. <div class="rowGroup">
  111. <label class=" control-label spacing td-label"><span style="color: red">*</span>证件号码</span></label>
  112. <input class="form-control" id="card_number" name="card_number" value="{$row.card_number}" onblur="IntegralInfoDlg.multipleRefreshPoints();">
  113. </div>
  114. </td>
  115. <td>
  116. <div class="rowGroup">
  117. <label class="control-label spacing td-label"><span style="color: red">*</span>手机号码</label>
  118. <input type="text" class="form-control" id="phone" name="phone" maxlength="11" value="{$row.phone}"/>
  119. </div>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. <div class="rowGroup">
  125. <label class="control-label spacing td-label"><span style="color: red">*</span>电子邮箱</label>
  126. <input type="text" class="form-control" id="email" name="email" value="{$row.email}"/>
  127. </div>
  128. </td>
  129. <td>
  130. <div class="rowGroup">
  131. <label class=" control-label spacing td-label"><span style="color: red">*</span>单位名称</label>
  132. <div class="form-control" style="border: none">{$row.enterprise.name}</div>
  133. </div>
  134. </td>
  135. <td>
  136. <div class="rowGroup">
  137. <label class=" control-label spacing td-label"><span style="color: red">*</span>所属街道</label>
  138. <div class="form-control" style="border: none">{$row.enterprise.streetName}</div>
  139. </div>
  140. </td>
  141. <td>
  142. <div class="rowGroup">
  143. <label class=" control-label spacing td-label"><span style="color: red">*</span>是否股东</label>
  144. <select class="form-control" id="shareholder" name="shareholder" value="{$row.shareholder}">
  145. <option value="">请选择</option>
  146. <option value="1">是</option>
  147. <option value="2">否</option>
  148. </select>
  149. </div>
  150. </td>
  151. </tr>
  152. </table>
  153. </div>
  154. </div>
  155. <div class="panel panel-default">
  156. <div class="panel-heading" onclick="$(this).next().toggle()">申报项目</div>
  157. <div class="panel-body" id="itemList">
  158. {if condition="$row['detail']"}
  159. {volist name="row.items" id="item"}
  160. <table style="width:100%;border-collapse: collapse;" class="table table-bordered">
  161. <tr>
  162. <td style="width:40px;">
  163. <div class="rowGroup">
  164. <label class=" control-label spacing td-label">选择</label>
  165. <input type="checkbox" name="chk[]" class="form-control"/>
  166. </div>
  167. </td>
  168. <td>
  169. <div class="rowGroup">
  170. <label class=" control-label spacing td-label"><span style="color: red">*</span>项目类别</label>
  171. <select class="form-control" name="projectType[]" value="{$item.item_id|getCacheById='IntegralItem',###,'projectId'|getCacheById='IntegralProject',###,'projectType'}" onchange="IntegralInfoDlg.onProjectTypeChange(this);">
  172. <option value="">请选择</option>
  173. <!--<option value="1">基础分</option>-->
  174. <option value="2">贡献分</option>
  175. <option value="3">资历分</option>
  176. </select>
  177. </div>
  178. </td>
  179. <td>
  180. <div class="rowGroup">
  181. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分项目</label>
  182. <select class="form-control" name="projectId[]" value="{$item.item_id|getCacheById='IntegralItem',###,'projectId'}" onchange="IntegralInfoDlg.onProjectChange(this);">
  183. <option value="">请选择</option>
  184. </select>
  185. </div>
  186. </td>
  187. <td>
  188. <div class="rowGroup">
  189. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分标准</label>
  190. <select class="form-control" name="item_id[]" value="{$item.item_id}" onchange="IntegralInfoDlg.onItemChange(this);">
  191. <option value="">请选择</option>
  192. </select>
  193. </div>
  194. </td>
  195. <td>
  196. <div class="rowGroup">
  197. <label class="control-label spacing td-label"><span style="color: red">*</span>数额<span class="unit"></span></label>
  198. <input type="text" class="form-control" name="amount[]" value="{$item.amount}" onkeyup="IntegralInfoDlg.onAmountChange(this);"/>
  199. </div>
  200. </td>
  201. <td>
  202. <div class="rowGroup">
  203. <label class=" control-label spacing td-label">预估积分</label>
  204. <div class="form-control points" style="border: none">{$item.pre_point}</div>
  205. </div>
  206. </td>
  207. </tr>
  208. <!--<tr>
  209. <td colspan="5">
  210. <table class="fileTable"></table>
  211. </td>
  212. </tr>-->
  213. </table>
  214. {/volist}
  215. {else/}
  216. <table style="width:100%;border-collapse: collapse;" class="table table-bordered">
  217. <tr>
  218. <td style="width:40px;">
  219. <div class="rowGroup">
  220. <label class=" control-label spacing td-label">选择</label>
  221. <input type="checkbox" name="chk[]" class="form-control"/>
  222. </div>
  223. </td>
  224. <td>
  225. <div class="rowGroup">
  226. <label class=" control-label spacing td-label"><span style="color: red">*</span>项目类别</label>
  227. <select class="form-control" name="projectType[]" value="{$row.projectType}" onchange="IntegralInfoDlg.onProjectTypeChange(this);">
  228. <option value="">请选择</option>
  229. <!--<option value="1">基础分</option>-->
  230. <option value="2">贡献分</option>
  231. <option value="3">资历分</option>
  232. </select>
  233. </div>
  234. </td>
  235. <td>
  236. <div class="rowGroup">
  237. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分项目</label>
  238. <select class="form-control" name="projectId[]" value="{$row.projectId}" onchange="IntegralInfoDlg.onProjectChange(this);">
  239. <option value="">请选择</option>
  240. </select>
  241. </div>
  242. </td>
  243. <td>
  244. <div class="rowGroup">
  245. <label class=" control-label spacing td-label"><span style="color: red">*</span>积分标准</label>
  246. <select class="form-control" name="item_id[]" value="{$row.item_id}" onchange="IntegralInfoDlg.onItemChange(this);">
  247. <option value="">请选择</option>
  248. </select>
  249. </div>
  250. </td>
  251. <td>
  252. <div class="rowGroup">
  253. <label class="control-label spacing td-label"><span style="color: red">*</span>数额<span class="unit"></span></label>
  254. <input type="text" class="form-control" name="amount[]" value="{$row.amount}" onkeyup="IntegralInfoDlg.onAmountChange(this);"/>
  255. </div>
  256. </td>
  257. <td>
  258. <div class="rowGroup">
  259. <label class=" control-label spacing td-label">预估积分</label>
  260. <div class="form-control points" style="border: none">-</div>
  261. </div>
  262. </td>
  263. </tr>
  264. <!--<tr>
  265. <td colspan="5">
  266. <table class="fileTable"></table>
  267. </td>
  268. </tr>-->
  269. </table>
  270. {/if}
  271. <div id="toolbar" style="text-align:center;">
  272. <button type="button" class="btn btn-sm btn-info " onclick="IntegralInfoDlg.addItem()" id="">
  273. <i class="fa fa-plus"></i>&nbsp;增加项目
  274. </button>
  275. <button type="button" class="btn btn-sm btn-warning " onclick="IntegralInfoDlg.deleteItem()" id="">
  276. <i class="fa fa-remove"></i>&nbsp;移除项目
  277. </button>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="panel panel-default">
  282. <div class="panel-heading" onclick="$(this).next().toggle()">附件</div>
  283. <div class="panel-body" id="itemList">
  284. <table class="fileTable"></table>
  285. </div>
  286. </div>
  287. </form>
  288. <form id="uploadForm" action="/common/api/addTalentFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
  289. <input type='hidden' id="fileId" name="fileId" />
  290. <input type='file' id="upload_file" name="fileUrl" style='display: none'/>
  291. <input type='hidden' id="mainId" name="mainId" />
  292. <input type='hidden' id="fileTypeId" name="fileTypeId" />
  293. <input type='hidden' id="relationId" name="relationId" />
  294. <input type='hidden' id="pageToken" name="pageToken" />
  295. <input type='hidden' id="index" name="index" />
  296. <input type='hidden' id="tableIndex" name="tableIndex" />
  297. <input type='hidden' id="trIndex" name="trIndex" />
  298. <input type="hidden" name="backName" value="IntegralInfoDlg.callBack"/>
  299. <input type="type" name="type" value="20"/>
  300. </form>
  301. <div class="panel-heading" onclick="$(this).next().toggle()">日志</div>
  302. <table id="logTable">
  303. </table>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
  312. <!--<script src="${ctxPath}/static/modular/gate/talentInfo/talentInfo_info.js"></script>-->
  313. <script type="text/javascript">
  314. document.write('<script src="/static/modular/gate/integral/integralInfo.js?v=' + (new Date()).getTime() + '"><\/script>');
  315. document.write('<script src="/static/modular/common/config.js?v=' + (new Date()).getTime() + '"><\/script>');
  316. </script>
  317. {/block}