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-D2AmS0aU.js";import"./index-ARbUvvsq.js";import{b}from"./user.data-D5VRrih7.js";import{i as j,j as v}from"./user.api-BLHI3_6c.js";import{i as s}from"./antd-vue-vendor-CDWW6V_M.js";import{u as C,B as Q}from"./useForm-CcjrODHR.js";import{a8 as q}from"./index-B_2CoVdl.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./validator-jM63P_3m.js";import"./renderUtils-Cbe4E0PZ.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};
