var N=Object.defineProperty,k=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var h=(e,o,r)=>o in e?N(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,w=(e,o)=>{for(var r in o||(o={}))I.call(o,r)&&h(e,r,o[r]);if(_)for(var r of _(o))R.call(o,r)&&h(e,r,o[r]);return e},B=(e,o)=>k(e,A(o));var Y=(e,o,r)=>new Promise((d,a)=>{var g=i=>{try{p(r.next(i))}catch(m){a(m)}},M=i=>{try{p(r.throw(i))}catch(m){a(m)}},p=i=>i.done?d(i.value):Promise.resolve(i.value).then(g,M);p((r=r.apply(e,o)).next())});import{d as D,a2 as T,ad as x,af as P,k as S,u as f,ag as U}from"./vue-vendor-CxLCUzY4.js";import{B as V}from"./index-XZKTTfG1.js";import"./index-ByX9XNkE.js";import{b}from"./user.data-DNJy-IxE.js";import{i as j,j as v}from"./user.api-DAu0nuTv.js";import{i as s}from"./antd-vue-vendor-CahNzUUa.js";import{u as C,B as Q}from"./useForm-Dx3lJ3DG.js";import{a8 as q}from"./index-CLZzJyTP.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./validator-Dx9kcZ5e.js";import"./renderUtils-BgFeePLc.js";const G=D({name:"user-quit-agent-modal"}),zt=D(B(w({},G),{emits:["success","register"],setup(e,{emit:o}){const r=o,[d,{resetFields:a,setFieldsValue:g,validate:M,clearValidate:p,updateSchema:i}]=C({schemas:b,showActionButtonGroup:!1}),[m,{setModalProps:n,closeModal:y}]=q(t=>Y(this,null,function*(){yield a(),n({confirmLoading:!0});let l=t.userId;const u=yield j({userName:t.userName});t=u.result?u.result:t;let c=new Date;t.startTime||(t.startTime=s(c).format("YYYY-MM-DD HH:mm:ss")),t.endTime||(t.endTime=H(c)),yield i([{field:"agentUserName",componentProps:{excludeUserIdList:[l]}}]),yield g(w({},t)),n({confirmLoading:!1})}));function F(){return Y(this,null,function*(){try{const t=yield M();n({confirmLoading:!0}),yield v(t),y(),r("success",t.userName)}finally{n({confirmLoading:!1})}})}function H(t){let l=t.getFullYear()+30,u=s(t).format("MM"),c=s(t).format("DD"),L=s(t).format("HH:mm:ss");return s(l+"-"+u+"-"+c+" "+L).format("YYYY-MM-DD HH:mm:ss")}return(t,l)=>(T(),x(f(V),U(t.$attrs,{onRegister:f(m),width:800,title:"离职交接",onOk:F}),{default:P(()=>[S(f(Q),{onRegister:f(d)},null,8,["onRegister"])]),_:1},16,["onRegister"]))}}));export{zt as default};
