appoint_list.blade.php 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  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. window.location.href = result.url;
  524. setTimeout(function() {
  525. $.pjax.reload('#pjax-container');
  526. qsDialog.hide(true);
  527. }, 2000);
  528. } else {
  529. $('.J_btnyes').val('确定');
  530. disapperTooltip('remind', result.msg);
  531. }
  532. }, 'json');
  533. }
  534. });
  535. qsDialog.setCloseDialog(false);
  536. qsDialog.setContent("重新生成会覆盖原有简历,请确认?");
  537. qsDialog.showFooter(true);
  538. });
  539. $("#ButtonAudit").click(function() {
  540. appointAudit(0)
  541. })
  542. /*查看人员信息*/
  543. $('.ButCompared').click(function() {
  544. var qsDialog = $(this).dialog({
  545. title: '查看报名信息',
  546. loading: true,
  547. footer: false
  548. });
  549. var param = $(this).data('param');
  550. var url = $(this).data('url') + "?id=" + param;
  551. $.getJSON(url, function(result) {
  552. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  553. });
  554. });
  555. //导出word简历压缩包
  556. $("#out_zip").click(function() {
  557. var id = show();
  558. if(!id){
  559. return false;
  560. }
  561. $(this).val("数据生成中。。。")
  562. $.ajax({
  563. url: "{{ route('recruit.out_zip') }}",
  564. type: 'POST',
  565. dataType: 'json',
  566. data: {
  567. id: id,
  568. recruit_id: "{{$recruit->id}}"
  569. },
  570. error: function(data) {
  571. },
  572. success: function(res) {
  573. $(this).val("导出word版简历(压缩包)")
  574. if (res.status == 1) {
  575. window.open(res.msg);
  576. } else {
  577. alert(res.msg);
  578. return false;
  579. }
  580. }
  581. });
  582. });
  583. });
  584. /*查看日志信息*/
  585. $('.ButExamineLog').click(function() {
  586. var qsDialog = $(this).dialog({
  587. title: '查看审核信息',
  588. loading: true,
  589. footer: false
  590. });
  591. var param = $(this).data('param');
  592. var url = $(this).data('url') + "?id=" + param;
  593. $.getJSON(url, function(result) {
  594. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  595. });
  596. });
  597. $('.js-search').click(function() {
  598. var political_affiliation = $.trim($('#political_affiliation').val());
  599. var audit = $.trim($('#audit').val());
  600. var realname = $.trim($('#realname').val());
  601. var print_ms = $.trim($('#print_ms').val());
  602. var print_bs = $.trim($('#print_bs').val());
  603. var pen_audit = $.trim($('#pen_audit').val());
  604. var computer_audit = $.trim($('#computer_audit').val());
  605. var face_audit = $.trim($('#face_audit').val());
  606. var reexamine_audit = $.trim($('#reexamine_audit').val());
  607. var inspect_audit = $.trim($('#inspect_audit').val());
  608. var print_js = $.trim($('#print_js').val());
  609. var review_audit = $.trim($('#review_audit').val());
  610. var political_audit = $.trim($('#politics_face_id').val());
  611. var sex = $.trim($("#sex").val());
  612. var education = $.trim($("#education").val());
  613. var post_id = $.trim($("#post_id").val());
  614. var parm = '';
  615. if (political_audit) {
  616. parm += "&political_audit=" + political_audit;
  617. }
  618. if (review_audit) {
  619. parm += "&review_audit=" + review_audit;
  620. }
  621. if (political_affiliation) {
  622. parm += "&political_affiliation=" + political_affiliation;
  623. }
  624. if (audit) {
  625. parm += "&audit=" + audit;
  626. }
  627. if (realname) {
  628. parm += "&realname=" + realname;
  629. }
  630. if (print_ms) {
  631. parm += "&print_ms=" + print_ms;
  632. }
  633. if (print_bs) {
  634. parm += "&print_bs=" + print_bs;
  635. }
  636. if (pen_audit) {
  637. parm += "&pen_audit=" + pen_audit;
  638. }
  639. if (face_audit) {
  640. parm += "&face_audit=" + face_audit;
  641. }
  642. if (computer_audit) {
  643. parm += "&computer_audit=" + computer_audit;
  644. }
  645. if (reexamine_audit) {
  646. parm += "&reexamine_audit=" + reexamine_audit;
  647. }
  648. if (inspect_audit) {
  649. parm += "&inspect_audit=" + inspect_audit;
  650. }
  651. if (print_js) {
  652. parm += "&print_js=" + print_js;
  653. }
  654. if(sex){
  655. parm += "&sex=" + sex;
  656. }
  657. if(education){
  658. parm += "&education=" + education;
  659. }
  660. if(post_id){
  661. parm += "&post_id=" + post_id;
  662. }
  663. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}?id={{$search_data['id']}}" + parm;
  664. });
  665. //入职聘用
  666. function employ() {
  667. var ids = show();
  668. if (ids !== false) {
  669. var qsDialog = $(this).dialog({
  670. title: '请选择',
  671. loading: true,
  672. showFooter: false,
  673. yes: function() {
  674. $('.J_btnyes').val('发送中...');
  675. // console.log($('#J_interviewWrap').serialize());
  676. $.post("recruit.employ", $('#J_interviewWrap').serialize(), function(result) {
  677. if (result.status == 1) {
  678. disapperTooltip('success', result.msg);
  679. setTimeout(function() {
  680. $.pjax.reload('#pjax-container');
  681. qsDialog.hide(true);
  682. }, 2000);
  683. } else {
  684. $('.J_btnyes').val('确定');
  685. disapperTooltip('remind', result.msg);
  686. }
  687. }, 'json');
  688. }
  689. });
  690. qsDialog.setCloseDialog(false);
  691. var recruit_id = "{{$recruit->id}}";
  692. $.getJSON("recruit.employ_audit", {
  693. recruit_id: recruit_id,
  694. ids: ids
  695. }, function(result) {
  696. if (result.status == 1) {
  697. qsDialog.setContent(result.data);
  698. qsDialog.showFooter(true);
  699. } else {
  700. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  701. }
  702. });
  703. }
  704. }
  705. //其它审核
  706. function butpen(i) {
  707. var ids = show();
  708. if (ids !== false) {
  709. var qsDialog = $(this).dialog({
  710. title: '请选择',
  711. loading: true,
  712. showFooter: false,
  713. yes: function() {
  714. $('.J_btnyes').val('发送中...');
  715. $.post("recruit.other_auth", $('#J_interviewWrap').serialize(), function(result) {
  716. if (result.status == 1) {
  717. disapperTooltip('success', result.msg);
  718. setTimeout(function() {
  719. $.pjax.reload('#pjax-container');
  720. qsDialog.hide(true);
  721. }, 2000);
  722. } else {
  723. $('.J_btnyes').val('确定');
  724. disapperTooltip('remind', result.msg);
  725. }
  726. }, 'json');
  727. }
  728. });
  729. qsDialog.setCloseDialog(false);
  730. var recruit_id = "{{$recruit->id}}";
  731. if (i == 'pay_audit') {
  732. $.getJSON("recruit.pay_audit", {
  733. recruit_id: recruit_id,
  734. ids: ids,
  735. type: i
  736. }, function(result) {
  737. if (result.status == 1) {
  738. qsDialog.setContent(result.data);
  739. qsDialog.showFooter(true);
  740. } else {
  741. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  742. }
  743. });
  744. } else {
  745. $.getJSON("recruit.ajax_other_audit", {
  746. recruit_id: recruit_id,
  747. ids: ids,
  748. type: i
  749. }, function(result) {
  750. if (result.status == 1) {
  751. qsDialog.setContent(result.data);
  752. qsDialog.showFooter(true);
  753. } else {
  754. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  755. }
  756. });
  757. }
  758. }
  759. }
  760. //准考证生成
  761. function card() {
  762. var recruit_id = "{{$recruit->id}}";
  763. var qsDialog = $(this).dialog({
  764. title: '请选择',
  765. loading: true,
  766. showFooter: false,
  767. yes: function() {
  768. $('.J_btnyes').val('发送中...');
  769. var data = new FormData(document.getElementById("J_ticketWrap"));
  770. console.log(data)
  771. $.ajax({
  772. url: "{{ route('recruit.create_ticket') }}",
  773. type: 'POST',
  774. data: data,
  775. processData: false,
  776. contentType : false,
  777. success: function(response){
  778. if (response.status == 1) {
  779. disapperTooltip('success', response.msg);
  780. setTimeout(function() {
  781. $.pjax.reload('#pjax-container');
  782. qsDialog.hide(true);
  783. }, 2000);
  784. } else {
  785. $('.J_btnyes').val('确定');
  786. disapperTooltip('remind', response.msg);
  787. }
  788. }
  789. })
  790. }
  791. });
  792. qsDialog.setCloseDialog(false);
  793. $.getJSON("ajax/ajax_ticket", {
  794. recruit_id: recruit_id
  795. }, function(result) {
  796. if (result.status == 1) {
  797. qsDialog.setContent(result.data);
  798. qsDialog.showFooter(true);
  799. } else {
  800. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  801. }
  802. });
  803. }
  804. //成绩更新
  805. function record() {
  806. var recruit_id = "{{$recruit->id}}";
  807. var qsDialog = $(this).dialog({
  808. title: '请选择',
  809. loading: true,
  810. showFooter: false,
  811. yes: function() {
  812. $('.J_btnyes').val('发送中...');
  813. var data = new FormData(document.getElementById("J_recordWrap"));
  814. console.log(data)
  815. $.ajax({
  816. url: "{{ route('recruit.update_record') }}",
  817. type: 'POST',
  818. data: data,
  819. processData: false,
  820. contentType : false,
  821. success: function(response){
  822. if (response.status == 1) {
  823. disapperTooltip('success', response.msg);
  824. setTimeout(function() {
  825. $.pjax.reload('#pjax-container');
  826. qsDialog.hide(true);
  827. }, 2000);
  828. } else {
  829. $('.J_btnyes').val('确定');
  830. disapperTooltip('remind', response.msg);
  831. }
  832. }
  833. })
  834. }
  835. });
  836. qsDialog.setCloseDialog(false);
  837. $.getJSON("ajax/ajax_record", {
  838. recruit_id: recruit_id
  839. }, function(result) {
  840. if (result.status == 1) {
  841. qsDialog.setContent(result.data);
  842. qsDialog.showFooter(true);
  843. } else {
  844. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  845. }
  846. });
  847. }
  848. //提交准考证
  849. $("#build").click(function() {
  850. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  851. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  852. $("form[name=form1]").submit();
  853. });
  854. //撤销准考证
  855. $("#del_ticket").click(function() {
  856. var ticket_id = $("input[name='ticket_id']:checked").val();
  857. var r_id = $("input[name='r_id']").val();
  858. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  859. $("form[name=form1]").submit();
  860. });
  861. //撤销准考证
  862. function delcard() {
  863. var ids = show();
  864. var recruit_id = "{{$recruit->id}}";
  865. if (ids !== false) {
  866. var qsDialog = $(this).dialog({
  867. title: '请选择',
  868. loading: true,
  869. showFooter: false,
  870. yes: function() {
  871. $('.J_btnyes').val('发送中...');
  872. var ticket_id = $("input[name='ticket_id']:checked").val();
  873. data = {
  874. 'ids': ids,
  875. 'recruit_id': recruit_id,
  876. 'ticket_id': ticket_id,
  877. };
  878. $.post("recruit.ticket_del", data, function(result) {
  879. if (result.status == 1) {
  880. disapperTooltip('success', result.msg);
  881. setTimeout(function() {
  882. $.pjax.reload('#pjax-container');
  883. qsDialog.hide(true);
  884. }, 2000);
  885. } else {
  886. $('.J_btnyes').val('确定');
  887. disapperTooltip('remind', result.msg);
  888. }
  889. }, 'json');
  890. }
  891. });
  892. qsDialog.setCloseDialog(false);
  893. $.getJSON("recruit.ajax_ticket_del", {
  894. recruit_id: recruit_id,
  895. ids: ids,
  896. }, function(result) {
  897. if (result.status == 1) {
  898. // console.log(result.data);
  899. qsDialog.setContent(result.data);
  900. qsDialog.showFooter(true);
  901. } else {
  902. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  903. }
  904. });
  905. }
  906. }
  907. /*全选*/
  908. $("#chk").click(function() {
  909. if (this.checked == false) {
  910. // console.log("反选")
  911. $("td :checkbox").prop("checked", false);
  912. }
  913. if (this.checked == true) {
  914. // console.log("全选")
  915. $("td :checkbox").prop("checked", true);
  916. }
  917. })
  918. //子复选框有一个未选中时,去掉全选按钮的选中状态
  919. $("td :checkbox").click(function() {
  920. var allCheckNum = $("td input[type='checkbox']").length;
  921. var checkedNum = $("td input[type='checkbox']:checked").length;
  922. if (checkedNum == allCheckNum) {
  923. // console.log("全选");
  924. document.getElementById("chk").checked = true;
  925. } else {
  926. // console.log("反选");
  927. document.getElementById("chk").checked = false;
  928. }
  929. })
  930. </script>
  931. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  932. <style type="text/css">
  933. 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 }
  934. p#vtip img{width: 200px}
  935. /*body{min-width: 1680px;overflow: auto;}*/
  936. .clearfix:after {
  937. display: block;
  938. clear: both;
  939. content: "";
  940. visibility: hidden;
  941. height: 0;
  942. }
  943. .clearfix {
  944. zoom: 1;
  945. /*为了兼容IE*/
  946. }
  947. .box .box-body {
  948. position: relative;
  949. }
  950. .box .form-group label {
  951. float: left;
  952. width: 120px;
  953. line-height: 34px;
  954. text-align: right;
  955. }
  956. .box .input-group {
  957. width: 360px;
  958. }
  959. .list_empty_group {
  960. text-align: center;
  961. line-height: 80px;
  962. color: #404446;
  963. font-size: 22px;
  964. }
  965. .jobslist_table .li-table-btn {
  966. width: 120px;
  967. height: 50px;
  968. line-height: 50px;
  969. }
  970. .modal {
  971. display: block;
  972. position: static;
  973. }
  974. .qs-category-unlimited .selected-group .selected-box .s-cell {
  975. width: 112px;
  976. }
  977. .qs-category-unlimited .cate-type .dd {
  978. margin: 0px;
  979. font-size: 14px;
  980. }
  981. .qs-category-unlimited .cate-type .one-select label {
  982. display: block;
  983. margin: 0px;
  984. width: 110px;
  985. }
  986. .qs-category-unlimited .cate-type .one-select .check-box {
  987. margin: 0px;
  988. }
  989. .modal_body_box .list_nav1 li label {
  990. margin-bottom: 0px;
  991. }
  992. .disappear_tooltip .content {
  993. min-height: auto;
  994. padding: 0px;
  995. padding-left: 10px;
  996. padding-right: 10px;
  997. }
  998. </style>