import{u as e,r as a,b as t,ad as r,c as i,bQ as s,d as o,e as l,f as n,g as d,i as p,h as c,w as m,j as u,k as f,n as g,am as b,aO as j,an as v,E as h,p as _,q as w}from"./index.286e9b79.js";import{v as y}from"./loading.c49775a6.js";import{E as x}from"./pagination.22bb50f6.js";import"./input.31de1b37.js";/* empty css            */import"./select.297a82d5.js";import{E as z,a as k}from"./table-column.7b4f59a2.js";import"./checkbox.f06171a4.js";import{E as C}from"./text.b43d8d63.js";import{g as E}from"./http.f588794f.js";import{f as U}from"./days.686d9566.js";import V from"./detail.dbe48d2a.js";import"./isEqual.57d72c4a.js";import"./_initCloneObject.fb8fbaea.js";import"./event.776e7e11.js";import"./index.ed3ed02e.js";import"./index.27150c7e.js";import"./token.34cb8214.js";import"./strings.8c60bfae.js";import"./scroll.a50153b5.js";import"./_baseIteratee.9ead53a1.js";import"./debounce.caafe00b.js";import"./dialog.ec9503d2.js";import"./overlay.2c1583ac.js";import"./form.ad10dcd5.js";import"./form-item.9355e6dc.js";import"./row.90d810f1.js";import"./col.5ff06cbd.js";import"./divider.948c4b18.js";import"./image-viewer.b538fe01.js";import"./position.1bd00850.js";const q={class:"table-wrap"},O={class:"table-box"},S={class:"tabs-content"},G=c("span",{style:{"font-size":"14px","margin-left":"5px"}},"暂无数据",-1),I={class:"page"},P=c("div",{class:"l"},null,-1),Q={class:"r"},R={__name:"index",setup(R){e();const T=a([]);let W=a(!1),A=a();const B=t({keywords:"",current:1,size:10,total:0}),D=()=>{W.value=!0,E("order.invoice/index",B).then((e=>{W.value=!1,e.code?(T.value=e.data.list,B.total=e.data.total):h.error(e.msg)})).catch((e=>{W.value=!1,h.error(e)}))};r((()=>{D()}));const F=e=>{B.size=e,B.current=1,D()},H=e=>{B.current=e,D()};let J=a(!1),K=a(0);const L=()=>{D()};return(e,a)=>{const t=i("Warning"),r=_,h=z,E=C,R=w,D=k,M=x,N=s("auth"),X=y;return o(),l("div",null,[n(V,{modelValue:d(J),"onUpdate:modelValue":a[0]||(a[0]=e=>p(J)?J.value=e:J=e),invoice_id:d(K),onClose:L},null,8,["modelValue","invoice_id"]),c("div",q,[c("div",O,[c("div",S,[m((o(),u(D,{ref_key:"GoodsTableRef",ref:A,data:d(T),size:"large",style:{width:"100%"}},{empty:f((()=>[n(r,{size:"18",style:{position:"relative",top:"4px"}},{default:f((()=>[n(t)])),_:1}),G])),default:f((()=>[n(h,{type:"selection",width:"55"}),n(h,{prop:"order_no",label:"订单号","header-align":"center",align:"center"}),n(h,{prop:"invoice_type",label:"发票类型","header-align":"center",align:"center"}),n(h,{prop:"invoice_header_type",label:"抬头类型","header-align":"center",align:"center"}),n(h,{prop:"name",label:"订单金额","header-align":"center",align:"center"},{default:f((e=>[n(E,{type:"danger"},{default:f((()=>[g(b(e.row.order_amount),1)])),_:2},1024)])),_:1}),n(h,{label:"开票状态","header-align":"center",align:"center",width:"110"},{default:f((e=>[g(b(e.row.invoice_status),1)])),_:1}),n(h,{label:"订单状态","header-align":"center",align:"center",width:"110"},{default:f((e=>[g(b(e.row.text),1)])),_:1}),n(h,{label:"创建时间","header-align":"center",align:"center",width:"180"},{default:f((e=>[g(b(d(U)(e.row.create_time)),1)])),_:1}),n(h,{label:"操作","header-align":"center",align:"center",width:"100"},{default:f((e=>[1==e.row.status?m((o(),u(R,{key:0,type:"primary",size:"small",onClick:j((a=>{return t=e.row,K.value=t.id,void(J.value=!0);var t}),["prevent"]),link:""},{default:f((()=>[g("审核")])),_:2},1032,["onClick"])),[[N,["order.invoice/detail"]]]):v("",!0)])),_:1})])),_:1},8,["data"])),[[X,d(W)]])]),c("div",I,[P,c("div",Q,[n(M,{"current-page":d(B).current,"onUpdate:currentPage":a[1]||(a[1]=e=>d(B).current=e),"page-size":d(B).size,"onUpdate:pageSize":a[2]||(a[2]=e=>d(B).size=e),small:!0,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"prev, pager, next, jumper, sizes, total",total:d(B).total,onSizeChange:F,onCurrentChange:H},null,8,["current-page","page-size","total"])])])])])])}}};export{R as default};
