1 |
- import{_ as A,d as P,A as V,z as N,E as c,aZ as T,b8 as w,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.1417328f.js";import{u as j}from"./useDetail.1c3d5449.js";import{a as q}from"./index.08fe6875.js";import{R as S}from"./index.38882c18.js";import{h as U}from"./export.0c2421ad.js";import"./basic-descriptions.cadaf928.js";import"./tootip.8c37fa8a.js";import"./status.0f757cb5.js";import"./status.727086c1.js";import"./xlsx.ed122d16.js";const W={class:"padding__container"},z={key:0,style:{position:"absolute",top:"15px",right:"15px"}},K=O("\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA"),L=P({__name:"detail",setup(Q){const{push:f}=V(),{query:y}=N(),E=c(null),{id:u,title:r,isDetail:i,collapses:n}=j({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),l=c(!1),{hasPermissionWithCode:C}=T("supplyOrderRecordDetail"),{run:v,loading:R}=w({success:()=>f(`/supply/${y.isQuery,"supplyOrderRecord"}`)});function B({cids:p}){const o={cids:p.join(",")};v(q(o))}async function x(){await U({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",W,[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(S),{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",z,[t(F,{loading:l.value,type:"primary",onClick:o[1]||(o[1]=()=>x())},{default:s(()=>[K]),_:1},8,["loading"])])):_("v-if",!0)])}}});var te=A(L,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/orderRecord/detail.vue"]]);export{te as default};
|