1 |
- import{v as s,D as t,bL as e,Q as a,T as o,bM as i,E as r,a as l,b as n,d,w as _,e as p,y as u,z as m,F as c,x as y,f,u as g,s as b,g as j,i as x,M as v,be as h}from"./index-BuEModm5.js";import{_ as k}from"./s-address-item.Dgz8g0UD.js";import{a as w,_ as D}from"./s-layout.iswOaX4M.js";import{_ as S}from"./s-empty.BlCFeA4A.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.DlaqS8Xw.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CT6RWNoL.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.BJTAbbwF.js";import"./s-tabbar.pQeEXCnR.js";import"./useGoods.D2gJ56-X.js";import"./phone-international-input.D631ERrS.js";/* empty css */const E=C({__name:"list",setup(C){const E=s({list:[],loading:!0});return t((async()=>{E.list=(await e.getAddressList()).data,E.loading=!1})),a((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&r("areaData",s.data)}))})),(s,t)=>{const e=l(n("s-address-item"),k),a=x,o=v,i=l(n("su-fixed"),w),r=l(n("s-empty"),S),C=l(n("s-layout"),D);return p(),d(C,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:_((()=>[E.list.length?(p(),d(a,{key:0},{default:_((()=>[(p(!0),u(c,null,m(E.list,(s=>(p(),d(e,{hasBorderBottom:"",key:s.id,item:s,onClick:t=>(h("SELECT_ADDRESS",{addressInfo:s}),void b.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):y("",!0),f(i,{bottom:"",placeholder:""},{default:_((()=>[f(a,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:_((()=>[f(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:t[0]||(t[0]=s=>g(b).$router.go("/pages/user/invoice/edit"))},{default:_((()=>[j(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==E.list.length||E.loading?y("",!0):(p(),d(r,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-45431d7c"]]);export{E as default};
|