detail.8c90dd97.js 2.8 KB

1
  1. import{_ as U,d as S,A as j,aZ as w,ai as L,E as q,b8 as r,x as n,o as s,c,y as a,K as t,u as e,ao as z,a as u,N as D,L as K}from"./index.1417328f.js";import{u as W}from"./useDetail.1c3d5449.js";import{p as Z,a as $}from"./choose-modal.5f8111fb.js";import{B as C}from"./basic-descriptions.cadaf928.js";import{R as G}from"./index.38882c18.js";import H from"./choose-form.ce1d64ec.js";import{R as J}from"./receipt.5753ba6f.js";import{h as M}from"./index.514aa846.js";import{h as O,a as Q,b as X}from"./index.eca696a2.js";import"./_options.e47869ce.js";import"./reconciliation.53461462.js";import"./tootip.8c37fa8a.js";import"./index.08fe6875.js";import"./status.0f757cb5.js";import"./status.727086c1.js";import"./_details.1899f29a.js";import"./_options.d0ef3218.js";import"./index.8de1d191.js";/* empty css */const Y={class:"padding__container"},ee={key:0},ae=S({__name:"detail",setup(te){const{push:v}=j(),h="purchPayReliveDetail",{hasPermissionWithCode:B}=w(h),{isSuperUser:y}=L(),R=q(null),{id:d,isDetail:i,title:f,collapses:p}=W({baseName:"\u91C7\u8D2D\u4ED8\u6B3E\u89E3\u9664",collapseLen:5}),{run:b,data:m}=r({initalData:{},success:({orderCode:o})=>k(M({DzNo:o}))}),{run:k,data:A}=r({initalData:{}}),{run:F}=r({success:()=>v("/purchase/purchPay")}),{run:N}=r({success:()=>_()}),_=()=>b(O({returnCode:d.value})),P=o=>F(Q(o)),g=o=>N(X({returnCode:d.value,...o}));return i.value&&_(),(o,E)=>{const l=n("ElCollapseItem"),x=n("ElCollapse"),V=n("ElTabPane"),I=n("ElTabs");return s(),c("div",Y,[a(I,null,{default:t(()=>[a(V,{label:e(f)},{default:t(()=>[a(x,{modelValue:e(p),"onUpdate:modelValue":E[0]||(E[0]=T=>z(p)?p.value=T:null)},{default:t(()=>[a(l,{name:"1",title:e(f)},{default:t(()=>[u(" \u89E3\u9664\u4ED8\u6B3E\u8BE6\u60C5 "),e(i)?(s(),D(e(C),{key:0,class:"mb-2",columns:e(Z),data:e(m)},null,8,["columns","data"])):(s(),c(K,{key:1},[u(" \u521B\u5EFA\uFF1A\u9009\u62E9\u4ED8\u6B3E\u89E3\u9664 "),a(H,{onCreate:P})],2112))]),_:1},8,["title"]),a(l,{name:"4",title:"\u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5"},{default:t(()=>[u(" \u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5 "),a(e(C),{columns:e($),data:e(A)},null,8,["columns","data"])]),_:1}),e(i)?(s(),c("div",ee,[a(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:t(()=>[a(e(G),{ref_key:"formRef",ref:R,readonly:"",id:e(m).payNo},null,8,["id"])]),_:1}),String(e(m).status)==="1"&&!e(y)&&e(B)("020")?(s(),D(l,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:t(()=>[a(e(J),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:g})]),_:1})):u("v-if",!0)])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ye=U(ae,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/purchPayRelive/detail.vue"]]);export{ye as default};