import{_ as N,d as T,k as j,j as I,n as i,c9 as $,cB as q,r as a,o as n,c as k,h as l,y as t,i as o,ak as S,a as s,A as c,H as y,f4 as G}from"./index.js";import{u as H}from"./useDetail.da468487.js";import{R as L}from"./index.6004c99e.js";import{h as Q}from"./export.97c4d705.js";import{P as U}from"./index.c5f474a0.js";import"./orderRecord.92bbc10f.js";import"./porder.827c74bc.js";import"./xlsx.ed122d16.js";import"./print-style.0cc9588c.js";const W={class:"padding__container"},z={key:0,style:{position:"absolute",top:"15px",right:"15px"}},J=T({__name:"detail",setup(K){const{push:B}=j(),{query:F}=I(),g=i(null),d=i(null),{id:v,title:_,isDetail:E,collapses:p}=H({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),C=i({}),u=i(!1),{hasPermissionWithCode:m}=$("supplyOrderRecordDetail"),{run:x,loading:D}=q({success:()=>B(`/supply/${F.isQuery,"supplyOrderRecord"}`)});function P({cids:R}){const e={cids:R.join(",")};x(G(e))}async function b(){await Q({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=a("ElCollapseItem"),O=a("ElCollapse"),V=a("ElTabPane"),w=a("ElTabs"),f=a("ElButton");return n(),k("div",W,[l(w,null,{default:t(()=>[l(V,{label:o(_)},{default:t(()=>[l(O,{modelValue:o(p),"onUpdate:modelValue":e[1]||(e[1]=r=>S(p)?p.value=r:null)},{default:t(()=>[s(" \u8BE6\u60C5 or \u521B\u5EFA "),l(A,{name:"1",title:o(_)},{default:t(()=>[l(o(L),{id:o(v),ref_key:"formRef",ref:g,loading:o(D),readonly:o(E),onCreate:P,onGetRecord:e[0]||(e[0]=r=>C.value=r)},null,8,["id","loading","readonly"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),o(E)?(n(),k("div",z,[o(m)("047")?(n(),c(f,{key:0,onClick:e[2]||(e[2]=r=>d.value.print(!0))},{default:t(()=>e[5]||(e[5]=[y(" \u6253\u5370\u51FA\u5E93\u5355 ")])),_:1})):s("v-if",!0),o(m)("046")?(n(),c(f,{key:1,onClick:e[3]||(e[3]=r=>d.value.print())},{default:t(()=>e[6]||(e[6]=[y(" \u6253\u5370\u5BF9\u8D26\u5355 ")])),_:1})):s("v-if",!0),o(m)("038")?(n(),c(f,{key:2,loading:u.value,type:"primary",onClick:e[4]||(e[4]=()=>b())},{default:t(()=>e[7]||(e[7]=[y("\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA")])),_:1},8,["loading"])):s("v-if",!0)])):s("v-if",!0),l(o(U),{record:C.value,ref_key:"PrintOrderRecordRef",ref:d},null,8,["record"])])}}});var re=N(J,[["__file","D:/work/jiesuan/settle-vue3/src/views/supply/orderRecord/detail.vue"]]);export{re as default};
