1 |
- import{y as s,n as a,L as t,M 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 _,j as u,v as c,s as f,t as g,m as y,i as j,G as b,at as k}from"./index-04b24163.js";import{_ as x}from"./s-address-item.36a92d0b.js";import{a as h,_ as v}from"./s-layout.f5353ff8.js";import{_ as w}from"./s-empty.c2545d34.js";import{A}from"./area.39e3737b.js";import{A as F}from"./address.253bc2d3.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./form.8878f7a7.js";/* empty css */const C=S({__name:"list",setup(S){const C=s({list:[],loading:!0});return a((async()=>{C.list=(await F.getAddressList()).data,C.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"),x),e=j,o=b,A=d(y("su-fixed"),h),F=d(y("s-empty"),w),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 f.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):_("",!0),u(A,{bottom:"",placeholder:""},{default:l((()=>[u(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:l((()=>[u(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!==C.list.length||C.loading?_("",!0):(r(),i(F,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};
|