You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/chunk-e205.7a7d1f24.js

1 line
21 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e205"],{"+eU4":function(t,e,a){"use strict";var l=a("Fhi4");a.n(l).a},"2f65":function(t,e,a){},"7mY3":function(t,e,a){"use strict";var l=a("2f65");a.n(l).a},"9GgJ":function(t,e,a){"use strict";var l={name:"XrHeader",components:{},props:{iconClass:[String,Array],iconColor:String,label:String,showSearch:{type:Boolean,default:!1},searchIconType:{type:String,default:"text"},placeholder:{type:String,default:"请输入内容"},ftTop:{type:String,default:"15px"},content:[String,Number],inputAttr:{type:Object,default:function(){}}},data:function(){return{search:""}},computed:{},watch:{content:{handler:function(){this.search!=this.content&&(this.search=this.content)},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{inputChange:function(){this.$emit("update:content",this.search)},searchClick:function(){this.$emit("search",this.search)}}},i=(a("7mY3"),a("KHd+")),s=Object(i.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("flexbox",{staticClass:"xr-header"},[t.iconClass?a("div",{staticClass:"xr-header__icon",style:{backgroundColor:t.iconColor}},[a("i",{class:t.iconClass})]):t._e(),t._v(" "),a("div",{staticClass:"xr-header__label"},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2),t._v(" "),t.showSearch?a("el-input",t._b({staticClass:"xr-header__search",class:{"is-text":"text"===t.searchIconType},style:{"margin-top":t.ftTop},attrs:{placeholder:t.placeholder},on:{input:t.inputChange},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchClick(e):null}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},"el-input",t.inputAttr,!1),["text"===t.searchIconType?a("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"},[t._v("搜索")]):a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"})],1):t._e(),t._v(" "),a("div",{staticClass:"xr-header__ft",style:{top:t.ftTop}},[t._t("ft")],2)],1)},[],!1,null,"acb6d756",null);s.options.__file="index.vue";e.a=s.exports},AueS:function(t,e,a){},Fhi4:function(t,e,a){},Flnf:function(t,e,a){},"JT+4":function(t,e,a){"use strict";a.r(e);var l=a("KTTK"),i=a("6iAj"),s=a("wd/R"),n=a.n(s),r=a("UCfG"),c=a("HHBN"),o=a("7Qib"),u={name:"AddGoal",components:{XhStructureCell:r.a,XhUserCell:c.a},props:{visible:{type:Boolean,default:!1},type:String},data:function(){return{loading:!1,typeSelect:1,dateSelect:"",selectDepOrUser:[],totalGoal:"0",quarterList:[]}},computed:{rangeLabel:function(){return"user"===this.type?"考核人员":"考核部门"}},watch:{visible:function(t){t&&this.resetData()}},mounted:function(){},beforeDestroy:function(){},methods:{structureChange:function(t){this.selectDepOrUser=t.value||[]},userChange:function(t){this.selectDepOrUser=t.value||[]},sureClick:function(){var t=this;if(this.selectDepOrUser.length){for(var e={type:"user"==this.type?3:2,year:this.dateSelect,status:this.typeSelect,yeartarget:this.totalGoal},a=0;a<this.quarterList.length;a++){var l=this.quarterList[a];e[this.getUploadKey(a,0)]=l.first,e[this.getUploadKey(a,1)]=l.second,e[this.getUploadKey(a,2)]=l.third}"user"==this.type?e.user_id=this.selectDepOrUser.map(function(t){return t.id}):e.structure_id=this.selectDepOrUser.map(function(t){return t.id}),this.loading=!0,Object(i.g)(e).then(function(e){t.loading=!1,t.$message.success("操作成功"),t.$emit("success"),t.closeClick()}).catch(function(){t.loading=!1})}else this.$message.error("请选择考核"+("user"==this.type?"员工":"部门"))},inputChange:function(t,e,a){"total"==t?this.totalGoal?this.totalGoal=this.totalGoal.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"):this.totalGoal="0":e[a]?e[a]=e[a].replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"):e[a]="0"},inputBlur:function(t){var e=this.quarterList[t];e.all=(parseFloat(e.first)+parseFloat(e.second)+parseFloat(e.third)).toFixed(2);for(var a=0,l=0;l<this.quarterList.length;l++){var i=this.quarterList[l];a+=parseFloat(i.al