2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
import{w as R,O as $,P,I as N,Q as q}from"./element-plus.9816852d.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as U}from"./vue-router.9f65afb1.js";import{u as A}from"./usePaging.2ad8e1e6.js";import{u as Q}from"./useDictOptions.a2448547.js";import{a as j}from"./index.4eaf9bd5.js";import{a as K,p as M}from"./company.a6553783.js";import{d as g,r as f,$ as y,o as v,c as O,M as z,u as a,K as w,L as s,U as e,R as C,a as m,S as G,k as H,Q as J,n as W}from"./@vue.51d7f2d8.js";import"./lodash.675f209e.js";import{d as X}from"./dict.041d2017.js";import{_ as Y}from"./voucher.vue_vue_type_script_setup_true_name_withdrawEdit_lang.6d701acb.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./useMenuOa.08845eb6.js";import"./wx_oa.fb5e2212.js";const Z={class:"mt-4"},tt={style:{display:"flex"}},ot={class:"flex mt-4 justify-end"},et=g({name:"financeCompanyLists"}),Zt=g({...et,setup(at){j();const h=U(),u=f(!1),c=f(null),D=async o=>{var t,r;u.value=!0,await W(),(t=c.value)==null||t.open("edit"),(r=c.value)==null||r.setFormData(o)},l=y({id:"",company_name:"",master_name:"",master_phone:""}),b=()=>{K({id:d.company_id}).then(o=>{for(const t in l)o[t]!=null&&o[t]!=null&&(l[t]=o[t])})},k=o=>{window.open(o)},d=y({company_id:""});h.query.company_id&&(d.company_id=h.query.company_id,b());const B=y({dictTypeLists:[]});(async()=>{const o=await X({type_id:6});B.dictTypeLists=o.lists})();const E=f([]),F=o=>{E.value=o.map(({id:t})=>t)},{dictData:L}=Q(""),{pager:n,getLists:_,resetParams:st,resetPage:nt}=A({fetchFun:M,params:d});return _(),(o,t)=>{const r=R,i=$,T=P,x=I,V=N,S=q;return v(),O("div",null,[z((v(),w(V,{class:"!border-none",shadow:"never"},{default:s(()=>[e(r,{type:"primary",onClick:t[0]||(t[0]=p=>D(a(l)))},{default:s(()=>[C("\u6DFB\u52A0\u51ED\u8BC1")]),_:1}),m("div",Z,[e(T,{data:a(n).lists,onSelectionChange:F},{default:s(()=>[e(i,{label:"ID",prop:"id","show-overflow-tooltip":"",width:"80"}),e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name",width:"300","show-overflow-tooltip":""},{default:s(()=>[m("span",null,G(a(l).company_name),1)]),_:1}),e(i,{label:"\u5145\u503C\u91D1\u989D",prop:"deposit",width:"180","show-overflow-tooltip":""}),e(i,{label:"\u51ED\u8BC1\u5730\u5740",prop:"voucher","show-overflow-tooltip":""}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",width:"200","show-overflow-tooltip":""}),e(i,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"update_time",width:"200","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",align:"center",width:"100",fixed:"right"},{default:s(({row:p})=>[m("div",tt,[e(r,{type:"primary",link:"",onClick:rt=>k(p.voucher)},{default:s(()=>[C(" \u67E5\u770B\u51ED\u8BC1 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"])]),m("div",ot,[e(x,{modelValue:a(n),"onUpdate:modelValue":t[1]||(t[1]=p=>H(n)?n.value=p:null),onChange:a(_)},null,8,["modelValue","onChange"])])]),_:1})),[[S,a(n).loading]]),a(u)?(v(),w(Y,{key:0,ref_key:"editRef",ref:c,"dict-data":a(L),onSuccess:a(_),onClose:t[2]||(t[2]=p=>u.value=!1)},null,8,["dict-data","onSuccess"])):J("",!0)])}}});export{Zt as default};
|