(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-498bec46"],{"0ebb":function(t,e,n){"use strict";n("76a3")},"76a3":function(t,e,n){},"7c6c":function(t,e,n){"use strict";n.r(e);n("f4b3"),n("e9c4");var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container",attrs:{id:"app"}},[e("van-nav-bar",{attrs:{title:"打卡记录"}}),e("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无记录"}}),e("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadAttendanceList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t.punchRecords.length>0?e("van-cell-group",{attrs:{title:"打卡记录"}},t._l(t.punchRecords,(function(n,a){return e("van-cell",{key:a,attrs:{value:n.site_name+"-"+t.room_type_menu[n.room_type],title:new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(1e3*n.clock_time))}})})),1):t._e()],1),e("van-popup",{attrs:{closeable:"",position:"top"},model:{value:t.addCheckShow,callback:function(e){t.addCheckShow=e},expression:"addCheckShow"}},[e("div",{staticClass:"text-center leading-10 text-lg"},[t._v("打卡")]),e("UploadList",{attrs:{value:t.jsonArray(t.checkForm.pictures)},on:{input:function(e){t.$set(t.checkForm,"pictures",JSON.stringify(e))}}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:function(e){return t.saveAttendanceRequest()}}},[t._v("提交")])],1)],1)},i=[],o=n("ade3"),c=(n("1f87"),n("510b")),r=(n("4d48"),n("d1e1")),s=(n("81e6"),n("9ffb")),d=(n("99af"),n("4de4"),n("d3b7"),n("05d8")),h=n("8b57"),u=n("8941"),l={components:Object(o["a"])(Object(o["a"])(Object(o["a"])({UploadList:u["a"]},s["a"].name,s["a"]),r["a"].name,r["a"]),c["a"].name,c["a"]),data:function(){return{finished:!1,addCheckShow:!1,loading:!1,error:!1,page:1,state:0,checkForm:{},showEmpty:!1,clockInTimes:[],punchRecords:[],room_type_menu:{0:"开工",1:"拆改",2:"水电",3:"泥工",4:"防水",5:"木工",6:"刮瓷",7:"工程款",8:"安全",9:"主材验收",10:"交房"}}},created:function(){},computed:{todayItems:function(){var t=new Date,e=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=e+864e5;return this.punchRecords.filter((function(t){return 1e3*t.clock_time>=e&&1e3*t.clock_time