import{_ as T,d as w,p as I,n as $,x as i,aM as h,bc as j,r,o as s,c as k,l as a,D as t,m as o,ar as q,a as n,G as f,M as _,dH as G}from"./index.js";import{u as M}from"./useDetail.748c7288.js";import{R as S}from"./index.79a52a46.js";import{h as U}from"./export.cd930632.js";import{P as H}from"./index.31a4ff51.js";import"./orderRecord.bd0f73d4.js";import"./porder.cb2a60e8.js";import"./xlsx.ed122d16.js";import"./print-style.0cc9588c.js";const L={class:"padding__container"},Q={key:0,style:{position:"absolute",top:"15px",right:"15px"}},W=w({__name:"detail",setup(z){const{push:B}=I(),{query:x}=$(),D=i(null),d=i(null),{id:v,title:y,isDetail:C,collapses:p}=M({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),E=i({}),u=i(!1),{hasPermissionWithCode:c}=h("supplyOrderRecordDetail"),{run:F,loading:b}=j({success:()=>B(`/supply/${x.isQuery,"supplyOrderRecord"}`)});function g({cids:R}){const e={cids:R.join(",")};F(G(e))}async function P(){await U({url:"paycgdexport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onFail:()=>u.value=!1,onStart:()=>u.value=!0,onSuccess:()=>u.value=!1,params:{payNo:v.value}})}return(R,e)=>{const A=r("ElCollapseItem"),O=r("ElCollapse"),V=r("ElTabPane"),N=r("ElTabs"),m=r("ElButton");return s(),k("div",L,[a(N,null,{default:t(()=>[a(V,{label:o(y)},{default:t(()=>[a(O,{modelValue:o(p),"onUpdate:modelValue":e[1]||(e[1]=l=>q(p)?p.value=l:null)},{default:t(()=>[n(" \u8BE6\u60C5 or \u521B\u5EFA "),a(A,{name:"1",title:o(y)},{default:t(()=>[a(o(S),{id:o(v),ref_key:"formRef",ref:D,loading:o(b),readonly:o(C),onCreate:g,onGetRecord:e[0]||(e[0]=l=>E.value=l)},null,8,["id","loading","readonly"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),o(C)?(s(),k("div",Q,[o(c)("047")?(s(),f(m,{key:0,onClick:e[2]||(e[2]=l=>d.value.print(!0))},{default:t(()=>[_(" \u6253\u5370\u51FA\u5E93\u5355 ")]),_:1})):n("v-if",!0),o(c)("046")?(s(),f(m,{key:1,onClick:e[3]||(e[3]=l=>d.value.print())},{default:t(()=>[_(" \u6253\u5370\u5BF9\u8D26\u5355 ")]),_:1})):n("v-if",!0),o(c)("038")?(s(),f(m,{key:2,loading:u.value,type:"primary",onClick:e[4]||(e[4]=()=>P())},{default:t(()=>[_("\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA")]),_:1},8,["loading"])):n("v-if",!0)])):n("v-if",!0),a(o(H),{record:E.value,ref_key:"PrintOrderRecordRef",ref:d},null,8,["record"])])}}});var le=T(W,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/orderRecord/detail.vue"]]);export{le as default};
