2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{B as Q,C as j,M as K,N as z,w as G,D as H,I as J,O as W,P as X,Q as Y}from"./element-plus.9c2fdfa8.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as ee}from"./vue-router.e2f4a118.js";import{d as x,r as c,$ as k,a4 as oe,o as i,c as D,U as e,L as t,M as V,u as o,K as w,Q as te,V as ae,T as le,a7 as ne,R as d,a as _,S as se,k as pe,n as re}from"./@vue.53f8d7c3.js";import{u as ie}from"./usePaging.c22e2b6f.js";import{u as ue}from"./useDictOptions.773276bb.js";import{a as me,k as ce}from"./index.b57b84f0.js";import{c as de,t as _e}from"./company.da0ac536.js";import"./lodash.5512e984.js";import{_ as fe}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 ye={class:"mt-4"},Ce={class:"text-success"},ve={style:{display:"flex"}},we={class:"flex mt-4 justify-end"},he=x({name:"financeCompanyLists"}),_o=x({...he,setup(Fe){var B;me();const h=ee(),F=c(!0),f=c(!1),y=c(null),L=async p=>{var l,u;f.value=!0,await re(),(l=y.value)==null||l.open("edit"),(u=y.value)==null||u.setFormData(p)},s=k({company_name:"",company_type:""});h.query.company_type&&(F.value=!1,s.company_type=((B=h.query.company_type)==null?void 0:B.toString())||"");const b=k({dictTypeLists:[]});(async()=>{const p=await de();b.dictTypeLists=p})();const T=c([]),S=p=>{T.value=p.map(({id:l})=>l)},{dictData:P}=ue(""),{pager:r,getLists:C,resetParams:R,resetPage:N}=ie({fetchFun:_e,params:s});return C(),(p,l)=>{const u=Q,v=j,U=K,$=z,m=G,q=H,g=J,n=W,I=oe("router-link"),A=X,M=Z,O=Y;return i(),D("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(q,{class:"mb-[-16px] formdata",model:o(s),inline:""},{default:t(()=>[e(v,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:o(s).company_name,"onUpdate:modelValue":l[0]||(l[0]=a=>o(s).company_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),V(e(v,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type"},{default:t(()=>[e($,{modelValue:o(s).company_type,"onUpdate:modelValue":l[1]||(l[1]=a=>o(s).company_type=a),placeholder:"\u8BF7\u9009\u62E9\u516C\u53F8\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:t(()=>[(i(!0),D(le,null,ne(o(b).dictTypeLists,(a,E)=>(i(),w(U,{key:E,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512),[[ae,o(F)]]),e(v,null,{default:t(()=>[e(m,{type:"primary",onClick:o(N)},{default:t(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(R)},{default:t(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),V((i(),w(g,{class:"!border-none",shadow:"never"},{default:t(()=>[_("div",ye,[e(A,{data:o(r).lists,onSelectionChange:S},{default:t(()=>[e(n,{label:"ID",prop:"id","show-overflow-tooltip":"",width:"80"}),e(n,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name",width:"300","show-overflow-tooltip":""}),e(n,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type","show-overflow-tooltip":""}),e(n,{label:"\u62BC\u91D1",prop:"deposit","show-overflow-tooltip":""},{default:t(({row:a})=>[_("span",Ce,se(a.deposit),1)]),_:1}),e(n,{label:"\u533A\u53BF",prop:"area","show-overflow-tooltip":""}),e(n,{label:"\u4E61\u9547",prop:"street","show-overflow-tooltip":""}),e(n,{label:"\u4E3B\u8054\u7CFB\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(n,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"master_phone","show-overflow-tooltip":""}),e(n,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",align:"center",width:"200",fixed:"right"},{default:t(({row:a})=>[_("div",ve,[e(m,{type:"primary",link:"",onClick:E=>L(a)},{default:t(()=>[d(" \u51ED\u8BC1\u5F55\u5165 ")]),_:2},1032,["onClick"]),e(m,{type:"primary",link:""},{default:t(()=>[e(I,{to:{path:o(ce)("finance.depositList"),query:{company_id:a.id}}},{default:t(()=>[d("\u51ED\u8BC1\u5217\u8868")]),_:2},1032,["to"])]),_:2},1024)])]),_:1})]),_:1},8,["data"])]),_("div",we,[e(M,{modelValue:o(r),"onUpdate:modelValue":l[2]||(l[2]=a=>pe(r)?r.value=a:null),onChange:o(C)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(r).loading]]),o(f)?(i(),w(fe,{key:0,ref_key:"editRef",ref:y,"dict-data":o(P),onSuccess:o(C),onClose:l[3]||(l[3]=a=>f.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{_o as default};
|