import{v as s,n as a,J as t,K as e,R as o,e as r,f as i,w as d,l,k as n,r as m,F as p,g as u,j as _,u as c,s as f,p as g,m as y,i as j,D as b,as as k}from"./index-219abc09.js";import{_ as x}from"./s-address-item.c9541ef3.js";import{a as h,_ as v}from"./s-layout.e3f07a22.js";import{_ as w}from"./s-empty.0224d4b9.js";import{A}from"./area.c7fa9e39.js";import{A as C}from"./address.ca1c88de.js";import{_ as D}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.480ce5b4.js";/* empty css                                                                */const S=D({__name:"list",setup(D){const S=s({list:[],loading:!0});return a((async()=>{S.list=(await C.getAddressList()).data,S.loading=!1})),t((()=>{e("areaData")||A.getAreaTree().then((s=>{0===s.code&&o("areaData",s.data)}))})),(s,a)=>{const t=l(y("s-address-item"),x),e=j,o=b,A=l(y("su-fixed"),h),C=l(y("s-empty"),w),D=l(y("s-layout"),v);return r(),i(D,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:d((()=>[S.list.length?(r(),i(e,{key:0},{default:d((()=>[(r(!0),n(p,null,m(S.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})):u("",!0),_(A,{bottom:"",placeholder:""},{default:d((()=>[_(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:d((()=>[_(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:d((()=>[g(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==S.list.length||S.loading?u("",!0):(r(),i(C,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{S as default};
