1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/punchclock/index"],{"0922":function(t,e,n){"use strict";var i=n("9c9b"),a=n.n(i);a.a},"0c2d":function(t,e,n){"use strict";n.r(e);var i=n("3a3b"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"0ce1":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("0c59"),a=n("dc92"),c={data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,list:[]}},onLoad:function(){},onShow:function(){this.getList()},methods:{getList:function(){var t=this;(0,a.netRulesList)().then((function(e){t.list=e.data}))},toDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/clockrules/addRules?id="+e.id})},toCreate:function(){t.navigateTo({url:"/pagesA/punchclock/clockrules/addRules"})}}};e.default=c}).call(this,n("543d")["default"])},"218c":function(t,e,n){"use strict";var i=n("da74"),a=n.n(i);a.a},"23e5":function(t,e,n){"use strict";n.r(e);var i=n("81db"),a=n("8215");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("4cec");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"1e6b9106",null,!1,i["a"],void 0);e["default"]=r.exports},2612:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("e24d")),c=i(n("896a")),o=i(n("ae7b")),r=i(n("23e5")),u=n("0c59"),s=n("dc92"),l={components:{punchClock:function(){Promise.all([n.e("common/vendor"),n.e("pagesA/punchclock/punchClock")]).then(function(){return resolve(n("2c0c"))}.bind(null,n)).catch(n.oe)},punchStatis:a.default,cardList:c.default,leaveList:o.default,punchRules:r.default},data:function(){return{BASE_IMG_URL:u.BASE_IMG_URL,tabList:[{type:1,name:"打卡",icon:u.BASE_IMG_URL+"c_daka.png",icon_active:u.BASE_IMG_URL+"c_daka_a.png"},{type:2,name:"统计",icon:u.BASE_IMG_URL+"c_tongji.png",icon_active:u.BASE_IMG_URL+"c_tongji_a.png"},{type:3,name:"补卡",icon:u.BASE_IMG_URL+"c_buka.png",icon_active:u.BASE_IMG_URL+"c_buka_a.png"},{type:4,name:"请假",icon:u.BASE_IMG_URL+"c_qingjia.png",icon_active:u.BASE_IMG_URL+"c_qingjia_a.png"},{type:5,name:"规则",icon:u.BASE_IMG_URL+"c_guize.png",icon_active:u.BASE_IMG_URL+"c_guize_a.png"}],tabType:1,role_type:1,lng:"",lat:""}},onLoad:function(){this.getUserInfo(),this.getPunch()},onUnload:function(){this.$refs.clockChild.close()},methods:{getPunch:function(){var e=this;t.getLocation({type:"gcj02",success:function(t){console.log(t,"经纬度"),e.lng=t.longitude,e.lat=t.latitude},fail:function(e){t.showToast({title:"次数频繁,请稍后再试",icon:"none"})}})},getUserInfo:function(){var t=this;(0,s.netGetUserInfo)().then((function(e){t.role_type=e.data.role_type}))},changeTab:function(e){this.tabType=e,1==e?t.setNavigationBarTitle({title:"打卡"}):2==e?(this.$refs.statisChild.getNowTime(),t.setNavigationBarTitle({title:"统计"})):3==e?(this.$refs.cardChild.init(),t.setNavigationBarTitle({title:"补卡"})):4==e?(this.$refs.leaveChild.init(),t.setNavigationBarTitle({title:"请假"})):(this.$refs.rulesChild.getList(),t.setNavigationBarTitle({title:"规则"}))},toNormal:function(){t.navigateTo({url:"/pagesA/punchclock/normalClock"})},toOutClock:function(){t.navigateTo({url:"/pagesA/punchclock/punchOut"})},toStatis:function(){t.navigateTo({url:"/pagesA/punchclock/punchstatis/index"})},toRules:function(){t.navigateTo({url:"/pagesA/punchclock/clockrules/index"})},toCard:function(){t.navigateTo({url:"/pagesA/punchclock/card/index"})},toLeave:function(){t.navigateTo({url:"/pagesA/punchclock/leave/index"})}}};e.default=l}).call(this,n("543d")["default"])},"280b":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var i={zzxCalendar:function(){return Promise.all([n.e("common/vendor"),n.e("components/zzx-calendar/zzx-calendar")]).then(n.bind(null,"5feb"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.normalList,(function(e,n){var i=t.__get_orig(e),a=e.clock_in?e.clock_in.substring(e.clock_in.length-8,e.clock_in.length-2):null,c=e.clock_out?e.clock_out.substring(e.clock_out.length-8,e.clock_out.length-2):null;return{$orig:i,g0:a,g1:c}}))),i=t.__map(t.fieldpersonList,(function(e,n){var i=t.__get_orig(e),a=e.time.substring(e.time.length-8,e.time.length-2);return{$orig:i,g2:a}}));t.$mp.data=Object.assign({},{$root:{l0:n,l1:i}})},c=[]},"307e":function(t,e,n){"use strict";n.r(e);var i=n("3d6d"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"3a3b":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9523")),c=n("dc92"),o=n("0c59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var u={components:{screenPop:function(){n.e("pagesA/punchclock/leave/screen").then(function(){return resolve(n("85b3"))}.bind(null,n)).catch(n.oe)}},data:function(){return{BASE_IMG_URL:o.BASE_IMG_URL,page:1,totalPage:1,list:[],queryParams:{}}},onShow:function(){this.init()},methods:{toQuery:function(){this.$refs.screenChild.init()},sureParams:function(t){this.queryParams=t,this.init()},loodMore:function(){this.page<this.totalPage&&(this.page++,this.getList())},init:function(){this.page=1,this.list=[],this.getList()},getList:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({page:this.page},this.queryParams);(0,c.netLeaveList)(e).then((function(e){t.list=t.list.concat(e.data.data),t.totalPage=e.data.last_page}))},toDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/leave/detail?id="+e.id})},addLeave:function(){t.navigateTo({url:"/pagesA/punchclock/punchstatis/leave"})}}};e.default=u}).call(this,n("543d")["default"])},"3ba1":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var i={uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},c=[]},"3d6d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("dc92"),a={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,i=t.getDate();this.date=e+"-"+this.handleTime(n)+"-"+this.handleTime(i),this.$refs.calendarChild.init(this.date),this.getRecord()},handleTime:function(t){return t>=10?t:"0"+t},getRecord:function(){var t=this;(0,i.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 i=e.date+" "+t.uend_time,a=new Date(i).getTime();!t.clock_in&&a<n?t.mis_sCard=!0:t.mis_sCard=!1;var c=e.date+" "+t.dend_time,o=new Date(c).getTime();!t.clock_out&&o<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 i;console.log(e,"====="),1==n?e.clock_in&&e.late_time>0?i=2:e.mis_sCard&&(i=0):2==n&&(e.clock_out&&e.leaver_time>0?i=1:e.mis_eCard&&(i=0));var a=1==i?e.clock_out:2==i?e.clock_in:"";t.navigateTo({url:"/pagesA/punchclock/punchstatis/supplementaryCard?id="+e.id+"&type="+i+"&time="+a})},toLeave:function(){t.navigateTo({url:"/pagesA/punchclock/punchstatis/leave"})},toOutDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/punchstatis/clockOutDetail?id="+e.id})}}};e.default=a}).call(this,n("543d")["default"])},"4cec":function(t,e,n){"use strict";var i=n("cc8b"),a=n.n(i);a.a},"6b3b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"6f99":function(t,e,n){"use strict";n.r(e);var i=n("6b3b"),a=n("a68d");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("0922");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"6098b052",null,!1,i["a"],void 0);e["default"]=r.exports},7643:function(t,e,n){},"7ef2":function(t,e,n){"use strict";var i=n("c335"),a=n.n(i);a.a},"81db":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},8215:function(t,e,n){"use strict";n.r(e);var i=n("0ce1"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"896a":function(t,e,n){"use strict";n.r(e);var i=n("3ba1"),a=n("edc7");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("218c");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"dc318270",null,!1,i["a"],void 0);e["default"]=r.exports},"9c9b":function(t,e,n){},"9f51":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9523")),c=n("0c59"),o=n("dc92");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var u={components:{screenPop:function(){n.e("pagesA/punchclock/card/screen").then(function(){return resolve(n("38aa"))}.bind(null,n)).catch(n.oe)}},data:function(){return{BASE_IMG_URL:c.BASE_IMG_URL,list:[],page:1,totalPage:1,queryParams:{}}},onShow:function(){this.init()},methods:{toQuery:function(){this.$refs.screenChild.init()},sureParams:function(t){this.queryParams=t,this.init()},loodMore:function(){this.page<this.totalPage&&(this.page++,this.getList())},init:function(){this.page=1,this.list=[],this.getList()},getList:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({page:this.page},this.queryParams);(0,o.netCardList)(e).then((function(e){t.list=t.list.concat(e.data.data),t.totalPage=e.data.last_page}))},toDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/card/detail?id="+e.id})},addCard:function(){t.showModal({title:"请在打卡记录中提交补卡申请",content:"按照班次提交申请,补卡更精确",showCancel:!1,complete:function(e){e.confirm&&t.navigateTo({url:"/pagesA/punchclock/punchstatis/index"})}})}}};e.default=u}).call(this,n("543d")["default"])},a68d:function(t,e,n){"use strict";n.r(e);var i=n("2612"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},ae7b:function(t,e,n){"use strict";n.r(e);var i=n("f283"),a=n("0c2d");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("7ef2");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"c78abe74",null,!1,i["a"],void 0);e["default"]=r.exports},c335:function(t,e,n){},cc8b:function(t,e,n){},da74:function(t,e,n){},ddea:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("8886");i(n("66fd"));var a=i(n("6f99"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},e24d:function(t,e,n){"use strict";n.r(e);var i=n("280b"),a=n("307e");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("edd0");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"60aa7e80",null,!1,i["a"],void 0);e["default"]=r.exports},edc7:function(t,e,n){"use strict";n.r(e);var i=n("9f51"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},edd0:function(t,e,n){"use strict";var i=n("7643"),a=n.n(i);a.a},f283:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var i={uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},c=[]}},[["ddea","common/runtime","common/vendor"]]]); |