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-CF_FJn6P.js";import"./index-BkgeZpOO.js";import{b}from"./user.data-BmeJpriz.js";import{i as j,j as v}from"./user.api-BUwWVSBN.js";import{i as s}from"./antd-vue-vendor-CDWW6V_M.js";import{u as C,B as Q}from"./useForm-8o5KRzWo.js";import{a8 as q}from"./index-CYriLmQo.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./validator-0TDlyteC.js";import"./renderUtils-CGtepdOw.js";const G=D({name:"user-quit-agent-modal"}),$t=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{$t as default};
