import{j as a,k as s,o as e,d as t,w as l,e as u,f as n,c as i,l as o,u as r,F as c,a as _,p as d,q as f,v as m,g as p,n as v,t as k}from"./index-52f0fde8.js";import{_ as y}from"./uni-tag.065469d1.js";import{r as g}from"./uni-app.es.add45db9.js";import{_ as b}from"./uni-icons.67b3e996.js";import{I as j}from"./index.86ec3509.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const w=x({__name:"list",setup(x){let w=[{name:"全部",value:9},{name:"待处理",value:1},{name:"已开票",value:2},{name:"被拒绝",value:0}],C=a(9);let h=a([]);const z=()=>{j({status:C.value}).then((a=>{a.status&&(h.value=a.data)}))};return s((()=>{z()})),(a,s)=>{const j=u,x=m,q=g(p("uni-tag"),y),I=g(p("uni-icons"),b);return e(),t(j,{class:"invoice_list"},{default:l((()=>[n(j,{class:"bar_list"},{default:l((()=>[(e(!0),i(c,null,o(r(w),((a,s)=>(e(),t(j,{key:s,onClick:s=>{return e=a.value,C.value=e,void z();var e},class:v(["bar",a.value===r(C)?"active_bar":""])},{default:l((()=>[_(k(a.name),1)])),_:2},1032,["onClick","class"])))),128))])),_:1}),n(j,{class:"button_row"},{default:l((()=>[n(x,{onClick:s[0]||(s[0]=a=>{f({url:"/pages/invoice/edit"})}),class:"mini-btn",style:{"background-color":"#99dcff",color:"#006597"},size:"mini"},{default:l((()=>[_("申请开票")])),_:1})])),_:1}),(e(!0),i(c,null,o(r(h),((a,s)=>(e(),t(j,{class:"litem",key:s,onClick:s=>{return e=a.id,void f({url:"/pages/invoice/detail?id="+e});var e}},{default:l((()=>[n(j,{class:"litem_row1"},{default:l((()=>[n(j,null,{default:l((()=>[_(k(a.shenqing_time.substring(0,10))+" 申请发票",1)])),_:2},1024),n(j,null,{default:l((()=>[2==a.status?(e(),t(q,{key:0,text:"已开票",type:"success"})):d("",!0),1==a.status?(e(),t(q,{key:1,text:"待处理",type:"warning"})):d("",!0),0==a.status?(e(),t(q,{key:2,text:"已拒绝",type:"error"})):d("",!0)])),_:2},1024)])),_:2},1024),n(j,{class:"litem_row2"},{default:l((()=>[_("申请金额：￥"+k(a.price),1)])),_:2},1024),0==a.status?(e(),t(j,{key:0,class:"jujueyuanyin"},{default:l((()=>[_("拒绝原因："+k(a.refuse_content),1)])),_:2},1024)):d("",!0)])),_:2},1032,["onClick"])))),128)),0==r(h).length?(e(),t(j,{key:0,class:"zanwu"},{default:l((()=>[n(I,{color:"#ccc",type:"close",size:"30"}),n(j,null,{default:l((()=>[_("暂无内容")])),_:1})])),_:1})):d("",!0)])),_:1})}}},[["__scopeId","data-v-25275b56"]]);export{w as default};
