import{y as s,n as a,L as t,M as e,p as o,e as r,f as i,w as l,l as d,k as n,r as m,F as p,g as _,j as u,v as c,s as f,t as g,m as y,i as j,G as b,at as k}from"./index-9aa72eed.js";import{_ as x}from"./s-address-item.3e17a7b2.js";import{a as h,_ as v}from"./s-layout.bffb18b8.js";import{_ as A}from"./s-empty.3adf8b58.js";import{A as w}from"./area.c3ed5c80.js";import{A as F}from"./address.4cae6ae0.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.c66b5271.js";/* empty css                                                                */const C=S({__name:"list",setup(S){const C=s({list:[],loading:!0});return a((async()=>{C.list=(await F.getAddressList()).data,C.loading=!1})),t((()=>{e("areaData")||w.getAreaTree().then((s=>{0===s.code&&o("areaData",s.data)}))})),(s,a)=>{const t=d(y("s-address-item"),x),e=j,o=b,w=d(y("su-fixed"),h),F=d(y("s-empty"),A),S=d(y("s-layout"),v);return r(),i(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:l((()=>[C.list.length?(r(),i(e,{key:0},{default:l((()=>[(r(!0),n(p,null,m(C.list,(s=>(r(),i(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(k("SELECT_ADDRESS",{addressInfo:s}),void f.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):_("",!0),u(w,{bottom:"",placeholder:""},{default:l((()=>[u(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:l((()=>[u(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:a[0]||(a[0]=s=>c(f).$router.go("/pages/user/invoice/edit"))},{default:l((()=>[g(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==C.list.length||C.loading?_("",!0):(r(),i(F,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};
