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-B3cqKsI_.js";import{d as f}from"./index.CL60Q41z.js";import{i as j}from"./invoiceDetail.ahnv8ary.js";import{i as g}from"./invoiceExamine.Dm1iPrYe.js";import{ae as v}from"./customer.Crnb53sL.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.xE5Um1Eb.js";import"./uni-icons.EqO7jntL.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              */import"./uni-dateformat.DQ4pg8Wo.js";import"./uni-forms.BnHLrfH7.js";import"./uni-forms.vue_vue_type_style_index_0_scoped_a2a9907e_lang.DijPs27m.js";import"./uni-easyinput.CqN2D7tl.js";/* empty css                                                                      */import"./uni-popup.CmxZKYwY.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_90b62717_lang.CCBXdA0U.js";import"./file.D3W-3X-4.js";import"./finance.Bvv8-U1r.js";const y=b(e({__name:"details",setup(e){a((e=>({"2564ba6e":t(b)?"146rpx":"20rpx"})));const b=i(!1),y=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=>{y.id=Number(e.id),e.tab&&(y.jumpUrl=`/pages/finance/invoice/index?tab=${e.tab}`),x(y.id)}));const x=e=>{v(e).then((e=>{y.detail=e.data,b.value=!y.showArray.includes(y.detail.status)})).catch((e=>{n.error(e.message)}))},k=i(null),h=e=>{y.config={row:y.detail,type:e},k.value.popupOpen()},C=()=>{x(y.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(y).jumpUrl,"is-jump-bar":!1,"is-right":!0,backgroundColor:t(y).backgroundColor,color:t(y).color,"default-title":t(y).defaultTitle},null,8,["jump-url","backgroundColor","color","default-title"])])),_:1}),d(j,{detail:t(y).detail},null,8,["detail"]),5===t(y).detail.status||1===t(y).detail.status?(r(),l(i,{key:0,class:"cr-examine-button"},{default:u((()=>[5===t(y).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(y).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(y).config,onChange:C},null,8,["config-data"])])),_:1})}}}),[["__scopeId","data-v-8d5d52be"]]);export{y as default};
