1 |
- import{_ as A,d as V,A as w,z as N,E as c,bo as P,aZ as T,x as a,o as d,c as m,y as t,K as s,u as e,ao as I,a as _,W as O}from"./index.743f0c80.js";import{u as q}from"./useDetail.50c7b89c.js";import{a as S}from"./index.88e5dbb1.js";import{R as W}from"./index.eb1db4ef.js";import{h as j}from"./export.155240ef.js";import"./basic-descriptions.e56bd542.js";import"./tootip.48acd346.js";import"./status.0f757cb5.js";import"./status.868e86c0.js";import"./xlsx.ed122d16.js";const z={class:"padding__container"},K={key:0,style:{position:"absolute",top:"15px",right:"15px"}},L=O("\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA"),Q=V({__name:"detail",setup(U){const{push:f}=w(),{query:y}=N(),E=c(null),{id:u,title:r,isDetail:i,collapses:n}=q({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),l=c(!1),{hasPermissionWithCode:C}=P("supplyOrderRecordDetail"),{run:v,loading:R}=T({success:()=>f(`/supply/${y.isQuery,"supplyOrderRecord"}`)});function B({cids:p}){const o={cids:p.join(",")};v(S(o))}async function x(){await j({url:"paycgdexport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>l.value=!0,onSuccess:()=>l.value=!1,onFail:()=>l.value=!1,params:{payNo:u.value}})}return(p,o)=>{const b=a("ElCollapseItem"),g=a("ElCollapse"),h=a("ElTabPane"),D=a("ElTabs"),F=a("ElButton");return d(),m("div",z,[t(D,null,{default:s(()=>[t(h,{label:e(r)},{default:s(()=>[t(g,{modelValue:e(n),"onUpdate:modelValue":o[0]||(o[0]=k=>I(n)?n.value=k:null)},{default:s(()=>[_(" \u8BE6\u60C5 or \u521B\u5EFA "),t(b,{name:"1",title:e(r)},{default:s(()=>[t(e(W),{id:e(u),ref_key:"formRef",ref:E,loading:e(R),readonly:e(i),onCreate:B},null,8,["id","loading","readonly"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),e(C)("038")&&e(i)?(d(),m("div",K,[t(F,{loading:l.value,type:"primary",onClick:o[1]||(o[1]=()=>x())},{default:s(()=>[L]),_:1},8,["loading"])])):_("v-if",!0)])}}});var te=A(Q,[["__file","D:/work/accout-vue3-ui/src/views/supply/orderRecord/detail.vue"]]);export{te as default};
|