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-zKZnG1QC.js";import"./index-BN26Feep.js";import{b}from"./user.data-CKKSq6sB.js";import{i as j,j as v}from"./user.api-CoaMxYm2.js";import{i as s}from"./antd-vue-vendor-CahNzUUa.js";import{u as C,B as Q}from"./useForm-DfoT2G6J.js";import{a8 as q}from"./index-Cy4uayzW.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./validator-CyHCj96y.js";import"./renderUtils-BcsccCoe.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};
