import{_ as V,d as w,c9 as x,k as P,n as j,ab as U,cB as f,r as i,o as s,c as p,h as t,y as a,i as e,ak as q,a as o,A as v,ca as L,F as D}from"./index.js";import{u as W}from"./useDetail.da468487.js";import{h as z,d as G,e as H}from"./index.9c129b93.js";import J from"./index.7bf44b.js";import K from"./return-form.8e3f57.js";import{I as M}from"./index.b589278a.js";import{D as y}from"./receipt.f599b785.js";import{s as Q}from"./ticketReturn.e53d6b17.js";import"./porder.827c74bc.js";import"./orderRecord.92bbc10f.js";import"./index.f78c594b.js";import"./choose-modal.93d80a.js";import"./_details.7e8f00e4.js";import"./invoice-table.f6a258.js";import"./invoice-form.c6a2a9.js";import"./global.9ad647c8.js";const X={class:"padding__container bg-white"},Y={key:0},Z="sendOrderInvoiceDetail",$=w({__name:"detail",setup(ee){const{hasPermissionWithCode:_}=x(Z),{push:k}=P(),c=j(null),{isSuperUser:B}=U(),{id:C,isDetail:m,title:E,collapses:d}=W({baseName:"\u8FD0\u5355\u56DE\u7968",collapseLen:5}),{run:b,data:u}=f({initalData:{}}),{run:N}=f({success:()=>k("/supplierOrder/supplierOrderCollection?tab=supSendOrderInvoice_collection")}),{run:F}=f({success:()=>I()});function I(){h(),c.value&&c.value.refresh()}const h=()=>b(z({hpNo:C.value})),R=l=>N(G(l));function A(l){const n={...l,hpNo:C.value};F(H(n))}return m.value&&h(),(l,n)=>{const r=i("ElCollapseItem"),g=i("ElCollapse"),O=i("ElTabPane"),T=i("ElTabs");return s(),p("div",X,[t(T,null,{default:a(()=>[t(O,{label:e(E)},{default:a(()=>[t(g,{modelValue:e(d),"onUpdate:modelValue":n[0]||(n[0]=S=>q(d)?d.value=S:null)},{default:a(()=>[t(r,{name:"1",title:e(E)},{default:a(()=>[o(" \u56DE\u7968\u8BE6\u60C5 "),e(m)?(s(),v(e(L),{key:0,columns:e(Q),data:e(u)},null,8,["columns","data"])):(s(),p(D,{key:1},[o(" \u521B\u5EFA\u56DE\u7968 "),t(K,{onCreate:R})],2112))]),_:1},8,["title"]),e(m)?(s(),p("div",Y,[t(r,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[o(' <ReconciliationForm ref="formRef" readonly :id="data.payNo"  /> '),t(J,{ref_key:"formRef",ref:c,request:"",readonly:"",payNo:e(u).payNo},null,8,["payNo"])]),_:1}),t(r,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(M),{type:"purchase","inv-number":e(u).invoiceNumber},null,8,["inv-number"])]),_:1}),o(" \u5BA1\u6279\u8282\u70B9 "),e(B)?o("v-if",!0):(s(),p(D,{key:0},[String(e(u).status)==="2"&&e(_)("053")?(s(),v(r,{key:0,title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(y),{"approve-value":"3","reject-value":"6",onApproval:A})]),_:1})):o("v-if",!0),String(e(u).status)==="3"&&e(_)("054")?(s(),v(r,{key:1,name:"5",title:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(y),{"approve-value":"4","reject-value":"7",onApproval:A})]),_:1})):o("v-if",!0)],64))])):o("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Ce=V($,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplierOrder/sendOrderInvoice/detail.vue"]]);export{Ce as default};
