import{_ as I,d as U,n as g,d3 as E,ab as j,c9 as q,p as H,r,aw as L,o,c as B,h as l,y as a,i as e,A as s,B as M,ak as T,a as i,H as A}from"./index.js";import W from"./form.40cdef.js";import{u as $}from"./useDetail.da468487.js";import z from"./index.48d92d.js";import{D as G}from"./receipt.f599b785.js";import{h as b,a as J}from"./index.f78c594b.js";import{P as K}from"./index.d8a9e037.js";import{h as Q}from"./export.97c4d705.js";import"./constants.42afb0d7.js";import"./modal.7255c2.js";import"./qr.79c2b7.js";import"./cg.735768.js";import"./single.af422d.js";import"./orderRecord.92bbc10f.js";import"./global.9ad647c8.js";import"./print-style.0cc9588c.js";import"./xlsx.ed122d16.js";const X={class:"bg-white",style:{padding:"10px"}},Y={key:0,style:{position:"absolute",top:"15px",right:"15px"}},Z="sendOrderRecordDetail",ee=U({__name:"detail",setup(te){const f=g(null),{id:n,title:_,isDetail:p,collapses:d}=$({baseName:"\u53D1\u8D27\u8FD0\u5355\u5BF9\u8D26",collapseLen:3}),{run:v,data:m,loading:x}=E({initalData:{}}),{isSuperUser:F}=j(),{hasPermissionWithCode:c}=q(Z),{run:N,loading:R}=E({success:()=>v(b({payNo:n.value}))}),w=y=>N(J({payNo:n.value,...y}));H(()=>p.value&&v(b({payNo:n.value})));const u=g(!1);async function V(){await Q({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"),P=r("ElCollapse"),h=r("el-tab-pane"),O=r("el-tabs"),k=r("ElButton"),S=L("loading");return o(),B("div",X,[l(O,null,{default:a(()=>[l(h,{label:e(_)},{default:a(()=>[e(p)?M((o(),s(P,{key:1,modelValue:e(d),"onUpdate:modelValue":t[0]||(t[0]=C=>T(d)?d.value=C: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(F)?(o(),s(D,{key:0,name:"2",title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:a(()=>[l(e(G),{approveValue:"2",rejectValue:"3",onApproval:w})]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])),[[S,e(x)||e(R)]]):(o(),s(W,{key:0}))]),_:1},8,["label"])]),_:1}),e(p)?(o(),B("div",Y,[e(c)("046")?(o(),s(k,{key:0,onClick:t[1]||(t[1]=C=>f.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]=()=>V())},{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(K),{record:e(m),ref_key:"PrintOrderRecordRef",ref:f},null,8,["record"])])}}});var ke=I(ee,[["__file","D:/work/jiesuan/settle-vue3/src/views/postSupplierOrder/sendOrderRecord/detail.vue"]]);export{ke as default};
