1 |
- import{_ as w,d as I,A as U,z as j,E,af as q,aZ as L,ai as Q,b8 as y,x as u,o as r,c as m,y as t,K as s,u as e,ao as W,a as l,L as z,N as K,W as Z}from"./index.1417328f.js";import{u as $}from"./useDetail.1c3d5449.js";import{D as G}from"./default.2af79f8c.js";/* empty css */import{h as H,a as J}from"./index.08fe6875.js";import{R as M}from"./index.38882c18.js";import{h as O}from"./export.0c2421ad.js";import"./global.9ad647c8.js";import"./basic-descriptions.cadaf928.js";import"./tootip.8c37fa8a.js";import"./status.0f757cb5.js";import"./status.727086c1.js";import"./xlsx.ed122d16.js";const X={class:"padding__container"},Y={key:0,style:{position:"absolute",top:"15px",right:"15px"}},ee=Z("\u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA"),oe=I({__name:"detail",setup(ae){const{push:C}=U(),{query:B}=j(),i=E(null),h=q(()=>{var a;return((a=i.value)==null?void 0:a.detail.status)||""}),A="orderRecordDetail",n=E(!1),{hasPermissionWithCode:f}=L(A),{id:p,title:_,isDetail:c,collapses:d}=$({baseName:"\u8BA2\u5355\u5BF9\u8D26",collapseLen:3}),{isSuperUser:g}=Q(),{run:R}=y({success:()=>i.value.refresh()}),{run:x,loading:D}=y({success:()=>C(`/purchase/${B.isQuery?"orderRecordQuery":"orderRecord"}`)});function F(a){const o={...a,payNo:p.value};R(H(o))}function b({cids:a}){const o={cids:a.join(",")};x(J(o))}async function k(){await O({url:"paycgdexport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>n.value=!0,onSuccess:()=>n.value=!1,onFail:()=>n.value=!1,params:{payNo:p.value}})}return(a,o)=>{const v=u("ElCollapseItem"),N=u("ElCollapse"),V=u("ElTabPane"),P=u("ElTabs"),S=u("ElButton");return r(),m("div",X,[t(P,null,{default:s(()=>[t(V,{label:e(_)},{default:s(()=>[t(N,{modelValue:e(d),"onUpdate:modelValue":o[0]||(o[0]=T=>W(d)?d.value=T:null)},{default:s(()=>[l(" \u8BE6\u60C5 or \u521B\u5EFA "),t(v,{name:"1",title:e(_)},{default:s(()=>[t(e(M),{id:e(p),ref_key:"formRef",ref:i,loading:e(D),readonly:e(c),onCreate:b,isPurch:""},null,8,["id","loading","readonly"])]),_:1},8,["title"]),l(" \u8BE6\u60C5 - \u5BA1\u6279\u8282\u70B9 "),e(c)&&!e(g)?(r(),m(z,{key:0},[String(e(h))==="1"&&e(f)("039")?(r(),K(v,{key:0,name:"2",title:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:s(()=>[t(e(G),{approveValue:"2",rejectValue:"3",onApproval:F})]),_:1})):l("v-if",!0)],64)):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),e(f)("038")&&e(c)?(r(),m("div",Y,[t(S,{loading:n.value,type:"primary",onClick:o[1]||(o[1]=()=>k())},{default:s(()=>[ee]),_:1},8,["loading"])])):l("v-if",!0)])}}});var ve=w(oe,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/orderRecord/detail.vue"]]);export{ve as default};
|