qjwj_appoint_list.blade.php 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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="sex" id="sex">
  13. <option value=''>不限</option>
  14. <option value='0' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '0') selected @endif>女</option>
  15. <option value='1' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '1') selected @endif>男</option>
  16. </select>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-3 clearfix">
  22. <div class="box-body table-responsive" style="padding:5px;">
  23. <div class="form-group clearfix" style="margin-bottom:0;">
  24. <label for="prefix" class="control-label">学历:</label>
  25. <div style="float: left;width: 150px;">
  26. <select class="form-control" name="education" id="education">
  27. <option value=''>不限</option>
  28. <option value='小学' @if(array_key_exists('education',$search_data) && $search_data['education'] == '小学') selected @endif>小学</option>
  29. <option value='初中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '初中') selected @endif>初中</option>
  30. <option value='技校' @if(array_key_exists('education',$search_data) && $search_data['education'] == '技校') selected @endif>技校</option>
  31. <option value='职高' @if(array_key_exists('education',$search_data) && $search_data['education'] == '职高') selected @endif>职高</option>
  32. <option value='高中' @if(array_key_exists('education',$search_data) && $search_data['education'] == '高中') selected @endif>高中</option>
  33. <option value='中专' @if(array_key_exists('education',$search_data) && $search_data['education'] == '中专') selected @endif>中专</option>
  34. <option value='专科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '专科') selected @endif>专科</option>
  35. <option value='本科' @if(array_key_exists('education',$search_data) && $search_data['education'] == '本科') selected @endif>本科</option>
  36. <option value='硕士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '硕士') selected @endif>硕士</option>
  37. <option value='博士' @if(array_key_exists('education',$search_data) && $search_data['education'] == '博士') selected @endif>博士</option>
  38. </select>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-md-3 clearfix">
  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>
  54. <div class="box-footer">
  55. <div class="btn-group" style="margin-left: 440px;">
  56. <button type="button" class="btn btn-info btn-primary js-search" data-type="1"><i class="fa fa-search">搜索</i></button>
  57. </div>
  58. </div>
  59. <div class="box-body table-responsive">
  60. <div class="col-md-12">
  61. <div class="box-header with-border">
  62. <h3 class="box-title">查询结果</h3>
  63. </div>
  64. <div class="box-body table-responsive no-padding">
  65. <table class="table table-hover">
  66. <thead>
  67. <tr>
  68. <th height="26" class="admin_list_tit">
  69. <input type="checkbox" name=" " title="全选/反选" id="chk" />
  70. </th>
  71. <th>基础资料</th>
  72. <th>电话</th>
  73. <th>学历</th>
  74. <th>学校</th>
  75. <th>院系</th>
  76. <th>专业类别</th>
  77. <th>具体专业</th>
  78. <th>操作</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. @if(isset($list) && $list->total())
  83. @foreach($list as $k=>$v)
  84. <tr>
  85. <td>
  86. <input ls="{{$v->id}}" name="id[]" id="appointinfo_{{$v->id}}" type="checkbox" value="{{$v->id}}" />
  87. </td>
  88. <td>
  89. <span style="color: #0A246A; margin-right: 3px;">{!! $v->realname !!}</span>
  90. <span style="color: #0A246A; margin-right: 3px;">{{$v->sex}}</span>
  91. <span style="color:#be7707; margin-right: 3px;">{{$v->birthday}}</span>
  92. <span style="color:#0A7CF7; margin-right: 3px;">{{$v->education}}</span>
  93. <span style="color:#0F73AC; margin-right: 3px;">{{$v->native_place}}</span>
  94. </td>
  95. <td>
  96. {{ $v->mobile }}
  97. </td>
  98. <td>{!! $v->education !!}</td>
  99. <td>{!! $v->school !!}</td>
  100. <td>{!! $v->dep !!}</td>
  101. <td>
  102. {{ $v->pro_type }}
  103. </td>
  104. <td>
  105. {{ $v->pro_text }}
  106. </td>
  107. <td>
  108. <button class='btn btn-primary btn-xs fetch_word' data-rid="{{$v->recruit_id}}" data-aid="{{$v->id}}" style="margin-bottom: 10px">下载简历</button>
  109. </td>
  110. </tr>
  111. @endforeach
  112. @else
  113. <tr>
  114. <td colspan="11">
  115. <div class="list_empty_group">
  116. <div class="list_empty">
  117. <div class="list_empty_left"></div>
  118. <div class="list_empty_right">
  119. <div class="sorry_box">对不起,暂无相关信息!</div>
  120. </div>
  121. <div class="clear"></div>
  122. </div>
  123. </div>
  124. </td>
  125. </tr>
  126. @endif
  127. </tbody>
  128. </table>
  129. </div>
  130. @if(isset($list))
  131. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  132. @endif
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </section>
  139. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  140. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  141. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  142. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  143. <script>
  144. //图片预览
  145. this.vtip = function() {
  146. this.xOffset = -10; // x distance from mouse
  147. this.yOffset = 15; // y distance from mouse
  148. $(".vtip").unbind().hover(
  149. function(e) {
  150. this.t = $(this).attr("title");
  151. this.title = '';
  152. this.top = (e.pageY + yOffset);
  153. this.left = (e.pageX + xOffset);
  154. $('body').css("cursor","help");
  155. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  156. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  157. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  158. },
  159. function() {
  160. this.title = this.t;
  161. $('body').css("cursor","");
  162. $("p#vtip").fadeOut("slow").remove();
  163. }
  164. ).mousemove(
  165. function(e) {
  166. this.top = (e.pageY + yOffset);
  167. this.left = (e.pageX + xOffset);
  168. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  169. }
  170. );
  171. };
  172. //提交数组整理
  173. this.show = function(type = 0){
  174. var id_array = new Array();
  175. if(type == 0){
  176. $('input[name="id\[\]"]:checked').each(function() {
  177. id_array.push($(this).val()); //向数组中添加元素
  178. });
  179. }else{
  180. id_array.push($("#appointinfo_"+type).val());
  181. }
  182. if (id_array.length == 0) {
  183. disapperTooltip('remind', '请选择用户');
  184. return false;
  185. } else {
  186. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  187. if (idstr == '' || idstr == null) {
  188. idstr = 0;
  189. }
  190. return idstr;
  191. }
  192. }
  193. //报名记录审核
  194. this.appointAudit = function(type = 0){
  195. var ids = show(type);
  196. if(!ids){
  197. return false;
  198. }
  199. if (ids !== false) {
  200. var qsDialog = $(this).dialog({
  201. title: '报名审核',
  202. loading: true,
  203. showFooter: false,
  204. yes: function() {
  205. $('.J_btnyes').val('发送中...');
  206. $.post("{{ route('recruit.appoint_audit') }}", $('#J_interviewWrap').serialize(), function(result) {
  207. if (result.status == 1) {
  208. disapperTooltip('success', result.msg);
  209. setTimeout(function() {
  210. $.pjax.reload('#pjax-container');
  211. qsDialog.hide(true);
  212. }, 2000);
  213. } else {
  214. $('.J_btnyes').val('确定');
  215. disapperTooltip('remind', result.msg);
  216. }
  217. }, 'json');
  218. }
  219. });
  220. qsDialog.setCloseDialog(false);
  221. var recruit_id = $(this).attr('recruit_id');
  222. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_audit", {
  223. recruit_id: recruit_id,
  224. ids: ids
  225. }, function(result) {
  226. if (result.status == 1) {
  227. qsDialog.setContent(result.data);
  228. qsDialog.showFooter(true);
  229. } else {
  230. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  231. }
  232. });
  233. }
  234. };
  235. //材料补登
  236. this.supplement = function(type = 0){
  237. var ids = show(type);
  238. if(!ids){
  239. return false;
  240. }
  241. if (ids !== false) {
  242. var qsDialog = $(this).dialog({
  243. title: '材料补登审核',
  244. loading: true,
  245. showFooter: false,
  246. yes: function() {
  247. $('.J_btnyes').val('发送中...');
  248. $.post("{{ route('recruit.supplement') }}", $('#J_interviewWrap').serialize(), function(result) {
  249. if (result.status == 1) {
  250. disapperTooltip('success', result.msg);
  251. setTimeout(function() {
  252. $.pjax.reload('#pjax-container');
  253. qsDialog.hide(true);
  254. }, 2000);
  255. } else {
  256. $('.J_btnyes').val('确定');
  257. disapperTooltip('remind', result.msg);
  258. }
  259. }, 'json');
  260. }
  261. });
  262. qsDialog.setCloseDialog(false);
  263. var recruit_id = $(this).attr('recruit_id');
  264. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_supplement", {
  265. recruit_id: recruit_id,
  266. ids: ids
  267. }, function(result) {
  268. if (result.status == 1) {
  269. qsDialog.setContent(result.data);
  270. qsDialog.showFooter(true);
  271. } else {
  272. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  273. }
  274. });
  275. }
  276. }
  277. //材料补登
  278. this.health = function(param = 0,type = 'pen'){
  279. var ids = show(param);
  280. if(!ids){
  281. return false;
  282. }
  283. if (ids !== false) {
  284. var qsDialog = $(this).dialog({
  285. title: '健康信息审核',
  286. loading: true,
  287. showFooter: false,
  288. yes: function() {
  289. $('.J_btnyes').val('发送中...');
  290. $.post("{{ route('recruit.health') }}", $('#J_interviewWrap').serialize(), function(result) {
  291. if (result.status == 1) {
  292. disapperTooltip('success', result.msg);
  293. setTimeout(function() {
  294. $.pjax.reload('#pjax-container');
  295. qsDialog.hide(true);
  296. }, 2000);
  297. } else {
  298. $('.J_btnyes').val('确定');
  299. disapperTooltip('remind', result.msg);
  300. }
  301. }, 'json');
  302. }
  303. });
  304. qsDialog.setCloseDialog(false);
  305. var recruit_id = $(this).attr('recruit_id');
  306. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_health", {
  307. recruit_id: recruit_id,
  308. ids: ids,
  309. type: type
  310. }, function(result) {
  311. if (result.status == 1) {
  312. qsDialog.setContent(result.data);
  313. qsDialog.showFooter(true);
  314. } else {
  315. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  316. }
  317. });
  318. }
  319. }
  320. $(document).ready(function() {
  321. vtip();
  322. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  323. appointAudit($(this).data('param'));
  324. });
  325. $(document).off("click",'.supplement').on('click','.supplement',function () {
  326. supplement($(this).data('param'));
  327. });
  328. $(document).off("click",'.health').on('click','.health',function () {
  329. health($(this).data('param'),$(this).data("type"));
  330. });
  331. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  332. var recruit_id = $(this).attr('data-rid'),appoint_id = $(this).attr('data-aid');
  333. var qsDialog = $(this).dialog({
  334. title: 'word简历生成',
  335. loading: true,
  336. showFooter: false,
  337. yes: function() {
  338. $('.J_btnyes').val('发送中...');
  339. $.post("{{ route('recruit.fetchword') }}", {_token:'{{ csrf_token() }}',recruit_id:recruit_id,appoint_id:appoint_id}, function(result) {
  340. if (result.status == 1) {
  341. disapperTooltip('success', result.msg);
  342. window.location.href = result.url;
  343. setTimeout(function() {
  344. $.pjax.reload('#pjax-container');
  345. qsDialog.hide(true);
  346. }, 2000);
  347. } else {
  348. $('.J_btnyes').val('确定');
  349. disapperTooltip('remind', result.msg);
  350. }
  351. }, 'json');
  352. }
  353. });
  354. qsDialog.setCloseDialog(false);
  355. qsDialog.setContent("重新生成会覆盖原有简历,请确认?");
  356. qsDialog.showFooter(true);
  357. });
  358. $("#ButtonAudit").click(function() {
  359. appointAudit(0)
  360. })
  361. /*查看人员信息*/
  362. $('.ButCompared').click(function() {
  363. var qsDialog = $(this).dialog({
  364. title: '查看报名信息',
  365. loading: true,
  366. footer: false
  367. });
  368. var param = $(this).data('param');
  369. var url = $(this).data('url') + "?id=" + param;
  370. $.getJSON(url, function(result) {
  371. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  372. });
  373. });
  374. //导出word简历压缩包
  375. $("#out_zip").click(function() {
  376. var id = show();
  377. if(!id){
  378. return false;
  379. }
  380. $(this).val("数据生成中。。。")
  381. $.ajax({
  382. url: "{{ route('recruit.out_zip') }}",
  383. type: 'POST',
  384. dataType: 'json',
  385. data: {
  386. id: id,
  387. recruit_id: "{{$recruit->id}}"
  388. },
  389. error: function(data) {
  390. },
  391. success: function(res) {
  392. $(this).val("导出word版简历(压缩包)")
  393. if (res.status == 1) {
  394. window.open(res.msg);
  395. } else {
  396. alert(res.msg);
  397. return false;
  398. }
  399. }
  400. });
  401. });
  402. });
  403. /*查看日志信息*/
  404. $('.ButExamineLog').click(function() {
  405. var qsDialog = $(this).dialog({
  406. title: '查看审核信息',
  407. loading: true,
  408. footer: false
  409. });
  410. var param = $(this).data('param');
  411. var url = $(this).data('url') + "?id=" + param;
  412. $.getJSON(url, function(result) {
  413. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  414. });
  415. });
  416. $('.js-search').click(function() {
  417. var political_affiliation = $.trim($('#political_affiliation').val());
  418. var audit = $.trim($('#audit').val());
  419. var realname = $.trim($('#realname').val());
  420. var print_ms = $.trim($('#print_ms').val());
  421. var print_bs = $.trim($('#print_bs').val());
  422. var pen_audit = $.trim($('#pen_audit').val());
  423. var computer_audit = $.trim($('#computer_audit').val());
  424. var face_audit = $.trim($('#face_audit').val());
  425. var reexamine_audit = $.trim($('#reexamine_audit').val());
  426. var inspect_audit = $.trim($('#inspect_audit').val());
  427. var print_js = $.trim($('#print_js').val());
  428. var review_audit = $.trim($('#review_audit').val());
  429. var political_audit = $.trim($('#political_audit').val());
  430. var health_audit = $.trim($('#health_audit').val());
  431. var sex = $.trim($("#sex").val());
  432. var education = $.trim($("#education").val());
  433. var post_id = $.trim($("#post_id").val());
  434. var parm = '';
  435. if (health_audit) {
  436. parm += "&health_audit=" + health_audit;
  437. }
  438. if (political_audit) {
  439. parm += "&political_audit=" + political_audit;
  440. }
  441. if (review_audit) {
  442. parm += "&review_audit=" + review_audit;
  443. }
  444. if (political_affiliation) {
  445. parm += "&political_affiliation=" + political_affiliation;
  446. }
  447. if (audit) {
  448. parm += "&audit=" + audit;
  449. }
  450. if (realname) {
  451. parm += "&realname=" + realname;
  452. }
  453. if (print_ms) {
  454. parm += "&print_ms=" + print_ms;
  455. }
  456. if (print_bs) {
  457. parm += "&print_bs=" + print_bs;
  458. }
  459. if (pen_audit) {
  460. parm += "&pen_audit=" + pen_audit;
  461. }
  462. if (face_audit) {
  463. parm += "&face_audit=" + face_audit;
  464. }
  465. if (computer_audit) {
  466. parm += "&computer_audit=" + computer_audit;
  467. }
  468. if (reexamine_audit) {
  469. parm += "&reexamine_audit=" + reexamine_audit;
  470. }
  471. if (inspect_audit) {
  472. parm += "&inspect_audit=" + inspect_audit;
  473. }
  474. if (print_js) {
  475. parm += "&print_js=" + print_js;
  476. }
  477. if(sex){
  478. parm += "&sex=" + sex;
  479. }
  480. if(education){
  481. parm += "&education=" + education;
  482. }
  483. if(post_id){
  484. parm += "&post_id=" + post_id;
  485. }
  486. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}?id={{$search_data['id']}}" + parm;
  487. });
  488. //入职聘用
  489. function employ() {
  490. var ids = show();
  491. if (ids !== false) {
  492. var qsDialog = $(this).dialog({
  493. title: '请选择',
  494. loading: true,
  495. showFooter: false,
  496. yes: function() {
  497. $('.J_btnyes').val('发送中...');
  498. // console.log($('#J_interviewWrap').serialize());
  499. $.post("recruit.employ", $('#J_interviewWrap').serialize(), function(result) {
  500. if (result.status == 1) {
  501. disapperTooltip('success', result.msg);
  502. setTimeout(function() {
  503. $.pjax.reload('#pjax-container');
  504. qsDialog.hide(true);
  505. }, 2000);
  506. } else {
  507. $('.J_btnyes').val('确定');
  508. disapperTooltip('remind', result.msg);
  509. }
  510. }, 'json');
  511. }
  512. });
  513. qsDialog.setCloseDialog(false);
  514. var recruit_id = "{{$recruit->id}}";
  515. $.getJSON("recruit.employ_audit", {
  516. recruit_id: recruit_id,
  517. ids: ids
  518. }, function(result) {
  519. if (result.status == 1) {
  520. qsDialog.setContent(result.data);
  521. qsDialog.showFooter(true);
  522. } else {
  523. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  524. }
  525. });
  526. }
  527. }
  528. //其它审核
  529. function butpen(i) {
  530. var ids = show();
  531. if (ids !== false) {
  532. var qsDialog = $(this).dialog({
  533. title: '请选择',
  534. loading: true,
  535. showFooter: false,
  536. yes: function() {
  537. $('.J_btnyes').val('发送中...');
  538. $.post("recruit.other_auth", $('#J_interviewWrap').serialize(), function(result) {
  539. if (result.status == 1) {
  540. disapperTooltip('success', result.msg);
  541. setTimeout(function() {
  542. $.pjax.reload('#pjax-container');
  543. qsDialog.hide(true);
  544. }, 2000);
  545. } else {
  546. $('.J_btnyes').val('确定');
  547. disapperTooltip('remind', result.msg);
  548. }
  549. }, 'json');
  550. }
  551. });
  552. qsDialog.setCloseDialog(false);
  553. var recruit_id = "{{$recruit->id}}";
  554. if (i == 'pay_audit') {
  555. $.getJSON("recruit.pay_audit", {
  556. recruit_id: recruit_id,
  557. ids: ids,
  558. type: i
  559. }, function(result) {
  560. if (result.status == 1) {
  561. qsDialog.setContent(result.data);
  562. qsDialog.showFooter(true);
  563. } else {
  564. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  565. }
  566. });
  567. } else {
  568. $.getJSON("recruit.ajax_other_audit", {
  569. recruit_id: recruit_id,
  570. ids: ids,
  571. type: i
  572. }, function(result) {
  573. if (result.status == 1) {
  574. qsDialog.setContent(result.data);
  575. qsDialog.showFooter(true);
  576. } else {
  577. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  578. }
  579. });
  580. }
  581. }
  582. }
  583. //准考证生成
  584. function card() {
  585. var recruit_id = "{{$recruit->id}}";
  586. var qsDialog = $(this).dialog({
  587. title: '请选择',
  588. loading: true,
  589. showFooter: false,
  590. yes: function() {
  591. $('.J_btnyes').val('发送中...');
  592. var data = new FormData(document.getElementById("J_ticketWrap"));
  593. console.log(data)
  594. $.ajax({
  595. url: "{{ route('recruit.create_ticket') }}",
  596. type: 'POST',
  597. data: data,
  598. processData: false,
  599. contentType : false,
  600. success: function(response){
  601. if (response.status == 1) {
  602. disapperTooltip('success', response.msg);
  603. setTimeout(function() {
  604. $.pjax.reload('#pjax-container');
  605. qsDialog.hide(true);
  606. }, 2000);
  607. } else {
  608. $('.J_btnyes').val('确定');
  609. disapperTooltip('remind', response.msg);
  610. }
  611. }
  612. })
  613. }
  614. });
  615. qsDialog.setCloseDialog(false);
  616. $.getJSON("ajax/ajax_ticket", {
  617. recruit_id: recruit_id
  618. }, function(result) {
  619. if (result.status == 1) {
  620. qsDialog.setContent(result.data);
  621. qsDialog.showFooter(true);
  622. } else {
  623. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  624. }
  625. });
  626. }
  627. //成绩更新
  628. function record() {
  629. var recruit_id = "{{$recruit->id}}";
  630. var qsDialog = $(this).dialog({
  631. title: '请选择',
  632. loading: true,
  633. showFooter: false,
  634. yes: function() {
  635. $('.J_btnyes').val('发送中...');
  636. var data = new FormData(document.getElementById("J_recordWrap"));
  637. $.ajax({
  638. url: "{{ route('recruit.update_record') }}",
  639. type: 'POST',
  640. data: data,
  641. processData: false,
  642. contentType : false,
  643. success: function(response){
  644. if (response.status == 1) {
  645. disapperTooltip('success', response.msg);
  646. setTimeout(function() {
  647. $.pjax.reload('#pjax-container');
  648. qsDialog.hide(true);
  649. }, 2000);
  650. } else {
  651. $('.J_btnyes').val('确定');
  652. disapperTooltip('remind', response.msg);
  653. }
  654. }
  655. })
  656. }
  657. });
  658. qsDialog.setCloseDialog(false);
  659. $.getJSON("ajax/ajax_record", {
  660. recruit_id: recruit_id
  661. }, function(result) {
  662. if (result.status == 1) {
  663. qsDialog.setContent(result.data);
  664. qsDialog.showFooter(true);
  665. } else {
  666. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  667. }
  668. });
  669. }
  670. //提交准考证
  671. $("#build").click(function() {
  672. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  673. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  674. $("form[name=form1]").submit();
  675. });
  676. //撤销准考证
  677. $("#del_ticket").click(function() {
  678. var ticket_id = $("input[name='ticket_id']:checked").val();
  679. var r_id = $("input[name='r_id']").val();
  680. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  681. $("form[name=form1]").submit();
  682. });
  683. //撤销准考证
  684. function delcard() {
  685. var ids = show();
  686. var recruit_id = "{{$recruit->id}}";
  687. if (ids !== false) {
  688. var qsDialog = $(this).dialog({
  689. title: '请选择',
  690. loading: true,
  691. showFooter: false,
  692. yes: function() {
  693. $('.J_btnyes').val('发送中...');
  694. var ticket_id = $("input[name='ticket_id']:checked").val();
  695. data = {
  696. 'ids': ids,
  697. 'recruit_id': recruit_id,
  698. 'ticket_id': ticket_id,
  699. };
  700. $.post("recruit.ticket_del", data, function(result) {
  701. if (result.status == 1) {
  702. disapperTooltip('success', result.msg);
  703. setTimeout(function() {
  704. $.pjax.reload('#pjax-container');
  705. qsDialog.hide(true);
  706. }, 2000);
  707. } else {
  708. $('.J_btnyes').val('确定');
  709. disapperTooltip('remind', result.msg);
  710. }
  711. }, 'json');
  712. }
  713. });
  714. qsDialog.setCloseDialog(false);
  715. $.getJSON("recruit.ajax_ticket_del", {
  716. recruit_id: recruit_id,
  717. ids: ids,
  718. }, function(result) {
  719. if (result.status == 1) {
  720. // console.log(result.data);
  721. qsDialog.setContent(result.data);
  722. qsDialog.showFooter(true);
  723. } else {
  724. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  725. }
  726. });
  727. }
  728. }
  729. /*全选*/
  730. $("#chk").click(function() {
  731. if (this.checked == false) {
  732. // console.log("反选")
  733. $("td :checkbox").prop("checked", false);
  734. }
  735. if (this.checked == true) {
  736. // console.log("全选")
  737. $("td :checkbox").prop("checked", true);
  738. }
  739. })
  740. //子复选框有一个未选中时,去掉全选按钮的选中状态
  741. $("td :checkbox").click(function() {
  742. var allCheckNum = $("td input[type='checkbox']").length;
  743. var checkedNum = $("td input[type='checkbox']:checked").length;
  744. if (checkedNum == allCheckNum) {
  745. // console.log("全选");
  746. document.getElementById("chk").checked = true;
  747. } else {
  748. // console.log("反选");
  749. document.getElementById("chk").checked = false;
  750. }
  751. })
  752. </script>
  753. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  754. <style type="text/css">
  755. 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 }
  756. p#vtip img{width: 200px}
  757. /*body{min-width: 1680px;overflow: auto;}*/
  758. .clearfix:after {
  759. display: block;
  760. clear: both;
  761. content: "";
  762. visibility: hidden;
  763. height: 0;
  764. }
  765. .clearfix {
  766. zoom: 1;
  767. /*为了兼容IE*/
  768. }
  769. .box .box-body {
  770. position: relative;
  771. }
  772. .box .form-group label {
  773. float: left;
  774. width: 120px;
  775. line-height: 34px;
  776. text-align: right;
  777. }
  778. .box .input-group {
  779. width: 360px;
  780. }
  781. .list_empty_group {
  782. text-align: center;
  783. line-height: 80px;
  784. color: #404446;
  785. font-size: 22px;
  786. }
  787. .jobslist_table .li-table-btn {
  788. width: 120px;
  789. height: 50px;
  790. line-height: 50px;
  791. }
  792. .modal {
  793. display: block;
  794. position: static;
  795. }
  796. .qs-category-unlimited .selected-group .selected-box .s-cell {
  797. width: 112px;
  798. }
  799. .qs-category-unlimited .cate-type .dd {
  800. margin: 0px;
  801. font-size: 14px;
  802. }
  803. .qs-category-unlimited .cate-type .one-select label {
  804. display: block;
  805. margin: 0px;
  806. width: 110px;
  807. }
  808. .qs-category-unlimited .cate-type .one-select .check-box {
  809. margin: 0px;
  810. }
  811. .modal_body_box .list_nav1 li label {
  812. margin-bottom: 0px;
  813. }
  814. .disappear_tooltip .content {
  815. min-height: auto;
  816. padding: 0px;
  817. padding-left: 10px;
  818. padding-right: 10px;
  819. }
  820. </style>