pages-user-invoice-list.1dd5cbf7.js 1.7 KB

1
  1. import{v as s,n as a,J as t,K as e,R 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 _,u as f,s as c,p as g,m as y,i as j,D as b,at as k}from"./index-f0468be9.js";import{_ as x}from"./s-address-item.4552a924.js";import{a as h,_ as v}from"./s-layout.fd85e290.js";import{_ as D}from"./s-empty.510233de.js";import{A as w}from"./area.73e445ca.js";import{A}from"./address.d7a6efec.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.7de378cd.js";/* empty css */const C=S({__name:"list",setup(S){const C=s({list:[],loading:!0});return a((async()=>{C.list=(await A.getAddressList()).data,C.loading=!1})),t((()=>{e("areaData")||w.getAreaTree().then((s=>{0===s.code&&o("areaData",s.data)}))})),(s,a)=>{const t=d(y("s-address-item"),x),e=j,o=b,w=d(y("su-fixed"),h),A=d(y("s-empty"),D),S=d(y("s-layout"),v);return r(),i(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:l((()=>[C.list.length?(r(),i(e,{key:0},{default:l((()=>[(r(!0),n(p,null,m(C.list,(s=>(r(),i(t,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(k("SELECT_ADDRESS",{addressInfo:s}),void c.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):u("",!0),_(w,{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=>f(c).$router.go("/pages/user/invoice/edit"))},{default:l((()=>[g(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==C.list.length||C.loading?u("",!0):(r(),i(A,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};