require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/punchclock/punchstatis/index"],{"280b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={zzxCalendar:function(){return Promise.all([n.e("common/vendor"),n.e("components/zzx-calendar/zzx-calendar")]).then(n.bind(null,"5feb"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.normalList,(function(e,n){var a=t.__get_orig(e),i=e.clock_in?e.clock_in.substring(e.clock_in.length-8,e.clock_in.length-2):null,o=e.clock_out?e.clock_out.substring(e.clock_out.length-8,e.clock_out.length-2):null;return{$orig:a,g0:i,g1:o}}))),a=t.__map(t.fieldpersonList,(function(e,n){var a=t.__get_orig(e),i=e.time.substring(e.time.length-8,e.time.length-2);return{$orig:a,g2:i}}));t.$mp.data=Object.assign({},{$root:{l0:n,l1:a}})},o=[]},"307e":function(t,e,n){"use strict";n.r(e);var a=n("3d6d"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"3d6d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("dc92"),i={components:{zzxCalendar:function(){Promise.all([n.e("common/vendor"),n.e("components/zzx-calendar/zzx-calendar")]).then(function(){return resolve(n("5feb"))}.bind(null,n)).catch(n.oe)}},data:function(){return{typeIndex:0,date:"",normalList:[],fieldpersonList:[]}},onLoad:function(t){t.time?(this.date=t.time,this.$refs.calendarChild.init(this.date),this.getRecord()):this.getNowTime()},methods:{getNowTime:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth()+1,a=t.getDate();this.date=e+"-"+this.handleTime(n)+"-"+this.handleTime(a),this.$refs.calendarChild.init(this.date),this.getRecord()},handleTime:function(t){return t>=10?t:"0"+t},getRecord:function(){var t=this;(0,a.netClockStatis)({date:this.date}).then((function(e){e=e.data,t.handleData(e.statisc),t.fieldpersonList=e.other}))},handleData:function(t){var e=this,n=Date.now();t.forEach((function(t){var a=e.date+" "+t.uend_time,i=new Date(a).getTime();!t.clock_in&&i<n?t.mis_sCard=!0:t.mis_sCard=!1;var o=e.date+" "+t.dend_time,c=new Date(o).getTime();!t.clock_out&&c<n?t.mis_eCard=!0:t.mis_eCard=!1})),this.normalList=t},datechange:function(t){this.date=t.fullDate,this.getRecord()},changeFirTab:function(t){this.typeIndex=t},lookMonth:function(){var e=this.date.substring(0,4);t.navigateTo({url:"/pagesA/punchclock/punchstatis/monthStatis?year="+e})},toSubmitColck:function(e,n){var a;console.log(e,"====="),1==n?e.clock_in&&e.late_time>0?a=2:e.mis_sCard&&(a=0):2==n&&(e.clock_out&&e.leaver_time>0?a=1:e.mis_eCard&&(a=0));var i=1==a?e.clock_out:2==a?e.clock_in:"";t.navigateTo({url:"/pagesA/punchclock/punchstatis/supplementaryCard?id="+e.id+"&type="+a+"&time="+i})},toLeave:function(){t.navigateTo({url:"/pagesA/punchclock/punchstatis/leave"})},toOutDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/punchstatis/clockOutDetail?id="+e.id})}}};e.default=i}).call(this,n("543d")["default"])},7643:function(t,e,n){},ba56:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("8886");a(n("66fd"));var i=a(n("e24d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},e24d:function(t,e,n){"use strict";n.r(e);var a=n("280b"),i=n("307e");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("edd0");var c=n("f0c5"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"60aa7e80",null,!1,a["a"],void 0);e["default"]=r.exports},edd0:function(t,e,n){"use strict";var a=n("7643"),i=n.n(a);i.a}},[["ba56","common/runtime","common/vendor"]]]);