| 1 |
- import{X as e,p as t,m as a,w as l,z as o,q as i,o as s,b as r,k as d,t as n,B as m,F as u,C as p,v as h,N as c,b3 as f,b0 as g,b4 as y,D as V,a2 as b,g as F,ac as D,I as T,$ as _,a8 as w}from"./index-C9TJPork.js";import{d as S,_ as N}from"./t-datetime.iVUKMIp2.js";import{r as C}from"./uni-app.es.CUt9gedF.js";import{_ as j}from"./u-input.cq_N7lcW.js";import{_ as x,a as I}from"./u-form.D7hQ6Wil.js";import{_ as k}from"./index.Dsioj_0m.js";import{_ as v}from"./index.CdyKhOVe.js";import{_ as U}from"./index.CBTp4-Gm.js";import{_ as L}from"./index.0iW0RovP.js";import{_ as B}from"./index.DcbbriKv.js";import{M as q}from"./index.ChsH6p4P.js";import{s as $}from"./index.CGKbu-GF.js";import{_ as A}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as P}from"./u-button.C_4h_wUh.js";import{_ as z}from"./u-action-sheet.BBR1EfIr.js";import{_ as M}from"./u-search.DOsDiA_z.js";import{_ as O}from"./u-popup.7vl_vYde.js";import{r as J}from"./resources.DEPsJg7u.js";import{d as R}from"./portal.B5oHNAz3.js";import{S as Y,a as Z,b as X}from"./schedule.DRz_j6C2.js";import{u as H}from"./base.2x6xVo4W.js";import"./u-icon.BNGPST4x.js";import"./emitter.DrjJCwnj.js";import"./lsj-upload.BbvSShYb.js";import"./u-avatar.B8J43dhc.js";import"./u-tabs-swiper.7mAQsu3f.js";import"./u-badge.BHkDpFBd.js";import"./ly-tree.D703-q15.js";import"./uni-icons.RLS1HIfd.js";import"./u-loading.U11iGLth.js";import"./u-checkbox.DJ2PERbW.js";import"./u-checkbox-group.DHs1JB4s.js";import"./u-radio-group.BjzEj90s.js";const K=A({name:"jnpf-select",components:{MultSelect:q,selectBox:$},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},isFlow:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],selectShow:!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.selectShow=!0)},selectConfirm(e){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=e[0];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<this.options.length;e++){const t=this.options[e];for(let e=0;e<this.modelValue.length;e++){const a=this.modelValue[e];t[this.props.value]==a&&(this.innerValue?this.innerValue+=","+t[this.props.label]:this.innerValue+=t[this.props.label])}}}else{if(this.innerValue="",this.defaultValue=[],!this.modelValue&&0!==this.modelValue)return;for(let e=0;e<this.options.length;e++)if(this.options[e][this.props.value]==this.modelValue)return this.defaultValue=[this.modelValue],void(this.innerValue=this.options[e][this.props.label])}},close(){this.selectShow=!1}}},[["render",function(r,d,n,m,u,p){const h=e("selectBox"),c=e("MultSelect"),f=s;return t(),a(f,{class:"jnpf-select"},{default:l((()=>[n.isFlow?(t(),a(h,{key:0,modelValue:u.innerValue,"onUpdate:modelValue":d[0]||(d[0]=e=>u.innerValue=e),placeholder:n.placeholder,onOpenSelect:p.openSelect,"select-open":u.selectShow},null,8,["modelValue","placeholder","onOpenSelect","select-open"])):o("",!0),i(c,{list:p.list,show:u.selectShow,"value-name":n.props.value,"label-name":n.props.label,defaultValue:u.defaultValue,onConfirm:p.selectConfirm,onClose:p.close,filterable:n.filterable,multiple:n.multiple},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple"])])),_:1})}],["__scopeId","data-v-4f47e596"]]),Q={label:"fullName",value:"id"};const W=A({components:{Select:A({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:()=>({...Q})},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<this.total?(this.pagination.currentPage=this.pagination.currentPage+1,this.upCallback()):r({title:"没有更多信息啦!",icon:"none"})},upCallback(){let e={currentPage:this.pagination.currentPage,pageSize:this.pagination.pageSize,keyword:this.keyword,messageSource:this.pagination.messageSource};this.loading=!1,R(e).then((e=>{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(e,o,r,F,D,T){const _=s,w=C(d("u-search"),M),S=f,N=g,j=y,x=V,I=b,k=C(d("u-button"),P),v=C(d("u-popup"),O);return t(),a(v,{class:"jnpf-tree-select-popup",maskCloseAble:r.maskCloseAble,mode:"right",modelValue:D.showPopup,"onUpdate:modelValue":o[5]||(o[5]=e=>D.showPopup=e),safeAreaInsetBottom:r.safeAreaInsetBottom,onClose:T.close,"z-index":T.uZIndex,width:"100%"},{default:l((()=>[i(_,{class:"jnpf-tree-select-body"},{default:l((()=>[i(_,{class:"jnpf-tree-select-title"},{default:l((()=>[i(_,{class:"icon-ym icon-ym-report-icon-preview-pagePre u-font-40 backIcon",onClick:o[0]||(o[0]=e=>T.close())}),i(_,{class:"title"},{default:l((()=>[n("选择提醒")])),_:1})])),_:1}),i(_,{class:"jnpf-tree-select-search"},{default:l((()=>[i(w,{placeholder:e.$t("app.apply.pleaseKeyword"),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,["placeholder","modelValue"])])),_:1}),i(_,{class:"jnpf-tree-select-tree"},{default:l((()=>[i(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:l((()=>[D.list.length?(t(),a(_,{key:0,class:"list-box"},{default:l((()=>[(t(!0),m(u,null,p(D.list,((e,o)=>(t(),a(j,{class:"list-item",value:D.innerValue,key:o,onChange:t=>T.radioChange(e)},{default:l((()=>[i(N,{class:"radio-label"},{default:l((()=>[i(S,{class:"u-radio",value:e.id,checked:e.id===D.selectId},null,8,["value","checked"]),i(_,{class:"list-item-content u-line-1"},{default:l((()=>[n(h(e.fullName),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["value","onChange"])))),128))])),_:1})):(t(),a(_,{key:1,class:"nodata u-flex-col"},{default:l((()=>[i(x,{src:D.noDataIcon,mode:"widthFix",class:"noDataIcon"},null,8,["src"]),n(" "+h(e.$t("common.noData")),1)])),_:1}))])),_:1},8,["refresher-triggered","onScrolltolower"])])),_:1}),i(_,{class:"jnpf-bottom-actions"},{default:l((()=>[i(k,{class:"buttom-btn",onClick:o[3]||(o[3]=e=>T.close())},{default:l((()=>[n("取消")])),_:1}),i(k,{class:"buttom-btn",type:"primary",onClick:o[4]||(o[4]=c((e=>T.handleConfirm()),["stop"]))},{default:l((()=>[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,r,n,m,u,p){const h=C(d("u-input"),j),c=e("Select"),f=s;return t(),a(f,{class:"jnpf-tree-select"},{default:l((()=>[i(h,{"input-align":"right",type:"select","select-open":u.selectShow,modelValue:u.innerValue,"onUpdate:modelValue":r[0]||(r[0]=e=>u.innerValue=e),placeholder:n.placeholder,onClick:p.openSelect},null,8,["select-open","modelValue","placeholder","onClick"]),i(c,{modelValue:u.selectShow,"onUpdate:modelValue":r[1]||(r[1]=e=>u.selectShow=e),selectedId:u.selectedId,ref:"userTree",onClose:r[2]||(r[2]=e=>p.handleClose()),onConfirm:p.handleConfirm},null,8,["modelValue","selectedId","onConfirm"])])),_:1})}],["__scopeId","data-v-0bb1e5ff"]]),E=H();const G=A({components:{tdatetime:S,sendSelect:W},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){Z(this.dataForm,e+1).then((e=>{r({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(){E.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?Z:X)({...this.dataForm,files:JSON.stringify(this.dataForm.files)},3).then((e=>{r({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(),o=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,i=a.getDate(),s=a.getHours(),r=a.getMinutes(),d=a.getSeconds();return t.year=l,t.month=o,t.date=i,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(r,m,u,p,f,g){const y=C(d("u-toast"),N),V=C(d("u-input"),j),b=C(d("u-form-item"),x),F=s,D=C(d("JnpfUploadFile"),k),T=C(d("JnpfSelect"),v),_=C(d("JnpfUserSelect"),U),w=C(d("JnpfColorPicker"),L),S=C(d("JnpfSwitch"),B),q=e("tdatetime"),$=C(d("jnpf-select"),K),A=e("sendSelect"),M=C(d("u-form"),I),O=C(d("u-button"),P),J=C(d("u-action-sheet"),z);return t(),a(F,{class:"scheduleForm-v jnpf-wrap"},{default:l((()=>[i(y,{ref:"uToast"},null,512),i(M,{model:f.dataForm,rules:f.rules,ref:"dataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:l((()=>[i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"标题",prop:"title",required:""},{default:l((()=>[i(V,{"input-align":"right",modelValue:f.dataForm.title,"onUpdate:modelValue":m[0]||(m[0]=e=>f.dataForm.title=e),placeholder:"请输入"},null,8,["modelValue"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"内容",prop:"content"},{default:l((()=>[i(V,{"input-align":"right",modelValue:f.dataForm.content,"onUpdate:modelValue":m[1]||(m[1]=e=>f.dataForm.content=e),placeholder:"请输入",type:"textarea"},null,8,["modelValue"])])),_:1})])),_:1}),i(F,{class:"jnpf-card u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"附件",prop:"files"},{default:l((()=>[i(D,{modelValue:f.dataForm.files,"onUpdate:modelValue":m[2]||(m[2]=e=>f.dataForm.files=e)},null,8,["modelValue"])])),_:1})])),_:1}),i(F,{class:"jnpf-card"},{default:l((()=>[i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"紧急程度",prop:"urgent"},{default:l((()=>[i(T,{modelValue:f.dataForm.urgent,"onUpdate:modelValue":m[3]||(m[3]=e=>f.dataForm.urgent=e),options:f.urgentList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"类型",prop:"category",required:""},{default:l((()=>[i(T,{modelValue:f.dataForm.category,"onUpdate:modelValue":m[4]||(m[4]=e=>f.dataForm.category=e),options:f.categoryOptions,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"创建人",prop:"creatorUserId",required:""},{default:l((()=>[i(_,{modelValue:f.dataForm.creatorUserId,"onUpdate:modelValue":m[5]||(m[5]=e=>f.dataForm.creatorUserId=e),placeholder:"请输入",disabled:"disabled"},null,8,["modelValue"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"参与人",prop:"toUserIds"},{default:l((()=>[i(_,{modelValue:f.dataForm.toUserIds,"onUpdate:modelValue":m[6]||(m[6]=e=>f.dataForm.toUserIds=e),placeholder:"请选择",multiple:""},null,8,["modelValue"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"标签颜色",prop:"color"},{default:l((()=>[i(w,{modelValue:f.dataForm.color,"onUpdate:modelValue":m[7]||(m[7]=e=>f.dataForm.color=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"全天",prop:"allDay"},{default:l((()=>[i(S,{modelValue:f.dataForm.allDay,"onUpdate:modelValue":m[8]||(m[8]=e=>f.dataForm.allDay=e),onChange:g.change_providerType},null,8,["modelValue","onChange"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"开始时间",prop:"startDay",required:""},{default:l((()=>[i(q,{delayMin:0,modelValue:f.startDay,"onUpdate:modelValue":m[9]||(m[9]=e=>f.startDay=e),date:f.startDate,placeholder:"请选择",showtdatetime:f.showtdatetime,type:1,onConfirm:g.confirm,allDay:f.dataForm.allDay},null,8,["modelValue","date","showtdatetime","onConfirm","allDay"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[-1!=f.dataForm.duration&&0==f.dataForm.allDay?(t(),a(b,{key:0,label:"时长",prop:"duration",required:""},{default:l((()=>[i(T,{modelValue:f.dataForm.duration,"onUpdate:modelValue":m[10]||(m[10]=e=>f.dataForm.duration=e),options:f.durationList},null,8,["modelValue","options"])])),_:1})):o("",!0)])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[-1==f.dataForm.duration||f.dataForm.allDay?(t(),a(b,{key:0,label:"结束时间",prop:"endDay",required:""},{default:l((()=>[i(q,{delayMin:0,modelValue:f.endDay,"onUpdate:modelValue":m[11]||(m[11]=e=>f.endDay=e),date:f.endDate,placeholder:"请选择",showtdatetime:f.showtdatetime,type:2,onConfirm:g.confirm,allDay:f.dataForm.allDay},null,8,["modelValue","date","showtdatetime","onConfirm","allDay"])])),_:1})):o("",!0)])),_:1}),i(F,{class:"jnpf-card"},{default:l((()=>[i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"提醒时间",prop:"reminderTime"},{default:l((()=>[i(T,{modelValue:f.dataForm.reminderTime,"onUpdate:modelValue":m[12]||(m[12]=e=>f.dataForm.reminderTime=e),options:f.dataForm.allDay?f.reminderTimeList_:f.reminderTimeList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1})])),_:1}),-2!=f.dataForm.reminderTime?(t(),a(F,{key:0,class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"提醒方式",prop:"reminderType"},{default:l((()=>[i($,{modelValue:f.dataForm.reminderType,"onUpdate:modelValue":m[13]||(m[13]=e=>f.dataForm.reminderType=e),options:f.remindList,placeholder:"请选择"},null,8,["modelValue","options"])])),_:1}),2==f.dataForm.reminderType?(t(),a(b,{key:0,label:"发送配置",prop:"send"},{default:l((()=>[i(A,{modelValue:f.dataForm.sendName,"onUpdate:modelValue":m[14]||(m[14]=e=>f.dataForm.sendName=e),send:f.dataForm.send,onChange:g.changeSend,placeholder:"请选择"},null,8,["modelValue","send","onChange"])])),_:1})):o("",!0)])),_:1})):o("",!0),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[i(b,{label:"重复提醒",prop:"repetition"},{default:l((()=>[i($,{modelValue:f.dataForm.repetition,"onUpdate:modelValue":m[15]||(m[15]=e=>f.dataForm.repetition=e),options:f.repeatReminderList,onChange:g.repeatTimeChange,placeholder:"请选择"},null,8,["modelValue","options","onChange"])])),_:1})])),_:1}),i(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[1!=f.dataForm.repetition?(t(),a(b,{key:0,label:"结束重复",prop:"repeatTime",required:""},{default:l((()=>[i(q,{delayMin:0,modelValue:f.repeat,"onUpdate:modelValue":m[16]||(m[16]=e=>f.repeat=e),date:f.repeatDate,placeholder:"请选择",showtdatetime:f.showtdatetime,type:3,onConfirm:g.confirm,allDay:1},null,8,["modelValue","date","showtdatetime","onConfirm"])])),_:1})):o("",!0)])),_:1})])),_:1})])),_:1},8,["model","rules"]),i(F,{class:"flowBefore-actions"},{default:l((()=>[i(O,{class:"buttom-btn",onClick:m[17]||(m[17]=e=>g.getResult("cancel"))},{default:l((()=>[n(h(r.$t("common.cancelText")),1)])),_:1}),i(O,{class:"buttom-btn",type:"primary",loading:f.btnLoading,onClick:m[18]||(m[18]=c((e=>g.save()),["stop"]))},{default:l((()=>[n(h(r.$t("common.okText")),1)])),_:1},8,["loading"])])),_:1}),i(J,{onClick:g.handleAction,list:f.actionList,tips:{text:"此为重复日程,将修改应用于",color:"#000",fontSize:30},modelValue:f.show,"onUpdate:modelValue":m[19]||(m[19]=e=>f.show=e)},null,8,["onClick","list","modelValue"])])),_:1})}],["__scopeId","data-v-8976410a"]]);export{G as default};
|