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

1
  1. import{y as s,n as a,L as t,N as e,p as o,e as r,f as i,w as l,l as d,k as n,r as m,F as p,g as u,j as _,v as c,s as f,t as g,m as y,i as j,G as b,aq as h}from"./index-55e53f1d.js";import{_ as k}from"./s-address-item.4dc5da0e.js";import{a as x,_ as v}from"./s-layout.c3062138.js";import{_ as w}from"./s-empty.7ff00dd6.js";import{A}from"./area.add4c11d.js";import{A as C}from"./address.3fba22ec.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.d7456f4c.js";/* empty css */const D=S({__name:"list",setup(S){const D=s({list:[],loading:!0});return a((async()=>{D.list=(await C.getAddressList()).data,D.loading=!1})),t((()=>{e("areaData")||A.getAreaTree().then((s=>{0===s.code&&o("areaData",s.data)}))})),(s,a)=>{const t=d(y("s-address-item"),k),e=j,o=b,A=d(y("su-fixed"),x),C=d(y("s-empty"),w),S=d(y("s-layout"),v);return r(),i(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:l((()=>[D.list.length?(r(),i(e,{key:0},{default:l((()=>[(r(!0),n(p,null,m(D.list,(s=>(r(),i(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(h("SELECT_ADDRESS",{addressInfo:s}),void f.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):u("",!0),_(A,{bottom:"",placeholder:""},{default:l((()=>[_(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:l((()=>[_(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:l((()=>[g(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==D.list.length||D.loading?u("",!0):(r(),i(C,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{D as default};