text: !function(t){function e(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=10)}({10:function(t,e){mui.init({swipeBack:!0}),mui.plusReady(function(){var t={token:plus.storage.getItem("token"),type:"check"};mui.ajax(apiUrl+"employee/jia_qin_list_test",{data:t,type:"post",timeout:1e4,success:function(t){var t=JSON.parse(t),e="",i="";1==t.status&&""!=t.data&&(mui.each(t.data,function(t,a){"未审核"==a.shen_he_zhuang_tai?e+='<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">'+a.real_name+'</a><div class="mui-collapse-content"><table width="100%"><tbody><tr><td width="30%" class="text-999 mui-text-center">申请时间</td><td width="70%">'+a.kai_shi_shi_jian+" 至 "+a.jie_shu_shi_jian+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">所属部门</td><td width="70%">'+a.department_name+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">审核状态</td><td width="70%" id="shen-he-zhuangtai-'+a.jia_qing_id+'">'+a.shen_he_zhuang_tai+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤类型</td><td width="70%">'+a.wage_item_rule+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤原因</td><td width="70%" class="text-danger">'+(null!=a.jia_qing_shi_you?a.jia_qing_shi_you:"暂无")+'</td></tr></tbody></table><div class="mui-row '+("未审核"!=a.shen_he_zhuang_tai?"mui-hidden":"")+'"><div class="mui-col-xs-6 mui-text-center"><a class="mui-btn mui-btn-link text-aaa btn-jiaqin-sp" if-agree="0" jia-qing-id="'+a.jia_qing_id+'">拒绝</a></div><div class="mui-col-xs-6 mui-text-center"><a class="mui-btn mui-btn-link btn-jiaqin-sp" if-agree="1" jia-qing-id="'+a.jia_qing_id+'">同意</a></div></div></div></li>':i+='<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">'+a.real_name+'</a><div class="mui-collapse-content"><table width="100%"><tbody><tr><td width="30%" class="text-999 mui-text-center">申请时间</td><td width="70%">'+a.kai_shi_shi_jian+" 至 "+a.jie_shu_shi_jian+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">所属部门</td><td width="70%">'+a.department_name+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">审核状态</td><td width="70%" id="shen-he-zhuangtai-'+a.jia_qing_id+'">'+a.shen_he_zhuang_tai+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤类型</td><td width="70%">'+a.wage_item_rule+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤原因</td><td width="70%" class="text-danger">'+(null!=a.jia_qing_shi_you?a.jia_qing_shi_you:"暂无")+'</td></tr></tbody></table><div class="mui-row '+("未审核"!=a.shen_he_zhuang_tai?"mui-hidden":"")+'"><div class="mui-col-xs-6 mui-text-center"><a class="mui-btn mui-btn-link text-aaa btn-jiaqin-sp" if-agree="0" jia-qing-id="'+a.jia_qing_id+'">拒绝</a></div><div class="mui-col-xs-6 mui-text-center"><a class="mui-btn mui-btn-link btn-jiaqin-sp" if-agree="1" jia-qing-id="'+a.jia_qing_id+'">同意</a></div></div></div></li>'}),""!=e&&(document.getElementById("jiaqin-sp-check-list").innerHTML=e),""!=i&&(document.getElementById("jiaqin-sp-checked-list").innerHTML=i))},beforeSend:function(){plus.nativeUI.showWaiting("玩命加载中...")},complete:function(){plus.nativeUI.closeWaiting()},error:function(t,e){mui.alert("参数错误："+e)}});var e={token:plus.storage.getItem("token"),type:"chaosong"};mui.ajax(apiUrl+"employee/jia_qin_list_test",{data:e,type:"post",timeout:1e4,success:function(t){var t=JSON.parse(t),e="";1==t.status&&""!=t.data&&(mui.each(t.data,function(t,i){e+='<li class="mui-table-view-cell mui-collapse"><a class="mui-navigate-right" href="#">'+i.real_name+'</a><div class="mui-collapse-content"><table style="border-bottom: none" width="100%"><tbody><tr><td width="30%" class="text-999 mui-text-center">申请时间</td><td width="70%">'+i.kai_shi_shi_jian+" 至 "+i.jie_shu_shi_jian+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">所属部门</td><td width="70%">'+i.department_name+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">审核状态</td><td width="70%" id="shen-he-zhuangtai-'+i.jia_qing_id+'">'+i.shen_he_zhuang_tai+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤类型</td><td width="70%">'+i.wage_item_rule+'</td></tr><tr><td width="30%" class="text-999 mui-text-center">假勤原因</td><td width="70%" class="text-danger">'+(null!=i.jia_qing_shi_you?i.jia_qing_shi_you:"暂无")+"</td></tr></tbody></table></div></li>"}),""!=e&&(document.getElementById("jiaqin-sp-chaosong-list").innerHTML=e))},beforeSend:function(){plus.nativeUI.showWaiting("玩命加载中...")},complete:function(){plus.nativeUI.closeWaiting()},error:function(t,e){mui.alert("参数错误："+e)}}),mui(document).on("tap",".btn-jiaqin-sp",function(){var t=this,e=this.getAttribute("if-agree"),i=this.getAttribute("jia-qing-id");if(1==e)var a={token:plus.storage.getItem("token"),jia_qing_id:i,check_type:1};else var a={token:plus.storage.getItem("token"),jia_qing_id:i,check_type:2};mui.ajax(apiUrl+"employee/jia_qin_check",{data:a,type:"post",timeout:1e4,success:function(e){var e=JSON.parse(e);if(1==e.status){var a="shen-he-zhuangtai-"+i;document.getElementById(a).innerHTML=e.detail,mui.alert("提交成功"),t.parentNode.parentNode.parentNode.parentNode.style.display="none"}else mui.alert(e.detail)},beforeSend:function(){plus.nativeUI.showWaiting("玩命加载中...")},complete:function(){plus.nativeUI.closeWaiting()},error:function(t,e){mui.alert("参数错误："+e)}})})})}});