import{_ as V,d as w,k as x,c9 as P,n as U,ab as j,cB as n,r,o,c as p,h as t,y as s,i as e,ak as q,a as l,A as m,ca as C,F as L}from"./index.js";import{u as W}from"./useDetail.da468487.js";import z from"./return-form.1cfa49.js";import{D 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.12950e.js";import"./_details.7fd25590.js";import"./index.41007914.js";import"./_rules.ceda6160.js";import"./global.9ad647c8.js";const X={class:"padding__container"},Y={key:1},Z="unSupplyInvoiceRelationDetail",$=w({__name:"detail",setup(ee){const{push:E}=x(),{hasPermissionWithCode:h}=P(Z);U(null);const{isSuperUser:k}=j(),{id:d,isDetail:u,title:_,collapses:i}=W({baseName:"\u53D1\u7968\u89E3\u9664\u5173\u8054",collapseLen:5}),{run:y,data:f}=n({initalData:{},success:({orderCode:a})=>b(H({hpNo:a}))}),{run:b,data:B}=n({initalData:{}}),{run:R}=n({success:()=>v()}),{run:A}=n({success:()=>E("/supply/supplyCollection?tab=unSupplyInvoiceRelation_collection")}),I=a=>R(K({returnCode:d.value,...a})),v=()=>y(J({returnCode:d.value})),N=a=>A(M(a));return u.value&&v(),(a,D)=>{const c=r("ElCollapseItem"),g=r("ElCollapse"),F=r("ElTabPane"),S=r("ElTabs");return o(),p("div",X,[t(S,null,{default:s(()=>[t(F,{label:e(_)},{default:s(()=>[t(g,{modelValue:e(i),"onUpdate:modelValue":D[0]||(D[0]=T=>q(i)?i.value=T: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(Q),data:e(f)},null,8,["columns","data"])):(o(),p(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(z,{onCreate:N})],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(O),data:e(B)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(u)?(o(),p("div",Y,[!e(k)&&String(e(f).status)==="1"&&e(h)("020")?(o(),m(c,{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:I})]),_:1})):l("v-if",!0)])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var _e=V($,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplyNew/unInvoiceRelation/detail.vue"]]);export{_e as default};
