2025-03-20 10:25:32 +08:00

2 lines
5.4 KiB
JavaScript

import{J as A,G as T,H as O,L as j,M as q,N as G,O as H,C as J,w as K,D as Q}from"./element-plus.2acb577d.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{u as z}from"./usePaging.23706826.js";import W from"./detail.a738fa79.js";import X from"./edit.26116426.js";import{h as k,i as ee}from"./oa_financial.d5633b25.js";import{d as V,r as c,s as oe,Z as te,o as v,c as le,U as e,L as a,u as t,R as w,M as ae,K as C,a as B,i as ue,Q as y,n as x}from"./@vue.821a47ec.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"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import"./index.f292cd50.js";import"./index.81df6f20.js";import"./lodash.6bfd3540.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";const se={class:"mt-4"},ne={class:"flex mt-4 justify-end"},ie=V({name:"oaSealCateLists"}),Ke=V({...ie,setup(re){const D=c(null),d=c(!1),F=oe(),f=c(!1),n=te({status:"",start_time:"",end_time:""}),g=c([]),h=r=>{g.value=r.map(({id:o})=>o)},{pager:p,getLists:m,resetParams:Y,resetPage:P}=z({fetchFun:ee,params:n}),R=async r=>{var i,s;let o=await k({id:r});f.value=!0,await x(),(i=F.value)==null||i.open("edit"),(s=F.value)==null||s.setFormData(o)},$=async r=>{var i,s;let o=await k({id:r});d.value=!0,await x(),(i=D.value)==null||i.open(),(s=D.value)==null||s.setFormData(o)};return m(),(r,o)=>{const i=A,s=J,b=T,M=O,_=K,S=Q,E=j,u=q,I=G,L=Z,N=H;return v(),le("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(S,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[e(s,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"uid"},{default:a(()=>[e(i,{class:"flex-1 !flex",modelValue:t(n).start_time,"onUpdate:modelValue":o[0]||(o[0]=l=>t(n).start_time=l),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"uid"},{default:a(()=>[e(i,{class:"flex-1 !flex",modelValue:t(n).end_time,"onUpdate:modelValue":o[1]||(o[1]=l=>t(n).end_time=l),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u72B6\u6001",prop:"status",class:"w-[160px]"},{default:a(()=>[e(M,{modelValue:t(n).status,"onUpdate:modelValue":o[2]||(o[2]=l=>t(n).status=l),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"flex-1"},{default:a(()=>[e(b,{label:"\u672A\u5230\u8D26",value:"1"}),e(b,{label:"\u90E8\u5206\u5230\u8D26",value:"2"}),e(b,{label:"\u5168\u90E8\u5230\u8D26",value:"3"})]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:a(()=>[e(_,{type:"primary",onClick:t(P)},{default:a(()=>o[8]||(o[8]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(_,{onClick:t(Y)},{default:a(()=>o[9]||(o[9]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ae((v(),C(E,{class:"!border-none",shadow:"never"},{default:a(()=>[B("div",se,[e(I,{data:t(p).lists,onSelectionChange:h},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5230\u8D26\u72B6\u6001",prop:"is_cash_text","show-overflow-tooltip":""}),e(u,{label:"\u5230\u8D26\u91D1\u989D",prop:"enter_amount","show-overflow-tooltip":""}),e(u,{label:"\u6700\u65B0\u5230\u8D26\u65F6\u95F4",prop:"enter_time","show-overflow-tooltip":""}),e(u,{label:"\u53D1\u7968\u62AC\u5934",prop:"invoice_title","show-overflow-tooltip":""}),e(u,{label:"\u53D1\u7968\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u7968\u7C7B\u578B",prop:"type_text","show-overflow-tooltip":""}),e(u,{label:"\u7533\u8BF7\u5F00\u7968\u4EBA",prop:"user_name","show-overflow-tooltip":""}),e(u,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u53D1\u7968\u53F7\u7801",prop:"code","show-overflow-tooltip":""}),e(u,{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:l})=>[e(_,{type:"primary",link:"",onClick:U=>R(l.id)},{default:a(()=>o[10]||(o[10]=[w(" \u5230\u8D26\u7BA1\u7406 ")])),_:2},1032,["onClick"]),e(_,{type:"primary",link:"",onClick:U=>$(l.id)},{default:a(()=>o[11]||(o[11]=[w(" \u5230\u8D26\u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),B("div",ne,[e(L,{modelValue:t(p),"onUpdate:modelValue":o[3]||(o[3]=l=>ue(p)?p.value=l:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[N,t(p).loading]]),t(f)?(v(),C(X,{key:0,ref_key:"editRef",ref:F,onSuccess:o[4]||(o[4]=l=>(t(m)(),f.value=!1)),onClose:o[5]||(o[5]=l=>f.value=!1)},null,512)):y("",!0),t(d)?(v(),C(W,{key:1,ref_key:"detailRef",ref:D,onSuccess:o[6]||(o[6]=l=>(d.value=!1,t(m)())),onClose:o[7]||(o[7]=l=>(d.value=!1,t(m)()))},null,512)):y("",!0)])}}});export{Ke as default};