mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp_smart-attendance"]=window["webpackJsonp_smart-attendance"]||[]).push([["chunk-59205be8"],{"3ae9":function(t,e,n){"use strict";var a=n("f210"),r=n.n(a);r.a},"47b6":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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}},[n("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)},r=[],i=(n("d3b7"),n("4ae1"),n("25f0"),n("276c")),o=n("e954"),c=n("920b"),s=n("e1a7"),l=n("f20d"),u=n("9ab4"),d=n("48b1"),f=n("60a3");function p(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 n,a=Object(l["a"])(t);if(e()){var r=Object(l["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(s["a"])(this,n)}}var h=function(t){Object(c["a"])(n,t);var e=p(n);function n(){var t;return Object(i["a"])(this,n),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(o["a"])(n,[{key:"getDetail",value:function(t,e){}},{key:"submitFrom",value:function(){var t=this;this.cwform.validate().then((function(e){var n="api/report/attend/correction";t.$ajax(n,{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:{}}]}}]),n}(Object(f["c"])(Object(d["a"])()));Object(u["a"])([Object(f["g"])()],h.prototype,"cwform",void 0),h=Object(u["a"])([f["a"]],h);var b=h,y=b,m=n("2877"),v=Object(m["a"])(y,a,r,!1,null,null,null);e["a"]=v.exports},"48b1":function(t,e,n){"use strict";n("4160"),n("d3b7"),n("4ae1"),n("25f0"),n("3ca3"),n("159b"),n("ddb0");var a=n("f3f3"),r=(n("96cf"),n("c964")),i=n("276c"),o=n("e954"),c=n("2c4c"),s=n("920b"),l=n("e1a7"),u=n("f20d"),d=n("9ab4"),f=n("a53c"),p=n("144b"),h=n("3c4e"),b=n.n(h),y=n("60a3");function m(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 n,a=Object(u["a"])(t);if(e()){var r=Object(u["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(l["a"])(this,n)}}var v=function(t,e,n){return e},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,n=void 0===e?"infoModal":e,c=t.getDetail,l=void 0===c?"getDetail":c,u=t.addList,f=void 0===u?"addList":u,h=t.changeData,O=void 0===h?"changeData":h,j=function(t){Object(s["a"])(c,t);var e=m(c);function c(){var t;return Object(i["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(o["a"])(c,[{key:"mounted",value:function(){this.oldList=Object(a["a"])({},this[f])}},{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(r["a"])(regeneratorRuntime.mark((function t(){var e,a,r,i,o,c,s=this,u=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=u.length>0&&void 0!==u[0]?u[0]:{},a=u.length>1&&void 0!==u[1]?u[1]:{},r=u.length>2?u[2]:void 0,this.mixinHidden=r,i=Object.assign({cover:!0},e),this.ops=i,o=this[O]?this[O](a,i):a,this.addList=i.cover?b()(this.oldList,o,{arrayMerge:v}):b()(this.oldList,o),this.$nextTick((function(){s[l]&&s[l](s.addList,i)})),this.dealOther&&this.dealOther(this.addList,i),c=this.$refs[n],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[n];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),c}(y["h"]);return Object(d["a"])([Object(y["i"])("loading")],j.prototype,"loadingChange",null),j=Object(d["a"])([Object(y["a"])({components:{CwModal:p["a"]}})],j),j};function j(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 n,a=Object(u["a"])(t);if(e()){var r=Object(u["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(l["a"])(this,n)}}e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({modal:"infoModal"},t),n=e.modal,l=void 0===n?"infoModal":n,u=e.form,p=void 0===u?"cwform":u,h=e.formItems,b=void 0===h?"formItems":h,m=function(){var t={};return"string"===typeof b?t[b]=function(t){this.delPlaceholderData(t)}:Array.isArray(b)&&b.forEach((function(e){t[e]=function(t){this.delPlaceholderData(t)}})),t},v=function(t){Object(s["a"])(n,t);var e=j(n);function n(){var t;return Object(i["a"])(this,n),t=e.apply(this,arguments),t.p1=Object(c["a"])(t),t.ops={},t.formAttrsW={},t}return Object(o["a"])(n,[{key:"dealOther",value:function(){var t=this;this.typeObj.view&&(this.showFooter=!1),"string"===typeof b?this.delPlaceholder(b):Array.isArray(b)&&b.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(r["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=this.$refs[e],t.next=4,n&&n.validate();case 4:return a=t.sent,t.abrupt("return",a);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(p)){var e=[];return p.forEach((function(n){e.push(t.validateForm(n))})),Promise.all(e)}return this.validateForm(p)}},{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(p)?p.forEach((function(e){var n=t.$refs[e];n&&n.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(a["a"])({disabled:this.typeObj.view,inline:!1},this.formAttrsW||{})}}]),n}(Object(y["c"])(O(Object(a["a"])({},e))));return Object(d["a"])([Object(y["f"])("p")],v.prototype,"p1",void 0),Object(d["a"])([Object(y["b"])({default:{}})],v.prototype,"p",void 0),Object(d["a"])([Object(y["g"])(l)],v.prototype,"modalRef",void 0),Object(d["a"])([Object(y["g"])(p)],v.prototype,"formRef",void 0),v=Object(d["a"])([Object(y["a"])({components:{CwForm:f["a"]},watch:Object(a["a"])({},m())})],v),v}},"64dd":function(t,e,n){"use strict";var a=n("7d9c"),r=n.n(a);r.a},"6a9f":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("DayStatisticsMine",{attrs:{isMine:""}})},r=[],i=(n("d3b7"),n("4ae1"),n("25f0"),n("276c")),o=n("920b"),c=n("e1a7"),s=n("f20d"),l=n("9ab4"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CwMainLayout",{staticClass:"day-statistics",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[n("CwHeaderLayout",{scopedSlots:t._u([{key:"op",fn:function(){return[n("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])},[n("HeadText",{attrs:{text:"我的日报表",hidden:t.isMine}},[n("CwSearchForm",{attrs:{formItems:t.formItems,options:t.options,ruleForm:t.searchList}})],1)],1)]},proxy:!0}])},[n("InTable",{attrs:{query:t.searchList,data:t.tableData,columns:t.columns,paginationAttrs:t.paginationAttrs},on:{selectd:t.selectd,"pagination-change":function(e){return t.getList(!1)}},scopedSlots:t._u([{key:"endStatus",fn:function(e){var a=e.row;return[a.endStatusObj.label?n("DataIcon",{attrs:{type:a.endStatusIsNormal?"default":"danger",label:a.endStatusObj.label,hiddenIcon:a.initStatusIsNormal||!a.endStatusIsNormal},on:{iconClick:function(e){return t.viewClick({row:a})}}}):n("span",[t._v("-")])]}}])}),n("AddEdit",{key:t.modalKey,ref:"addEdit",on:{getList:function(e){return t.getList(!0)}}})],1)},d=[],f=(n("99af"),n("d0ff")),p=n("f3f3"),h=(n("96cf"),n("c964")),b=n("e954"),y=n("4d8e"),m=n("eb9a"),v=n("3782"),O=n("881d"),j=n("13de"),g=n("47b6"),w=n("60a3");function x(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 n,a=Object(s["a"])(t);if(e()){var r=Object(s["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c["a"])(this,n)}}var k=function(t){Object(o["a"])(n,t);var e=x(n);function n(){var t;return Object(i["a"])(this,n),t=e.apply(this,arguments),t.tableData=[],t.searchList={timeRange:[t.GFinitDay(1,{type:"month"})[0],Date.now()],state:"",initStatus:""},t.options={state:t.GFgetTypeConfig("ATTEND_NEW_STATUS",{type:"select"}),initStatus:t.GFgetTypeConfig("ATTEND_NEW_STATUS",{type:"select"})},t}return Object(b["a"])(n,[{key:"created",value:function(){this.getList(),this.isMine||this.getOrgIds()}},{key:"getData",value:function(){var t=Object(h["a"])(regeneratorRuntime.mark((function t(e){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v["a"].dayAttend(e,{isMine:this.isMine,_this:this,loading:"loading"});case 2:n=t.sent,a=n.total,r=n.datas,this.paginationAttrs.total=a,this.tableData=r;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"abnormalClick",value:function(t){var e=t.row;this.addEdit.showModal({title:"修正异常",type:"edit"},e)}},{key:"viewClick",value:function(t){var e=t.row,n=Object(p["a"])({},e,{correctTime:this.GFdateFormat(e.correctTime)});this.addEdit.showModal({title:"修正记录",type:"view"},n)}},{key:"exportClick",value:function(){v["a"].dayExport(this.searchList,{isMine:this.isMine})}},{key:"opItems",get:function(){return[{type:"button",command:"export",label:"导出",btnAttrs:{type:"primary"}}]}},{key:"formItems",get:function(){var t=this.isMine;return[{type:"selectday",name:"timeRange",hidden:t,itemAttrs:{label:""},colAttrs:{style:"width:auto"},contentAttrs:{disabledDateStart:365}},{type:"selectday",name:"timeRange",hidden:!t,itemAttrs:{label:""},colAttrs:{style:"width:auto"},contentAttrs:{disabledDateStart:365,disabledEndLength:180,disabledStartLength:180,items:[{label:7,text:"最近7天"},{label:30,text:"最近30天"},{label:180,text:"最近180天"}]}}].concat(Object(f["a"])(t?[]:this.deviceFormItems),[{type:"select",name:"initStatus",itemAttrs:{label:"初始状态"},contentAttrs:{clearable:!0,placeholder:"全部初始状态"}},{type:"select",name:"state",itemAttrs:{label:"最终状态"},contentAttrs:{clearable:!0,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",width:100,column:{prop:"orgName",label:"组织","show-overflow-tooltip":!0}},{type:"text",width:100,column:{prop:"ruleName",label:"考勤规则名称","show-overflow-tooltip":!0}},{type:"text",hidden:this.isMine,column:{prop:"labelNamesStr",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:"text",name:"endStatus",column:{label:"最终状态"}},{type:"actions",column:{width:"100"},actions:function(t){return[{type:"button",hidden:t.initStatusIsNormal||t.endStatusIsNormal||t.isNowDay,label:"修正异常",command:"abnormal"}]}}]}}]),n}(Object(w["c"])(Object(y["tableMixin"])(),Object(m["a"])({name:"searchList",byLoginUser:!0,isGetOrgId:!1,label:!1})));Object(l["a"])([Object(w["e"])({default:!1,type:Boolean})],k.prototype,"isMine",void 0),Object(l["a"])([Object(w["g"])()],k.prototype,"addEdit",void 0),k=Object(l["a"])([Object(w["a"])({components:{HeadText:j["a"],DataIcon:O["a"],AddEdit:g["a"]}})],k);var A=k,R=A,S=(n("64dd"),n("2877")),D=Object(S["a"])(R,u,d,!1,null,"5d9b5801",null),L=D.exports;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 n,a=Object(s["a"])(t);if(e()){var r=Object(s["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c["a"])(this,n)}}var M=function(t){Object(o["a"])(n,t);var e=F(n);function n(){return Object(i["a"])(this,n),e.apply(this,arguments)}return n}(w["h"]);M=Object(l["a"])([Object(w["a"])({components:{DayStatisticsMine:L}})],M);var C=M,I=C,T=(n("3ae9"),Object(S["a"])(I,a,r,!1,null,"4eac58d8",null));e["default"]=T.exports},"7d9c":function(t,e,n){},"881d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"data-icon"},[n("span",{class:["text-"+t.type]},[t._v(t._s(t.label))]),t.hiddenIcon?t._e():n("i",{staticClass:"icon",class:[t.icon],on:{click:function(e){return t.$emit("iconClick",e)}}})])},r=[],i=(n("a9e3"),n("d3b7"),n("4ae1"),n("25f0"),n("276c")),o=n("920b"),c=n("e1a7"),s=n("f20d"),l=n("9ab4"),u=n("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 n,a=Object(s["a"])(t);if(e()){var r=Object(s["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(c["a"])(this,n)}}var f=function(t){Object(o["a"])(n,t);var e=d(n);function n(){return Object(i["a"])(this,n),e.apply(this,arguments)}return n}(u["h"]);Object(l["a"])([Object(u["e"])({default:"",type:[String,Number]})],f.prototype,"label",void 0),Object(l["a"])([Object(u["e"])({default:"-",type:[String,Number]})],f.prototype,"defaultLable",void 0),Object(l["a"])([Object(u["e"])({default:"el-icon-question",type:String})],f.prototype,"icon",void 0),Object(l["a"])([Object(u["e"])({default:"default",type:String})],f.prototype,"type",void 0),Object(l["a"])([Object(u["e"])({default:!1,type:Boolean})],f.prototype,"hiddenIcon",void 0),f=Object(l["a"])([u["a"]],f);var p=f,h=p,b=(n("b2cf"),n("2877")),y=Object(b["a"])(h,a,r,!1,null,"12178303",null);e["a"]=y.exports},b2cf:function(t,e,n){"use strict";var a=n("dfa7"),r=n.n(a);r.a},dfa7:function(t,e,n){},f210:function(t,e,n){}}]); |