2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{C as P,D as R,w as z,F as U,J as L,P as N,Q as S,R as T}from"./element-plus.ff90c99c.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as I}from"./usePaging.bd7a7dec.js";import{u as j}from"./useDictOptions.09fdf1bc.js";import{_ as Q,a as q}from"./edit.vue_vue_type_script_setup_true_name_companyFormEdit_lang.12dbb6fd.js";import"./lodash.3e731b89.js";import"./index.872975fb.js";import{d as b,s as J,r as w,$ as W,o as u,c as G,W as o,Q as a,u as e,U as E,R as H,P as C,a as F,j as K,T as M}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.000fc3bb.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";const O={class:"mt-4"},X={class:"flex mt-4 justify-end"},Y=b({name:"companyFormLists"}),Jo=b({...Y,setup(Z){const h=J(),d=w(!1),l=W({company_name:"",organization_code:"",address:"",master_name:"",type:"",master_email:"",notes:""}),v=w([]),g=c=>{v.value=c.map(({id:t})=>t)},{dictData:D}=j(""),{pager:m,getLists:p,resetParams:V,resetPage:x}=I({fetchFun:q,params:l});return p(),(c,t)=>{const i=P,s=R,_=z,y=U,f=L,r=N,B=S,k=$,A=T;return u(),G("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(y,{class:"mb-[-16px]",model:e(l),inline:""},{default:a(()=>[o(s,{label:"\u5546\u6237\u540D\u79F0",prop:"company_name"},{default:a(()=>[o(i,{class:"w-[280px]",modelValue:e(l).company_name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(l).company_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(s,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:a(()=>[o(i,{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(s,{label:"\u6CD5\u4EBA\u540D\u79F0",prop:"master_name"},{default:a(()=>[o(i,{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(s,null,{default:a(()=>[o(_,{type:"primary",onClick:e(x)},{default:a(()=>[E("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(V)},{default:a(()=>[E("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((u(),C(f,{class:"!border-none",shadow:"never"},{default:a(()=>[F("div",O,[o(B,{data:e(m).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"])]),F("div",X,[o(k,{modelValue:e(m),"onUpdate:modelValue":t[3]||(t[3]=n=>K(m)?m.value=n:null),onChange:e(p)},null,8,["modelValue","onChange"])])]),_:1})),[[A,e(m).loading]]),e(d)?(u(),C(Q,{key:0,ref_key:"editRef",ref:h,"dict-data":e(D),onSuccess:e(p),onClose:t[4]||(t[4]=n=>d.value=!1)},null,8,["dict-data","onSuccess"])):M("",!0)])}}});export{Jo as default};
|