import{_ as I,d as j,bv as k,w as E,aL as q,x as L,r,aC as M,o as t,c as x,l,C as o,u as e,G as s,H as U,aq as G,a as i,M as B}from"./index.56c69f5a.js";import H from"./form.4fcbe2e4.js";import{u as T}from"./useDetail.acb31522.js";import W from"./index.805e9566.js";import{D as $}from"./default.30f69f92.js";/* empty css                                                */import{h as F,a as z}from"./index.5ce46a74.js";import{h as J}from"./export.61b14108.js";import{P as K}from"./index.47f44340.js";import"./constants.59c8f8ef.js";import"./modal.b7afc139.js";import"./qr.17307fe3.js";import"./cg.91e4b6ca.js";import"./single.a7ad1289.js";import"./calc.850c7422.js";import"./basic-descriptions.5f176484.js";import"./tootip.fe6ea468.js";import"./orderRecord.9d7001b8.js";import"./global.9ad647c8.js";import"./xlsx.ed122d16.js";import"./print-style.0cc9588c.js";const Q={class:"bg-white",style:{padding:"10px"}},X={key:0,style:{position:"absolute",top:"15px",right:"15px"}},Y=j({__name:"detail",setup(Z){const b="supSendOrderRecordDetail",{id:n,title:f,isDetail:p,collapses:d}=T({baseName:"\u53D1\u8D27\u8FD0\u5355\u5BF9\u8D26",collapseLen:3}),{run:_,data:m,loading:A}=k({initalData:{}}),v=E(null),{hasPermissionWithCode:c}=q(b),{run:N,loading:h}=k({success:()=>_(F({payNo:n.value}))}),R=y=>N(z({payNo:n.value,...y}));L(()=>p.value&&_(F({payNo:n.value})));const u=E(!1);async function V(){await J({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,a)=>{const D=r("ElCollapseItem"),w=r("ElCollapse"),P=r("el-tab-pane"),O=r("el-tabs"),C=r("ElButton"),S=M("loading");return t(),x("div",Q,[l(O,null,{default:o(()=>[l(P,{label:e(f)},{default:o(()=>[e(p)?U((t(),s(w,{key:1,modelValue:e(d),"onUpdate:modelValue":a[0]||(a[0]=g=>G(d)?d.value=g:null)},{default:o(()=>[l(D,{title:e(f),name:"1"},{default:o(()=>[l(W,{data:e(m),readonly:""},null,8,["data"])]),_:1},8,["title"]),String(e(m).status)==="1"&&e(c)("052")?(t(),s(D,{key:0,name:"2",title:"\u5F85\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:o(()=>[l(e($),{approveValue:"2",rejectValue:"3",onApproval:R})]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])),[[S,e(A)||e(h)]]):(t(),s(H,{key:0}))]),_:1},8,["label"])]),_:1}),e(p)?(t(),x("div",X,[e(c)("046")?(t(),s(C,{key:0,onClick:a[1]||(a[1]=g=>v.value.print())},{default:o(()=>[B(" \u6253\u5370\u5BF9\u8D26\u5355 ")]),_:1})):i("v-if",!0),e(c)("038")?(t(),s(C,{key:1,loading:u.value,type:"primary",onClick:a[2]||(a[2]=()=>V())},{default:o(()=>[B(" \u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA ")]),_:1},8,["loading"])):i("v-if",!0)])):i("v-if",!0),l(e(K),{record:e(m),ref_key:"PrintOrderRecordRef",ref:v},null,8,["record"])])}}});var ke=I(Y,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplierOrder/sendOrderRecord/detail.vue"]]);export{ke as default};
