import{c as B}from"./index.7f3c3153.js";import{d as E,a as T,c as F,f as r,g as A,h as s,k as o,l as u,m as t,M as d,K as c,j as l,E as k,y as N,z as C}from"./index.2c7321ca.js";import{_ as x}from"./_plugin-vue_export-helper.cdc0426e.js";const p=n=>(N("data-v-bf3732a6"),n=n(),C(),n),I={class:"invoice-detail"},w=p(()=>s("div",{class:"title"},"\u53D1\u7968\u8BE6\u60C5",-1)),S={class:"invoice-content"},g=p(()=>s("div",{class:"title"},"\u4EA4\u6613\u4FE1\u606F",-1)),V={class:"invoice-status"},j={class:"invoice-info-item"},R={class:"invoice-info-item"},z={style:{color:"#0F71FF"}},M={style:{color:"#0F71FF"}},P={key:0,class:"invoice-info-item"},q=p(()=>s("div",{class:"title",style:{margin:"16px 0 24px"}},"\u5F00\u7968\u4FE1\u606F",-1)),K={style:{display:"flex"}},G={style:{"min-width":"400px"}},H={style:{"min-width":"400px"}},J=E({__name:"InvoiceDetail",emits:["back"],setup(n,{expose:b,emit:y}){const e=T({form:{sources:[],applyNo:"",fapiaoStatus:"",fapiaoAmount:"",rejectReason:"",fapiaoNo:"",titleType:"",title:"",bankName:"",vendorName:"",writeTime:"",sendToPhone:"",sendToEmail:"",fapiaoType:"",taxNo:"",bankAccount:"",vendorId:"",sourceType:"",sendToName:"",sendToAddress:""},showRefuseDialog:!1}),v=m=>{B(m.applyNo).then(_=>{let{code:i,message:f,data:a}=_;if(i!==200){k.error(f);return}e.form=a})},D=()=>{y("back")};return b({init:v}),(m,_)=>{const i=F("el-table-column"),f=F("el-table"),a=F("el-form-item"),h=F("el-form");return r(),A("div",I,[s("div",{class:"invoice-header"},[w,s("div",{class:"back",onClick:D},o("< \u8FD4\u56DE"))]),s("div",S,[g,u(f,{data:e.form.sources},{default:t(()=>[u(i,{label:"\u5E8F\u53F7",type:"index",width:"60"}),u(i,{label:"\u5355\u53F7",prop:"sourceNo","min-width":"120"}),u(i,{label:"\u5F00\u7968\u65B9",prop:"writer"}),u(i,{label:"\u6536\u7968\u65B9",prop:"receiver"}),u(i,{label:"\u751F\u6210\u65F6\u95F4",prop:"sourceTime"}),e.form.sourceType===0?(r(),d(i,{key:0,label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"})):c("",!0),e.form.sourceType===0?(r(),d(i,{key:1,label:"\u5546\u54C1\u540D\u79F0",prop:"productInfo"})):c("",!0),e.form.sourceType===0?(r(),d(i,{key:2,label:"\u5355\u4EF7\uFF08\u5143\uFF09",prop:"price"})):c("",!0),e.form.sourceType===0?(r(),d(i,{key:3,label:"\u6570\u91CF",prop:"quantity"})):c("",!0),u(i,{label:"\u603B\u91D1\u989D\uFF08\u5143\uFF09",prop:"amount"})]),_:1},8,["data"]),s("div",V,[s("div",j,"\u7533\u8BF7\u5355\u53F7\uFF1A"+o(e.form.applyNo),1),s("div",R,[l("\u5F00\u7968\u72B6\u6001\uFF1A "),s("span",z,o(e.form.fapiaoStatus===0?"\u672A\u7533\u8BF7":e.form.fapiaoStatus===2?"\u5F85\u5F00\u7968":e.form.fapiaoStatus===1?"\u5DF2\u5F00\u7968":e.form.fapiaoStatus===3?"\u62D2\u7EDD\u5F00\u7968":""),1),l(" \u4E28 \u603B\u91D1\u989D(\u5143)\uFF1A "),s("span",M,o(e.form.fapiaoAmount),1)]),e.form.fapiaoStatus===3?(r(),A("div",P,"\u5931\u8D25\u539F\u56E0\uFF1A"+o(e.form.rejectReason),1)):c("",!0)]),q,u(h,{model:e.form,"label-width":"130px",size:"default"},{default:t(()=>[s("div",K,[s("div",G,[u(a,{label:"\u53D1\u7968\u53F7\uFF1A"},{default:t(()=>[l(o(e.form.fapiaoNo),1)]),_:1}),u(a,{label:"\u62AC\u5934\u7C7B\u578B\uFF1A"},{default:t(()=>[l(o(e.form.titleType===0?"\u4E2A\u4EBA":e.form.titleType===1?"\u4F01\u4E1A":""),1)]),_:1}),u(a,{label:"\u53D1\u7968\u62AC\u5934\uFF1A"},{default:t(()=>[l(o(e.form.title),1)]),_:1}),u(a,{label:"\u5F00\u6237\u884C\u540D\u79F0\uFF1A"},{default:t(()=>[l(o(e.form.bankName),1)]),_:1}),u(a,{label:"\u9500\u65B9\u540D\u79F0\uFF1A"},{default:t(()=>[l(o(e.form.vendorName),1)]),_:1}),u(a,{label:"\u5F00\u7968\u91D1\u989D\uFF08\u5143\uFF09\uFF1A"},{default:t(()=>[l(o(e.form.fapiaoAmount),1)]),_:1}),u(a,{label:"\u5F00\u7968\u65F6\u95F4\uFF1A"},{default:t(()=>[l(o(e.form.writeTime),1)]),_:1}),u(a,{label:"\u6536\u7968\u4EBA\u7535\u8BDD\uFF1A"},{default:t(()=>[l(o(e.form.sendToPhone),1)]),_:1}),u(a,{label:"\u6536\u7968\u4EBA\u90AE\u7BB1\uFF1A"},{default:t(()=>[l(o(e.form.sendToEmail),1)]),_:1})]),s("div",H,[u(a,{label:"\u53D1\u7968\u7C7B\u578B\uFF1A"},{default:t(()=>[l(o(e.form.fapiaoType===0?"\u666E\u901A\u53D1\u7968":e.form.fapiaoType===1?"\u4E13\u7528\u53D1\u7968":""),1)]),_:1}),u(a,{label:"\u7A0E\u53F7\uFF1A"},{default:t(()=>[l(o(e.form.taxNo),1)]),_:1}),u(a,{label:"\u94F6\u884C\u8D26\u53F7\uFF1A"},{default:t(()=>[l(o(e.form.bankAccount),1)]),_:1}),u(a,{label:"\u9500\u65B9\u8BC6\u522B\u53F7\uFF1A"},{default:t(()=>[l(o(e.form.vendorId),1)]),_:1}),u(a,{label:"\u53D1\u7968\u6765\u6E90\uFF1A"},{default:t(()=>[l(o(e.form.sourceType===0?"\u666E\u901A\u53D1\u7968":e.form.sourceType===1?"\u4E13\u7528\u53D1\u7968":""),1)]),_:1}),u(a,{label:"\u6536\u7968\u4EBA\u59D3\u540D\uFF1A"},{default:t(()=>[l(o(e.form.sendToName),1)]),_:1}),u(a,{label:"\u6536\u7968\u4EBA\u5730\u5740\uFF1A"},{default:t(()=>[l(o(e.form.sendToAddress),1)]),_:1})])])]),_:1},8,["model"])])])}}});const U=x(J,[["__scopeId","data-v-bf3732a6"]]);export{U as default};