1 |
- import{_ as N,d as T,n as q,m as I,w as i,bs as $,b2 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.0bc83371.js";import{u as M}from"./useDetail.934e99ce.js";import{a as S}from"./index.a6946a3d.js";import{R as U}from"./index.3b71de1a.js";import{h as L}from"./export.f4344923.js";import{P as Q}from"./index.4f7c86e5.js";import"./basic-descriptions.10a27b1b.js";import"./tootip.d8389d77.js";import"./porder.1fe952aa.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:b}=I(),x=i(null),{id:v,title:y,isDetail:C,collapses:d}=M({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),E=i({}),u=i(!1),{hasPermissionWithCode:p,permissions:K}=$("supplyOrderRecordDetail"),c=i(null),{run:F,loading:g}=h({success:()=>B(`/supply/${b.isQuery,"supplyOrderRecord"}`)});function D({cids:R}){const e={cids:R.join(",")};F(S(e))}j(()=>{});async function P(){await L({url:"paycgdexport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>u.value=!0,onSuccess:()=>u.value=!1,onFail:()=>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(d),"onUpdate:modelValue":e[1]||(e[1]=r=>G(d)?d.value=r:null)},{default:t(()=>[n(" \u8BE6\u60C5 or \u521B\u5EFA "),a(A,{name:"1",title:o(y)},{default:t(()=>[a(o(U),{id:o(v),ref_key:"formRef",ref:x,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(p)("047")?(l(),f(m,{key:0,onClick:e[2]||(e[2]=r=>c.value.print(!0))},{default:t(()=>[_(" \u6253\u5370\u51FA\u5E93\u5355 ")]),_:1})):n("v-if",!0),o(p)("046")?(l(),f(m,{key:1,onClick:e[3]||(e[3]=r=>c.value.print())},{default:t(()=>[_(" \u6253\u5370\u5BF9\u8D26\u5355 ")]),_:1})):n("v-if",!0),o(p)("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:c},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};
|