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