import{v as e,G as t,o as a,d as l,w as i,x as o,e as s,i as r,c as d,f as n,I as m,K as u,J as p,t as h,X as c,az as f,aA as g,aB as y,a0 as V,a3 as b,g as F,Y as D,n as T,$ as _,aa as w}from"./index-aO5n_gYE.js";import{_ as N}from"./u-navbar.KTDLRJ2X.js";import{r as C}from"./uni-app.es.Dpb2une8.js";import{_ as S}from"./u-toast.yHGn4vyW.js";import{_ as j}from"./u-input.6XKuKX4s.js";import{_ as x,a as I}from"./u-form.CK6M4kDH.js";import{_ as k}from"./index.B4N9qwsp.js";import{_ as v}from"./index.B3daVLgK.js";import{_ as U}from"./index.BDX-MFQe.js";import{_ as L}from"./index.1w2h2ACs.js";import{_ as q}from"./index.Yx_WGYfo.js";import{M as B}from"./MultSelect.tgcyZDQ9.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as $}from"./u-button.CZ8nCg9e.js";import{_ as A}from"./u-action-sheet.BVdw7xZF.js";import{t as z}from"./t-datetime.DghlK7qa.js";import{_ as P}from"./u-search.B9o2a1Fq.js";import{_ as O}from"./u-popup.DGPZerPs.js";import{r as J}from"./resources.DipqUmnN.js";import{d as R}from"./portal.DrnTymml.js";import{b as Y,c as G,d as H}from"./schedule.D23nI5-P.js";import{u as Z}from"./base.DseU_8Wz.js";import"./u-icon.tO8_9Yxx.js";import"./emitter.DrjJCwnj.js";import"./u-avatar.CkqV-3He.js";import"./ly-tree.BWix6LE0.js";import"./u-badge.DDtGwKIs.js";import"./ly-checkbox.CZmP5U_L.js";import"./uni-icons.BQdaS2jT.js";import"./u-loading.Dr78iewP.js";import"./u-checkbox-group.BrUTj8tj.js";import"./u-radio-group.DHYIwZLI.js";const E=M({name:"jnpf-select",components:{MultSelect:B},props:{modelValue:{type:[String,Number,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"fullName",value:"id"})},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},isForm:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],showSelectModal:!1}),watch:{modelValue:{immediate:!0,handler(e){this.setDefault()}},options:{immediate:!0,handler(e){this.setDefault()}}},computed:{list(){return this.options}},methods:{openSelect(){this.disabled||(this.showSelectModal=!0)},selectConfirm(e,t=""){if(this.multiple)this.innerValue=e.label,this.defaultValue=e.value,this.$emit("update:modelValue",e.value||[]),this.$emit("change",e.value||[],e.list||[]);else{if(!e.length)return;const t=this.options[e[0].index]||{};this.innerValue=t[this.props.label],this.defaultValue=[e[0][this.props.value]],this.$emit("update:modelValue",t[this.props.value]),this.$emit("change",t[this.props.value],t)}},setDefault(){if(!this.options.length)return this.innerValue="";if(this.multiple){if(this.innerValue="",this.defaultValue=[],!this.modelValue||!this.modelValue.length)return;this.defaultValue=this.modelValue;for(let e=0;e[m.isForm?(a(),l(c,{key:0,"input-align":"right",type:"select","select-open":p.showSelectModal,modelValue:p.innerValue,"onUpdate:modelValue":n[0]||(n[0]=e=>p.innerValue=e),placeholder:m.placeholder,onClick:h.openSelect},null,8,["select-open","modelValue","placeholder","onClick"])):o("",!0),s(f,{list:h.list,show:p.showSelectModal,"value-name":m.props.value,"label-name":m.props.label,defaultValue:p.defaultValue,onConfirm:h.selectConfirm,onClose:h.close,filterable:m.filterable,multiple:m.multiple,labelName:m.props.label,valueName:m.props.value},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple","labelName","valueName"])])),_:1})}],["__scopeId","data-v-577d2a1c"]]),K={label:"fullName",value:"id"};const X=M({components:{Select:M({props:{selectType:{type:String,default:"all"},clearable:{type:Boolean,default:!1},query:{type:Object,default:()=>({})},border:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},zIndex:{type:[String,Number],default:99999},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},selectedId:{type:String,default:""}},data(){return{noDataIcon:J.message.nodata,keyword:"",selectList:[],list:[],pagination:{currentPage:1,pageSize:20,messageSource:4},total:0,triggered:!1,innerValue:"",selectId:this.selectedId,showPopup:!1}},watch:{modelValue:{immediate:!0,handler(e){this.showPopup=e}}},computed:{uZIndex(){return this.zIndex?this.zIndex:this.$u.zIndex.popup},realProps:()=>({...K})},methods:{cleanAll(){this.selectList=[]},radioChange(e){this.selectId=e.id,this.innerValue=e.id,this.selectList=e},search(){this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((()=>{this.resetData()}),300)},resetData(){this.list=[],this.pagination={currentPage:1,pageSize:20,messageSource:4},this.upCallback()},handleScrollToLower(){this.pagination.pageSize*this.pagination.currentPage{const t=e.data.list;this.list=this.list.concat(t),this.pagination=e.data.pagination,this.total=this.pagination.total;let a=this.list.filter((e=>e.id==this.selectId))[0];a&&(this.selectList=a)}))},handleConfirm(){this.keyword="",this.$emit("confirm",this.selectList),this.close()},close(){this.$emit("close",!1)}}},[["render",function(t,o,d,F,D,T){const _=r,w=C(e("u-search"),P),N=f,S=g,j=y,x=V,I=b,k=C(e("u-button"),$),v=C(e("u-popup"),O);return a(),l(v,{class:"jnpf-tree-select-popup",maskCloseAble:d.maskCloseAble,mode:"right",modelValue:D.showPopup,"onUpdate:modelValue":o[5]||(o[5]=e=>D.showPopup=e),safeAreaInsetBottom:d.safeAreaInsetBottom,onClose:T.close,"z-index":T.uZIndex,width:"100%"},{default:i((()=>[s(_,{class:"jnpf-tree-select-body"},{default:i((()=>[s(_,{class:"jnpf-tree-select-title"},{default:i((()=>[s(_,{class:"icon-ym icon-ym-report-icon-preview-pagePre u-font-40 backIcon",onClick:o[0]||(o[0]=e=>T.close())}),s(_,{class:"title"},{default:i((()=>[n("选择提醒")])),_:1})])),_:1}),s(_,{class:"jnpf-tree-select-search"},{default:i((()=>[s(w,{placeholder:"请输入关键词搜索",modelValue:D.keyword,"onUpdate:modelValue":o[1]||(o[1]=e=>D.keyword=e),height:"72","show-action":!1,onChange:o[2]||(o[2]=e=>T.search()),"bg-color":"#f0f2f6",shape:"square"},null,8,["modelValue"])])),_:1}),s(_,{class:"jnpf-tree-select-tree"},{default:i((()=>[s(I,{style:{height:"100%"},"refresher-enabled":!1,"refresher-threshold":100,"scroll-with-animation":!0,"refresher-triggered":D.triggered,onScrolltolower:T.handleScrollToLower,"scroll-y":!0},{default:i((()=>[D.list.length?(a(),l(_,{key:0,class:"list-box"},{default:i((()=>[(a(!0),m(u,null,p(D.list,((e,t)=>(a(),l(j,{class:"list-item",value:D.innerValue,key:t,onChange:t=>T.radioChange(e)},{default:i((()=>[s(S,{class:"radio-label"},{default:i((()=>[s(N,{class:"u-radio",value:e.id,checked:e.id===D.selectId},null,8,["value","checked"]),s(_,{class:"list-item-content u-line-1"},{default:i((()=>[n(h(e.fullName),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["value","onChange"])))),128))])),_:1})):(a(),l(_,{key:1,class:"nodata u-flex-col"},{default:i((()=>[s(x,{src:D.noDataIcon,mode:"widthFix",class:"noDataIcon"},null,8,["src"]),n(" 暂无数据 ")])),_:1}))])),_:1},8,["refresher-triggered","onScrolltolower"])])),_:1}),s(_,{class:"jnpf-bottom-actions"},{default:i((()=>[s(k,{class:"buttom-btn",onClick:o[3]||(o[3]=e=>T.close())},{default:i((()=>[n("取消")])),_:1}),s(k,{class:"buttom-btn",type:"primary",onClick:o[4]||(o[4]=c((e=>T.handleConfirm()),["stop"]))},{default:i((()=>[n("确定")])),_:1})])),_:1})])),_:1})])),_:1},8,["maskCloseAble","modelValue","safeAreaInsetBottom","onClose","z-index"])}]])},props:{modelValue:{default:""},send:{type:String,default:""},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},sendName:{type:String,default:"请选择"}},data:()=>({selectShow:!1,innerValue:"",selectedId:""}),watch:{send:{handler(e){if(!e)return this.innerValue="";this.setDefault(e)},immediate:!0}},methods:{setDefault(e){this.innerValue=this.modelValue,this.selectedId=e},openSelect(){this.disabled||(this.selectShow=!0,this.$refs.userTree.resetData())},handleConfirm(e){this.selectedId=e.id,this.defaultValue=e.id,this.innerValue=e.fullName,this.$emit("update:modelValue",e.id),this.$emit("change",e.id,e.fullName)},handleClose(){this.selectShow=!1}}},[["render",function(o,d,n,m,u,p){const h=C(e("u-input"),j),c=t("Select"),f=r;return a(),l(f,{class:"jnpf-tree-select"},{default:i((()=>[s(h,{"input-align":"right",type:"select","select-open":u.selectShow,modelValue:u.innerValue,"onUpdate:modelValue":d[0]||(d[0]=e=>u.innerValue=e),placeholder:n.placeholder,onClick:p.openSelect},null,8,["select-open","modelValue","placeholder","onClick"]),s(c,{modelValue:u.selectShow,"onUpdate:modelValue":d[1]||(d[1]=e=>u.selectShow=e),selectedId:u.selectedId,ref:"userTree",onClose:d[2]||(d[2]=e=>p.handleClose()),onConfirm:p.handleConfirm},null,8,["modelValue","selectedId","onConfirm"])])),_:1})}],["__scopeId","data-v-acd9e60a"]]),Q=Z();const W=M({components:{tdatetime:z,sendSelect:X},data:()=>({title:"",userInfo:{},show:!1,showtdatetime:!1,dataForm:{id:0,category:"",creatorUserId:0,userName:"",allDay:0,urgent:"1",startDay:"",startTime:"",endDay:"",endTime:"",duration:60,content:"",title:"",toUserIds:[],reminderTime:-2,reminderType:1,send:"",sendName:"",repetition:1,repeatTime:"",color:"#FFFFFF",files:[]},btnLoading:!1,showBtn:!1,startDate:{},endDate:{},repeatDate:{},repeat:"",endDay:"",startDay:"",urgentList:[{id:"1",fullName:"普通"},{id:"2",fullName:"重要"},{id:"3",fullName:"紧急"}],durationList:[{id:30,fullName:"30分钟"},{id:60,fullName:"1小时"},{id:90,fullName:"1小时30分钟"},{id:120,fullName:"2小时"},{id:180,fullName:"3小时"},{id:-1,fullName:"自定义"}],categoryOptions:[],repetitionType:!1,reminderTimeList:[{id:-2,fullName:"不提醒"},{id:-1,fullName:"开始时"},{id:5,fullName:"提前5分钟"},{id:10,fullName:"提前10分钟"},{id:15,fullName:"提前15分钟"},{id:30,fullName:"提前30分钟"},{id:60,fullName:"提前1小时"},{id:120,fullName:"提前2小时"},{id:1440,fullName:"1天前"},{id:2880,fullName:"2天前"},{id:10080,fullName:"1周前"}],reminderTimeList_:[{id:-2,fullName:"不提醒"},{id:1,fullName:"当天8:00"},{id:2,fullName:"当天9:00"},{id:3,fullName:"当天10:00"},{id:4,fullName:"1天前8:00"},{id:5,fullName:"1天前9:00"},{id:6,fullName:"1天前10:00"},{id:7,fullName:"2天前8:00"},{id:8,fullName:"2天前9:00"},{id:9,fullName:"2天前10:00"},{id:10,fullName:"1周前8:00"},{id:11,fullName:"1周前9:00"},{id:12,fullName:"1周前10:00"}],remindList:[{id:1,fullName:"默认"},{id:2,fullName:"自定义"}],repeatReminderList:[{id:1,fullName:"不重复"},{id:2,fullName:"每天重复"},{id:3,fullName:"每周重复"},{id:4,fullName:"每月重复"},{id:5,fullName:"每年重复"}],actionList:[],rules:{startTime:[{required:!0,message:"开始时间不能为空",trigger:"change",type:"number"}],startTime:[{required:!0,message:"开始时间不能为空",trigger:"change",type:"number"}],endTime:[{required:!0,message:"结束时间不能为空",trigger:"change",type:"number"}],repeat:[{required:!0,message:"记录不能为空",trigger:"change"}],category:[{required:!0,message:"请选择类型",trigger:"change"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}],duration:[{required:!0,message:"请选择时长",trigger:"change",type:"number"}],send:[{required:!0,message:"发送配置不能为空",trigger:"change"}],reminderType:[{required:!0,message:"提醒方式不能为空",trigger:"change",type:"number"}]}}),onReady(){this.$refs.dataForm.setRules(this.rules)},onLoad(e){if(this.repetitionType=!1,this.userInfo=F("userInfo")||{},this.dataForm.id=e.id,this.btnLoading=!1,this.title=this.dataForm.id?"编辑":"新建",D({title:this.title}),this.dataForm.id)Y(e.id).then((e=>{let t=e.data;if(t.files=t.files?JSON.parse(t.files):[],this.dataForm=t,this.startDate=this.timestampToTime(this.dataForm.startDay),this.endDate=this.timestampToTime(this.dataForm.endDay),this.repeatDate=this.dataForm.repeatTime?this.timestampToTime(this.dataForm.repeatTime):{},"1"!=this.dataForm.repetition)return this.repetitionType=!0}));else{let t=this.timestampToTime(+new Date);this.startDate=this.timestampToTime(e.startTime||+new Date),this.startDate.hours=t.hours+1,this.startDate.minutes="00",this.confirm(this.startDate,1),this.endDate=this.timestampToTime(e.startTime||+new Date),this.endDate.hours=t.hours+2,this.endDate.minutes="00",this.confirm(this.endDate,2),this.repeatDate={},this.dataForm.creatorUserId=this.userInfo.userId,this.dataForm.duration=Number(e.duration)||60}this.getDictionaryData()},methods:{back(){if(!this.dataForm.id)return T();T({delta:2})},handleAction(e){G(this.dataForm,e+1).then((e=>{d({title:e.msg,complete:()=>{_("refresh"),T({delta:2})}})}))},change_providerType(e){if(e)this.dataForm.endDay=this.dataForm.startDay;else{let e=this.timestampToTime(+new Date);this.startDate=this.timestampToTime(this.dataForm.startDay),this.startDate.hours=e.hours+1,this.startDate.minutes="00",this.confirm(this.startDate,1),this.endDate=this.timestampToTime(this.dataForm.endDay),this.endDate.hours=e.hours+2,this.endDate.minutes="00",this.confirm(this.endDate,2)}this.dataForm.reminderTime=-2},repeatTimeChange(e){let t=new Date;if(t.setFullYear(t.getFullYear()+1),1!=e){let e=t.getTime();this.repeatDate=this.timestampToTime(e),this.repeatDate.minutes="00",this.confirm(this.repeatDate,3)}},getResult(){if(!this.dataForm.id)return T();w({title:"退出此次编辑?",content:"日程信息将不会保存",success:e=>{e.confirm&&(_("refresh"),T({delta:2}))}})},changeSend(e,t){this.dataForm.send=e,this.dataForm.sendName=t},getDictionaryData(){Q.getDictionaryData({sort:"scheduleType"}).then((e=>{this.categoryOptions=e||[],this.categoryOptions.length&&(this.dataForm.category=this.categoryOptions[0].id)}))},confirm(e,t){1==t?(this.dataForm.startDay=e.year+"-"+e.month+"-"+e.date,this.dataForm.startDay=new Date(this.dataForm.startDay).getTime(),this.dataForm.startTime=e.hours+":"+e.minutes):2==t?(this.dataForm.endDay=e.year+"-"+e.month+"-"+e.date,this.dataForm.endDay=new Date(this.dataForm.endDay).getTime(),this.dataForm.endTime=e.hours+":"+e.minutes):(this.dataForm.repeatTime=e.year+"-"+e.month+"-"+e.date,this.dataForm.repeatTime=new Date(this.dataForm.repeatTime).getTime())},save(){this.$refs.dataForm.validate((e=>{if(e){if(-1==this.dataForm.duration&&this.dataForm.startDay>this.dataForm.endDay)return void this.$refs.uToast.show({title:"结束时间必须晚于开始时间",type:"error"});if(1==this.dataForm.allDay){let e=this.timestampToData(this.dataForm.startDay),t=this.timestampToData(this.dataForm.endDay);if(this.dataForm.startDay>this.dataForm.endDay)return void this.$refs.uToast.show({title:"结束时间必须晚于开始时间",type:"error"});this.dataForm.startDay=new Date(e).getTime(),this.dataForm.endDay=new Date(t).getTime()}if(1!=this.dataForm.repetition&&this.dataForm.startDay>this.dataForm.repeatTime)return void this.$refs.uToast.show({title:"结束重复时间必须晚于开始时间",type:"error"});if(this.dataForm.id&&this.repetitionType)this.show=!0,this.actionList=[],this.actionList.push({text:"仅修改此日程",id:"1"}),this.actionList.push({text:"修改此日程及后续日程",id:"2"});else{this.btnLoading=!0;(this.dataForm.id?G:H)({...this.dataForm,files:JSON.stringify(this.dataForm.files)},3).then((e=>{d({title:e.msg,complete:()=>{this.btnLoading=!1,_("refresh"),this.dataForm.id?T({delta:2}):T()}})}))}}}))},timestampToTime(e){let t={};e=e||0;var a=new Date(Number(e));let l=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,o=a.getDate(),s=a.getHours(),r=a.getMinutes(),d=a.getSeconds();return t.year=l,t.month=i,t.date=o,t.hours=s<10?0+s:s,t.minutes=r<10?0+r:r,t.seconds=d<10?0+d:d,t},timestampToData(e){var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+t.getDate()+" 00:00:00"}}},[["render",function(d,m,u,p,h,f){const g=C(e("u-navbar"),N),y=C(e("u-toast"),S),V=C(e("u-input"),j),b=C(e("u-form-item"),x),F=r,D=C(e("JnpfUploadFile"),k),T=C(e("JnpfSelect"),v),_=C(e("JnpfUserSelect"),U),w=C(e("JnpfColorPicker"),L),B=C(e("JnpfSwitch"),q),M=t("tdatetime"),z=C(e("jnpf-select"),E),P=t("sendSelect"),O=C(e("u-form"),I),J=C(e("u-button"),$),R=C(e("u-action-sheet"),A);return a(),l(F,{class:"scheduleForm-v jnpf-wrap"},{default:i((()=>[s(g,{title:h.title,onClick:m[0]||(m[0]=e=>f.back())},null,8,["title"]),s(y,{ref:"uToast"},null,512),s(O,{model:h.dataForm,rules:h.rules,ref:"dataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:i((()=>[s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"标题",prop:"title",required:""},{default:i((()=>[s(V,{"input-align":"right",modelValue:h.dataForm.title,"onUpdate:modelValue":m[1]||(m[1]=e=>h.dataForm.title=e),placeholder:"请输入"},null,8,["modelValue"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"内容",prop:"content"},{default:i((()=>[s(V,{"input-align":"right",modelValue:h.dataForm.content,"onUpdate:modelValue":m[2]||(m[2]=e=>h.dataForm.content=e),placeholder:"请输入",type:"textarea"},null,8,["modelValue"])])),_:1})])),_:1}),s(F,{class:"jnpf-card u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"附件",prop:"files"},{default:i((()=>[s(D,{modelValue:h.dataForm.files,"onUpdate:modelValue":m[3]||(m[3]=e=>h.dataForm.files=e)},null,8,["modelValue"])])),_:1})])),_:1}),s(F,{class:"jnpf-card"},{default:i((()=>[s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"紧急程度",prop:"urgent"},{default:i((()=>[s(T,{modelValue:h.dataForm.urgent,"onUpdate:modelValue":m[4]||(m[4]=e=>h.dataForm.urgent=e),options:h.urgentList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"类型",prop:"category",required:""},{default:i((()=>[s(T,{modelValue:h.dataForm.category,"onUpdate:modelValue":m[5]||(m[5]=e=>h.dataForm.category=e),options:h.categoryOptions,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"创建人",prop:"creatorUserId",required:""},{default:i((()=>[s(_,{modelValue:h.dataForm.creatorUserId,"onUpdate:modelValue":m[6]||(m[6]=e=>h.dataForm.creatorUserId=e),placeholder:"请输入",disabled:"disabled"},null,8,["modelValue"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"参与人",prop:"toUserIds"},{default:i((()=>[s(_,{modelValue:h.dataForm.toUserIds,"onUpdate:modelValue":m[7]||(m[7]=e=>h.dataForm.toUserIds=e),placeholder:"请选择",multiple:""},null,8,["modelValue"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"标签颜色",prop:"color"},{default:i((()=>[s(w,{modelValue:h.dataForm.color,"onUpdate:modelValue":m[8]||(m[8]=e=>h.dataForm.color=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"全天",prop:"allDay"},{default:i((()=>[s(B,{modelValue:h.dataForm.allDay,"onUpdate:modelValue":m[9]||(m[9]=e=>h.dataForm.allDay=e),onChange:f.change_providerType},null,8,["modelValue","onChange"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"开始时间",prop:"startDay",required:""},{default:i((()=>[s(M,{delayMin:0,modelValue:h.startDay,"onUpdate:modelValue":m[10]||(m[10]=e=>h.startDay=e),date:h.startDate,placeholder:"请选择",showtdatetime:h.showtdatetime,type:1,onConfirm:f.confirm,allDay:h.dataForm.allDay},null,8,["modelValue","date","showtdatetime","onConfirm","allDay"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[-1!=h.dataForm.duration&&0==h.dataForm.allDay?(a(),l(b,{key:0,label:"时长",prop:"duration",required:""},{default:i((()=>[s(T,{modelValue:h.dataForm.duration,"onUpdate:modelValue":m[11]||(m[11]=e=>h.dataForm.duration=e),options:h.durationList},null,8,["modelValue","options"])])),_:1})):o("",!0)])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[-1==h.dataForm.duration||h.dataForm.allDay?(a(),l(b,{key:0,label:"结束时间",prop:"endDay",required:""},{default:i((()=>[s(M,{delayMin:0,modelValue:h.endDay,"onUpdate:modelValue":m[12]||(m[12]=e=>h.endDay=e),date:h.endDate,placeholder:"请选择",showtdatetime:h.showtdatetime,type:2,onConfirm:f.confirm,allDay:h.dataForm.allDay},null,8,["modelValue","date","showtdatetime","onConfirm","allDay"])])),_:1})):o("",!0)])),_:1}),s(F,{class:"jnpf-card"},{default:i((()=>[s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"提醒时间",prop:"reminderTime"},{default:i((()=>[s(T,{modelValue:h.dataForm.reminderTime,"onUpdate:modelValue":m[13]||(m[13]=e=>h.dataForm.reminderTime=e),options:h.dataForm.allDay?h.reminderTimeList_:h.reminderTimeList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),-2!=h.dataForm.reminderTime?(a(),l(F,{key:0,class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"提醒方式",prop:"reminderType"},{default:i((()=>[s(z,{modelValue:h.dataForm.reminderType,"onUpdate:modelValue":m[14]||(m[14]=e=>h.dataForm.reminderType=e),options:h.remindList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1}),2==h.dataForm.reminderType?(a(),l(b,{key:0,label:"发送配置",prop:"send"},{default:i((()=>[s(P,{modelValue:h.dataForm.sendName,"onUpdate:modelValue":m[15]||(m[15]=e=>h.dataForm.sendName=e),send:h.dataForm.send,onChange:f.changeSend,placeholder:"请选择"},null,8,["modelValue","send","onChange"])])),_:1})):o("",!0)])),_:1})):o("",!0),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[s(b,{label:"重复提醒",prop:"repetition"},{default:i((()=>[s(z,{modelValue:h.dataForm.repetition,"onUpdate:modelValue":m[16]||(m[16]=e=>h.dataForm.repetition=e),options:h.repeatReminderList,onChange:f.repeatTimeChange,placeholder:"请选择"},null,8,["modelValue","options","onChange"])])),_:1})])),_:1}),s(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:i((()=>[1!=h.dataForm.repetition?(a(),l(b,{key:0,label:"结束重复",prop:"repeatTime",required:""},{default:i((()=>[s(M,{delayMin:0,modelValue:h.repeat,"onUpdate:modelValue":m[17]||(m[17]=e=>h.repeat=e),date:h.repeatDate,placeholder:"请选择",showtdatetime:h.showtdatetime,type:3,onConfirm:f.confirm,allDay:1},null,8,["modelValue","date","showtdatetime","onConfirm"])])),_:1})):o("",!0)])),_:1})])),_:1})])),_:1},8,["model","rules"]),s(F,{class:"flowBefore-actions"},{default:i((()=>[s(J,{class:"buttom-btn",onClick:m[18]||(m[18]=e=>f.getResult("cancel"))},{default:i((()=>[n("取消")])),_:1}),s(J,{class:"buttom-btn",type:"primary",loading:h.btnLoading,onClick:m[19]||(m[19]=c((e=>f.save()),["stop"]))},{default:i((()=>[n("确定")])),_:1},8,["loading"])])),_:1}),s(R,{onClick:f.handleAction,list:h.actionList,tips:{text:"此为重复日程,将修改应用于",color:"#000",fontSize:30},modelValue:h.show,"onUpdate:modelValue":m[20]||(m[20]=e=>h.show=e)},null,8,["onClick","list","modelValue"])])),_:1})}],["__scopeId","data-v-d525ecba"]]);export{W as default};