apply.html 22 KB

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