import{_ as U,d as M,x as k,bG as E,ai as j,aM as G,y as q,r,aD as H,o as t,c as x,l,D as a,m as e,G as s,H as L,ar as T,a as i,M as B}from"./index.js";import W from"./form.a770fd.js";import{u as $}from"./useDetail.748c7288.js";import z from"./index.a6589a.js";import{D as J}from"./default.5cadb723.js";/* empty css                                                */import{h as b,a as K}from"./index.a7de6b05.js";import{P as Q}from"./index.dbefbff6.js";import{h as X}from"./export.cd930632.js";import"./constants.42afb0d7.js";import"./modal.6958ab.js";import"./qr.2133c3.js";import"./cg.7c84ec.js";import"./single.ab4211.js";import"./orderRecord.bd0f73d4.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=M({__name:"detail",setup(te){const A="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:F}=E({initalData:{}}),{isSuperUser:N}=j(),{hasPermissionWithCode:c}=G(A),{run:h,loading:R}=E({success:()=>v(b({payNo:n.value}))}),V=y=>h(K({payNo:n.value,...y}));q(()=>p.value&&v(b({payNo:n.value})));const u=k(!1);async function P(){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,o)=>{const D=r("ElCollapseItem"),w=r("ElCollapse"),O=r("el-tab-pane"),S=r("el-tabs"),C=r("ElButton"),I=H("loading");return t(),x("div",Y,[l(S,null,{default:a(()=>[l(O,{label:e(_)},{default:a(()=>[e(p)?L((t(),s(w,{key:1,modelValue:e(d),"onUpdate:modelValue":o[0]||(o[0]=g=>T(d)?d.value=g:null)},{default:a(()=>[l(D,{title:e(_),name:"1"},{default:a(()=>[l(z,{data:e(m),readonly:""},null,8,["data"])]),_:1},8,["title"]),String(e(m).status)==="1"&&e(c)("052")&&!e(N)?(t(),s(D,{key:0,name:"2",title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:a(()=>[l(e(J),{approveValue:"2",rejectValue:"3",onApproval:V})]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])),[[I,e(F)||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:o[1]||(o[1]=g=>f.value.print())},{default:a(()=>[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:o[2]||(o[2]=()=>P())},{default:a(()=>[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 ge=U(ee,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderRecord/detail.vue"]]);export{ge as default};
