detail.32dd084f.js 2.5 KB

1
  1. import{_ as N,d as T,n as q,m as I,w as i,aL as $,b3 as h,x as j,r as s,o as l,c as k,l as a,C as t,u as o,aq as G,a as n,G as f,M as _}from"./index.42bf163d.js";import{u as L}from"./useDetail.a92278a2.js";import{a as M}from"./index.e0b507e8.js";import{R as S}from"./index.3d26752b.js";import{h as U}from"./export.e9249fd9.js";import{P as Q}from"./index.9facfe55.js";import"./basic-descriptions.bd1e983e.js";import"./tootip.bb80052f.js";import"./porder.386fe03e.js";import"./status.d6b2a53d.js";import"./xlsx.ed122d16.js";import"./calc.1104f430.js";const W={class:"padding__container"},z={key:0,style:{position:"absolute",top:"15px",right:"15px"}},H=T({__name:"detail",setup(J){const{push:B}=q(),{query:x}=I(),F=i(null),d=i(null),{id:v,title:y,isDetail:C,collapses:p}=L({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),E=i({}),u=i(!1),{hasPermissionWithCode:c,permissions:K}=$("supplyOrderRecordDetail"),{run:b,loading:g}=h({success:()=>B(`/supply/${x.isQuery,"supplyOrderRecord"}`)});function D({cids:R}){const e={cids:R.join(",")};b(M(e))}j(()=>{});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=s("ElCollapseItem"),O=s("ElCollapse"),V=s("ElTabPane"),w=s("ElTabs"),m=s("ElButton");return l(),k("div",W,[a(w,null,{default:t(()=>[a(V,{label:o(y)},{default:t(()=>[a(O,{modelValue:o(p),"onUpdate:modelValue":e[1]||(e[1]=r=>G(p)?p.value=r: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:F,loading:o(g),readonly:o(C),onCreate:D,onGetRecord:e[0]||(e[0]=r=>E.value=r)},null,8,["id","loading","readonly"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),o(C)?(l(),k("div",z,[o(c)("047")?(l(),f(m,{key:0,onClick:e[2]||(e[2]=r=>d.value.print(!0))},{default:t(()=>[_(" \u6253\u5370\u51FA\u5E93\u5355 ")]),_:1})):n("v-if",!0),o(c)("046")?(l(),f(m,{key:1,onClick:e[3]||(e[3]=r=>d.value.print())},{default:t(()=>[_(" \u6253\u5370\u5BF9\u8D26\u5355 ")]),_:1})):n("v-if",!0),o(c)("038")?(l(),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(Q),{record:E.value,ref_key:"PrintOrderRecordRef",ref:d},null,8,["record"])])}}});var ie=N(H,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/orderRecord/detail.vue"]]);export{ie as default};