data_center/public/admin/assets/company.ca9f06cc.js

2 lines
5.6 KiB
JavaScript

import{B as M,C as O,M as $,N as j,w as K,D as Q,I as z,O as G,P as H,Q as J}from"./element-plus.9c2fdfa8.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as X}from"./vue-router.e2f4a118.js";import{d as x,r as h,$ as B,a4 as Y,o as d,c as V,U as e,L as a,M as c,u as o,K as E,V as y,T as Z,a7 as ee,R as C,a as _,S as oe,k as te}from"./@vue.53f8d7c3.js";import{u as ae}from"./usePaging.c22e2b6f.js";import{u as le}from"./useDictOptions.aa9aa458.js";import{a as se,k as ue}from"./index.5be037e5.js";import{h as ne}from"./company.0e78bc1e.js";import"./lodash.47b8af7d.js";import{d as re}from"./dict.6bcfed15.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.96be3cef.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.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";const pe={class:"mt-4"},me={class:"text-success"},ie={style:{display:"flex"}},de={class:"flex mt-4 justify-end"},ce=x({name:"financeCompanyLists"}),to=x({...ce,setup(_e){var g;se();const w=X(),p=h(!0),s=B({company_name:"",area:"",street:"",company_type:"",area_manager:"",is_contract:""});w.query.company_type&&(p.value=!1,s.company_type=((g=w.query.company_type)==null?void 0:g.toString())||"");const F=B({dictTypeLists:[]});(async()=>{const m=await re({type_id:6});F.dictTypeLists=m.lists})();const k=h([]),D=m=>{k.value=m.map(({id:l})=>l)};le("");const{pager:r,getLists:b,resetParams:L,resetPage:T}=ae({fetchFun:ne,params:s});return b(),(m,l)=>{const i=M,n=O,A=$,S=j,f=K,U=Q,v=z,u=G,P=Y("router-link"),q=H,I=W,N=J;return d(),V("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(U,{class:"mb-[-16px] formdata",model:o(s),inline:""},{default:a(()=>[e(n,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o(s).company_name,"onUpdate:modelValue":l[0]||(l[0]=t=>o(s).company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),c(e(n,{label:"\u533A",prop:"area"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o(s).area,"onUpdate:modelValue":l[1]||(l[1]=t=>o(s).area=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u533A"},null,8,["modelValue"])]),_:1},512),[[y,o(p)]]),c(e(n,{label:"\u9547",prop:"street"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o(s).street,"onUpdate:modelValue":l[2]||(l[2]=t=>o(s).street=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9547"},null,8,["modelValue"])]),_:1},512),[[y,o(p)]]),c(e(n,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type"},{default:a(()=>[e(S,{modelValue:o(s).company_type,"onUpdate:modelValue":l[3]||(l[3]=t=>o(s).company_type=t),placeholder:"\u8BF7\u9009\u62E9\u516C\u53F8\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:a(()=>[(d(!0),V(Z,null,ee(o(F).dictTypeLists,(t,R)=>(d(),E(A,{key:R,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512),[[y,o(p)]]),e(n,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:o(s).area_manager,"onUpdate:modelValue":l[4]||(l[4]=t=>o(s).area_manager=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7247\u533A\u7ECF\u7406"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(f,{type:"primary",onClick:o(T)},{default:a(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o(L)},{default:a(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((d(),E(v,{class:"!border-none",shadow:"never"},{default:a(()=>[_("div",pe,[e(q,{data:o(r).lists,onSelectionChange:D},{default:a(()=>[e(u,{label:"ID",prop:"id","show-overflow-tooltip":"",width:"80"}),e(u,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name",width:"300","show-overflow-tooltip":""}),e(u,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type","show-overflow-tooltip":""}),e(u,{label:"\u516C\u53F8\u6536\u76CA",prop:"deposit","show-overflow-tooltip":""},{default:a(({row:t})=>[_("span",me,oe(t.deposit),1)]),_:1}),e(u,{label:"\u533A\u53BF",prop:"area","show-overflow-tooltip":""}),e(u,{label:"\u4E61\u9547",prop:"street","show-overflow-tooltip":""}),e(u,{label:"\u4E3B\u8054\u7CFB\u4EBA",prop:"master_name","show-overflow-tooltip":""}),e(u,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"master_phone","show-overflow-tooltip":""}),e(u,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",align:"center",width:"150",fixed:"right"},{default:a(({row:t})=>[_("div",ie,[e(f,{type:"primary",link:""},{default:a(()=>[e(P,{to:{path:o(ue)("finance.account_log/lists"),query:{company_id:t.id}}},{default:a(()=>[C("\u67E5\u770B\u6210\u5458")]),_:2},1032,["to"])]),_:2},1024)])]),_:1})]),_:1},8,["data"])]),_("div",de,[e(I,{modelValue:o(r),"onUpdate:modelValue":l[5]||(l[5]=t=>te(r)?r.value=t:null),onChange:o(b)},null,8,["modelValue","onChange"])])]),_:1})),[[N,o(r).loading]])])}}});export{to as default};