data_center/public/admin/assets/depositList.bb22d8ab.js

2 lines
4.0 KiB
JavaScript

import{w as R,O as $,P,I as N,Q as q}from"./element-plus.9c2fdfa8.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as U}from"./vue-router.e2f4a118.js";import{u as A}from"./usePaging.c22e2b6f.js";import{u as Q}from"./useDictOptions.773276bb.js";import{a as j}from"./index.b57b84f0.js";import{b as K,v as M}from"./company.da0ac536.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,Q as G,U as e,R as C,a as m,S as H,k as J,n as W}from"./@vue.53f8d7c3.js";import"./lodash.5512e984.js";import{d as X}from"./dict.3d59f58c.js";import{_ as Y}from"./voucher.vue_vue_type_script_setup_true_name_withdrawEdit_lang.c2398797.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.92474d72.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.3fc23cf2.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./useMenuOa.902528ff.js";import"./wx_oa.91a2178f.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,H(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=>J(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"])):G("",!0)])}}});export{Zt as default};