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