Files
starRiverProperty/frontend/attendancepc/static/js/chunk-f056484a.25501063.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
47 KiB
JavaScript

(window["webpackJsonp_smart-attendance"]=window["webpackJsonp_smart-attendance"]||[]).push([["chunk-f056484a"],{"0b71":function(t,e,r){"use strict";var a=r("79cd"),n=r.n(a);n.a},"25eb":function(t,e,r){var a=r("23e7"),n=r("c20d");a({target:"Number",stat:!0,forced:Number.parseInt!=n},{parseInt:n})},"29fc":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwMainLayout",{staticClass:"cw-component-user",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[r("CwHeaderLayout",{scopedSlots:t._u([{key:"op",fn:function(){return[r("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])},[r("CwSearchForm",{attrs:{formItems:t.formItems,options:t.options,ruleForm:t.searchList}})],1)]},proxy:!0}])},[r("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)}}}),r("AddEdit",{key:t.modalKey,ref:"refAddEdit",on:{submitSuccess:t.getList}})],1)},n=[],i=(r("99af"),r("a15b"),r("d81d"),r("13d5"),r("a9e3"),r("25eb"),r("d3b7"),r("4ae1"),r("25f0"),r("f3f3")),o=(r("96cf"),r("c964")),s=r("d0ff"),c=r("276c"),l=r("e954"),u=r("920b"),d=r("e1a7"),p=r("f20d"),f=r("9ab4"),m=r("4d8e"),v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwModal",{ref:"infoModal",staticClass:"cw-addedit",class:{add_modal:t.typeObj.add},attrs:{width:"900px",title:t.ops.title,submitLoading:t.loading,showFooter:!1},on:{closes:t.close}},[r("el-steps",{attrs:{active:t.selectIndex-1,"align-center":""}},[r("el-step",{attrs:{title:"基础信息"}}),r("el-step",{attrs:{title:"考勤规则"}}),r("el-step",{attrs:{title:"选择人员"}}),r("el-step",{attrs:{title:"选择设备"}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:1===t.selectIndex,expression:"selectIndex === 1"}],staticClass:"form-wrap"},[r("Step1Content",{ref:"s1c",staticClass:"form-content",on:{typeChange:t.typeChange}}),r("div",{staticClass:"form-wrap-footer"},[r("el-button",{staticClass:"form-wrap-footer-cancel",on:{click:t.cancel}},[t._v("取消")]),r("el-button",{staticClass:"form-wrap-footer-next",attrs:{type:"primary"},on:{click:t.next}},[t._v("下一步")])],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:2===t.selectIndex,expression:"selectIndex === 2"}],staticClass:"form-wrap"},[r("el-tabs",{staticClass:"form-content",attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"节假日设置",name:"first"}},[r("Step2Calendar",{ref:"s2cl"})],1),r("el-tab-pane",{attrs:{label:"时间设置",name:"second"}},[r("Step2Content",{ref:"s2c",attrs:{type:t.type}})],1)],1),r("div",{staticClass:"form-wrap-footer",staticStyle:{"margin-top":"20px"}},[r("el-button",{staticClass:"form-wrap-footer-next",on:{click:t.previous}},[t._v("上一步")]),r("el-button",{staticClass:"form-wrap-footer-next",attrs:{type:"primary"},on:{click:t.next}},[t._v("下一步")])],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:3===t.selectIndex,expression:"selectIndex === 3"}],staticClass:"form-wrap"},[r("Step3Content",{ref:"s3c",staticClass:"form-content"}),r("div",{staticClass:"form-wrap-footer"},[r("el-button",{staticClass:"form-wrap-footer-next",on:{click:t.previous}},[t._v("上一步")]),r("el-button",{staticClass:"form-wrap-footer-next",attrs:{type:"primary"},on:{click:t.next}},[t._v("下一步")])],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:4===t.selectIndex,expression:"selectIndex === 4"}],staticClass:"form-wrap"},[r("Step4Content",{ref:"s4c",staticClass:"form-content"}),r("div",{staticClass:"form-wrap-footer"},[r("el-button",{staticClass:"form-wrap-footer-next",on:{click:t.previous}},[t._v("上一步")]),r("el-button",{staticClass:"form-wrap-footer-next",attrs:{type:"primary",loading:t.loading},on:{click:t.sendClick}},[t._v("完成")])],1)],1)],1)},h=[],b=(r("3ca3"),r("ddb0"),r("d0af")),y=r("48b1"),g=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"step1-content"},[r("CwForm",{ref:"cwform",attrs:{ruleForm:t.ruleForm,formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules}})],1)},O=[],j=(r("b0c0"),r("b64b"),r("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 r,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var w=function(t){Object(u["a"])(r,t);var e=x(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.ruleForm={name:"",type:void 0,remark:""},t.rules={name:[{required:!0,message:"请输入考勤名称",trigger:"blur"},{type:"string",min:1,max:30,message:"1-30个字符"}],type:[{required:!0,message:"请选择考勤类型",trigger:"blur"}]},t.options={type:t.GFgetTypeConfig("RULE_TYPE",{type:"select"})},t}return Object(l["a"])(r,[{key:"ruleFormTypeChange",value:function(t){this.$emit("typeChange",t)}},{key:"provideDataChange",value:function(t){if(0!==Object.keys(t).length){var e=t.name,r=t.type,a=t.remark;this.ruleForm={name:e,type:r,remark:a}}}},{key:"getSendData",value:function(){return this.cwform.validate()}},{key:"formItems",get:function(){return[{type:"input",name:"name",itemAttrs:{label:"考勤名称"},colAttrs:{offset:6,span:12},contentAttrs:{placeholder:"请输入考勤名称",maxlength:30}},{type:"select",name:"type",itemAttrs:{label:"考勤类型"},colAttrs:{offset:6,span:12},contentAttrs:{placeholder:"请选择考勤类型"}},{type:"input",name:"remark",itemAttrs:{label:"备注"},colAttrs:{offset:6,span:12},contentAttrs:{style:"width:100%",type:"textarea",rows:3,maxlength:255,placeholder:"备注最多255个字符"}}]}}]),r}(Object(j["c"])(Object(y["a"])()));Object(f["a"])([Object(j["b"])({default:function(){return{}}})],w.prototype,"provideData",void 0),Object(f["a"])([Object(j["g"])()],w.prototype,"cwform",void 0),Object(f["a"])([Object(j["i"])("ruleForm.type")],w.prototype,"ruleFormTypeChange",null),Object(f["a"])([Object(j["i"])("provideData.baseData",{immediate:!0})],w.prototype,"provideDataChange",null),w=Object(f["a"])([j["a"]],w);var k=w,D=k,C=r("2877"),T=Object(C["a"])(D,g,O,!1,null,"8ec9e15c",null),R=T.exports,A=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"step2-calendar"},[r("el-calendar",{staticClass:"add-edit",scopedSlots:t._u([{key:"dateCell",fn:function(e){e.date;var a=e.data;return[r("div",{staticStyle:{width:"100%",height:"50px"},on:{click:function(e){return t.switchHoliday(a)}}},[0!==t.getHolidayType(a)&&-1!==t.getHolidayType(a)?r("span",{staticStyle:{"background-color":"rgb(203,203,203)",color:"white","border-radius":"3px"}},[t._v(" 休 ")]):t._e(),0===t.getHolidayType(a)?r("span",{staticStyle:{"background-color":"rgb(242,38,53)",color:"white","border-radius":"3px"}},[t._v("班")]):t._e(),r("span",[t._v(" "+t._s(a.day.split("-").slice(2).join(""))+" ")])])]}}])}),t._m(0)],1)},L=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"remark"},[r("i",{staticClass:"el-icon-info",staticStyle:{color:"#0078d4"}}),t._v(" 系统默认法定节假日,单击日期可进行班/休切换 ")])}];r("a4d3"),r("e01a"),r("d28b"),r("c975"),r("a434"),r("ac1f"),r("1276");function _(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var I=function(t){Object(u["a"])(r,t);var e=_(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.holidays=[],t}return Object(l["a"])(r,[{key:"provideDataChange",value:function(t){0!==t.length&&(this.holidays=t)}},{key:"getHolidayType",value:function(t){var e=t.day.split("-").join(""),r=(t.day.split("-")[0],!0),a=!1,n=void 0;try{for(var i,o=this.holidays[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(s.holiday===e)return s.type}}catch(c){a=!0,n=c}finally{try{r||null==o.return||o.return()}finally{if(a)throw n}}return 0}},{key:"switchHoliday",value:function(t){var e=t.day.split("-").join(""),r=(t.day.split("-")[0],!0),a=!1,n=void 0;try{for(var i,o=this.holidays[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var c=i.value;if(c.holiday===e){var l=this.holidays.indexOf(c);return this.holidays.splice(l,1),void(this.holidays=Object(s["a"])(this.holidays))}}}catch(u){a=!0,n=u}finally{try{r||null==o.return||o.return()}finally{if(a)throw n}}this.holidays=[].concat(Object(s["a"])(this.holidays),[{holiday:e,type:3}])}},{key:"getSendData",value:function(){return this.holidays}}]),r}(j["h"]);Object(f["a"])([Object(j["b"])({default:function(){return{}}})],I.prototype,"provideData",void 0),Object(f["a"])([Object(j["i"])("provideData.holidays",{immediate:!0})],I.prototype,"provideDataChange",null),I=Object(f["a"])([j["a"]],I);var S=I,F=S,E=(r("9c75"),Object(C["a"])(F,A,L,!1,null,"23bca3cf",null)),P=E.exports,$=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"step2-content"},["STANDARD"===t.ruleTypeName?r("StandardAttendance",{ref:"temp"}):t._e(),"ELASTICITY"===t.ruleTypeName?r("FlexibleAttendance",{ref:"temp"}):t._e()],1)},N=[],M=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"standard-attendance"},[r("h3",{staticClass:"title"},[t._v("标准模式")]),r("div",{staticClass:"wrap"},t._l(t.listForm,(function(e,a){return r("FormItem",{key:e.id,ref:"cwFormItem",refInFor:!0,class:{"form-cls":a!==t.formLen-1},attrs:{formItems:t.formItems,rules:t.rules,ruleForm:e.ruleForm,hiddenAdd:1===t.status||4===t.status||a!==t.formLen-1,hiddenRemove:1===t.status||2===t.status||0===a,hiddenCollapse:2!==t.status,hiddenExpand:1!==t.status},on:{add:t.addClick,remove:function(r){return t.removeClick(a,e)},collapse:function(r){return t.collapseClick(a,e)},expand:function(r){return t.expandClick(a,e)}}})})),1),r("h3",{staticClass:"title"},[t._v("加班设置")]),r("OvertimeSetting",{ref:"overtime"})],1)},H=[],z=(r("4160"),r("159b"),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"form-item"},[r("div",{staticClass:"form-wrap cw-center"},[r("CwForm",t._b({ref:"cwform",attrs:{formAttrs:t.formAttrs,options:t.options}},"CwForm",t.$attrs,!1)),t.hiddenRemove?t._e():r("div",{staticClass:"form-inner-right"},[r("i",{staticClass:"el-icon-remove",on:{click:t.removeClick}})])],1),t.hiddenAdd?t._e():r("div",{staticClass:"addtime"},[r("el-button",{attrs:{type:"text"},on:{click:t.addTimeClick}},[t._v(" 增加时段 "),r("CwTip",{attrs:{label:"请合理设置适用时间段,只有在适用范围内才可以打卡,如果有多个时间段,则多个时间段不能重叠."}})],1)],1)])}),q=[],G=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("i",{staticClass:"cw-tip el-icon-question",attrs:{title:t.label}})},Y=[];function U(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var V=function(t){Object(u["a"])(r,t);var e=U(r);function r(){return Object(c["a"])(this,r),e.apply(this,arguments)}return r}(j["h"]);Object(f["a"])([Object(j["e"])({default:"",type:String})],V.prototype,"label",void 0),V=Object(f["a"])([j["a"]],V);var K=V,B=K,Q=(r("5402"),Object(C["a"])(B,G,Y,!1,null,"1ccf6522",null)),W=Q.exports;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 r,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var X=function(t){Object(u["a"])(r,t);var e=J(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.options=[],t.formAttrsW={"label-width":"130px"},t}return Object(l["a"])(r,[{key:"addTimeClick",value:function(){this.$emit("add")}},{key:"collapseClick",value:function(){this.$emit("collapse")}},{key:"expandClick",value:function(){this.$emit("expand")}},{key:"removeClick",value:function(){this.$emit("remove")}}]),r}(Object(j["c"])(Object(y["a"])()));Object(f["a"])([Object(j["e"])({default:!1,type:Boolean})],X.prototype,"hiddenAdd",void 0),Object(f["a"])([Object(j["e"])({default:!1,type:Boolean})],X.prototype,"hiddenRemove",void 0),Object(f["a"])([Object(j["e"])({default:!1,type:Boolean})],X.prototype,"hiddenCollapse",void 0),Object(f["a"])([Object(j["e"])({default:!1,type:Boolean})],X.prototype,"hiddenExpand",void 0),X=Object(f["a"])([Object(j["a"])({components:{CwTip:W}})],X);var Z=X,tt=Z,et=(r("f46b"),Object(C["a"])(tt,z,q,!1,null,"1cf4fc29",null)),rt=et.exports,at=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"overtime-setting"},[r("div",{staticClass:"wrap"},[r("el-checkbox",{model:{value:t.workday,callback:function(e){t.workday=e},expression:"workday"}},[t._v("允许工作日加班")]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.workday,expression:"workday"}],staticClass:"workday"},[r("div",{staticClass:"item"},[t._v(" 加班开始时间:下班后 "),r("el-input-number",{attrs:{size:"mini",min:0,max:1440,controls:!1},model:{value:t.addList.startOvertime,callback:function(e){t.$set(t.addList,"startOvertime",e)},expression:"addList.startOvertime"}}),t._v("分钟开始计算加班 ")],1),r("div",{staticClass:"item"},[t._v(" 最短加班时间:加班不足 "),r("el-input-number",{attrs:{size:"mini",min:1,max:1440,controls:!1},model:{value:t.addList.minOvertime,callback:function(e){t.$set(t.addList,"minOvertime",e)},expression:"addList.minOvertime"}}),t._v("分钟不算作加班 ")],1),r("div",{staticClass:"item"},[t._v(" 最长加班时间:单次加班时长最多记录 "),r("el-input-number",{attrs:{size:"mini",min:1,max:1440,controls:!1},model:{value:t.addList.maxOvertime,callback:function(e){t.$set(t.addList,"maxOvertime",e)},expression:"addList.maxOvertime"}}),t._v("分钟,超过后不再增加 ")],1)])],1),r("div",{staticClass:"wrap"},[r("el-checkbox",{model:{value:t.weekday,callback:function(e){t.weekday=e},expression:"weekday"}},[t._v("允许非工作日加班")]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.weekday,expression:"weekday"}],staticClass:"weekday"},[r("div",{staticClass:"item"},[t._v(" 最短加班时间: 加班不足 "),r("el-input-number",{attrs:{size:"mini",min:1,max:1440,controls:!1},model:{value:t.addList.dayoffMinOvertime,callback:function(e){t.$set(t.addList,"dayoffMinOvertime",e)},expression:"addList.dayoffMinOvertime"}}),t._v("分钟不算作加班 ")],1)])],1)])},nt=[];function it(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var ot=function(t){Object(u["a"])(r,t);var e=it(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.workday=!1,t.weekday=!1,t.addList={dayoffMinOvertime:1,startOvertime:30,minOvertime:1,maxOvertime:1440},t}return Object(l["a"])(r,[{key:"created",value:function(){this.provideData.isEdit||this.initForm()}},{key:"provideDataChange",value:function(t){if(0!==Object.keys(t).length)if(this.provideData.baseData.type===this.GFgetTypeConfig("RULE_TYPE",{getValue:"ELASTICITY"})&&this.provideData.isEdit)this.initForm();else{var e=t.allowDayoffOvertime,r=t.allowWorkingOvertime,a=t.dayoffMinOvertime,n=t.startOvertime,i=t.minOvertime,o=t.maxOvertime;this.weekday=!!e,this.workday=!!r,this.addList={dayoffMinOvertime:a,startOvertime:n,minOvertime:i,maxOvertime:o}}}},{key:"initForm",value:function(){this.addList=Object(i["a"])({},this.addList,{dayoffMinOvertime:1,startOvertime:30,minOvertime:1,maxOvertime:1440})}},{key:"validate",value:function(){var t=this;return new Promise((function(e,r){var a=!0,n="",i={allowDayoffOvertime:t.weekday?1:0,allowWorkingOvertime:t.workday?1:0};if(t.workday){var o=t.addList,s=o.startOvertime,c=o.minOvertime,l=o.maxOvertime;s&&c&&l?(Object.assign(i,{startOvertime:s,minOvertime:c,maxOvertime:l}),a=!0,s<0||s>1440?n="加班开始时间需要在0-1440之间":c<=0||c>1440?n="最短加班时间需要在1-1440之间":l<=0||l>1440?n="最长加班时间需要在1-1440之间":l<c&&(n="最长加班时间需要大于等于最短加班时间")):(n="请设置允许工作日加班的时间",a=!1)}if(t.weekday){var u=t.addList.dayoffMinOvertime;u?(Object.assign(i,{dayoffMinOvertime:u}),(u<=0||u>1440)&&(n="非工作日加班, 最短加班时间加班不足需要在1-1440之间"),a=!0):(n="请设置允许非工作日加班的时间",a=!1)}a?e(i):(t.$message({message:n,type:"error"}),r(n))}))}}]),r}(j["h"]);Object(f["a"])([Object(j["b"])({default:function(){return{}}})],ot.prototype,"provideData",void 0),Object(f["a"])([Object(j["i"])("provideData.baseData",{immediate:!0})],ot.prototype,"provideDataChange",null),ot=Object(f["a"])([j["a"]],ot);var st=ot,ct=st,lt=(r("84c4"),Object(C["a"])(ct,at,nt,!1,null,"76c47b15",null)),ut=lt.exports;function dt(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var pt=function(t){Object(u["a"])(r,t);var e=dt(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.status=2,t.options=[],t.rules={startworkTime:[{required:!0,message:"请选择上班时间",trigger:"blur"}],start:[{required:!0,message:"请选择试用开始时段",trigger:"blur"}],end:[{required:!0,message:"请选择试用结束时段",trigger:"blur"}],endworkTime:[{required:!0,message:"请选择下班时间",trigger:"blur"}],afterTime:[{required:!0,message:"请输入允许延后",trigger:"blur"},{type:"number",min:0,max:1440,message:"请输入0-1440的数字",trigger:"blur"}],beforeTime:[{required:!0,message:"请输入允许提前",trigger:"blur"},{type:"number",min:0,max:1440,message:"请输入0-1440的数字",trigger:"blur"}]},t.listForm=[],t}return Object(l["a"])(r,[{key:"created",value:function(){}},{key:"provideDataChange",value:function(t){var e=t.length;if(0===e||this.provideData.baseData.type===this.GFgetTypeConfig("RULE_TYPE",{getValue:"ELASTICITY"})&&this.provideData.isEdit)this.initForm();else{var r=[];if(t.forEach((function(t){var e=t.startworkTime,a=t.afterTime,n=t.endworkTime,i=t.beforeTime,o=t.startAdaptTime,s=t.endAdaptTime,c=t.sortValue;r.push({id:Math.random(),ruleForm:{sortValue:c,startworkTime:e,afterTime:a,endworkTime:n,beforeTime:i,start:o,end:s}})})),1===e){var a=Object(b["a"])(t,1),n=a[0],i=n.startAdaptTime,o=n.endAdaptTime;i&&o&&(this.status=2)}e>1&&(this.status=e>=3?4:3),this.listForm=r}}},{key:"initForm",value:function(){this.listForm=[{id:12222,ruleForm:{start:"06:00:00",end:"23:59:59",sortValue:0,startworkTime:"09:00:00",afterTime:5,endworkTime:"18:00:00",beforeTime:5}}]}},{key:"addClick",value:function(){this.listForm.push({id:Math.random(),ruleForm:{sortValue:this.listForm.length,startworkTime:void 0,afterTime:void 0,endworkTime:void 0,beforeTime:void 0}}),this.status=this.formLen>=3?4:3}},{key:"removeClick",value:function(t){this.listForm.splice(t,1),this.status=1===this.formLen?2:3}},{key:"collapseClick",value:function(t){this.status=1}},{key:"expandClick",value:function(t){this.status=2}},{key:"validate",value:function(){var t=this.cwFormItem.map((function(t){return t.validateForm("cwform")}));return t.push(this.overtime.validate()),Promise.all(t)}},{key:"resetForm",value:function(){this.cwFormItem.forEach((function(t){return t.resetForm()}))}},{key:"timeToNum",value:function(t){var e=t.split(":");return 3!==e.length?0:Number(60*e[0]*60+60*e[1]+Number(e[2]))}},{key:"timePlusDay",value:function(t,e){var r=this.timeToNum(e),a=this.timeToNum(t);return r>a?a+86400:a}},{key:"getSendData",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,o,s,c=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.cwFormItem.map((function(t){return t.validateForm("cwform")})),t.next=3,Promise.all(e);case 3:if(r=t.sent,a=!0,n=r[0].start,o=r.map((function(t,e){var o=c.timePlusDay(t.start,n),s=c.timePlusDay(t.startworkTime,n),l=c.timePlusDay(t.endworkTime,n),u=c.timePlusDay(t.end,n);if((s<=o||l<=s||u<=l)&&(a=!1,c.$message({message:"第".concat(e+1,"个上下班时间应该在适用时段内"),type:"error"})),e>=1){var d=r[e-1],p=(c.timePlusDay(d.start,n),c.timePlusDay(d.startworkTime,n),c.timePlusDay(d.endworkTime,n)),f=c.timePlusDay(d.end,n);(s<=f||p>=o)&&(a=!1,c.$message({message:"适用时间段与上下班时间有交叉",type:"error"}))}return Object(i["a"])({},t,{startAdaptTime:t.start,endAdaptTime:t.end})})),a){t.next=9;break}return t.abrupt("return",Promise.reject());case 9:return t.next=11,this.overtime.validate();case 11:return s=t.sent,t.abrupt("return",Object(i["a"])({schedulings:o},s));case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"formLen",get:function(){return this.listForm.length}},{key:"formItems",get:function(){return[{type:"timePicker",name:"startworkTime",colAttrs:{style:"width:380px;margin-rigth:80px;"},itemAttrs:{label:"上班时间"},contentAttrs:{"value-format":"HH:mm:ss",style:"width:200px;",placeholder:"请选择上班时间"}},{type:"inputNumber",name:"afterTime",itemAttrs:{label:"允许延后"},colAttrs:{span:10},contentAttrs:{controls:!1,style:"width:80px; margin-right:10px",min:0,max:1440},append:{text:"分"}},{type:"timePicker",name:"endworkTime",itemAttrs:{label:"下班时间"},colAttrs:{style:"width:380px;margin-rigth:80px;"},contentAttrs:{"value-format":"HH:mm:ss",style:"width:200px;",placeholder:"请选择下班时间"}},{type:"inputNumber",name:"beforeTime",itemAttrs:{label:"允许提前"},colAttrs:{span:10},contentAttrs:{controls:!1,style:"width:80px; margin-right:10px",min:0,max:1440},append:{text:"分"}},{type:"timePicker",name:"start",colAttrs:{style:"width:380px;margin-rigth:80px;"},itemAttrs:{label:"适用开始时段"},contentAttrs:{clearable:!1,"value-format":"HH:mm:ss",style:"width:200px;",placeholder:"请选择试用开始时段"}},{type:"timePicker",name:"end",colAttrs:{style:"width:380px;margin-rigth:80px;"},itemAttrs:{label:"适用结束时段"},contentAttrs:{clearable:!1,"value-format":"HH:mm:ss",style:"width:200px;",placeholder:"请选择试用结束时段"}}]}}]),r}(j["h"]);Object(f["a"])([Object(j["b"])({default:function(){return{}}})],pt.prototype,"provideData",void 0),Object(f["a"])([Object(j["g"])()],pt.prototype,"overtime",void 0),Object(f["a"])([Object(j["g"])()],pt.prototype,"cwFormItem",void 0),Object(f["a"])([Object(j["i"])("provideData.attendData",{immediate:!0})],pt.prototype,"provideDataChange",null),pt=Object(f["a"])([Object(j["a"])({components:{FormItem:rt,OvertimeSetting:ut}})],pt);var ft=pt,mt=ft,vt=(r("560f"),Object(C["a"])(mt,M,H,!1,null,"51459e76",null)),ht=vt.exports,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flexible-attendance"},[r("h3",{staticClass:"title"},[t._v("弹性考勤")]),r("CwForm",{ref:"cwform",attrs:{ruleForm:t.ruleForm,formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules}})],1)},yt=[];function gt(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var Ot=function(t){Object(u["a"])(r,t);var e=gt(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.ruleForm={standardTimeHour:8,standardTimeMin:5},t.rules={standardTimeHour:[{required:!0,message:"请输入标准时长小时",trigger:"blur"},{type:"number",min:0,max:23,message:"请输入0-23的数字",trigger:"blur"}],standardTimeMin:[{type:"number",min:0,max:59,message:"请输入0-59的数字",trigger:"blur"}]},t.options={type:t.GFgetTypeConfig("RULE_TYPE",{type:"select"})},t}return Object(l["a"])(r,[{key:"initForm",value:function(){this.ruleForm={standardTimeHour:8,standardTimeMin:5}}},{key:"provideDataChange",value:function(t){if(0===t.length||this.provideData.baseData.type===this.GFgetTypeConfig("RULE_TYPE",{getValue:"STANDARD"})&&this.provideData.isEdit)this.initForm();else{var e=t[0].standardTime;this.ruleForm={standardTimeHour:parseInt((e/60).toString(),10),standardTimeMin:e%60}}}},{key:"getSendData",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.formRef.validate();case 2:return e=t.sent,t.abrupt("return",{schedulings:[{standardTime:60*e.standardTimeHour+e.standardTimeMin}]});case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"formItems",get:function(){return[{type:"inputNumber",name:"standardTimeHour",itemAttrs:{label:"标准时长"},colAttrs:{style:"width:220px"},contentAttrs:{style:"width:60px;margin-right:10px",controls:!1,precision:0,min:0,max:23},append:{text:"小时"}},{type:"inputNumber",name:"standardTimeMin",itemAttrs:{label:"","label-width":"0"},colAttrs:{style:"width:200px"},contentAttrs:{style:"width:60px;margin-right:10px",controls:!1,min:0,max:59,precision:0},append:{text:"分钟"}}]}}]),r}(Object(j["c"])(Object(y["a"])()));Object(f["a"])([Object(j["b"])({default:function(){return{}}})],Ot.prototype,"provideData",void 0),Object(f["a"])([Object(j["i"])("provideData.attendData",{immediate:!0})],Ot.prototype,"provideDataChange",null),Ot=Object(f["a"])([j["a"]],Ot);var jt=Ot,xt=jt,wt=(r("0b71"),Object(C["a"])(xt,bt,yt,!1,null,"9b5fe8c6",null)),kt=wt.exports;function Dt(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var Ct=function(t){Object(u["a"])(r,t);var e=Dt(r);function r(){return Object(c["a"])(this,r),e.apply(this,arguments)}return Object(l["a"])(r,[{key:"getSendData",value:function(){return this.temp.getSendData()}},{key:"ruleTypeName",get:function(){return this.type?this.GFgetTypeConfig("RULE_TYPE")[this.type].NAME:""}}]),r}(j["h"]);Object(f["a"])([Object(j["e"])({default:null,type:[Number,String]})],Ct.prototype,"type",void 0),Object(f["a"])([Object(j["g"])()],Ct.prototype,"temp",void 0),Ct=Object(f["a"])([Object(j["a"])({components:{StandardAttendance:ht,FlexibleAttendance:kt}})],Ct);var Tt=Ct,Rt=Tt,At=Object(C["a"])(Rt,$,N,!1,null,"562aa432",null),Lt=At.exports,_t=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"step3-content"},[r("div",{staticClass:"step3-wrap"},[r("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)])},It=[],St=r("5de4");function Ft(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var Et=function(t){Object(u["a"])(r,t);var e=Ft(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.addList={includeOrganizations:[],includeLabels:[],excludeLabels:[]},t.options={includeOrganizations:[],includeLabels:[],excludeLabels:[]},t.rules={},t}return Object(l["a"])(r,[{key:"mounted",value:function(){this.getIncludeOrganizations(),this.getLables()}},{key:"getIncludeOrganizations",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,St["a"].list();case 2:e=t.sent,r=e.tree,this.options.includeOrganizations=r;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLables",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,St["a"].getAllLabels();case 2:e=t.sent,this.options.excludeLabels=e,this.options.includeLabels=e;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"includeOrganizationsChange",value:function(t){this.addList.includeOrganizations=t}},{key:"includeLabelsChange",value:function(t){this.addList.includeLabels=t}},{key:"excludeLabelsChange",value:function(t){this.addList.excludeLabels=t}},{key:"getSendData",value:function(){return Promise.resolve(this.addList)}},{key:"formItems",get:function(){return[{type:"cascader",name:"includeOrganizations",itemAttrs:{label:"包含机构"},contentAttrs:{placeholder:"请选择包含机构",style:"width:100%",props:{multiple:!0,checkStrictly:!0,emitPath:!1},"show-all-levels":!1,clearable:!0}},{type:"select",name:"includeLabels",itemAttrs:{label:"包含标签"},contentAttrs:{placeholder:"请选择包含标签",multiple:!0,clearable:!0}},{type:"select",name:"excludeLabels",itemAttrs:{label:"排除标签"},contentAttrs:{placeholder:"请选择排除标签",multiple:!0,clearable:!0}}]}}]),r}(Object(j["c"])(Object(y["a"])()));Object(f["a"])([Object(j["b"])({default:function(){return{}}})],Et.prototype,"provideData",void 0),Object(f["a"])([Object(j["i"])("provideData.includeOrganizations",{immediate:!0})],Et.prototype,"includeOrganizationsChange",null),Object(f["a"])([Object(j["i"])("provideData.includeLabels",{immediate:!0})],Et.prototype,"includeLabelsChange",null),Object(f["a"])([Object(j["i"])("provideData.excludeLabels",{immediate:!0})],Et.prototype,"excludeLabelsChange",null),Et=Object(f["a"])([Object(j["a"])({components:{}})],Et);var Pt=Et,$t=Pt,Nt=(r("769b"),Object(C["a"])($t,_t,It,!1,null,"3d3691b0",null)),Mt=Nt.exports,Ht=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"step4-content"},[r("DeviceSelect",{model:{value:t.selectDatas,callback:function(e){t.selectDatas=e},expression:"selectDatas"}})],1)},zt=[],qt=r("5b02");function Gt(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var Yt=function(t){Object(u["a"])(r,t);var e=Gt(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.selectDatas=[],t}return Object(l["a"])(r,[{key:"provideDataChange",value:function(t){this.selectDatas=t}},{key:"getSendData",value:function(){var t=this;return new Promise((function(e,r){0===t.selectDatas.length?(t.$message({message:"请选择设备",type:"info"}),r()):e(t.selectDatas.map((function(t){return t.id})))}))}}]),r}(j["h"]);Object(f["a"])([Object(j["b"])({default:function(){return{}}})],Yt.prototype,"provideData",void 0),Object(f["a"])([Object(j["i"])("provideData.deviceData",{immediate:!0})],Yt.prototype,"provideDataChange",null),Yt=Object(f["a"])([Object(j["a"])({components:{DeviceSelect:qt["a"]}})],Yt);var Ut=Yt,Vt=Ut,Kt=Object(C["a"])(Vt,Ht,zt,!1,null,"f2b4dad8",null),Bt=Kt.exports;function Qt(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var Wt=function(t){Object(u["a"])(r,t);var e=Qt(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.addList={ruleId:""},t.selectIndex=1,t.activeName="first",t.type="",t.setp2RuleForm={},t.provideData={isEdit:!1,baseData:{},holidays:[],includeOrganizations:[],includeLabels:[],excludeLabels:[],attendData:[],deviceData:[]},t.provideData1=t.provideData,t}return Object(l["a"])(r,[{key:"getDetail",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e,r){var a,n,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a="edit"===r.type,this.provideData.isEdit=a,a?(n=e.ruleId,this.$ajax("/api/attend/rule/info/get",{ruleId:n}).then((function(t){var e=t.data;o.provideData.baseData=e})),this.$ajax("/api/attend/rule/holiday/get",{ruleId:n}).then((function(t){var e=t.data;o.provideData.holidays=e})),this.$ajax("/api/attend/rule/scheduling/get",{ruleId:n}).then((function(t){var e=t.data;o.provideData.attendData=e})),this.$ajax("/api/attend/rule/org/get",{ruleId:n}).then((function(t){var e=t.data;o.provideData.includeOrganizations=e.map((function(t){return t.orgId}))})),this.$ajax("/api/attend/rule/label/get",{ruleId:n,type:1}).then((function(t){var e=t.data;o.provideData.includeLabels=e.map((function(t){return t.labelId}))})),this.$ajax("/api/attend/rule/label/get",{ruleId:n,type:2}).then((function(t){var e=t.data;o.provideData.excludeLabels=e.map((function(t){return t.labelId}))})),this.$ajax("/api/attend/rule/device/get",{ruleId:n}).then((function(t){var e=t.data;o.provideData.deviceData=e.map((function(t){return Object(i["a"])({},t,{id:t.deviceId,name:t.deviceName})}))}))):this.$ajax("/api/sys/holiday/list",{},{baseType:"ATTENDANCE"}).then((function(t){var e=t.data;o.provideData.holidays=e}));case 3:case"end":return t.stop()}}),t,this)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"typeChange",value:function(t){this.type=t}},{key:"next",value:function(){var t=this;this["s".concat(this.selectIndex,"c")].getSendData().then((function(e){t.selectIndex++}))}},{key:"previous",value:function(){this.selectIndex--}},{key:"cancel",value:function(){this.closeModal()}},{key:"sendClick",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,o,s,c,l,u,d,p,f=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([this.s1c.getSendData(),this.s2c.getSendData(),this.s2cl.getSendData(),this.s3c.getSendData(),this.s4c.getSendData()]);case 2:e=t.sent,r=Object(b["a"])(e,5),a=r[0],n=r[1],o=r[2],s=r[3],c=r[4],l=Object(i["a"])({},a,{},n,{},s,{deviceIds:c,holidays:o}),u=this.ops.type,d=this.addList.ruleId,p="add"===u?"/api/attend/rule/add":"/api/attend/rule/edit","edit"===u&&(l.id=d),this.$ajax(p,l,{loading:"loading"}).then((function(t){f.$emit("submitSuccess"),f.cancel()}));case 15:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(Object(j["c"])(Object(y["a"])()));Object(f["a"])([Object(j["g"])()],Wt.prototype,"s1c",void 0),Object(f["a"])([Object(j["g"])()],Wt.prototype,"s2c",void 0),Object(f["a"])([Object(j["g"])()],Wt.prototype,"s2cl",void 0),Object(f["a"])([Object(j["g"])()],Wt.prototype,"s3c",void 0),Object(f["a"])([Object(j["g"])()],Wt.prototype,"s4c",void 0),Object(f["a"])([Object(j["f"])("provideData")],Wt.prototype,"provideData1",void 0),Wt=Object(f["a"])([Object(j["a"])({components:{Step1Content:R,Step2Calendar:P,Step2Content:Lt,Step3Content:Mt,Step4Content:Bt}})],Wt);var Jt=Wt,Xt=Jt,Zt=(r("ad78"),Object(C["a"])(Xt,v,h,!1,null,"f80f2e2c",null)),te=Zt.exports;function ee(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,a=Object(p["a"])(t);if(e()){var n=Object(p["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(d["a"])(this,r)}}var re=function(t){Object(u["a"])(r,t);var e=ee(r);function r(){var t;return Object(c["a"])(this,r),t=e.apply(this,arguments),t.options={ruleType:[{label:"全部",value:void 0}].concat(Object(s["a"])(t.GFgetTypeConfig("RULE_TYPE",{type:"select"})))||[]},t.tableData=[],t.selectedArr=[],t.searchList={ruleName:"",ruleType:null},t}return Object(l["a"])(r,[{key:"created",value:function(){this.getList()}},{key:"getData",value:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,o,s,c=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=Object(i["a"])({},this.searchList),t.next=3,this.$ajax("/api/attend/rule/page",e,{loading:"loading"});case 3:r=t.sent,a=r.data,n=a.totalRows,o=a.datas,this.paginationAttrs.total=n,s=this.GFgetTypeConfig("RULE_TYPE"),this.tableData=o.map((function(t){var e,r;return Object(i["a"])({},t,{schedulingText:c.schedulingTextFormat(t,s),deviceNames:null===(e=t.deviceList)||void 0===e?void 0:e.map((function(t){return t.deviceName})).join(","),orgStr:null===(r=t.orgList)||void 0===r?void 0:r.map((function(t){return t.orgName})).join(",")})}));case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"schedulingTextFormat",value:function(t,e){var r="STANDARD"===e[t.type].NAME;if(r)return t.schedulingList.reduce((function(t,e){return(t&&t+", ")+e.startworkTime+"-"+e.endworkTime}),"");var a=t.schedulingList[0].standardTime;return"".concat(Number.parseInt((a/60).toString(),10),"小时").concat(a%60,"分钟")}},{key:"addClick",value:function(){this.refAddEdit.showModal({type:"add",title:"新增考勤规则"},{})}},{key:"editClick",value:function(t){var e=t.row.id;this.refAddEdit.showModal({type:"edit",title:"编辑考勤规则"},{ruleId:e})}},{key:"deleteClick",value:function(t){var e=this,r=t.row.id;this.GFdc({content:"删除规则后数据无法恢复,请确认是否删除?"}).then((function(){e.$ajax("/api/attend/rule/delete",{ids:[r]},{loading:"loading"}).then((function(t){var r=t.success;r&&e.getList()}))}))}},{key:"selectd",value:function(t){this.selectedArr=t}},{key:"formItems",get:function(){return[{type:"input",name:"ruleName",itemAttrs:{label:"规则名称"},contentAttrs:{placeholder:"请输入规则名称"}},{type:"select",name:"ruleType",itemAttrs:{label:"考勤类型"},contentAttrs:{placeholder:"请输入考勤类型"}}]}},{key:"opItems",get:function(){return[{type:"button",command:"add",label:"新增考勤规则",btnAttrs:{type:"primary"}}]}},{key:"columns",get:function(){return[{type:"index"},{type:"text",column:{prop:"name",label:"考勤规则名称"}},{type:"colorTextDot",column:{prop:"type",label:"考勤类型"},actions:this.GFgetTypeConfig("RULE_TYPE")},{type:"text",column:{"show-overflow-tooltip":!0,prop:"schedulingText",label:"考勤时段"}},{type:"text",column:{"show-overflow-tooltip":!0,prop:"orgStr",label:"绑定机构"}},{type:"text",column:{"show-overflow-tooltip":!0,prop:"deviceNames",label:"绑定设备"}},{type:"text",column:{"show-overflow-tooltip":!0,prop:"remark",label:"备注"}},{type:"text",column:{width:150,prop:"createTime",label:"创建时间"},filter:"GLdateFormat"},{type:"actions",column:{width:"130",label:"操作"},actions:[{type:"button",label:"编辑",command:"edit"},{type:"button",label:"删除",command:"delete"}]}]}}]),r}(Object(j["c"])(Object(m["tableMixin"])()));Object(f["a"])([Object(j["g"])()],re.prototype,"refAddEdit",void 0),re=Object(f["a"])([Object(j["a"])({components:{AddEdit:te}})],re);var ae=re,ne=ae,ie=Object(C["a"])(ne,a,n,!1,null,null,null);e["default"]=ie.exports},"49b7":function(t,e,r){},5402:function(t,e,r){"use strict";var a=r("f9dc"),n=r.n(a);n.a},"560f":function(t,e,r){"use strict";var a=r("f50e"),n=r.n(a);n.a},"5de4":function(t,e,r){"use strict";r("d81d"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0");var a=r("f3f3"),n=(r("96cf"),r("c964")),i=r("276c"),o=r("e954"),s=r("920b"),c=r("e1a7"),l=r("f20d"),u=r("2ff6");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,a=Object(l["a"])(t);if(e()){var n=Object(l["a"])(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Object(c["a"])(this,r)}}var p={manager:"/api/org/manager/gets",query:"/api/org/list",list:"/component/organization/list",getAllLabels:"/biology/label/getAllLabels",getImageStoreDetail:"/component/imagestore/detail",personProperties:"/component/person/properties/list"},f=function(t){Object(s["a"])(r,t);var e=d(r);function r(){return Object(i["a"])(this,r),e.apply(this,arguments)}return Object(o["a"])(r,[{key:"manager",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,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,{id:e.id||null}),t.next=5,this.$ajax(p.manager,a,r);case 5:return n=t.sent,t.abrupt("return",this.rQuery(n.data,(function(t){return{value:t.managerId,label:t.managerName}})));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"query",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,i,o,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},a=Object.assign(e,{orgName:e.orgName}),t.next=5,this.$ajax(p.query,a,r);case 5:return n=t.sent,i=this.rQuery(n.data,(function(t){return{label:t.orgName,value:t.id}})),o=this.listToTree(i,{parentKey:"parentId",childrenKey:"children"}),t.abrupt("return",{tree:o,list:i});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"list",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n,i,o,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},a=Object.assign(e),t.next=5,this.$ajax(p.list,a,r);case 5:return n=t.sent,i=this.rQuery(n.data,(function(t){return{label:t.name,value:t.id}})),o=this.listToTree(i,{parentKey:"parentId",childrenKey:"children"}),t.abrupt("return",{tree:o,list:i});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAllLabels",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1&&void 0!==n[1]?n[1]:{},t.next=4,this.$ajax(p.getAllLabels,e,r);case 4:return a=t.sent,t.abrupt("return",this.rQuery(a.data,(function(t){return{label:t.name,value:t.id}})));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getImageStoreDetail",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n,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]:{},t.next=4,this.$ajax(p.getImageStoreDetail,e,r);case 4:return n=t.sent,t.abrupt("return",this.rGet(n.data,(function(t){var e,r,n,i,o;return{includeOrganizations:null===(e=t.includeOrganizations)||void 0===e?void 0:e.map((function(t){return t.id})),excludeLabels:null===(r=t.excludeLabels)||void 0===r?void 0:r.map((function(t){return t.id})),includeLabels:null===(n=t.includeLabels)||void 0===n?void 0:n.map((function(t){return t.id})),excludePersons:null===(i=t.excludePersons)||void 0===i?void 0:i.map((function(t){return t.id})),includePersons:null===(o=t.includePersons)||void 0===o?void 0:o.map((function(t){return Object(a["a"])({},t,{objectId:t.id})}))}})));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"personProperties",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,a,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1&&void 0!==n[1]?n[1]:{},t.next=4,this.$ajax(p.personProperties,e,r);case 4:return a=t.sent,t.abrupt("return",a.data);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(u["a"]);e["a"]=new f},"769b":function(t,e,r){"use strict";var a=r("e9bb"),n=r.n(a);n.a},"79cd":function(t,e,r){},"7d72":function(t,e,r){},"84c4":function(t,e,r){"use strict";var a=r("9295"),n=r.n(a);n.a},9295:function(t,e,r){},"9c75":function(t,e,r){"use strict";var a=r("f84b"),n=r.n(a);n.a},a15b:function(t,e,r){"use strict";var a=r("23e7"),n=r("44ad"),i=r("fc6a"),o=r("a640"),s=[].join,c=n!=Object,l=o("join",",");a({target:"Array",proto:!0,forced:c||!l},{join:function(t){return s.call(i(this),void 0===t?",":t)}})},ad78:function(t,e,r){"use strict";var a=r("49b7"),n=r.n(a);n.a},c20d:function(t,e,r){var a=r("da84"),n=r("58a8").trim,i=r("5899"),o=a.parseInt,s=/^[+-]?0[Xx]/,c=8!==o(i+"08")||22!==o(i+"0x16");t.exports=c?function(t,e){var r=n(String(t));return o(r,e>>>0||(s.test(r)?16:10))}:o},e9bb:function(t,e,r){},f46b:function(t,e,r){"use strict";var a=r("7d72"),n=r.n(a);n.a},f50e:function(t,e,r){},f84b:function(t,e,r){},f9dc:function(t,e,r){}}]);