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-WeUkftbp.js";import{d as f}from"./index.BcUDVLb2.js";import{i as j}from"./invoiceDetail.BZOgfIlr.js";import{i as g}from"./invoiceExamine.Cz7tsYJS.js";import{ae as v}from"./customer.C_v9K5hM.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.cBITQXNK.js";import"./uni-icons.B3nCnuXe.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              */import"./uni-dateformat.CAFQ6hZt.js";import"./uni-forms.CCONsUgM.js";import"./uni-forms.vue_vue_type_style_index_0_scoped_a2a9907e_lang.DijPs27m.js";import"./uni-easyinput.D5FSIQIk.js";/* empty css                                                                      */import"./uni-popup.CI1Fmu1z.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_90b62717_lang.BVw2wyB9.js";import"./file.BMc01nZQ.js";import"./finance.DTaS5L8b.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};
