import{_ as V,d as P,p as U,aM as w,x as j,ai as q,bc as n,r,o,c,l as t,D as s,m as e,ar as G,a as l,G as m,aN as C,F as L}from"./index.js";import{u as M}from"./useDetail.748c7288.js";import W from"./return-form.ae5ddd.js";import{D as z}from"./default.5cadb723.js";/* empty css                                                */import{h as H,a as J,b as K,c as O}from"./index.b1b475a3.js";import{t as Q}from"./ticketReturn.8c918810.js";import{t as X}from"./ticketReturnRelive.aa2925d6.js";import"./porder.cb2a60e8.js";import"./choose-modal.97a3b1.js";import"./_details.7fd25590.js";import"./index.ae4dabde.js";import"./date-range.019e953f.js";import"./_rules.ceda6160.js";import"./global.9ad647c8.js";const Y={class:"padding__container"},Z={key:1},$=P({__name:"detail",setup(ee){const{push:E}=U(),h="unSupplyInvoiceRelationDetail",{hasPermissionWithCode:k}=w(h);j(null);const{isSuperUser:y}=q(),{id:d,isDetail:u,title:_,collapses:i}=M({baseName:"\u53D1\u7968\u89E3\u9664\u5173\u8054",collapseLen:5}),{run:b,data:f}=n({initalData:{},success:({orderCode:a})=>R(H({hpNo:a}))}),{run:R,data:B}=n({initalData:{}}),{run:A}=n({success:()=>v()}),{run:I}=n({success:()=>E("/supply/supplyCollection?tab=unSupplyInvoiceRelation_collection")}),N=a=>A(K({returnCode:d.value,...a})),v=()=>b(J({returnCode:d.value})),g=a=>I(O(a));return u.value&&v(),(a,D)=>{const p=r("ElCollapseItem"),x=r("ElCollapse"),F=r("ElTabPane"),S=r("ElTabs");return o(),c("div",Y,[t(S,null,{default:s(()=>[t(F,{label:e(_)},{default:s(()=>[t(x,{modelValue:e(i),"onUpdate:modelValue":D[0]||(D[0]=T=>G(i)?i.value=T:null)},{default:s(()=>[t(p,{name:"1",title:e(_)},{default:s(()=>[l(" \u56DE\u7968\u8BE6\u60C5 "),e(u)?(o(),m(e(C),{key:0,columns:e(X),data:e(f)},null,8,["columns","data"])):(o(),c(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(W,{onCreate:g})],2112))]),_:1},8,["title"]),e(u)?(o(),m(p,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:s(()=>[t(e(C),{columns:e(Q),data:e(B)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(u)?(o(),c("div",Z,[!e(y)&&String(e(f).status)==="1"&&e(k)("020")?(o(),m(p,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:s(()=>[t(e(z),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:N})]),_:1})):l("v-if",!0)])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ve=V($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplyNew/unInvoiceRelation/detail.vue"]]);export{ve as default};
