data_center/public/admin/assets/index.4d3d2e41.js

2 lines
4.3 KiB
JavaScript

import{B as z,C as L,w as P,D as R,I as U,O as I,P as N,Q as S}from"./element-plus.9c2fdfa8.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as T}from"./usePaging.c22e2b6f.js";import{u as Q}from"./useDictOptions.a13e8a93.js";import{_ as j,a as q}from"./edit.vue_vue_type_script_setup_true_name_companyFormEdit_lang.32762284.js";import"./lodash.47b8af7d.js";import"./index.6e8143ba.js";import{d as b,s as K,r as w,$ as M,o as p,c as O,U as o,L as a,M as G,u as e,K as E,Q as H,R as h,a as C,k as J}from"./@vue.53f8d7c3.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"./index.6be73b2c.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.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 W={class:"mt-4"},X={class:"flex mt-4 justify-end"},Y=b({name:"companyFormLists"}),jo=b({...Y,setup(Z){const F=K(),d=w(!1),l=M({merchant_name:"",organization_code:"",address:"",master_name:"",type:"",master_email:"",notes:""}),v=w([]),g=c=>{v.value=c.map(({id:t})=>t)},{dictData:D}=Q(""),{pager:s,getLists:i,resetParams:V,resetPage:x}=T({fetchFun:q,params:l});return i(),(c,t)=>{const u=z,m=L,_=P,B=R,f=U,r=I,k=N,y=$,A=S;return p(),O("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(B,{class:"mb-[-16px]",model:e(l),inline:""},{default:a(()=>[o(m,{label:"\u5546\u6237\u540D\u79F0",prop:"merchant_name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:e(l).merchant_name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(l).merchant_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(m,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:e(l).organization_code,"onUpdate:modelValue":t[1]||(t[1]=n=>e(l).organization_code=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801"},null,8,["modelValue"])]),_:1}),o(m,{label:"\u6CD5\u4EBA\u540D\u79F0",prop:"master_name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:e(l).master_name,"onUpdate:modelValue":t[2]||(t[2]=n=>e(l).master_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6CD5\u4EBA\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(m,null,{default:a(()=>[o(_,{type:"primary",onClick:e(x)},{default:a(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(V)},{default:a(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),G((p(),E(f,{class:"!border-none",shadow:"never"},{default:a(()=>[C("div",W,[o(k,{data:e(s).lists,onSelectionChange:g},{default:a(()=>[o(r,{label:"ID",prop:"id",width:"150px","show-overflow-tooltip":""}),o(r,{label:"\u5546\u6237\u540D\u79F0",width:"330px",prop:"company_name","show-overflow-tooltip":""}),o(r,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code",width:"250px","show-overflow-tooltip":""}),o(r,{label:"\u8BE6\u7EC6\u5730\u5740",width:"350px",prop:"address","show-overflow-tooltip":""}),o(r,{label:"\u6CD5\u4EBA\u540D\u79F0",width:"120px",prop:"master_name","show-overflow-tooltip":""}),o(r,{label:"\u5907\u6CE8",prop:"notes","show-overflow-tooltip":""})]),_:1},8,["data"])]),C("div",X,[o(y,{modelValue:e(s),"onUpdate:modelValue":t[3]||(t[3]=n=>J(s)?s.value=n:null),onChange:e(i)},null,8,["modelValue","onChange"])])]),_:1})),[[A,e(s).loading]]),e(d)?(p(),E(j,{key:0,ref_key:"editRef",ref:F,"dict-data":e(D),onSuccess:e(i),onClose:t[4]||(t[4]=n=>d.value=!1)},null,8,["dict-data","onSuccess"])):H("",!0)])}}});export{jo as default};