crm_second_opening_mini/pagesA/punchclock/index.js

1 line
13 KiB
JavaScript
Raw Normal View History

2023-03-13 01:13:08 +00:00
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.normalLi