appoint_list.blade.php 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011
  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->face_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') }}" >查看报名信息</button>
  352. <button class='btn btn-primary btn-xs appoint_audit' data-param="{{$v->id}}">报名审核</button>
  353. </td>
  354. </tr>
  355. @endforeach
  356. @else
  357. <tr>
  358. <td colspan="10">
  359. <div class="list_empty_group">
  360. <div class="list_empty">
  361. <div class="list_empty_left"></div>
  362. <div class="list_empty_right">
  363. <div class="sorry_box">对不起,暂无相关信息!</div>
  364. </div>
  365. <div class="clear"></div>
  366. </div>
  367. </div>
  368. </td>
  369. </tr>
  370. @endif
  371. </tbody>
  372. </table>
  373. </div>
  374. <div class="list_foot" style="margin-top: 20px">
  375. <table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
  376. <tr>
  377. <td>
  378. <input name="ButtonADD" type="button" class="btn btn-sm btn-warning" recruit_id="{{$recruit->id}}" id="ButtonAudit" value="批量报名审核" />
  379. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="employ()" recruit_id="{{$recruit->id}}" value="入职聘用" />--}}
  380. <input name="ButDel" type="button" class="btn btn-sm btn-info" onclick="record()" value="上传成绩" />
  381. <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="card()" value="准考证生成" />
  382. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" onclick="delcard()" value="准考证撤销" />--}}
  383. {{-- @if(Encore\Admin\Facades\Admin::user()->can('auth_recruit_outexcel'))--}}
  384. {{-- <a href="{{route('recruit.out_zip',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">--}}
  385. {{-- <input name="ButDel" type="button" class="btn btn-sm btn-info ButPen" recruit_id="{{$recruit->id}}" value="导出word版简历(压缩包)" />--}}
  386. {{-- </a>--}}
  387. <a href="{{route('recruit.out_excel',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  388. <input id="out_excel" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="汇总表" />
  389. </a>
  390. <a href="{{route('recruit.seat_sticker',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  391. <input id="seat_sticker" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="座位贴" />
  392. </a>
  393. <a href="{{route('recruit.sign_table',['where'=>\Request::getRequestUri(),'id'=>$recruit->id])}}" target="_blank">
  394. <input id="seat_sticker" name="ButDel" type="button" class="btn btn-sm btn-info ButPen" data-recruit_id="{{$recruit->id}}" value="签到表" />
  395. </a>
  396. {{-- @endif--}}
  397. </td>
  398. </tr>
  399. </table>
  400. </div>
  401. @if(isset($list))
  402. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  403. @endif
  404. </div>
  405. </div>
  406. </div>
  407. </div>
  408. </div>
  409. </section>
  410. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  411. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  412. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  413. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  414. <script>
  415. //图片预览
  416. this.vtip = function() {
  417. this.xOffset = -10; // x distance from mouse
  418. this.yOffset = 15; // y distance from mouse
  419. $(".vtip").unbind().hover(
  420. function(e) {
  421. this.t = $(this).attr("title");
  422. this.title = '';
  423. this.top = (e.pageY + yOffset);
  424. this.left = (e.pageX + xOffset);
  425. $('body').css("cursor","help");
  426. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  427. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  428. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  429. },
  430. function() {
  431. this.title = this.t;
  432. $('body').css("cursor","");
  433. $("p#vtip").fadeOut("slow").remove();
  434. }
  435. ).mousemove(
  436. function(e) {
  437. this.top = (e.pageY + yOffset);
  438. this.left = (e.pageX + xOffset);
  439. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  440. }
  441. );
  442. };
  443. //提交数组整理
  444. this.show = function(type = 0){
  445. var id_array = new Array();
  446. if(type == 0){
  447. $('input[name="id\[\]"]:checked').each(function() {
  448. id_array.push($(this).val()); //向数组中添加元素
  449. });
  450. }else{
  451. id_array.push($("#appointinfo_"+type).val());
  452. }
  453. if (id_array.length == 0) {
  454. disapperTooltip('remind', '请选择用户');
  455. return false;
  456. } else {
  457. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  458. if (idstr == '' || idstr == null) {
  459. idstr = 0;
  460. }
  461. return idstr;
  462. }
  463. }
  464. //报名记录审核
  465. this.appointAudit = function(type = 0){
  466. var ids = show(type);
  467. if(!ids){
  468. return false;
  469. }
  470. if (ids !== false) {
  471. var qsDialog = $(this).dialog({
  472. title: '报名审核',
  473. loading: true,
  474. showFooter: false,
  475. yes: function() {
  476. $('.J_btnyes').val('发送中...');
  477. $.post("{{ route('recruit.appoint_audit') }}", $('#J_interviewWrap').serialize(), function(result) {
  478. if (result.status == 1) {
  479. disapperTooltip('success', result.msg);
  480. setTimeout(function() {
  481. $.pjax.reload('#pjax-container');
  482. qsDialog.hide(true);
  483. }, 2000);
  484. } else {
  485. $('.J_btnyes').val('确定');
  486. disapperTooltip('remind', result.msg);
  487. }
  488. }, 'json');
  489. }
  490. });
  491. qsDialog.setCloseDialog(false);
  492. var recruit_id = $(this).attr('recruit_id');
  493. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_audit", {
  494. recruit_id: recruit_id,
  495. ids: ids
  496. }, function(result) {
  497. if (result.status == 1) {
  498. qsDialog.setContent(result.data);
  499. qsDialog.showFooter(true);
  500. } else {
  501. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  502. }
  503. });
  504. }
  505. };
  506. $(document).ready(function() {
  507. vtip();
  508. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  509. appointAudit($(this).data('param'));
  510. });
  511. $("#ButtonAudit").click(function() {
  512. appointAudit(0)
  513. })
  514. /*查看人员信息*/
  515. $('.ButCompared').click(function() {
  516. var qsDialog = $(this).dialog({
  517. title: '查看报名信息',
  518. loading: true,
  519. footer: false
  520. });
  521. var param = $(this).data('param');
  522. var url = $(this).data('url') + "?id=" + param;
  523. $.getJSON(url, function(result) {
  524. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  525. });
  526. });
  527. //导出word简历压缩包
  528. $("#out_zip").click(function() {
  529. var id = show();
  530. if(!id){
  531. return false;
  532. }
  533. $(this).val("数据生成中。。。")
  534. $.ajax({
  535. url: "{{ route('recruit.out_zip') }}",
  536. type: 'POST',
  537. dataType: 'json',
  538. data: {
  539. id: id,
  540. recruit_id: "{{$recruit->id}}"
  541. },
  542. error: function(data) {
  543. },
  544. success: function(res) {
  545. $(this).val("导出word版简历(压缩包)")
  546. if (res.status == 1) {
  547. window.open(res.msg);
  548. } else {
  549. alert(res.msg);
  550. return false;
  551. }
  552. }
  553. });
  554. });
  555. });
  556. /*查看日志信息*/
  557. $('.ButExamineLog').click(function() {
  558. var qsDialog = $(this).dialog({
  559. title: '查看审核信息',
  560. loading: true,
  561. footer: false
  562. });
  563. var param = $(this).data('param');
  564. var url = $(this).data('url') + "?id=" + param;
  565. $.getJSON(url, function(result) {
  566. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  567. });
  568. });
  569. $('.js-search').click(function() {
  570. var political_affiliation = $.trim($('#political_affiliation').val());
  571. var audit = $.trim($('#audit').val());
  572. var realname = $.trim($('#realname').val());
  573. var print_ms = $.trim($('#print_ms').val());
  574. var print_bs = $.trim($('#print_bs').val());
  575. var pen_audit = $.trim($('#pen_audit').val());
  576. var computer_audit = $.trim($('#computer_audit').val());
  577. var face_audit = $.trim($('#face_audit').val());
  578. var reexamine_audit = $.trim($('#reexamine_audit').val());
  579. var inspect_audit = $.trim($('#inspect_audit').val());
  580. var print_js = $.trim($('#print_js').val());
  581. var review_audit = $.trim($('#review_audit').val());
  582. var political_audit = $.trim($('#politics_face_id').val());
  583. var sex = $.trim($("#sex").val());
  584. var education = $.trim($("#education").val());
  585. var post_id = $.trim($("#post_id").val());
  586. var parm = '';
  587. if (political_audit) {
  588. parm += "&political_audit=" + political_audit;
  589. }
  590. if (review_audit) {
  591. parm += "&review_audit=" + review_audit;
  592. }
  593. if (political_affiliation) {
  594. parm += "&political_affiliation=" + political_affiliation;
  595. }
  596. if (audit) {
  597. parm += "&audit=" + audit;
  598. }
  599. if (realname) {
  600. parm += "&realname=" + realname;
  601. }
  602. if (print_ms) {
  603. parm += "&print_ms=" + print_ms;
  604. }
  605. if (print_bs) {
  606. parm += "&print_bs=" + print_bs;
  607. }
  608. if (pen_audit) {
  609. parm += "&pen_audit=" + pen_audit;
  610. }
  611. if (face_audit) {
  612. parm += "&face_audit=" + face_audit;
  613. }
  614. if (computer_audit) {
  615. parm += "&computer_audit=" + computer_audit;
  616. }
  617. if (reexamine_audit) {
  618. parm += "&reexamine_audit=" + reexamine_audit;
  619. }
  620. if (inspect_audit) {
  621. parm += "&inspect_audit=" + inspect_audit;
  622. }
  623. if (print_js) {
  624. parm += "&print_js=" + print_js;
  625. }
  626. if(sex){
  627. parm += "&sex=" + sex;
  628. }
  629. if(education){
  630. parm += "&education=" + education;
  631. }
  632. if(post_id){
  633. parm += "&post_id=" + post_id;
  634. }
  635. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}?id={{$search_data['id']}}" + parm;
  636. });
  637. //入职聘用
  638. function employ() {
  639. var ids = show();
  640. if (ids !== false) {
  641. var qsDialog = $(this).dialog({
  642. title: '请选择',
  643. loading: true,
  644. showFooter: false,
  645. yes: function() {
  646. $('.J_btnyes').val('发送中...');
  647. // console.log($('#J_interviewWrap').serialize());
  648. $.post("recruit.employ", $('#J_interviewWrap').serialize(), function(result) {
  649. if (result.status == 1) {
  650. disapperTooltip('success', result.msg);
  651. setTimeout(function() {
  652. $.pjax.reload('#pjax-container');
  653. qsDialog.hide(true);
  654. }, 2000);
  655. } else {
  656. $('.J_btnyes').val('确定');
  657. disapperTooltip('remind', result.msg);
  658. }
  659. }, 'json');
  660. }
  661. });
  662. qsDialog.setCloseDialog(false);
  663. var recruit_id = "{{$recruit->id}}";
  664. $.getJSON("recruit.employ_audit", {
  665. recruit_id: recruit_id,
  666. ids: ids
  667. }, function(result) {
  668. if (result.status == 1) {
  669. qsDialog.setContent(result.data);
  670. qsDialog.showFooter(true);
  671. } else {
  672. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  673. }
  674. });
  675. }
  676. }
  677. //其它审核
  678. function butpen(i) {
  679. var ids = show();
  680. if (ids !== false) {
  681. var qsDialog = $(this).dialog({
  682. title: '请选择',
  683. loading: true,
  684. showFooter: false,
  685. yes: function() {
  686. $('.J_btnyes').val('发送中...');
  687. $.post("recruit.other_auth", $('#J_interviewWrap').serialize(), function(result) {
  688. if (result.status == 1) {
  689. disapperTooltip('success', result.msg);
  690. setTimeout(function() {
  691. $.pjax.reload('#pjax-container');
  692. qsDialog.hide(true);
  693. }, 2000);
  694. } else {
  695. $('.J_btnyes').val('确定');
  696. disapperTooltip('remind', result.msg);
  697. }
  698. }, 'json');
  699. }
  700. });
  701. qsDialog.setCloseDialog(false);
  702. var recruit_id = "{{$recruit->id}}";
  703. if (i == 'pay_audit') {
  704. $.getJSON("recruit.pay_audit", {
  705. recruit_id: recruit_id,
  706. ids: ids,
  707. type: i
  708. }, function(result) {
  709. if (result.status == 1) {
  710. qsDialog.setContent(result.data);
  711. qsDialog.showFooter(true);
  712. } else {
  713. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  714. }
  715. });
  716. } else {
  717. $.getJSON("recruit.ajax_other_audit", {
  718. recruit_id: recruit_id,
  719. ids: ids,
  720. type: i
  721. }, function(result) {
  722. if (result.status == 1) {
  723. qsDialog.setContent(result.data);
  724. qsDialog.showFooter(true);
  725. } else {
  726. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  727. }
  728. });
  729. }
  730. }
  731. }
  732. //准考证生成
  733. function card() {
  734. var recruit_id = "{{$recruit->id}}";
  735. var qsDialog = $(this).dialog({
  736. title: '请选择',
  737. loading: true,
  738. showFooter: false,
  739. yes: function() {
  740. $('.J_btnyes').val('发送中...');
  741. var data = new FormData(document.getElementById("J_ticketWrap"));
  742. console.log(data)
  743. $.ajax({
  744. url: "{{ route('recruit.create_ticket') }}",
  745. type: 'POST',
  746. data: data,
  747. processData: false,
  748. contentType : false,
  749. success: function(response){
  750. if (response.status == 1) {
  751. disapperTooltip('success', response.msg);
  752. setTimeout(function() {
  753. $.pjax.reload('#pjax-container');
  754. qsDialog.hide(true);
  755. }, 2000);
  756. } else {
  757. $('.J_btnyes').val('确定');
  758. disapperTooltip('remind', response.msg);
  759. }
  760. }
  761. })
  762. }
  763. });
  764. qsDialog.setCloseDialog(false);
  765. $.getJSON("ajax/ajax_ticket", {
  766. recruit_id: recruit_id
  767. }, function(result) {
  768. if (result.status == 1) {
  769. qsDialog.setContent(result.data);
  770. qsDialog.showFooter(true);
  771. } else {
  772. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  773. }
  774. });
  775. }
  776. //成绩更新
  777. function record() {
  778. var recruit_id = "{{$recruit->id}}";
  779. var qsDialog = $(this).dialog({
  780. title: '请选择',
  781. loading: true,
  782. showFooter: false,
  783. yes: function() {
  784. $('.J_btnyes').val('发送中...');
  785. var data = new FormData(document.getElementById("J_recordWrap"));
  786. console.log(data)
  787. $.ajax({
  788. url: "{{ route('recruit.update_record') }}",
  789. type: 'POST',
  790. data: data,
  791. processData: false,
  792. contentType : false,
  793. success: function(response){
  794. if (response.status == 1) {
  795. disapperTooltip('success', response.msg);
  796. setTimeout(function() {
  797. $.pjax.reload('#pjax-container');
  798. qsDialog.hide(true);
  799. }, 2000);
  800. } else {
  801. $('.J_btnyes').val('确定');
  802. disapperTooltip('remind', response.msg);
  803. }
  804. }
  805. })
  806. }
  807. });
  808. qsDialog.setCloseDialog(false);
  809. $.getJSON("ajax/ajax_record", {
  810. recruit_id: recruit_id
  811. }, function(result) {
  812. if (result.status == 1) {
  813. qsDialog.setContent(result.data);
  814. qsDialog.showFooter(true);
  815. } else {
  816. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  817. }
  818. });
  819. }
  820. //提交准考证
  821. $("#build").click(function() {
  822. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  823. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  824. $("form[name=form1]").submit();
  825. });
  826. //撤销准考证
  827. $("#del_ticket").click(function() {
  828. var ticket_id = $("input[name='ticket_id']:checked").val();
  829. var r_id = $("input[name='r_id']").val();
  830. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  831. $("form[name=form1]").submit();
  832. });
  833. //撤销准考证
  834. function delcard() {
  835. var ids = show();
  836. var recruit_id = "{{$recruit->id}}";
  837. if (ids !== false) {
  838. var qsDialog = $(this).dialog({
  839. title: '请选择',
  840. loading: true,
  841. showFooter: false,
  842. yes: function() {
  843. $('.J_btnyes').val('发送中...');
  844. var ticket_id = $("input[name='ticket_id']:checked").val();
  845. data = {
  846. 'ids': ids,
  847. 'recruit_id': recruit_id,
  848. 'ticket_id': ticket_id,
  849. };
  850. $.post("recruit.ticket_del", data, function(result) {
  851. if (result.status == 1) {
  852. disapperTooltip('success', result.msg);
  853. setTimeout(function() {
  854. $.pjax.reload('#pjax-container');
  855. qsDialog.hide(true);
  856. }, 2000);
  857. } else {
  858. $('.J_btnyes').val('确定');
  859. disapperTooltip('remind', result.msg);
  860. }
  861. }, 'json');
  862. }
  863. });
  864. qsDialog.setCloseDialog(false);
  865. $.getJSON("recruit.ajax_ticket_del", {
  866. recruit_id: recruit_id,
  867. ids: ids,
  868. }, function(result) {
  869. if (result.status == 1) {
  870. // console.log(result.data);
  871. qsDialog.setContent(result.data);
  872. qsDialog.showFooter(true);
  873. } else {
  874. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  875. }
  876. });
  877. }
  878. }
  879. /*全选*/
  880. $("#chk").click(function() {
  881. if (this.checked == false) {
  882. // console.log("反选")
  883. $("td :checkbox").prop("checked", false);
  884. }
  885. if (this.checked == true) {
  886. // console.log("全选")
  887. $("td :checkbox").prop("checked", true);
  888. }
  889. })
  890. //子复选框有一个未选中时,去掉全选按钮的选中状态
  891. $("td :checkbox").click(function() {
  892. var allCheckNum = $("td input[type='checkbox']").length;
  893. var checkedNum = $("td input[type='checkbox']:checked").length;
  894. if (checkedNum == allCheckNum) {
  895. // console.log("全选");
  896. document.getElementById("chk").checked = true;
  897. } else {
  898. // console.log("反选");
  899. document.getElementById("chk").checked = false;
  900. }
  901. })
  902. </script>
  903. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  904. <style type="text/css">
  905. 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 }
  906. p#vtip img{width: 200px}
  907. /*body{min-width: 1680px;overflow: auto;}*/
  908. .clearfix:after {
  909. display: block;
  910. clear: both;
  911. content: "";
  912. visibility: hidden;
  913. height: 0;
  914. }
  915. .clearfix {
  916. zoom: 1;
  917. /*为了兼容IE*/
  918. }
  919. .box .box-body {
  920. position: relative;
  921. }
  922. .box .form-group label {
  923. float: left;
  924. width: 120px;
  925. line-height: 34px;
  926. text-align: right;
  927. }
  928. .box .input-group {
  929. width: 360px;
  930. }
  931. .list_empty_group {
  932. text-align: center;
  933. line-height: 80px;
  934. color: #404446;
  935. font-size: 22px;
  936. }
  937. .jobslist_table .li-table-btn {
  938. width: 120px;
  939. height: 50px;
  940. line-height: 50px;
  941. }
  942. .modal {
  943. display: block;
  944. position: static;
  945. }
  946. .qs-category-unlimited .selected-group .selected-box .s-cell {
  947. width: 112px;
  948. }
  949. .qs-category-unlimited .cate-type .dd {
  950. margin: 0px;
  951. font-size: 14px;
  952. }
  953. .qs-category-unlimited .cate-type .one-select label {
  954. display: block;
  955. margin: 0px;
  956. width: 110px;
  957. }
  958. .qs-category-unlimited .cate-type .one-select .check-box {
  959. margin: 0px;
  960. }
  961. .modal_body_box .list_nav1 li label {
  962. margin-bottom: 0px;
  963. }
  964. .disappear_tooltip .content {
  965. min-height: auto;
  966. padding: 0px;
  967. padding-left: 10px;
  968. padding-right: 10px;
  969. }
  970. </style>