appoint_list.blade.php 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  1. <section class="content">
  2. <div class="row">
  3. <div class="col-md-12">
  4. <div class="box">
  5. {{ csrf_field() }}
  6. <div class="box-body table-responsive">
  7. <div class="col-md-3 clearfix">
  8. <div class="box-body table-responsive" style="padding:5px;">
  9. <div class="form-group clearfix" style="margin-bottom:0;">
  10. <label for="prefix" class="control-label">政治面貌:</label>
  11. <div style="float: left;width: 150px;">
  12. <select class="form-control" name="political_affiliation" id="political_affiliation">
  13. <option value=''>不限</option>
  14. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '01') selected @endif value="01">中共党员</option>
  15. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '02') selected @endif value="02">中共预备党员</option>
  16. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '03') selected @endif value="03">共青团员</option>
  17. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '04') selected @endif value="04">民革党员</option>
  18. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '05') selected @endif value="05">民盟盟员</option>
  19. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '06') selected @endif value="06">民建会员</option>
  20. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '07') selected @endif value="07">民进会员</option>
  21. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '08') selected @endif value="08">农工党党员</option>
  22. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '09') selected @endif value="09">致公党党员</option>
  23. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '10') selected @endif value="10">九三学社社员</option>
  24. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '11') selected @endif value="11">台盟盟员</option>
  25. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '12') selected @endif value="12">无党派人士</option>
  26. <option @if(array_key_exists('political_affiliation',$search_data) && $search_data['political_affiliation'] == '13') selected @endif value="13">群众</option>
  27. </select>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="box-body table-responsive" style="padding:5px;">
  32. <div class="form-group clearfix" style="margin-bottom:0;">
  33. <label for="prefix" class="control-label">报名状态:</label>
  34. <div style="float: left;width: 150px;">
  35. <select class="form-control" name="audit" id="audit">
  36. <option value=''>不限</option>
  37. <option @if(array_key_exists('audit',$search_data) && $search_data['audit'] == '1') selected @endif value='1'>已提交,待审核</option>
  38. <option @if(array_key_exists('audit',$search_data) && $search_data['audit'] == '2') selected @endif value='2'>审核失败,已退回</option>
  39. <option @if(array_key_exists('audit',$search_data) && $search_data['audit'] == '3') selected @endif value='3'>审核成功</option>
  40. </select>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="box-body table-responsive" style="padding:5px;">
  45. <div class="form-group clearfix" style="margin-bottom:0;">
  46. <label for="prefix" class="control-label">精确查询:</label>
  47. <div style="float: left;width: 150px;">
  48. <input type="text" class="form-control" name="realname" id="realname" placeholder="请输入姓名" @if(array_key_exists('realname',$search_data)) value="{{$search_data['realname']}}" @endif>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="col-md-3 clearfix">
  54. <div class="box-body table-responsive" style="padding:5px;">
  55. <div class="form-group clearfix" style="margin-bottom:0;">
  56. <label for="prefix" class="control-label">性别:</label>
  57. <div style="float: left;width: 150px;">
  58. <select class="form-control" name="sex" id="sex">
  59. <option value=''>不限</option>
  60. <option value='0' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '0') selected @endif>女</option>
  61. <option value='1' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '1') selected @endif>男</option>
  62. </select>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="box-body table-responsive" style="padding:5px;">
  67. <div class="form-group clearfix" style="margin-bottom:0;">
  68. <label for="prefix" class="control-label">学历:</label>
  69. <div style="float: left;width: 150px;">
  70. <select class="form-control" name="education" id="education">
  71. <option value=''>不限</option>
  72. <option value='小学' @if(array_key_exists('education',$search_data) && $search_data['education'] == '小学') selected @endif>小学</option>
  73. <option value='初中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '初中') selected @endif>初中</option>
  74. <option value='技校' @if(array_key_exists('education',$search_data) && $search_data['education'] == '技校') selected @endif>技校</option>
  75. <option value='职高' @if(array_key_exists('education',$search_data) && $search_data['education'] == '职高') selected @endif>职高</option>
  76. <option value='高中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '高中') selected @endif>高中</option>
  77. <option value='中专' @if(array_key_exists('education',$search_data) && $search_data['education'] == '中专') selected @endif>中专</option>
  78. <option value='专科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '专科') selected @endif>专科</option>
  79. <option value='本科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '本科') selected @endif>本科</option>
  80. <option value='硕士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '硕士') selected @endif>硕士</option>
  81. <option value='博士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '博士') selected @endif>博士</option>
  82. </select>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="box-body table-responsive" style="padding:5px;">
  87. <div class="form-group clearfix" style="margin-bottom:0;">
  88. <label for="prefix" class="control-label">报名岗位:</label>
  89. <div style="float: left;width: 150px;">
  90. <select class="form-control" name="post_id" id="post_id">
  91. <option value=''>不限</option>
  92. @foreach($post as $k => $v)
  93. <option value='{{$k}}' @if(array_key_exists('post_id',$search_data) && $search_data['post_id'] == $k) selected @endif>{{$v}}</option>
  94. @endforeach
  95. </select>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="col-md-3 clearfix">
  101. <div class="box-body table-responsive" style="padding:5px;">
  102. <div class="form-group clearfix" style="margin-bottom:0;">
  103. <label for="prefix" class="control-label">打印笔试准考证:</label>
  104. <div style="float: left;width: 150px;">
  105. <select class="form-control" name="print_bs" id="print_bs">
  106. <option value=''>不限</option>
  107. <option value='1'>是
  108. </option>
  109. <option value='0'>否
  110. </option>
  111. </select>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="box-body table-responsive" style="padding:5px;">
  116. <div class="form-group clearfix" style="margin-bottom:0;">
  117. <label for="prefix" class="control-label">打印上机准考证:</label>
  118. <div style="float: left;width: 150px;">
  119. <select class="form-control" name="print_js" id="print_js">
  120. <option value=''>不限</option>
  121. <option value='1'>是
  122. </option>
  123. <option value='0'>否
  124. </option>
  125. </select>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="box-body table-responsive" style="padding:5px;">
  130. <div class="form-group clearfix" style="margin-bottom:0;">
  131. <label for="prefix" class="control-label">打印面试准考证:</label>
  132. <div style="float: left;width: 150px;">
  133. <select class="form-control" name="print_ms" id="print_ms">
  134. <option value=''>不限</option>
  135. <option value='1'>是
  136. </option>
  137. <option value='0'>否
  138. </option>
  139. </select>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="box-footer">
  146. <div class="btn-group" style="margin-left: 440px;">
  147. <button type="button" class="btn btn-info btn-primary js-search" data-type="1"><i class="fa fa-search">搜索</i></button>
  148. </div>
  149. </div>
  150. <div class="box-body table-responsive">
  151. <div class="col-md-12">
  152. <div class="box-header with-border">
  153. <h3 class="box-title">查询结果</h3>
  154. </div>
  155. <div class="box-body table-responsive no-padding">
  156. <table class="table table-hover">
  157. <thead>
  158. <tr>
  159. <th height="26" class="admin_list_tit">
  160. <input type="checkbox" name=" " title="全选/反选" id="chk" />
  161. </th>
  162. <th>照片</th>
  163. <th>基础资料</th>
  164. <th>邮箱</th>
  165. <th>电话</th>
  166. <th>岗位编号</th>
  167. <th>报考岗位</th>
  168. <th>报名时间</th>
  169. <th>记录变更时间</th>
  170. <th>当前状态</th>
  171. <th>准考证打印情况</th>
  172. <th>日志</th>
  173. <th>操作</th>
  174. </tr>
  175. </thead>
  176. <tbody>
  177. @if(isset($list) && $list->total())
  178. @foreach($list as $k=>$v)
  179. <tr>
  180. <td>
  181. <input ls="{{$v->id}}" name="id[]" id="appointinfo_{{$v->id}}" type="checkbox" value="{{$v->id}}" />
  182. </td>
  183. <td>
  184. <span class="vtip" title='<img @if($v->avatar) src="{{$v->avatar}}" @else src="/data/upload/resource/no_photo_male.png" @endif>' height=120>
  185. <img style="width: 30px; height: 30px;" @if($v->avatar) src="{{$v->avatar}}" @else src="/data/upload/resource/no_photo_male.png" @endif></span>
  186. </td>
  187. <td>
  188. <a target="_blank" href="{{admin_base_path()}}/personal/manager/into2/{{$v->uid}}/{{$v->recruit_id}}">{!! $v->realname !!}</a>
  189. <span style="color: #0A246A; margin-right: 3px;">{{$v->sex}}</span>
  190. <span style="color:#be7707; margin-right: 3px;">{{$v->birthday}}</span>
  191. <span style="color:#0A7CF7; margin-right: 3px;">{{$v->education}}</span>
  192. <span style="color:#ff2424; margin-right: 3px;">{{$v->nation}}</span>
  193. <span style="color:#0F73AC; margin-right: 3px;">{{$v->native_place}}</span>
  194. <span style="color:#ff0000; margin-right: 3px;">{{$v->political_affiliation}}</span>
  195. </td>
  196. <td>
  197. {{ $v->email }}
  198. </td>
  199. <td>
  200. {{ $v->mobile }}
  201. </td>
  202. <td>{!! $v->code !!}</td>
  203. <td>{!! $v->name !!}</td>
  204. <td>{!! $v->created_at !!}</td>
  205. <td>{!! $v->updated_at !!}</td>
  206. <td>
  207. @if(in_array('1',explode(',',$recruit->step)) && $v->current >= 1)
  208. <p>报名:
  209. @if($v->audit == 3)
  210. <span style="color: #67c23a;">通过</span>
  211. @elseif($v->audit == 2)
  212. <span style="color: #f56c6c;">审核失败</span>
  213. @elseif($v->audit == 1)
  214. <span style="color: #e6a23c;">审核中</span>
  215. @endif
  216. </p>
  217. @endif
  218. @if(in_array('3',explode(',',$recruit->step)) && $v->current >= 2)
  219. <p>笔试:
  220. @if($v->pen_audit == -1)
  221. <span style="color: #909399;">未开始</span>
  222. @elseif($v->pen_audit == 0)
  223. <span style="color: #f56c6c;">未通过</span>
  224. @elseif($v->pen_audit == 1)
  225. <span style=" color: #67c23a;">通过</span>
  226. @elseif($v->pen_audit == 2)
  227. <span style="color: #909399;">缺考</span>
  228. @elseif($v->pen_audit == 3)
  229. <span style="color: #909399;">不需要笔试</span>
  230. @endif
  231. </p>
  232. @endif
  233. @if(in_array('4',explode(',',$recruit->step)) && $v->current >= 2)
  234. <p>上机:
  235. @if($v->computer_audit == -1)
  236. <span style="color: #909399;">未开始</span>
  237. @elseif($v->computer_audit == 0)
  238. <span style="color: #f56c6c;">未通过</span>
  239. @elseif($v->computer_audit == 1)
  240. <span style=" color: #67c23a;">通过</span>
  241. @elseif($v->computer_audit == 2)
  242. <span style="color: #909399;">缺考</span>
  243. @elseif($v->computer_audit == 3)
  244. <span style="color: #909399;">不需要上机</span>
  245. @endif
  246. </p>
  247. @endif
  248. @if(in_array('5',explode(',',$recruit->step)) && $v->current >= 2)
  249. <p>面试:
  250. @if($v->face_audit == -1)
  251. <span style="color: #909399;">未开始</span>
  252. @elseif($v->face_audit == 0)
  253. <span style="color: #f56c6c;">未通过</span>
  254. @elseif($v->face_audit == 1)
  255. <span style=" color: #67c23a;">通过</span>
  256. @elseif($v->face_audit == 2)
  257. <span style="color: #909399;">缺考</span>
  258. @elseif($v->face_audit == 3)
  259. <span style="color: #909399;">不需要面试</span>
  260. @endif
  261. </p>
  262. @endif
  263. @if(in_array('6',explode(',',$recruit->step)) && $v->current >= 2)
  264. <p>复试:
  265. @if($v->reexamine_audit == -1)
  266. <span style="color: #909399;">未开始</span>
  267. @elseif($v->reexamine_audit == 0)
  268. <span style="color: #f56c6c;">未通过</span>
  269. @elseif($v->reexamine_audit == 1)
  270. <span style=" color: #67c23a;">通过</span>
  271. @elseif($v->reexamine_audit == 2)
  272. <span style="color: #909399;">缺考</span>
  273. @elseif($v->reexamine_audit == 3)
  274. <span style="color: #909399;">不需要复试</span>
  275. @endif
  276. </p>
  277. @endif
  278. @if(in_array('7',explode(',',$recruit->step)) && $v->current >= 3)
  279. <p>体检:
  280. @if($v->inspect_audit == -1)
  281. <span style="color: #909399;">未开始</span>
  282. @elseif($v->inspect_audit == 0)
  283. <span style="color: #f56c6c;">未通过</span>
  284. @elseif($v->inspect_audit == 1)
  285. <span style=" color: #67c23a;">通过</span>
  286. @elseif($v->inspect_audit == 2)
  287. <span style="color: #909399;">缺检</span>
  288. @elseif($v->inspect_audit == 3)
  289. <span style="color: #909399;">不需要体检</span>
  290. @endif
  291. </p>
  292. @endif
  293. @if(in_array('8',explode(',',$recruit->step)) && $v->current >= 3)
  294. <p>政审:
  295. @if($v->political_audit == -1)
  296. <span style="color: #909399;">未开始</span>
  297. @elseif($v->political_audit == 0)
  298. <span style="color: #f56c6c;">未通过</span>
  299. @elseif($v->political_audit == 1)
  300. <span style=" color: #67c23a;">通过</span>
  301. @elseif($v->political_audit == 2)
  302. <span style="color: #909399;">缺检</span>
  303. @elseif($v->political_audit == 3)
  304. <span style="color: #909399;">不需要政审</span>
  305. @endif
  306. </p>
  307. @endif
  308. </td>
  309. <td>
  310. @if(in_array('3',explode(',',$recruit->step)) && $v->current >= 2 && $v->pen_audit != 3)
  311. <p>笔试准考证:
  312. @if($v->pen_print)
  313. <span style=" color: #67c23a;">已打印</span>
  314. @else
  315. <span style=" color: #ff2424;">未打印</span><br />
  316. @endif
  317. </p>
  318. @endif
  319. @if(in_array('4',explode(',',$recruit->step)) && $v->current >= 2 && $v->computer_audit != 3)
  320. <P>上机准考证:
  321. @if($v->computer_print)
  322. <span style=" color: #67c23a;">已打印</span>
  323. @else
  324. <span style=" color: #ff2424;">未打印</span><br />
  325. @endif
  326. </P>
  327. @endif
  328. @if(in_array('5',explode(',',$recruit->step)) && $v->current >= 2 & $v->face_audit != 3)
  329. <P>面试准考证:
  330. @if($v->face_print)
  331. <span style=" color: #67c23a;">已打印</span>
  332. @else
  333. <span style=" color: #ff2424;">未打印</span><br />
  334. @endif
  335. </P>
  336. @endif
  337. @if(in_array('6',explode(',',$recruit->step)) && $v->current >= 2 & $v->reexamine_audit != 3)
  338. <P>复试准考证:
  339. @if($v->reexamine_print)
  340. <span style=" color: #67c23a;">已打印</span>
  341. @else
  342. <span style=" color: #ff2424;">未打印</span><br />
  343. @endif
  344. </P>
  345. @endif
  346. </td>
  347. <td>
  348. <a href="javascript:;" data-url="{{ route('recruit.show_log') }}" data-param="{{$v->id}}" hidefocus="true" class="ButExamineLog">查看</a>
  349. </td>
  350. <td>
  351. <button class='btn btn-primary btn-xs business ButCompared' data-param="{{$v->id}}" data-url="{{ route('recruit.getUserinfo') }}" style="margin-bottom: 10px" >查看报名信息</button>
  352. <button class='btn btn-primary btn-xs appoint_audit' data-param="{{$v->id}}" style="margin-bottom: 10px">报名审核</button>
  353. <button class='btn btn-primary btn-xs fetch_word' data-rid="{{$v->recruit_id}}" data-aid="{{$v->id}}" style="margin-bottom: 10px">生成word简历</button>
  354. </td>
  355. </tr>
  356. @endforeach
  357. @else
  358. <tr>
  359. <td colspan="10">
  360. <div class="list_empty_group">
  361. <div class="list_empty">
  362. <div class="list_empty_left"></div>
  363. <div class="list_empty_right">
  364. <div class="sorry_box">对不起,暂无相关信息!</div>
  365. </div>
  366. <div class="clear"></div>
  367. </div>
  368. </div>
  369. </td>
  370. </tr>
  371. @endif
  372. </tbody>
  373. </table>
  374. </div>
  375. <div class="list_foot" style="margin-top: 20px">
  376. <table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
  377. <tr>
  378. <td>
  379. <input name="ButtonADD" type="button" class="btn btn-sm btn-warning" recruit_id="{{$recruit->id}}" id="ButtonAudit" value="批量报名审核" />
  380. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="employ()" recruit_id="{{$recruit->id}}" value="入职聘用" />--}}
  381. <input name="ButDel" type="button" class="btn btn-sm btn-info" onclick="record()" value="上传成绩" />
  382. <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="card()" value="准考证生成" />
  383. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="delcard()" value="准考证撤销" />--}}
  384. {{-- @if(Encore\Admin\Facades\Admin::user()->can('auth_recruit_outexcel'))--}}
  385. {{-- <a href="{{route('recruit.out_zip',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">--}}
  386. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" recruit_id="{{$recruit->id}}" value="导出word版简历(压缩包)" />--}}
  387. {{-- </a>--}}
  388. <a href="{{route('recruit.out_excel',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  389. <input id="out_excel" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="汇总表" />
  390. </a>
  391. <a href="{{route('recruit.seat_sticker',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  392. <input id="seat_sticker" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="座位贴" />
  393. </a>
  394. <a href="{{route('recruit.sign_table',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  395. <input id="seat_sticker" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="签到表" />
  396. </a>
  397. {{-- @endif--}}
  398. </td>
  399. </tr>
  400. </table>
  401. </div>
  402. @if(isset($list))
  403. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  404. @endif
  405. </div>
  406. </div>
  407. </div>
  408. </div>
  409. </div>
  410. </section>
  411. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  412. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  413. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  414. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  415. <script>
  416. //图片预览
  417. this.vtip = function() {
  418. this.xOffset = -10; // x distance from mouse
  419. this.yOffset = 15; // y distance from mouse
  420. $(".vtip").unbind().hover(
  421. function(e) {
  422. this.t = $(this).attr("title");
  423. this.title = '';
  424. this.top = (e.pageY + yOffset);
  425. this.left = (e.pageX + xOffset);
  426. $('body').css("cursor","help");
  427. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  428. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  429. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  430. },
  431. function() {
  432. this.title = this.t;
  433. $('body').css("cursor","");
  434. $("p#vtip").fadeOut("slow").remove();
  435. }
  436. ).mousemove(
  437. function(e) {
  438. this.top = (e.pageY + yOffset);
  439. this.left = (e.pageX + xOffset);
  440. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  441. }
  442. );
  443. };
  444. //提交数组整理
  445. this.show = function(type = 0){
  446. var id_array = new Array();
  447. if(type == 0){
  448. $('input[name="id\[\]"]:checked').each(function() {
  449. id_array.push($(this).val()); //向数组中添加元素
  450. });
  451. }else{
  452. id_array.push($("#appointinfo_"+type).val());
  453. }
  454. if (id_array.length == 0) {
  455. disapperTooltip('remind', '请选择用户');
  456. return false;
  457. } else {
  458. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  459. if (idstr == '' || idstr == null) {
  460. idstr = 0;
  461. }
  462. return idstr;
  463. }
  464. }
  465. //报名记录审核
  466. this.appointAudit = function(type = 0){
  467. var ids = show(type);
  468. if(!ids){
  469. return false;
  470. }
  471. if (ids !== false) {
  472. var qsDialog = $(this).dialog({
  473. title: '报名审核',
  474. loading: true,
  475. showFooter: false,
  476. yes: function() {
  477. $('.J_btnyes').val('发送中...');
  478. $.post("{{ route('recruit.appoint_audit') }}", $('#J_interviewWrap').serialize(), function(result) {
  479. if (result.status == 1) {
  480. disapperTooltip('success', result.msg);
  481. setTimeout(function() {
  482. $.pjax.reload('#pjax-container');
  483. qsDialog.hide(true);
  484. }, 2000);
  485. } else {
  486. $('.J_btnyes').val('确定');
  487. disapperTooltip('remind', result.msg);
  488. }
  489. }, 'json');
  490. }
  491. });
  492. qsDialog.setCloseDialog(false);
  493. var recruit_id = $(this).attr('recruit_id');
  494. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_audit", {
  495. recruit_id: recruit_id,
  496. ids: ids
  497. }, function(result) {
  498. if (result.status == 1) {
  499. qsDialog.setContent(result.data);
  500. qsDialog.showFooter(true);
  501. } else {
  502. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  503. }
  504. });
  505. }
  506. };
  507. $(document).ready(function() {
  508. vtip();
  509. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  510. appointAudit($(this).data('param'));
  511. });
  512. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  513. var recruit_id = $(this).attr('data-rid'),appoint_id = $(this).attr('data-aid');
  514. var qsDialog = $(this).dialog({
  515. title: 'word简历生成',
  516. loading: true,
  517. showFooter: false,
  518. yes: function() {
  519. $('.J_btnyes').val('发送中...');
  520. $.post("{{ route('recruit.fetchword') }}", {_token:'{{ csrf_token() }}',recruit_id:recruit_id,appoint_id:appoint_id}, function(result) {
  521. if (result.status == 1) {
  522. disapperTooltip('success', result.msg);
  523. setTimeout(function() {
  524. $.pjax.reload('#pjax-container');
  525. qsDialog.hide(true);
  526. }, 2000);
  527. } else {
  528. $('.J_btnyes').val('确定');
  529. disapperTooltip('remind', result.msg);
  530. }
  531. }, 'json');
  532. }
  533. });
  534. qsDialog.setCloseDialog(false);
  535. qsDialog.setContent("重新生成会覆盖原有简历,请确认?");
  536. qsDialog.showFooter(true);
  537. });
  538. $("#ButtonAudit").click(function() {
  539. appointAudit(0)
  540. })
  541. /*查看人员信息*/
  542. $('.ButCompared').click(function() {
  543. var qsDialog = $(this).dialog({
  544. title: '查看报名信息',
  545. loading: true,
  546. footer: false
  547. });
  548. var param = $(this).data('param');
  549. var url = $(this).data('url') + "?id=" + param;
  550. $.getJSON(url, function(result) {
  551. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  552. });
  553. });
  554. //导出word简历压缩包
  555. $("#out_zip").click(function() {
  556. var id = show();
  557. if(!id){
  558. return false;
  559. }
  560. $(this).val("数据生成中。。。")
  561. $.ajax({
  562. url: "{{ route('recruit.out_zip') }}",
  563. type: 'POST',
  564. dataType: 'json',
  565. data: {
  566. id: id,
  567. recruit_id: "{{$recruit->id}}"
  568. },
  569. error: function(data) {
  570. },
  571. success: function(res) {
  572. $(this).val("导出word版简历(压缩包)")
  573. if (res.status == 1) {
  574. window.open(res.msg);
  575. } else {
  576. alert(res.msg);
  577. return false;
  578. }
  579. }
  580. });
  581. });
  582. });
  583. /*查看日志信息*/
  584. $('.ButExamineLog').click(function() {
  585. var qsDialog = $(this).dialog({
  586. title: '查看审核信息',
  587. loading: true,
  588. footer: false
  589. });
  590. var param = $(this).data('param');
  591. var url = $(this).data('url') + "?id=" + param;
  592. $.getJSON(url, function(result) {
  593. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  594. });
  595. });
  596. $('.js-search').click(function() {
  597. var political_affiliation = $.trim($('#political_affiliation').val());
  598. var audit = $.trim($('#audit').val());
  599. var realname = $.trim($('#realname').val());
  600. var print_ms = $.trim($('#print_ms').val());
  601. var print_bs = $.trim($('#print_bs').val());
  602. var pen_audit = $.trim($('#pen_audit').val());
  603. var computer_audit = $.trim($('#computer_audit').val());
  604. var face_audit = $.trim($('#face_audit').val());
  605. var reexamine_audit = $.trim($('#reexamine_audit').val());
  606. var inspect_audit = $.trim($('#inspect_audit').val());
  607. var print_js = $.trim($('#print_js').val());
  608. var review_audit = $.trim($('#review_audit').val());
  609. var political_audit = $.trim($('#politics_face_id').val());
  610. var sex = $.trim($("#sex").val());
  611. var education = $.trim($("#education").val());
  612. var post_id = $.trim($("#post_id").val());
  613. var parm = '';
  614. if (political_audit) {
  615. parm += "&political_audit=" + political_audit;
  616. }
  617. if (review_audit) {
  618. parm += "&review_audit=" + review_audit;
  619. }
  620. if (political_affiliation) {
  621. parm += "&political_affiliation=" + political_affiliation;
  622. }
  623. if (audit) {
  624. parm += "&audit=" + audit;
  625. }
  626. if (realname) {
  627. parm += "&realname=" + realname;
  628. }
  629. if (print_ms) {
  630. parm += "&print_ms=" + print_ms;
  631. }
  632. if (print_bs) {
  633. parm += "&print_bs=" + print_bs;
  634. }
  635. if (pen_audit) {
  636. parm += "&pen_audit=" + pen_audit;
  637. }
  638. if (face_audit) {
  639. parm += "&face_audit=" + face_audit;
  640. }
  641. if (computer_audit) {
  642. parm += "&computer_audit=" + computer_audit;
  643. }
  644. if (reexamine_audit) {
  645. parm += "&reexamine_audit=" + reexamine_audit;
  646. }
  647. if (inspect_audit) {
  648. parm += "&inspect_audit=" + inspect_audit;
  649. }
  650. if (print_js) {
  651. parm += "&print_js=" + print_js;
  652. }
  653. if(sex){
  654. parm += "&sex=" + sex;
  655. }
  656. if(education){
  657. parm += "&education=" + education;
  658. }
  659. if(post_id){
  660. parm += "&post_id=" + post_id;
  661. }
  662. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}?id={{$search_data['id']}}" + parm;
  663. });
  664. //入职聘用
  665. function employ() {
  666. var ids = show();
  667. if (ids !== false) {
  668. var qsDialog = $(this).dialog({
  669. title: '请选择',
  670. loading: true,
  671. showFooter: false,
  672. yes: function() {
  673. $('.J_btnyes').val('发送中...');
  674. // console.log($('#J_interviewWrap').serialize());
  675. $.post("recruit.employ", $('#J_interviewWrap').serialize(), function(result) {
  676. if (result.status == 1) {
  677. disapperTooltip('success', result.msg);
  678. setTimeout(function() {
  679. $.pjax.reload('#pjax-container');
  680. qsDialog.hide(true);
  681. }, 2000);
  682. } else {
  683. $('.J_btnyes').val('确定');
  684. disapperTooltip('remind', result.msg);
  685. }
  686. }, 'json');
  687. }
  688. });
  689. qsDialog.setCloseDialog(false);
  690. var recruit_id = "{{$recruit->id}}";
  691. $.getJSON("recruit.employ_audit", {
  692. recruit_id: recruit_id,
  693. ids: ids
  694. }, function(result) {
  695. if (result.status == 1) {
  696. qsDialog.setContent(result.data);
  697. qsDialog.showFooter(true);
  698. } else {
  699. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  700. }
  701. });
  702. }
  703. }
  704. //其它审核
  705. function butpen(i) {
  706. var ids = show();
  707. if (ids !== false) {
  708. var qsDialog = $(this).dialog({
  709. title: '请选择',
  710. loading: true,
  711. showFooter: false,
  712. yes: function() {
  713. $('.J_btnyes').val('发送中...');
  714. $.post("recruit.other_auth", $('#J_interviewWrap').serialize(), function(result) {
  715. if (result.status == 1) {
  716. disapperTooltip('success', result.msg);
  717. setTimeout(function() {
  718. $.pjax.reload('#pjax-container');
  719. qsDialog.hide(true);
  720. }, 2000);
  721. } else {
  722. $('.J_btnyes').val('确定');
  723. disapperTooltip('remind', result.msg);
  724. }
  725. }, 'json');
  726. }
  727. });
  728. qsDialog.setCloseDialog(false);
  729. var recruit_id = "{{$recruit->id}}";
  730. if (i == 'pay_audit') {
  731. $.getJSON("recruit.pay_audit", {
  732. recruit_id: recruit_id,
  733. ids: ids,
  734. type: i
  735. }, function(result) {
  736. if (result.status == 1) {
  737. qsDialog.setContent(result.data);
  738. qsDialog.showFooter(true);
  739. } else {
  740. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  741. }
  742. });
  743. } else {
  744. $.getJSON("recruit.ajax_other_audit", {
  745. recruit_id: recruit_id,
  746. ids: ids,
  747. type: i
  748. }, function(result) {
  749. if (result.status == 1) {
  750. qsDialog.setContent(result.data);
  751. qsDialog.showFooter(true);
  752. } else {
  753. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  754. }
  755. });
  756. }
  757. }
  758. }
  759. //准考证生成
  760. function card() {
  761. var recruit_id = "{{$recruit->id}}";
  762. var qsDialog = $(this).dialog({
  763. title: '请选择',
  764. loading: true,
  765. showFooter: false,
  766. yes: function() {
  767. $('.J_btnyes').val('发送中...');
  768. var data = new FormData(document.getElementById("J_ticketWrap"));
  769. console.log(data)
  770. $.ajax({
  771. url: "{{ route('recruit.create_ticket') }}",
  772. type: 'POST',
  773. data: data,
  774. processData: false,
  775. contentType : false,
  776. success: function(response){
  777. if (response.status == 1) {
  778. disapperTooltip('success', response.msg);
  779. setTimeout(function() {
  780. $.pjax.reload('#pjax-container');
  781. qsDialog.hide(true);
  782. }, 2000);
  783. } else {
  784. $('.J_btnyes').val('确定');
  785. disapperTooltip('remind', response.msg);
  786. }
  787. }
  788. })
  789. }
  790. });
  791. qsDialog.setCloseDialog(false);
  792. $.getJSON("ajax/ajax_ticket", {
  793. recruit_id: recruit_id
  794. }, function(result) {
  795. if (result.status == 1) {
  796. qsDialog.setContent(result.data);
  797. qsDialog.showFooter(true);
  798. } else {
  799. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  800. }
  801. });
  802. }
  803. //成绩更新
  804. function record() {
  805. var recruit_id = "{{$recruit->id}}";
  806. var qsDialog = $(this).dialog({
  807. title: '请选择',
  808. loading: true,
  809. showFooter: false,
  810. yes: function() {
  811. $('.J_btnyes').val('发送中...');
  812. var data = new FormData(document.getElementById("J_recordWrap"));
  813. console.log(data)
  814. $.ajax({
  815. url: "{{ route('recruit.update_record') }}",
  816. type: 'POST',
  817. data: data,
  818. processData: false,
  819. contentType : false,
  820. success: function(response){
  821. if (response.status == 1) {
  822. disapperTooltip('success', response.msg);
  823. setTimeout(function() {
  824. $.pjax.reload('#pjax-container');
  825. qsDialog.hide(true);
  826. }, 2000);
  827. } else {
  828. $('.J_btnyes').val('确定');
  829. disapperTooltip('remind', response.msg);
  830. }
  831. }
  832. })
  833. }
  834. });
  835. qsDialog.setCloseDialog(false);
  836. $.getJSON("ajax/ajax_record", {
  837. recruit_id: recruit_id
  838. }, function(result) {
  839. if (result.status == 1) {
  840. qsDialog.setContent(result.data);
  841. qsDialog.showFooter(true);
  842. } else {
  843. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  844. }
  845. });
  846. }
  847. //提交准考证
  848. $("#build").click(function() {
  849. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  850. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  851. $("form[name=form1]").submit();
  852. });
  853. //撤销准考证
  854. $("#del_ticket").click(function() {
  855. var ticket_id = $("input[name='ticket_id']:checked").val();
  856. var r_id = $("input[name='r_id']").val();
  857. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  858. $("form[name=form1]").submit();
  859. });
  860. //撤销准考证
  861. function delcard() {
  862. var ids = show();
  863. var recruit_id = "{{$recruit->id}}";
  864. if (ids !== false) {
  865. var qsDialog = $(this).dialog({
  866. title: '请选择',
  867. loading: true,
  868. showFooter: false,
  869. yes: function() {
  870. $('.J_btnyes').val('发送中...');
  871. var ticket_id = $("input[name='ticket_id']:checked").val();
  872. data = {
  873. 'ids': ids,
  874. 'recruit_id': recruit_id,
  875. 'ticket_id': ticket_id,
  876. };
  877. $.post("recruit.ticket_del", data, function(result) {
  878. if (result.status == 1) {
  879. disapperTooltip('success', result.msg);
  880. setTimeout(function() {
  881. $.pjax.reload('#pjax-container');
  882. qsDialog.hide(true);
  883. }, 2000);
  884. } else {
  885. $('.J_btnyes').val('确定');
  886. disapperTooltip('remind', result.msg);
  887. }
  888. }, 'json');
  889. }
  890. });
  891. qsDialog.setCloseDialog(false);
  892. $.getJSON("recruit.ajax_ticket_del", {
  893. recruit_id: recruit_id,
  894. ids: ids,
  895. }, function(result) {
  896. if (result.status == 1) {
  897. // console.log(result.data);
  898. qsDialog.setContent(result.data);
  899. qsDialog.showFooter(true);
  900. } else {
  901. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  902. }
  903. });
  904. }
  905. }
  906. /*全选*/
  907. $("#chk").click(function() {
  908. if (this.checked == false) {
  909. // console.log("反选")
  910. $("td :checkbox").prop("checked", false);
  911. }
  912. if (this.checked == true) {
  913. // console.log("全选")
  914. $("td :checkbox").prop("checked", true);
  915. }
  916. })
  917. //子复选框有一个未选中时,去掉全选按钮的选中状态
  918. $("td :checkbox").click(function() {
  919. var allCheckNum = $("td input[type='checkbox']").length;
  920. var checkedNum = $("td input[type='checkbox']:checked").length;
  921. if (checkedNum == allCheckNum) {
  922. // console.log("全选");
  923. document.getElementById("chk").checked = true;
  924. } else {
  925. // console.log("反选");
  926. document.getElementById("chk").checked = false;
  927. }
  928. })
  929. </script>
  930. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  931. <style type="text/css">
  932. p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
  933. p#vtip img{width: 200px}
  934. /*body{min-width: 1680px;overflow: auto;}*/
  935. .clearfix:after {
  936. display: block;
  937. clear: both;
  938. content: "";
  939. visibility: hidden;
  940. height: 0;
  941. }
  942. .clearfix {
  943. zoom: 1;
  944. /*为了兼容IE*/
  945. }
  946. .box .box-body {
  947. position: relative;
  948. }
  949. .box .form-group label {
  950. float: left;
  951. width: 120px;
  952. line-height: 34px;
  953. text-align: right;
  954. }
  955. .box .input-group {
  956. width: 360px;
  957. }
  958. .list_empty_group {
  959. text-align: center;
  960. line-height: 80px;
  961. color: #404446;
  962. font-size: 22px;
  963. }
  964. .jobslist_table .li-table-btn {
  965. width: 120px;
  966. height: 50px;
  967. line-height: 50px;
  968. }
  969. .modal {
  970. display: block;
  971. position: static;
  972. }
  973. .qs-category-unlimited .selected-group .selected-box .s-cell {
  974. width: 112px;
  975. }
  976. .qs-category-unlimited .cate-type .dd {
  977. margin: 0px;
  978. font-size: 14px;
  979. }
  980. .qs-category-unlimited .cate-type .one-select label {
  981. display: block;
  982. margin: 0px;
  983. width: 110px;
  984. }
  985. .qs-category-unlimited .cate-type .one-select .check-box {
  986. margin: 0px;
  987. }
  988. .modal_body_box .list_nav1 li label {
  989. margin-bottom: 0px;
  990. }
  991. .disappear_tooltip .content {
  992. min-height: auto;
  993. padding: 0px;
  994. padding-left: 10px;
  995. padding-right: 10px;
  996. }
  997. </style>