pages-user-invoice-list.BZFZu_mR.js 2.0 KB

1
  1. import{v as s,G as e,bQ as t,U as a,T as o,bR as i,H as l,a as n,b as r,d as _,w as d,e as p,x as u,y as c,F as m,z as y,f,u as g,s as b,g as v,i as j,O as x,bi as h}from"./index-CRW3onsz.js";import{_ as k}from"./s-address-item.2DP7Leco.js";import{a as w,_ as S}from"./s-layout.DKC65HXL.js";import{_ as A}from"./s-empty.C6jDqfil.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.CNNsOrh3.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.CiL8L9B_.js";import"./uni-icons.CkO1HN9g.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.HuwOimZj.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.Dctrwx6t.js";import"./s-search-block.9OtJrST_.js";import"./phone-international-input.vKvR7wTz.js";/* empty css */const D=C({__name:"list",setup(C){const D=s({list:[],loading:!0});return e((async()=>{D.list=(await t.getAddressList()).data,D.loading=!1})),a((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&l("areaData",s.data)}))})),(s,e)=>{const t=n(r("s-address-item"),k),a=j,o=x,i=n(r("su-fixed"),w),l=n(r("s-empty"),A),C=n(r("s-layout"),S);return p(),_(C,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:d((()=>[D.list.length?(p(),_(a,{key:0},{default:d((()=>[(p(!0),u(m,null,c(D.list,(s=>(p(),_(t,{hasBorderBottom:"",key:s.id,item:s,onClick:e=>(h("SELECT_ADDRESS",{addressInfo:s}),void b.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):y("",!0),f(i,{bottom:"",placeholder:""},{default:d((()=>[f(a,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:d((()=>[f(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:e[0]||(e[0]=s=>g(b).$router.go("/pages/user/invoice/edit"))},{default:d((()=>[v(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==D.list.length||D.loading?y("",!0):(p(),_(l,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-45431d7c"]]);export{D as default};