pages-user-invoice-list.d40a4a6f.js 1.7 KB

1
  1. import{B as s,v as a,aH as t,Q as e,V as o,aI as i,x as r,f as l,g as d,w as n,q as p,p as u,r as m,F as _,i as c,n as f,z as g,s as y,m as b,u as j,l as x,L as h,aJ as k}from"./index-e51d7d9b.js";import{_ as v}from"./s-address-item.6aaaa239.js";import{a as w,_ as S}from"./s-layout.203c15d5.js";import{_ as C}from"./s-empty.b73a3167.js";import{_ as D}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.5518a746.js";import"./useGoods.dd4a178b.js";/* empty css */const F=D({__name:"list",setup(D){const F=s({list:[],loading:!0});return a((async()=>{F.list=(await t.getAddressList()).data,F.loading=!1})),e((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&r("areaData",s.data)}))})),(s,a)=>{const t=p(j("s-address-item"),v),e=x,o=h,i=p(j("su-fixed"),w),r=p(j("s-empty"),C),D=p(j("s-layout"),S);return l(),d(D,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:n((()=>[F.list.length?(l(),d(e,{key:0},{default:n((()=>[(l(!0),u(_,null,m(F.list,(s=>(l(),d(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(k("SELECT_ADDRESS",{addressInfo:s}),void y.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):c("",!0),f(i,{bottom:"",placeholder:""},{default:n((()=>[f(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:n((()=>[f(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:a[0]||(a[0]=s=>g(y).$router.go("/pages/user/invoice/edit"))},{default:n((()=>[b(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==F.list.length||F.loading?c("",!0):(l(),d(r,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{F as default};