(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6eaf6ca0"],{b5a8:function(e,t,s){"use strict";s("bbea")},bbea:function(e,t,s){},eaa0:function(e,t,s){"use strict";s.r(t);var c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-drawer",{staticClass:"set_copyer",attrs:{"append-to-body":!0,title:e.title,visible:e.$store.state.business.copyerDrawer,direction:"rtl",size:"550px","before-close":e.closeDrawer},on:{"update:visible":function(t){return e.$set(e.$store.state.business,"copyerDrawer",t)}}},[s("div",{staticClass:"demo-drawer__content"},[s("div",{staticClass:"copyer_content drawer_content"},[s("p",{staticClass:"title"},[e._v("\n 指定成员\n "),s("span",[e._v("不得超过100人")])]),e._v(" "),s("select-member",{staticStyle:{width:"100%"},attrs:{value:e.checkedList||[],placeholder:"选择成员"},on:{getSelectList:e.getSelectList}}),e._v(" "),s("p",{staticClass:"title mt20"},[e._v("\n 指定上级\n "),s("span",[e._v("可抄送指定上级")])]),e._v(" "),s("el-select",{attrs:{multiple:""},model:{value:e.copyerConfig.departmentHead,callback:function(t){e.$set(e.copyerConfig,"departmentHead",t)},expression:"copyerConfig.departmentHead"}},e._l(e.directorMaxLevel,(function(e){return s("el-option",{key:e,attrs:{label:1===e?"直接上级":"第"+e+"级上级",value:e.toString()}})})),1),e._v(" "),"lowCode"!==e.typeStr?s("p",{staticClass:"title mt20"},[e._v("\n 申请人自选\n "),s("span",[e._v("允许申请人自选抄送人")])]):e._e(),e._v(" "),"lowCode"!==e.typeStr?s("el-checkbox-group",{staticClass:"mt15",model:{value:e.ccSelfSelectFlag,callback:function(t){e.ccSelfSelectFlag=t},expression:"ccSelfSelectFlag"}},[s("el-checkbox",{attrs:{label:"1"}},[e._v("允许申请人自选抄送人")])],1):e._e()],1),e._v(" "),s("div",{staticClass:"button from-foot-btn fix btn-shadow"},[s("el-button",{attrs:{size:"small"},on:{click:e.closeDrawer}},[e._v(e._s(e.$t("public.cancel")))]),e._v(" "),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveCopyer}},[e._v(e._s(e.$t("public.ok")))])],1)])])},i=[],o={props:{directorMaxLevel:{type:Number,default:5},typeStr:{type:String,default:""}},components:{selectMember:function(){return Promise.resolve().then(s.bind(null,"6078"))}},data:function(){return{title:"抄送人设置",memberShow:!1,copyerConfig:{},ccSelfSelectFlag:[],copyerVisible:!1,checkedList:[]}},computed:{copyerConfig1:function(){return this.$store.state.business.copyerConfig.value}},watch:{copyerConfig1:function(e){this.copyerConfig=e,this.ccSelfSelectFlag=0==this.copyerConfig.ccSelfSelectFlag?[]:[this.copyerConfig.ccSelfSelectFlag],this.checkedList=this.copyerConfig.nodeUserList}},methods:{saveCopyer:function(){if(this.copyerConfig.departmentHead.length<=0&&this.checkedList.length<=0&&this.ccSelfSelectFlag.length<=0)return this.$message.warning("至少选择一项"),!1;this.copyerConfig.ccSelfSelectFlag=0==this.ccSelfSelectFlag.length?0:"1",this.copyerConfig.nodeUserList=this.checkedList,this.$store.commit("updateCopyerConfig",{value:this.copyerConfig,flag:!0,id:this.$store.state.business.copyerConfig.id}),this.closeDrawer()},closeDrawer:function(){this.$store.commit("updateCopyer",!1)},getSelectList:function(e){this.checkedList=e}}},l=o,n=(s("b5a8"),s("2877")),r=Object(n["a"])(l,c,i,!1,null,"f863e5ea",null);t["default"]=r.exports}}]);