| 1 |
- import{X as e,t,p as a,w as l,B as i,v as o,q as s,c as r,o as d,x as n,D as m,F as u,E as p,y as h,R as c,b1 as f,a_ as g,b2 as y,a6 as V,g as b,a as F,K as D,$ as T,ab as _}from"./index-P0fyQ2Em.js";import{d as w,_ as S}from"./t-datetime.ca3JIPoA.js";import{r as N}from"./uni-app.es.DOtS5Ldl.js";import{_ as C}from"./u-input.Cp2bygnN.js";import{_ as j,a as x}from"./u-form.B1LWETT2.js";import{_ as I}from"./index.BLChm46K.js";import{_ as k}from"./index.CIb_-r5F.js";import{_ as v}from"./index.D2KRRdBj.js";import{_ as U}from"./index.-5h2Pj7y.js";import{_ as L}from"./index.BMdHwtjY.js";import{M as B}from"./index.C9raOSI0.js";import{s as $}from"./index.DsvBnwWf.js";import{_ as q}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as P}from"./u-button.Chh1-6a-.js";import{_ as M}from"./u-action-sheet.C0QG6n24.js";import{_ as A}from"./u-search.CSVnMmHg.js";import{_ as z}from"./index.BuZ8YmVY.js";import{_ as O}from"./u-popup.CXrq2y3n.js";import{d as J}from"./portal.BblJR1cW.js";import{S as R,a as Y,b as Z}from"./schedule.taAT1r-m.js";import{u as E}from"./base.DOXur1tF.js";import"./u-icon.wXcRZHbn.js";import"./emitter.DrjJCwnj.js";import"./lsj-upload.CSOZr0lY.js";import"./u-tag.BmeG4z_q.js";import"./ly-tree.DZ8MU_HY.js";import"./u-avatar.q3DpmfEb.js";import"./uni-icons.RJ8Vh9KU.js";import"./u-loading.D5Tc00lz.js";import"./u-checkbox.Cy_cnskM.js";import"./u-checkbox-group.zSC_g3m3.js";import"./u-radio-group.CbnO1TOv.js";import"./resources.DEPsJg7u.js";const K=q({name:"jnpf-select",components:{MultSelect:B,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),disabled:n.disabled,placeholder:n.placeholder,onOpenSelect:p.openSelect,"select-open":u.selectShow},null,8,["modelValue","disabled","placeholder","onOpenSelect","select-open"])):i("",!0),o(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-44e1589a"]]),X={label:"fullName",value:"id"};const H=q({components:{Select:q({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{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:()=>({...X})},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,J(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,i,r,b,F,D){const T=s,_=N(d("u-search"),A),w=f,S=g,C=y,j=N(d("JnpfEmpty"),z),x=V,I=N(d("u-button"),P),k=N(d("u-popup"),O);return t(),a(k,{class:"jnpf-tree-select-popup",maskCloseAble:r.maskCloseAble,mode:"right",modelValue:F.showPopup,"onUpdate:modelValue":i[5]||(i[5]=e=>F.showPopup=e),safeAreaInsetBottom:r.safeAreaInsetBottom,onClose:D.close,"z-index":D.uZIndex,width:"100%"},{default:l((()=>[o(T,{class:"jnpf-tree-select-body"},{default:l((()=>[o(T,{class:"jnpf-tree-select-title"},{default:l((()=>[o(T,{class:"icon-ym icon-ym-report-icon-preview-pagePre u-font-40 backIcon",onClick:i[0]||(i[0]=e=>D.close())}),o(T,{class:"title"},{default:l((()=>[n("选择提醒")])),_:1})])),_:1}),o(T,{class:"jnpf-tree-select-search"},{default:l((()=>[o(_,{placeholder:e.$t("app.apply.pleaseKeyword"),modelValue:F.keyword,"onUpdate:modelValue":i[1]||(i[1]=e=>F.keyword=e),height:"72","show-action":!1,onChange:i[2]||(i[2]=e=>D.search()),"bg-color":"#f0f2f6",shape:"square"},null,8,["placeholder","modelValue"])])),_:1}),o(T,{class:"jnpf-tree-select-tree"},{default:l((()=>[o(x,{style:{height:"100%"},"refresher-enabled":!1,"refresher-threshold":100,"scroll-with-animation":!0,"refresher-triggered":F.triggered,onScrolltolower:D.handleScrollToLower,"scroll-y":!0},{default:l((()=>[F.list.length?(t(),a(T,{key:0,class:"list-box"},{default:l((()=>[(t(!0),m(u,null,p(F.list,((e,i)=>(t(),a(C,{class:"list-item",value:F.innerValue,key:i,onChange:t=>D.radioChange(e)},{default:l((()=>[o(S,{class:"radio-label"},{default:l((()=>[o(w,{class:"u-radio",value:e.id,checked:e.id===F.selectId},null,8,["value","checked"]),o(T,{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(j,{key:1}))])),_:1},8,["refresher-triggered","onScrolltolower"])])),_:1}),o(T,{class:"jnpf-bottom-actions"},{default:l((()=>[o(I,{class:"buttom-btn",onClick:i[3]||(i[3]=e=>D.close())},{default:l((()=>[n("取消")])),_:1}),o(I,{class:"buttom-btn",type:"primary",onClick:i[4]||(i[4]=c((e=>D.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(i,r,n,m,u,p){const h=N(d("u-input"),C),c=e("Select"),f=s;return t(),a(f,{class:"jnpf-tree-select"},{default:l((()=>[o(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"]),o(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"]]),Q=E();const G=q({components:{tdatetime:w,sendSelect:H},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=b("userInfo")||{},this.dataForm.id=e.id,this.btnLoading=!1,this.title=this.dataForm.id?"编辑":"新建",F({title:this.title}),this.dataForm.id)R(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 D();D({delta:2})},handleAction(e){Y(this.dataForm,e+1).then((e=>{r({title:e.msg,complete:()=>{T("refresh"),D({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 D();_({title:"退出此次编辑?",content:"日程信息将不会保存",success:e=>{e.confirm&&(T("refresh"),D({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?Y:Z)({...this.dataForm,files:JSON.stringify(this.dataForm.files)},3).then((e=>{r({title:e.msg,complete:()=>{this.btnLoading=!1,T("refresh"),this.dataForm.id?D({delta:2}):D()}})}))}}}))},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(r,m,u,p,f,g){const y=N(d("u-toast"),S),V=N(d("u-input"),C),b=N(d("u-form-item"),j),F=s,D=N(d("JnpfUploadFile"),I),T=N(d("JnpfSelect"),k),_=N(d("JnpfUserSelect"),v),w=N(d("JnpfColorPicker"),U),B=N(d("JnpfSwitch"),L),$=e("tdatetime"),q=N(d("jnpf-select"),K),A=e("sendSelect"),z=N(d("u-form"),x),O=N(d("u-button"),P),J=N(d("u-action-sheet"),M);return t(),a(F,{class:"scheduleForm-v jnpf-wrap"},{default:l((()=>[o(y,{ref:"uToast"},null,512),o(z,{model:f.dataForm,rules:f.rules,ref:"dataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:l((()=>[o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"标题",prop:"title",required:""},{default:l((()=>[o(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}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"内容",prop:"content"},{default:l((()=>[o(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}),o(F,{class:"jnpf-card u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"附件",prop:"files"},{default:l((()=>[o(D,{modelValue:f.dataForm.files,"onUpdate:modelValue":m[2]||(m[2]=e=>f.dataForm.files=e)},null,8,["modelValue"])])),_:1})])),_:1}),o(F,{class:"jnpf-card"},{default:l((()=>[o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"紧急程度",prop:"urgent"},{default:l((()=>[o(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}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"类型",prop:"category",required:""},{default:l((()=>[o(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}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"创建人",prop:"creatorUserId",required:""},{default:l((()=>[o(_,{modelValue:f.dataForm.creatorUserId,"onUpdate:modelValue":m[5]||(m[5]=e=>f.dataForm.creatorUserId=e),placeholder:"请输入",disabled:"disabled"},null,8,["modelValue"])])),_:1})])),_:1}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"参与人",prop:"toUserIds"},{default:l((()=>[o(_,{modelValue:f.dataForm.toUserIds,"onUpdate:modelValue":m[6]||(m[6]=e=>f.dataForm.toUserIds=e),placeholder:"请选择",multiple:""},null,8,["modelValue"])])),_:1})])),_:1}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"标签颜色",prop:"color"},{default:l((()=>[o(w,{modelValue:f.dataForm.color,"onUpdate:modelValue":m[7]||(m[7]=e=>f.dataForm.color=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"全天",prop:"allDay"},{default:l((()=>[o(B,{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}),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"开始时间",prop:"startDay",required:""},{default:l((()=>[o($,{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}),o(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((()=>[o(T,{modelValue:f.dataForm.duration,"onUpdate:modelValue":m[10]||(m[10]=e=>f.dataForm.duration=e),options:f.durationList},null,8,["modelValue","options"])])),_:1})):i("",!0)])),_:1}),o(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((()=>[o($,{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})):i("",!0)])),_:1}),o(F,{class:"jnpf-card"},{default:l((()=>[o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"提醒时间",prop:"reminderTime"},{default:l((()=>[o(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((()=>[o(b,{label:"提醒方式",prop:"reminderType"},{default:l((()=>[o(q,{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((()=>[o(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})):i("",!0)])),_:1})):i("",!0),o(F,{class:"u-p-l-20 u-p-r-20 form-item-box"},{default:l((()=>[o(b,{label:"重复提醒",prop:"repetition"},{default:l((()=>[o(q,{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}),o(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((()=>[o($,{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})):i("",!0)])),_:1})])),_:1})])),_:1},8,["model","rules"]),o(F,{class:"flowBefore-actions"},{default:l((()=>[o(O,{class:"buttom-btn",onClick:m[17]||(m[17]=e=>g.getResult("cancel"))},{default:l((()=>[n(h(r.$t("common.cancelText")),1)])),_:1}),o(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}),o(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-44c60708"]]);export{G as default};
|