2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
import{B as Q,C as K,M as Z,N as z,w as G,D as H,I as J,O as W,P as X,Q as Y}from"./element-plus.7fac9e8c.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.799ce07c.js";import{u as oe}from"./vue-router.1750fa4b.js";import{d as L,r as _,Z as D,ag as te,o as m,c as x,U as e,L as l,u as o,M as f,V as b,T as ae,a9 as le,K as g,R as y,a as C,S as se,j as ne,Q as re,n as ue}from"./@vue.d637abc3.js";import{u as pe}from"./usePaging.b8657078.js";import{u as ie}from"./useDictOptions.601c9e96.js";import{a as me,k as de}from"./index.790484d9.js";import{k as ce}from"./company.d21fb762.js";import"./lodash.ffb5376d.js";import{d as _e}from"./dict.9b728a76.js";import{_ as fe}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 ye={class:"mt-4"},Ce={class:"text-success"},we={style:{display:"flex"}},ve={class:"flex mt-4 justify-end"},Fe=L({name:"financeCompanyLists"}),fo=L({...Fe,setup(be){var E;me();const B=oe(),d=_(!0),w=_(!1),v=_(null),S=async u=>{var a,r;w.value=!0,await ue(),(a=v.value)==null||a.open("edit"),(r=v.value)==null||r.setFormData(u)},s=D({company_name:"",area:"",street:"",company_type:"",area_manager:"",is_contract:""});B.query.company_type&&(d.value=!1,s.company_type=((E=B.query.company_type)==null?void 0:E.toString())||"");const h=D({dictTypeLists:[]});(async()=>{const u=await _e({type_id:6});h.dictTypeLists=u.lists})();const T=_([]),U=u=>{T.value=u.map(({id:a})=>a)},{dictData:A}=ie(""),{pager:i,getLists:F,resetParams:P,resetPage:R}=pe({fetchFun:ce,params:s});return F(),(u,a)=>{const r=Q,p=K,N=Z,q=z,c=G,I=H,V=J,n=W,$=te("router-link"),j=X,M=ee,O=Y;return m(),x("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px] formdata",model:o(s),inline:""},{default:l(()=>[e(p,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(s).company_name,"onUpdate:modelValue":a[0]||(a[0]=t=>o(s).company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),f(e(p,{label:"\u533A",prop:"area"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(s).area,"onUpdate:modelValue":a[1]||(a[1]=t=>o(s).area=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u533A"},null,8,["modelValue"])]),_:1},512),[[b,o(d)]]),f(e(p,{label:"\u9547",prop:"street"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(s).street,"onUpdate:modelValue":a[2]||(a[2]=t=>o(s).street=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9547"},null,8,["modelValue"])]),_:1},512),[[b,o(d)]]),f(e(p,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type"},{default:l(()=>[e(q,{modelValue:o(s).company_type,"onUpdate:modelValue":a[3]||(a[3]=t=>o(s).company_type=t),placeholder:"\u8BF7\u9009\u62E9\u516C\u53F8\u7C7B\u578B",clearable:"",class:"w-[280px]"},{default:l(()=>[(m(!0),x(ae,null,le(o(h).dictTypeLists,(t,k)=>(m(),g(N,{key:k,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512),[[b,o(d)]]),e(p,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(s).area_manager,"onUpdate:modelValue":a[4]||(a[4]=t=>o(s).area_manager=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7247\u533A\u7ECF\u7406"},null,8,["modelValue"])]),_:1}),e(p,null,{default:l(()=>[e(c,{type:"primary",onClick:o(R)},{default:l(()=>[y("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:o(P)},{default:l(()=>[y("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((m(),g(V,{class:"!border-none",shadow:"never"},{default:l(()=>[C("div",ye,[e(j,{data:o(i).lists,onSelectionChange:U},{default:l(()=>[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:l(({row:t})=>[C("span",Ce,se(t.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:l(({row:t})=>[C("div",we,[e(c,{type:"primary",link:"",onClick:k=>S(t)},{default:l(()=>[y(" \u51ED\u8BC1\u5F55\u5165 ")]),_:2},1032,["onClick"]),e(c,{type:"primary",link:""},{default:l(()=>[e($,{to:{path:o(de)("finance.depositList"),query:{company_id:t.id}}},{default:l(()=>[y("\u51ED\u8BC1\u5217\u8868")]),_:2},1032,["to"])]),_:2},1024)])]),_:1})]),_:1},8,["data"])]),C("div",ve,[e(M,{modelValue:o(i),"onUpdate:modelValue":a[5]||(a[5]=t=>ne(i)?i.value=t:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[O,o(i).loading]]),o(w)?(m(),g(fe,{key:0,ref_key:"editRef",ref:v,"dict-data":o(A),onSuccess:o(F),onClose:a[6]||(a[6]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{fo as default};
|