import{J as z,G as O,H as Q,L as j,M as G,N as H,O as J,C as K,w as Z,D as W}from"./element-plus.2acb577d.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{b as ee}from"./index.81df6f20.js";import{u as oe}from"./usePaging.23706826.js";import{u as te}from"./useDictOptions.4fbfb4d7.js";import{h as le,m as ae}from"./oa_financial.d5633b25.js";import{d as x,s as ue,r as b,Z as se,am as ie,o as m,c as ne,U as e,L as l,u as t,R as p,M as E,K as v,a as A,S as g,i as re,Q as V,n as h}from"./@vue.821a47ec.js";import"./lodash.6bfd3540.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_oaFlowTypeEdit_lang.1f24cdc7.js";import me from"./detail.4461dbf6.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.650fec0c.js";import"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import"./oa_flow.d67349c4.js";import"./index.37024cd6.js";import"./index.f292cd50.js";import"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=x({name:"oaPersonalQuitLists"}),so=x({...fe,setup(ce){const B=ue(),w=b(!1),C=b(null),F=b(!1),i=se({start_time:"",end_time:"",status:""}),D=b([]),L=s=>{D.value=s.map(({id:o})=>o)},{dictData:P}=te("oa_approve_cate"),{pager:d,getLists:_,resetParams:S,resetPage:Y}=oe({fetchFun:ae,params:i}),$=async()=>{var s;w.value=!0,await h(),(s=B.value)==null||s.open("add")},R=async s=>{var f,r;let o=await le({id:s});F.value=!0,await h(),(f=C.value)==null||f.open(),(r=C.value)==null||r.setFormData(o)};return _(),(s,o)=>{const f=z,r=K,n=O,M=Q,c=Z,N=W,k=j,U=ee,u=G,q=H,T=X,y=ie("perms"),I=J;return m(),ne("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(N,{class:"mb-[-16px]",model:t(i),inline:""},{default:l(()=>[e(r,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"uid"},{default:l(()=>[e(f,{class:"flex-1 !flex",modelValue:t(i).start_time,"onUpdate:modelValue":o[0]||(o[0]=a=>t(i).start_time=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"uid"},{default:l(()=>[e(f,{class:"flex-1 !flex",modelValue:t(i).end_time,"onUpdate:modelValue":o[1]||(o[1]=a=>t(i).end_time=a),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u72B6\u6001",prop:"quit_time",class:"w-[160px]"},{default:l(()=>[e(M,{modelValue:t(i).status,"onUpdate:modelValue":o[2]||(o[2]=a=>t(i).status=a),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"flex-1"},{default:l(()=>[e(n,{label:"\u5168\u90E8",value:"0"}),e(n,{label:"\u5F85\u5BA1\u6838",value:"1"}),e(n,{label:"\u5BA1\u6838\u4E2D",value:"2"}),e(n,{label:"\u5BA1\u6279\u901A\u8FC7,\u5F85\u5F00\u5177",value:"3"}),e(n,{label:"\u5BA1\u6838\u4E0D\u901A\u8FC7",value:"4"}),e(n,{label:"\u64A4\u9500\u5BA1\u6838",value:"5"}),e(n,{label:"\u5BA1\u6279\u901A\u8FC7,\u5DF2\u5F00\u5177",value:"6"}),e(n,{label:"\u5DF2\u4F5C\u5E9F",value:"7"})]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(c,{type:" primary",onClick:t(Y)},{default:l(()=>o[8]||(o[8]=[p("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(c,{onClick:t(S)},{default:l(()=>o[9]||(o[9]=[p("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((m(),v(k,{class:"!border-none",shadow:"never"},{default:l(()=>[E((m(),v(c,{type:"primary",onClick:$},{icon:l(()=>[e(U,{name:"el-icon-Plus"})]),default:l(()=>[o[10]||(o[10]=p(" \u65B0\u589E "))]),_:1})),[[y,["works.rlzy.oa_personal_quit/add"]]]),E((m(),v(c,{disabled:!t(D).length,onClick:o[3]||(o[3]=a=>s.handleDelete(t(D)))},{default:l(()=>o[11]||(o[11]=[p(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[y,["works.rlzy.oa_personal_quit/delete"]]]),A("div",de,[e(q,{data:t(d).lists,onSelectionChange:L},{default:l(()=>[e(u,{label:"\u5F00\u7968\u62AC\u5934",prop:"invoice_title","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u7968\u91D1\u989D(\u5143)",prop:"amount","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(u,{label:"\u53D1\u7968\u72B6\u6001",prop:"check_status_text","show-overflow-tooltip":""}),e(u,{label:"\u7533\u8BF7\u4EBA",prop:"user_name","show-overflow-tooltip":""}),e(u,{label:"\u6240\u5C5E\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""},{default:l(({row:a})=>[p(g(a.dept_name||"\u5168\u516C\u53F8"),1)]),_:1}),e(u,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u5F53\u524D\u5BA1\u6838\u4EBA",prop:"check_admin_users","show-overflow-tooltip":""},{default:l(({row:a})=>[p(g(a.check_admin_users||"\u5BA1\u6838\u7ED3\u675F"),1)]),_:1}),e(u,{label:"\u5F00\u7968\u4EBA",prop:"open_admin_name","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time","show-overflow-tooltip":""}),e(u,{label:"\u53D1\u7968\u53F7\u7801",prop:"code","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[e(c,{type:"primary",link:"",onClick:ve=>R(a.id)},{default:l(()=>o[12]||(o[12]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),A("div",_e,[e(T,{modelValue:t(d),"onUpdate:modelValue":o[4]||(o[4]=a=>re(d)?d.value=a:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[I,t(d).loading]]),t(w)?(m(),v(pe,{key:0,ref_key:"editRef",ref:B,deptList:s.deptList,"dict-data":t(P),onSuccess:t(_),onClose:o[5]||(o[5]=a=>w.value=!1)},null,8,["deptList","dict-data","onSuccess"])):V("",!0),t(F)?(m(),v(me,{key:1,ref_key:"detailRef",ref:C,onSuccess:o[6]||(o[6]=a=>(F.value=!1,t(_)())),onClose:o[7]||(o[7]=a=>(F.value=!1,t(_)()))},null,512)):V("",!0)])}}});export{so as default};