pages-user-invoice-list.9603aac0.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 l,e as r,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 g,s as y,t as b,m as h,i as j,I as k,aF as x}from"./index-d4e36eb7.js";import{_ as v}from"./s-address-item.bd708099.js";import{a as w,_ as D}from"./s-layout.5ca644b4.js";import{_ as F}from"./s-empty.3ec311a5.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.67a251f5.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&&l("areaData",s.data)}))})),(s,a)=>{const t=p(h("s-address-item"),v),e=j,o=k,i=p(h("su-fixed"),w),l=p(h("s-empty"),F),S=p(h("s-layout"),D);return r(),d(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:n((()=>[C.list.length?(r(),d(e,{key:0},{default:n((()=>[(r(!0),m(_,null,u(C.list,(s=>(r(),d(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(x("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!==C.list.length||C.loading?c("",!0):(r(),d(l,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};