import{_ as P,d as U,p as w,aM as S,x as j,ai as q,bc as n,r,o,c as p,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.0c63fa.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.3a7c0a.js";import"./_details.215a1c33.js";import"./index.ae4dabde.js";import"./date-range.019e953f.js";import"./_rules.aa11c031.js";import"./global.9ad647c8.js";const Y={class:"padding__container"},Z={key:1},$=U({__name:"detail",setup(ee){const{push:h}=w(),E="unInvoiceRelationDetail",{hasPermissionWithCode:k}=S(E);j(null);const{isSuperUser:b}=q(),{id:d,isDetail:u,title:_,collapses:i}=M({baseName:"\u53D1\u7968\u89E3\u9664\u5173\u8054",collapseLen:5}),{run:R,data:f}=n({initalData:{},success:({orderCode:a})=>B(H({hpNo:a}))}),{run:B,data:A}=n({initalData:{}}),{run:I}=n({success:()=>v()}),{run:N}=n({success:()=>h("/purchase/purchaseCollection?tab=unInvoiceRelation_collection")}),g=a=>I(K({returnCode:d.value,...a})),v=()=>R(J({returnCode:d.value})),y=a=>N(O(a));return u.value&&v(),(a,D)=>{const c=r("ElCollapseItem"),x=r("ElCollapse"),F=r("ElTabPane"),T=r("ElTabs");return o(),p("div",Y,[t(T,null,{default:s(()=>[t(F,{label:e(_)},{default:s(()=>[t(x,{modelValue:e(i),"onUpdate:modelValue":D[0]||(D[0]=V=>G(i)?i.value=V:null)},{default:s(()=>[t(c,{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(),p(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(W,{onCreate:y})],2112))]),_:1},8,["title"]),e(u)?(o(),m(c,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:s(()=>[t(e(C),{columns:e(Q),data:e(A)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(u)?(o(),p("div",Z,[!e(b)&&String(e(f).status)==="1"&&e(k)("020")?(o(),m(c,{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:g})]),_:1})):l("v-if",!0)])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ve=P($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchaseNew/unInvoiceRelation/detail.vue"]]);export{ve as default};
