2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
import{w as R,O as P,P as $,I as N,Q as q}from"./element-plus.7fac9e8c.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.799ce07c.js";import{u as U}from"./vue-router.1750fa4b.js";import{u as j}from"./usePaging.b8657078.js";import{u as A}from"./useDictOptions.601c9e96.js";import{a as Q}from"./index.790484d9.js";import{a as K,p as M}from"./company.d21fb762.js";import{d as g,r as f,Z 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 z,j as G,Q as H,n as J}from"./@vue.d637abc3.js";import"./lodash.ffb5376d.js";import{d as W}from"./dict.9b728a76.js";import{_ as X}from"./voucher.vue_vue_type_script_setup_true_name_withdrawEdit_lang.4aa3c9f8.js";import"./lodash-es.151604d4.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.d7d1da82.js";import"./@element-plus.10970f06.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.f9df025a.js";import"./pinia.065bb054.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.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.bbdcd52a.js";import"./index.35244a94.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.f83ef291.js";import"./useMenuOa.4e802959.js";import"./wx_oa.193fc7cd.js";const Y={class:"mt-4"},tt={style:{display:"flex"}},ot={class:"flex mt-4 justify-end"},et=g({name:"financeCompanyLists"}),Yt=g({...et,setup(at){Q();const h=U(),u=f(!1),c=f(null),D=async o=>{var t,r;u.value=!0,await J(),(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])})},B=o=>{window.open(o)},d=y({company_id:""});h.query.company_id&&(d.company_id=h.query.company_id,b());const E=y({dictTypeLists:[]});(async()=>{const o=await W({type_id:6});E.dictTypeLists=o.lists})();const F=f([]),k=o=>{F.value=o.map(({id:t})=>t)},{dictData:L}=A(""),{pager:n,getLists:_,resetParams:st,resetPage:nt}=j({fetchFun:M,params:d});return _(),(o,t)=>{const r=R,i=P,T=$,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",Y,[e(T,{data:a(n).lists,onSelectionChange:k},{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,z(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=>B(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=>G(n)?n.value=p:null),onChange:a(_)},null,8,["modelValue","onChange"])])]),_:1})),[[S,a(n).loading]]),a(u)?(v(),w(X,{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"])):H("",!0)])}}});export{Yt as default};
|