import{d as e,u as a,a as t,r as i,e as s,a9 as o,x as n,o as r,h as l,w as u,i as d,j as p,N as _,z as c,a1 as m}from"./index-DXvjTqMr.js";import{d as f}from"./index.D3kEQn5y.js";import{i as j}from"./invoiceDetail.Mu_09b9q.js";import{i as g}from"./invoiceExamine.nwRAVLHm.js";import{ae as v}from"./customer.BB8HSfBC.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.BZJJc0Hh.js";import"./uni-icons.Dxt3pfrw.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              */import"./uni-dateformat.R_eYMhRe.js";import"./uni-forms.GA6sNr68.js";import"./uni-forms.vue_vue_type_style_index_0_scoped_a2a9907e_lang.DijPs27m.js";import"./uni-easyinput.D7PPGXPC.js";/* empty css                                                                      */import"./uni-popup.BpvJsdxE.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_90b62717_lang.BoqUbMLw.js";import"./file.u5oGG8Vo.js";import"./finance.Bxo1BZoO.js";const b=y(e({__name:"details",setup(e){a((e=>({"2564ba6e":t(y)?"146rpx":"20rpx"})));const y=i(!1),b=s({defaultTitle:"发票详情",backgroundColor:"rgba(0,0,0,0)",color:"#fff",id:0,detail:{},showArray:[2,4],config:{row:{},type:0},jumpUrl:"/pages/finance/invoice/index"});o((e=>{b.id=Number(e.id),e.tab&&(b.jumpUrl=`/pages/finance/invoice/index?tab=${e.tab}`),x(b.id)}));const x=e=>{v(e).then((e=>{b.detail=e.data,y.value=!b.showArray.includes(b.detail.status)})).catch((e=>{n.error(e.message)}))},k=i(null),h=e=>{b.config={row:b.detail,type:e},k.value.popupOpen()},C=()=>{x(b.id)};return(e,a)=>{const i=c,s=m;return r(),l(i,{class:"content"},{default:u((()=>[d(i,{class:"cr-position-header"},{default:u((()=>[d(t(f),{"jump-url":t(b).jumpUrl,"is-jump-bar":!1,"is-right":!0,backgroundColor:t(b).backgroundColor,color:t(b).color,"default-title":t(b).defaultTitle},null,8,["jump-url","backgroundColor","color","default-title"])])),_:1}),d(j,{detail:t(b).detail},null,8,["detail"]),5===t(b).detail.status||1===t(b).detail.status?(r(),l(i,{key:0,class:"cr-examine-button"},{default:u((()=>[5===t(b).detail.status?(r(),l(s,{key:0,class:"button default-error",onClick:a[0]||(a[0]=e=>h(2))},{default:u((()=>[p("作废")])),_:1})):_("",!0),1===t(b).detail.status?(r(),l(s,{key:1,class:"button agree",onClick:a[1]||(a[1]=e=>h(1))},{default:u((()=>[p("录入发票")])),_:1})):_("",!0)])),_:1})):_("",!0),d(g,{ref_key:"invoiceExamineRef",ref:k,"config-data":t(b).config,onChange:C},null,8,["config-data"])])),_:1})}}}),[["__scopeId","data-v-8d5d52be"]]);export{b as default};
