2025-03-20 10:46:42 +08:00

2 lines
6.1 KiB
JavaScript

import{J as O,G as Q,H as j,L as z,M as G,N as H,O as I,C as J,w as K,D as Z}from"./element-plus.2acb577d.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{b as X}from"./index.81df6f20.js";import{u as ee}from"./usePaging.23706826.js";import{c as oe,d as te}from"./oa_financial.d5633b25.js";import{d as h,s as le,r as E,Z as ue,am as ae,o as f,c as se,U as e,L as l,u as t,R as p,M as D,K as F,a as k,S as A,i as ne,Q as y,n as x}from"./@vue.821a47ec.js";import"./lodash.6bfd3540.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_oaFlowTypeEdit_lang.c8fa49a4.js";import ie from"./detail.908d16c9.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 pe={class:"mt-4"},me={class:"flex mt-4 justify-end"},de=h({name:"oaPersonalQuitLists"}),lo=h({...de,setup(_e){const B=le(),w=E(!1),b=E(null),c=E(!1),s=ue({start_time:"",end_time:"",status:""}),V=E([]),g=n=>{V.value=n.map(({id:o})=>o)},{pager:m,getLists:d,resetParams:L,resetPage:P}=ee({fetchFun:te,params:s}),S=async()=>{var n;w.value=!0,await x(),(n=B.value)==null||n.open("add")},Y=async n=>{var _,r;let o=await oe({id:n});c.value=!0,await x(),(_=b.value)==null||_.open(),(r=b.value)==null||r.setFormData(o)};return d(),(n,o)=>{const _=O,r=J,i=Q,R=j,v=K,$=Z,C=z,M=X,a=G,N=H,U=W,T=ae("perms"),q=I;return f(),se("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e($,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(r,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"uid"},{default:l(()=>[e(_,{class:"flex-1 !flex",modelValue:t(s).start_time,"onUpdate:modelValue":o[0]||(o[0]=u=>t(s).start_time=u),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(_,{class:"flex-1 !flex",modelValue:t(s).end_time,"onUpdate:modelValue":o[1]||(o[1]=u=>t(s).end_time=u),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(R,{modelValue:t(s).status,"onUpdate:modelValue":o[2]||(o[2]=u=>t(s).status=u),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"flex-1"},{default:l(()=>[e(i,{label:"\u5168\u90E8",value:"0"}),e(i,{label:"\u5F85\u5BA1\u6838",value:"1"}),e(i,{label:"\u5BA1\u6838\u4E2D",value:"2"}),e(i,{label:"\u5BA1\u6279\u901A\u8FC7,\u5F85\u6253\u6B3E",value:"3"}),e(i,{label:"\u5BA1\u6838\u4E0D\u901A\u8FC7",value:"4"}),e(i,{label:"\u64A4\u9500\u5BA1\u6838",value:"5"}),e(i,{label:"\u5BA1\u6279\u901A\u8FC7,\u5DF2\u6253\u6B3E",value:"6"})]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(v,{type:" primary",onClick:t(P)},{default:l(()=>o[7]||(o[7]=[p("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(v,{onClick:t(L)},{default:l(()=>o[8]||(o[8]=[p("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),D((f(),F(C,{class:"!border-none",shadow:"never"},{default:l(()=>[D((f(),F(v,{type:"primary",onClick:S},{icon:l(()=>[e(M,{name:"el-icon-Plus"})]),default:l(()=>[o[9]||(o[9]=p(" \u65B0\u589E "))]),_:1})),[[T,["works.rlzy.oa_personal_quit/add"]]]),k("div",pe,[e(N,{data:t(m).lists,onSelectionChange:g},{default:l(()=>[e(a,{label:"\u62A5\u9500\u603B\u91D1\u989D(\u5143)",prop:"total_amount","show-overflow-tooltip":""}),e(a,{label:"\u72B6\u6001",prop:"check_status_text","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u4EBA",prop:"user_name","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""},{default:l(({row:u})=>[p(A(u.dept_name||"\u5168\u516C\u53F8"),1)]),_:1}),e(a,{label:"\u62A5\u9500\u4FDD\u8BC1\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(a,{label:"\u539F\u59CB\u5355\u636E\u65E5\u671F",prop:"expense_time","show-overflow-tooltip":""}),e(a,{label:"\u5165\u8D26\u6708\u4EFD",prop:"income_month","show-overflow-tooltip":""}),e(a,{label:"\u5F55\u5165\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(a,{label:"\u5F53\u524D\u5BA1\u6838\u4EBA",prop:"check_admin_users","show-overflow-tooltip":""},{default:l(({row:u})=>[p(A(u.check_admin_users||"\u5BA1\u6838\u7ED3\u675F"),1)]),_:1}),e(a,{label:"\u6253\u6B3E\u4EBA",prop:"pay_admin_name","show-overflow-tooltip":""}),e(a,{label:"\u6253\u6B3E\u786E\u8BA4\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:u})=>[e(v,{type:"primary",link:"",onClick:fe=>Y(u.id)},{default:l(()=>o[10]||(o[10]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),k("div",me,[e(U,{modelValue:t(m),"onUpdate:modelValue":o[3]||(o[3]=u=>ne(m)?m.value=u:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[q,t(m).loading]]),t(w)?(f(),F(re,{key:0,ref_key:"editRef",ref:B,deptList:n.deptList,onSuccess:t(d),onClose:o[4]||(o[4]=u=>w.value=!1)},null,8,["deptList","onSuccess"])):y("",!0),t(c)?(f(),F(ie,{key:1,ref_key:"detailRef",ref:b,onSuccess:o[5]||(o[5]=u=>(c.value=!1,t(d)())),onClose:o[6]||(o[6]=u=>(c.value=!1,t(d)()))},null,512)):y("",!0)])}}});export{lo as default};