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

1
  1. import{y as s,n as a,aD as t,N as e,P as o,aE as i,p as r,e as l,f as d,w as n,l as p,k as m,r as u,F as _,g as c,j as f,v as y,s as g,t as b,m as k,i as h,I as j,aF as x}from"./index-b563fea4.js";import{_ as v}from"./s-address-item.9def7b97.js";import{a as w,_ as D}from"./s-layout.03034db0.js";import{_ as F}from"./s-empty.07dadaf0.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.9685c495.js";/* empty css */const C=S({__name:"list",setup(S){const C=s({list:[],loading:!0});return a((async()=>{C.list=(await t.getAddressList()).data,C.loading=!1})),e((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&r("areaData",s.data)}))})),(s,a)=>{const t=p(k("s-address-item"),v),e=h,o=j,i=p(k("su-fixed"),w),r=p(k("s-empty"),F),S=p(k("s-layout"),D);return l(),d(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:n((()=>[C.list.length?(l(),d(e,{key:0},{default:n((()=>[(l(!0),m(_,null,u(C.list,(s=>(l(),d(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(x("SELECT_ADDRESS",{addressInfo:s}),void g.$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=>y(g).$router.go("/pages/user/invoice/edit"))},{default:n((()=>[b(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==C.list.length||C.loading?c("",!0):(l(),d(r,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};