import{_ as S,d as I,d3 as g,n as E,c9 as j,p as q,r,aw as H,o,c as B,h as l,y as a,i as e,A as s,B as L,ak as M,a as i,H as A}from"./index.js";import T from"./form.9ec8af.js";import{u as U}from"./useDetail.da468487.js";import W from"./index.7bf44b.js";import{D as $}from"./receipt.f599b785.js";import{h as F,a as z}from"./index.f78c594b.js";import{h as G}from"./export.97c4d705.js";import{P as J}from"./index.d8a9e037.js";import"./constants.59c8f8ef.js";import"./modal.7eae07.js";import"./qr.03c34f.js";import"./cg.325c4e.js";import"./single.291678.js";import"./orderRecord.92bbc10f.js";import"./global.9ad647c8.js";import"./xlsx.ed122d16.js";import"./print-style.0cc9588c.js";const K={class:"bg-white",style:{padding:"10px"}},Q={key:0,style:{position:"absolute",top:"15px",right:"15px"}},X="supSendOrderRecordDetail",Y=I({__name:"detail",setup(Z){const{id:n,title:f,isDetail:p,collapses:d}=U({baseName:"\u53D1\u8D27\u8FD0\u5355\u5BF9\u8D26",collapseLen:3}),{run:_,data:m,loading:x}=g({initalData:{}}),v=E(null),{hasPermissionWithCode:c}=j(X),{run:N,loading:b}=g({success:()=>_(F({payNo:n.value}))}),R=y=>N(z({payNo:n.value,...y}));q(()=>p.value&&_(F({payNo:n.value})));const u=E(!1);async function w(){await G({url:"paytrackxport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>u.value=!0,onSuccess:()=>u.value=!1,onFail:()=>u.value=!1,params:{payNo:n.value}})}return(y,t)=>{const D=r("ElCollapseItem"),V=r("ElCollapse"),P=r("el-tab-pane"),h=r("el-tabs"),k=r("ElButton"),O=H("loading");return o(),B("div",K,[l(h,null,{default:a(()=>[l(P,{label:e(f)},{default:a(()=>[e(p)?L((o(),s(V,{key:1,modelValue:e(d),"onUpdate:modelValue":t[0]||(t[0]=C=>M(d)?d.value=C:null)},{default:a(()=>[l(D,{title:e(f),name:"1"},{default:a(()=>[l(W,{data:e(m),readonly:""},null,8,["data"])]),_:1},8,["title"]),String(e(m).status)==="1"&&e(c)("052")?(o(),s(D,{key:0,name:"2",title:"\u5F85\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:a(()=>[l(e($),{approveValue:"2",rejectValue:"3",onApproval:R})]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])),[[O,e(x)||e(b)]]):(o(),s(T,{key:0}))]),_:1},8,["label"])]),_:1}),e(p)?(o(),B("div",Q,[e(c)("046")?(o(),s(k,{key:0,onClick:t[1]||(t[1]=C=>v.value.print())},{default:a(()=>t[3]||(t[3]=[A(" \u6253\u5370\u5BF9\u8D26\u5355 ")])),_:1})):i("v-if",!0),e(c)("038")?(o(),s(k,{key:1,loading:u.value,type:"primary",onClick:t[2]||(t[2]=()=>w())},{default:a(()=>t[4]||(t[4]=[A(" \u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA ")])),_:1},8,["loading"])):i("v-if",!0)])):i("v-if",!0),l(e(J),{record:e(m),ref_key:"PrintOrderRecordRef",ref:v},null,8,["record"])])}}});var ye=S(Y,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplierOrder/sendOrderRecord/detail.vue"]]);export{ye as default};
