mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window["webpackJsonp_smart-attendance"]=window["webpackJsonp_smart-attendance"]||[]).push([["chunk-c614930c"],{3782:function(t,e,r){"use strict";r("99af"),r("4160"),r("a15b"),r("d3b7"),r("4ae1"),r("25f0"),r("159b");var n=r("f3f3"),a=(r("96cf"),r("c964")),o=r("276c"),i=r("e954"),c=r("2c4c"),s=r("920b"),u=r("e1a7"),l=r("f20d"),d=r("fc11"),p=r("2ff6");function f(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var h={dayAttend:"/api/report/attend/detail",dayAttendMine:"/api/report/attend/detail/self",monthAttend:"/api/report/attend/statistical",monthAttendMine:"/api/report/attend/statistical/self",record:"/api/report/attend/record",dayExport:"/api/report/attend/detail/export",dayExportMine:"/api/report/attend/detail/export/self",monthExport:"/api/report/attend/statistical/export",monthExportMine:"/api/report/attend/statistical/export/self"},y=function(t){Object(s["a"])(r,t);var e=f(r);function r(){var t;Object(o["a"])(this,r);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=e.call.apply(e,[this].concat(a)),Object(d["a"])(Object(c["a"])(t),"RULE_TYPE",t.GFgetTypeConfig("RULE_TYPE_REPORT",{type:"colorText"})),Object(d["a"])(Object(c["a"])(t),"ATTEND_NEW_INIT_STATUS",t.GFgetTypeConfig("ATTEND_NEW_INIT_STATUS",{type:"colorText"})),Object(d["a"])(Object(c["a"])(t),"ATTEND_NEW_INIT_STATUS_NAME",t.GFgetTypeConfig("ATTEND_NEW_INIT_STATUS",{type:"name"})),Object(d["a"])(Object(c["a"])(t),"ATTEND_NEW_END_STATUS",t.GFgetTypeConfig("ATTEND_NEW_END_STATUS",{type:"colorText"})),Object(d["a"])(Object(c["a"])(t),"ATTEND_NEW_END_STATUS_NAME",t.GFgetTypeConfig("ATTEND_NEW_END_STATUS",{type:"name"})),t}return Object(i["a"])(r,[{key:"mineEntry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=n.type,o=void 0===a?"day":a,i=e.isMine,c={};return i?(delete t.orgIds,delete t.personIds,c.url=r[1],"month"===o&&(delete t.currentPage,delete t.rowsOfPage)):c.url=r[0],delete e.isMine,c}},{key:"dayAttend",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,o,i,c,s=this,u=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:{},r=u.length>1&&void 0!==u[1]?u[1]:{},a=Object.assign(e,{}),o=this.mineEntry(a,r,[h.dayAttend,h.dayAttendMine],{type:"day"}),t.next=6,this.$ajax(o.url,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 6:return i=t.sent,c=this.GFdateFormat(new Date,"YYYY-MM-DD"),t.abrupt("return",this.rPage(i.data,(function(t){var e,r=s.GFdateFormat(t.attDay,"YYYY-MM-DD")===c,n=t.ruleStartWorkTime&&t.ruleEndWorkTime;return{attendDay:t.attDay,ruleTypeObj:s.RULE_TYPE[t.ruleType],initStatusObj:s.ATTEND_NEW_INIT_STATUS[t.initStatus],endStatusObj:r?{}:s.ATTEND_NEW_END_STATUS[t.endStatus],endStatusIsNormal:t.endStatus===s.ATTEND_NEW_END_STATUS_NAME["NORMAL"].value,initStatusIsNormal:t.initStatus===s.ATTEND_NEW_INIT_STATUS_NAME["NORMAL"].value,startWorkTimeStr:t.startWorkTime&&s.isSameDayStr(t.attDay,t.startWorkTime)+s.GFdateFormat(t.startWorkTime,"HH:mm"),endWorkTimeStr:t.endWorkTime&&s.isSameDayStr(t.attDay,t.endWorkTime)+s.GFdateFormat(t.endWorkTime,"HH:mm"),ruleWorkTimeStr:n&&"".concat(t.ruleStartWorkTime&&s.isSameDayStr(t.attDay,t.ruleStartWorkTime)," ").concat(s.GFdateFormat(t.ruleStartWorkTime,"HH:mm")||""," -").concat(t.ruleEndWorkTime&&s.isSameDayStr(t.attDay,t.ruleEndWorkTime)," ").concat(s.GFdateFormat(t.ruleEndWorkTime,"HH:mm")||""),isNowDay:r,labelNamesStr:null===(e=t.labelNames)||void 0===e?void 0:e.join(",")}})));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"isSameDayStr",value:function(t,e){return e&&t&&this.GFdateFormat(t,"DD")!==this.GFdateFormat(e,"DD")?"次日":""}},{key:"monthAttend",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,o,i,c,s=this,u=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:{},r=u.length>1&&void 0!==u[1]?u[1]:{},a=Object.assign(e,{}),o=r.isMine,i=this.mineEntry(a,r,[h.monthAttend,h.monthAttendMine],{type:"month"}),t.next=7,this.$ajax(i.url,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 7:if(c=t.sent,!o){t.next=12;break}return t.abrupt("return",{isMine:o,total:0,datas:this.rQuery(c.data,(function(t){return{ruleTypeObj:s.RULE_TYPE[t.ruleType]}}))});case 12:return t.abrupt("return",this.rPage(c.data,(function(t){var e;return{ruleTypeObj:s.RULE_TYPE[t.ruleType],labelNamesStr:null===(e=t.labelNames)||void 0===e?void 0:e.join(",")}})));case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"record",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,o,i,c,s,u=this,l=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:{},r=l.length>1&&void 0!==l[1]?l[1]:{},a=Object.assign(e,{}),t.next=5,this.$ajax(h.record,a,Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}}));case 5:return o=t.sent,i=this.rQuery(o.data,(function(t){return{attendDayStr:u.GFdateFormat(t.attendDay,"YYYY-MM-DD")}})),c=[],s=[],i.forEach((function(t){c.push(t.attendDayStr),s.push(t.abnormal)})),t.abrupt("return",{xAxis:c.reverse(),datas:i,yData:s.reverse()});case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"dayExport",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,o,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign(e,{}),o=this.mineEntry(a,r,[h.dayExport,h.dayExportMine],{type:"day"}),t.abrupt("return",this.rExportPrompt({url:o.url,data:a,options:Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}})},{message:"最多导出10000条,确定导出吗?"}));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"monthExport",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,r,a,o,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign(e,{}),o=this.mineEntry(a,r,[h.monthExport,h.monthExportMine],{type:"month"}),t.abrupt("return",this.rExportPrompt({url:o.url,data:a,options:Object(n["a"])({},r,{addTime:{start:"startDay",end:"endDay"}})},{message:"最多导出10000条,确定导出吗?"}));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(p["a"]);e["a"]=new y},"47b6":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwModal",{ref:"infoModal",staticClass:"picture-modal",class:{add_modal:t.typeObj.add},attrs:{width:"400px",title:t.ops.title,submitLoading:t.loading,showFooter:!t.typeObj.view},on:{confirm:t.submitFrom,closes:t.close}},[r("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)},a=[],o=(r("d3b7"),r("4ae1"),r("25f0"),r("276c")),i=r("e954"),c=r("920b"),s=r("e1a7"),u=r("f20d"),l=r("9ab4"),d=r("48b1"),p=r("60a3");function f(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(s["a"])(this,r)}}var h=function(t){Object(c["a"])(r,t);var e=f(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.addList={reason:null,correctTime:"2019-02-05",id:""},t.options={reason:t.GFgetTypeConfig("SPECIAL_CAUSE",{type:"select"})},t}return Object(i["a"])(r,[{key:"getDetail",value:function(t,e){}},{key:"submitFrom",value:function(){var t=this;this.cwform.validate().then((function(e){var r="api/report/attend/correction";t.$ajax(r,{id:t.addList.id,reason:t.addList.reason},{loading:"loading"}).then((function(){t.closeModal()}))}))}},{key:"rules",get:function(){return{reason:[{required:!0,message:"请选择异常原因",trigger:"change"}]}}},{key:"formItems",get:function(){return[{type:"select",name:"reason",itemAttrs:{label:"异常原因"},contentAttrs:{placeholder:"请选异常原因"}},{type:"text",hidden:!this.typeObj.view,name:"correctTime",itemAttrs:{label:"修正时间"},contentAttrs:{}}]}}]),r}(Object(p["c"])(Object(d["a"])()));Object(l["a"])([Object(p["g"])()],h.prototype,"cwform",void 0),h=Object(l["a"])([p["a"]],h);var y=h,m=y,b=r("2877"),v=Object(b["a"])(m,n,a,!1,null,null,null);e["a"]=v.exports},"48b1":function(t,e,r){"use strict";r("4160"),r("d3b7"),r("4ae1"),r("25f0"),r("3ca3"),r("159b"),r("ddb0");var n=r("f3f3"),a=(r("96cf"),r("c964")),o=r("276c"),i=r("e954"),c=r("2c4c"),s=r("920b"),u=r("e1a7"),l=r("f20d"),d=r("9ab4"),p=r("a53c"),f=r("144b"),h=r("3c4e"),y=r.n(h),m=r("60a3");function b(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var v=function(t,e,r){return e},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,r=void 0===e?"infoModal":e,c=t.getDetail,u=void 0===c?"getDetail":c,l=t.addList,p=void 0===l?"addList":l,h=t.changeData,j=void 0===h?"changeData":h,O=function(t){Object(s["a"])(c,t);var e=b(c);function c(){var t;return Object(o["a"])(this,c),t=e.apply(this,arguments),t.loading=!1,t.ops={},t.oldList={},t.addList={},t.showFooter=!0,t.mixinHidden=null,t}return Object(i["a"])(c,[{key:"mounted",value:function(){this.oldList=Object(n["a"])({},this[p])}},{key:"loadingChange",value:function(t){this.$emit("update:loading",t),this.$emit("loading",t)}},{key:"dealOther",value:function(t,e){}},{key:"showModal",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,o,i,c,s=this,l=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:{},n=l.length>1&&void 0!==l[1]?l[1]:{},a=l.length>2?l[2]:void 0,this.mixinHidden=a,o=Object.assign({cover:!0},e),this.ops=o,i=this[j]?this[j](n,o):n,this.addList=o.cover?y()(this.oldList,i,{arrayMerge:v}):y()(this.oldList,i),this.$nextTick((function(){s[u]&&s[u](s.addList,o)})),this.dealOther&&this.dealOther(this.addList,o),c=this.$refs[r],c&&c.show();case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"closeModal",value:function(){var t=this,e=this.$refs[r];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),c}(m["h"]);return Object(d["a"])([Object(m["i"])("loading")],O.prototype,"loadingChange",null),O=Object(d["a"])([Object(m["a"])({components:{CwModal:f["a"]}})],O),O};function O(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({modal:"infoModal"},t),r=e.modal,u=void 0===r?"infoModal":r,l=e.form,f=void 0===l?"cwform":l,h=e.formItems,y=void 0===h?"formItems":h,b=function(){var t={};return"string"===typeof y?t[y]=function(t){this.delPlaceholderData(t)}:Array.isArray(y)&&y.forEach((function(e){t[e]=function(t){this.delPlaceholderData(t)}})),t},v=function(t){Object(s["a"])(r,t);var e=O(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.p1=Object(c["a"])(t),t.ops={},t.formAttrsW={},t}return Object(i["a"])(r,[{key:"dealOther",value:function(){var t=this;this.typeObj.view&&(this.showFooter=!1),"string"===typeof y?this.delPlaceholder(y):Array.isArray(y)&&y.forEach((function(e){t.delPlaceholder(e)}))}},{key:"delPlaceholder",value:function(t){this[t]&&"view"===this.ops.type&&this[t].forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"delPlaceholderData",value:function(t){t&&"view"===this.ops.type&&t.forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"getData",value:function(t){return this.typeObj.add?t[0]:this.typeObj.edit?t[1]:this.typeObj.view?t[2]:void 0}},{key:"validateForm",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=this.$refs[e],t.next=4,r&&r.validate();case 4:return n=t.sent,t.abrupt("return",n);case 8:throw t.prev=8,t.t0=t["catch"](0),t.t0;case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"validateFormAll",value:function(){var t=this;if(Array.isArray(f)){var e=[];return f.forEach((function(r){e.push(t.validateForm(r))})),Promise.all(e)}return this.validateForm(f)}},{key:"closeModal",value:function(t){var e=this;this.modalRef.hide().then((function(){e.loading=!1,e.resetForm(),e.$emit("getList"),setTimeout((function(){e.mixinHidden&&e.mixinHidden()}),500),t&&t()}))}},{key:"close",value:function(){var t=this;setTimeout((function(){t.resetForm(),t.mixinHidden&&t.mixinHidden()}),500)}},{key:"resetForm",value:function(){var t=this;Array.isArray(f)?f.forEach((function(e){var r=t.$refs[e];r&&r.resetForm()})):this.formRef&&this.formRef.resetForm()}},{key:"typeObj",get:function(){var t=this.ops.type;return{add:"add"===t,edit:"edit"===t,view:"view"===t,o1:"o1"===t,o2:"o2"===t,o3:"o3"===t}}},{key:"formAttrs",get:function(){return Object(n["a"])({disabled:this.typeObj.view,inline:!1},this.formAttrsW||{})}}]),r}(Object(m["c"])(j(Object(n["a"])({},e))));return Object(d["a"])([Object(m["f"])("p")],v.prototype,"p1",void 0),Object(d["a"])([Object(m["b"])({default:{}})],v.prototype,"p",void 0),Object(d["a"])([Object(m["g"])(u)],v.prototype,"modalRef",void 0),Object(d["a"])([Object(m["g"])(f)],v.prototype,"formRef",void 0),v=Object(d["a"])([Object(m["a"])({components:{CwForm:p["a"]},watch:Object(n["a"])({},b())})],v),v}},"881d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"data-icon"},[r("span",{class:["text-"+t.type]},[t._v(t._s(t.label))]),t.hiddenIcon?t._e():r("i",{staticClass:"icon",class:[t.icon],on:{click:function(e){return t.$emit("iconClick",e)}}})])},a=[],o=(r("a9e3"),r("d3b7"),r("4ae1"),r("25f0"),r("276c")),i=r("920b"),c=r("e1a7"),s=r("f20d"),u=r("9ab4"),l=r("60a3");function d(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(s["a"])(t);if(e()){var a=Object(s["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(c["a"])(this,r)}}var p=function(t){Object(i["a"])(r,t);var e=d(r);function r(){return Object(o["a"])(this,r),e.apply(this,arguments)}return r}(l["h"]);Object(u["a"])([Object(l["e"])({default:"",type:[String,Number]})],p.prototype,"label",void 0),Object(u["a"])([Object(l["e"])({default:"-",type:[String,Number]})],p.prototype,"defaultLable",void 0),Object(u["a"])([Object(l["e"])({default:"el-icon-question",type:String})],p.prototype,"icon",void 0),Object(u["a"])([Object(l["e"])({default:"default",type:String})],p.prototype,"type",void 0),Object(u["a"])([Object(l["e"])({default:!1,type:Boolean})],p.prototype,"hiddenIcon",void 0),p=Object(u["a"])([l["a"]],p);var f=p,h=f,y=(r("b2cf"),r("2877")),m=Object(y["a"])(h,n,a,!1,null,"12178303",null);e["a"]=m.exports},a15b:function(t,e,r){"use strict";var n=r("23e7"),a=r("44ad"),o=r("fc6a"),i=r("a640"),c=[].join,s=a!=Object,u=i("join",",");n({target:"Array",proto:!0,forced:s||!u},{join:function(t){return c.call(o(this),void 0===t?",":t)}})},b2cf:function(t,e,r){"use strict";var n=r("dfa7"),a=r.n(n);a.a},dfa7:function(t,e,r){},e088:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwMainLayout",{scopedSlots:t._u([{key:"op-header",fn:function(){return[r("CwHeaderLayout",{attrs:{showHeaderBottomLine:!1},scopedSlots:t._u([{key:"op",fn:function(){return[t._v(" "+t._s(t.routerQUery.personName+"-"+t.routerQUery.attendMonth+"月打卡记录")+" ")]},proxy:!0},{key:"op-r",fn:function(){return[r("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])})]},proxy:!0}])},[r("InTable",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{query:t.searchList,data:t.tableData,columns:t.columns,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)}},scopedSlots:t._u([{key:"endStatus",fn:function(e){var n=e.row;return[r("DataIcon",{attrs:{type:n.endStatusIsNormal?"default":"danger",label:n.endStatusObj.label,hiddenIcon:n.initStatusIsNormal||!n.endStatusIsNormal},on:{iconClick:function(e){return t.viewClick({row:n})}}})]}}])}),r("AddEdit",{key:t.modalKey,ref:"addEdit"})],1)},a=[],o=(r("d3b7"),r("4ae1"),r("25f0"),r("f3f3")),i=(r("96cf"),r("c964")),c=r("276c"),s=r("e954"),u=r("920b"),l=r("e1a7"),d=r("f20d"),p=r("9ab4"),f=r("4d8e"),h=r("881d"),y=r("3782"),m=r("47b6"),b=r("60a3");function v(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(l["a"])(this,r)}}var j=function(t){Object(u["a"])(r,t);var e=v(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.tableData=[],t.routerQUery={},t.searchList={timeRange:[],state:""},t.options={state:t.GFgetTypeConfig("ATTEND_NEW_STATUS",{type:"select"})},t.NumberToChinise={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九",10:"十",11:"十一",12:"十二"},t}return Object(s["a"])(r,[{key:"mounted",value:function(){this.routerQUery=this.$route.query,this.routerQUery.timeRange&&this.routerQUery.personId&&this.routerQUery.personName&&this.routerQUery.attendMonth||this.$message({message:"参数不对",type:"error"}),this.searchList.timeRange=this.routerQUery.timeRange,this.searchList.personIds=[this.routerQUery.personId],this.getList()}},{key:"getData",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e){var r,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,y["a"].dayAttend(e,{_this:this,loading:"loading"});case 2:r=t.sent,n=r.total,a=r.datas,this.paginationAttrs.total=n,this.tableData=a;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"viewClick",value:function(t){var e=t.row,r=Object(o["a"])({},e,{correctTime:this.GFdateFormat(e.correctTime)});this.addEdit.showModal({title:"修正记录",type:"view"},r)}},{key:"exportClick",value:function(){y["a"].dayExport(this.searchList)}},{key:"opItems",get:function(){return[{type:"button",command:"export",label:"导出",btnAttrs:{type:"primary"}}]}},{key:"formItems",get:function(){return[{type:"selectday",name:"timeRange",itemAttrs:{label:""},colAttrs:{span:24},contentAttrs:{disabledDateStart:30}},{type:"select",name:"state",itemAttrs:{label:"状态"},contentAttrs:{placeholder:"请选择状态"}}]}},{key:"columns",get:function(){return[{type:"index"},{type:"text",column:{prop:"attendDay",label:"日期",width:100},filter:{name:"GLdateFormat",params:["date"]}},{type:"text",column:{prop:"personName",label:"姓名"}},{type:"text",column:{prop:"orgName",label:"组织"}},{type:"text",column:{prop:"ruleName",label:"考勤名称"}},{type:"text",column:{prop:"ruleTypeObj.label",label:"考勤类型"}},{type:"text",column:{prop:"ruleWorkTimeStr",label:"考勤时段"}},{type:"text",column:{prop:"startWorkTimeStr",label:"上班时间"}},{type:"text",column:{prop:"endWorkTimeStr",label:"下班时间"}},{type:"text",column:{prop:"workHours",label:"工作时长"}},{type:"text",column:{prop:"initStatusObj.label",label:"初始状态"}},{type:"slotColumn",name:"endStatus",column:{label:"最终状态"}},{type:"text",column:{label:"描述",prop:"reasonDesc"},other:{style:"color:#cc0000"}},{type:"text",column:{label:"加班时长",prop:"overTime"}}]}}]),r}(Object(b["c"])(Object(f["tableMixin"])()));Object(p["a"])([Object(b["g"])()],j.prototype,"addEdit",void 0),j=Object(p["a"])([Object(b["a"])({components:{DataIcon:h["a"],AddEdit:m["a"]}})],j);var O=j,g=O,T=r("2877"),D=Object(T["a"])(g,n,a,!1,null,null,null);e["default"]=D.exports}}]); |