import{_ as x,d as P,k as w,c9 as S,n as U,ab as j,cB as u,r,o,c,h as t,y as s,i as e,ak as q,a as l,A as m,ca as D,F as L}from"./index.js";import{u as W}from"./useDetail.da468487.js";import z from"./return-form.736fc1.js";import{R as G}from"./receipt.f599b785.js";import{h as H,a as J,b as K,c as M}from"./index.c502b05a.js";import{t as O}from"./ticketReturn.e53d6b17.js";import{t as Q}from"./ticketReturnRelive.1639dbbe.js";import"./porder.827c74bc.js";import"./choose-modal.0fcc82.js";import"./_details.cf1fada8.js";import"./index.41007914.js";import"./_rules.9be4d7d4.js";import"./global.9ad647c8.js";const X={class:"padding__container"},Y={key:1},Z="supplierInvoiceRelationDetail",$=P({__name:"detail",setup(ee){const{push:E}=w(),{hasPermissionWithCode:h}=S(Z);U(null);const{isSuperUser:k}=j(),{id:d,isDetail:n,title:_,collapses:i}=W({baseName:"\u91C7\u8D2D\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:R,data:f}=u({initalData:{},success:({orderCode:a})=>B(H({hpNo:a}))}),{run:B,data:y}=u({initalData:{}}),{run:I}=u({success:()=>v()}),{run:b}=u({success:()=>E("/supply/supplierInvoiceRelation")}),A=a=>I(K({returnCode:d.value,...a})),v=()=>R(J({returnCode:d.value})),F=a=>b(M(a));return n.value&&v(),(a,C)=>{const p=r("ElCollapseItem"),N=r("ElCollapse"),g=r("ElTabPane"),T=r("ElTabs");return o(),c("div",X,[t(T,null,{default:s(()=>[t(g,{label:e(_)},{default:s(()=>[t(N,{modelValue:e(i),"onUpdate:modelValue":C[0]||(C[0]=V=>q(i)?i.value=V:null)},{default:s(()=>[t(p,{name:"1",title:e(_)},{default:s(()=>[l(" \u56DE\u7968\u8BE6\u60C5 "),e(n)?(o(),m(e(D),{key:0,columns:e(Q),data:e(f)},null,8,["columns","data"])):(o(),c(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(z,{onCreate:F})],2112))]),_:1},8,["title"]),e(n)?(o(),m(p,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:s(()=>[t(e(D),{columns:e(O),data:e(y)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(n)?(o(),c("div",Y,[l(` <ElCollapseItem name="2" title="\u5BF9\u8D26\u8BE6\u60C5">\r
              <ReconciliationForm ref="formRef" readonly :id="data.payNo" />\r
            </ElCollapseItem> `),!e(k)&&String(e(f).status)==="1"&&e(h)("020")?(o(),m(p,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:s(()=>[t(e(G),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:A})]),_:1})):l("v-if",!0)])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var _e=x($,[["__file","D:/work/jiesuan/settle-vue3/src/views/supply/unInvoiceRelation/detail.vue"]]);export{_e as default};
