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