import{y as s,n as a,L as t,N 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 u,j as _,v as c,s as f,t as g,m as y,i as j,G as b,at as h}from"./index-68dd960a.js";import{_ as k}from"./s-address-item.445bec62.js";import{a as x,_ as v}from"./s-layout.454a15cd.js";import{_ as w}from"./s-empty.fd15ca2f.js";import{A}from"./area.0f395be8.js";import{A as F}from"./address.ca26c74e.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.471da4c0.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")||A.getAreaTree().then((s=>{0===s.code&&o("areaData",s.data)}))})),(s,a)=>{const t=d(y("s-address-item"),k),e=j,o=b,A=d(y("su-fixed"),x),F=d(y("s-empty"),w),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=>(h("SELECT_ADDRESS",{addressInfo:s}),void f.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):u("",!0),_(A,{bottom:"",placeholder:""},{default:l((()=>[_(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:l((()=>[_(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?u("",!0):(r(),i(F,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};
