1 |
- import{_ as T,d as w,A as I,bo as U,E as z,ai as L,aZ as f,x as i,o as t,c as p,y as a,K as o,u as e,ao as j,a as s,N as _,L as C}from"./index.743f0c80.js";import{u as q}from"./useDetail.50c7b89c.js";import{p as K}from"./choose-modal.de13fbed.js";import{h as W,a as Z,b as G}from"./index.17b89a60.js";import{B as H}from"./basic-descriptions.e56bd542.js";import{R as J}from"./index.eb1db4ef.js";import M from"./choose-form.9103b2e7.js";import{D as O}from"./default.ef251c3c.js";import{R as Q}from"./receipt.e9c98103.js";import"./_options.a38891ec.js";import"./reconciliation.d0aed753.js";import"./tootip.48acd346.js";import"./index.88e5dbb1.js";import"./status.0f757cb5.js";import"./status.868e86c0.js";import"./global.9ad647c8.js";import"./index.2001cda8.js";/* empty css */const X={class:"padding__container"},Y={key:0},$=w({__name:"detail",setup(ee){const{push:B}=I(),y="purchPayDetail",{hasPermissionWithCode:A}=U(y),c=z(null),{isSuperUser:k}=L(),{id:v,isDetail:m,title:E,collapses:d}=q({baseName:"\u91C7\u8D2D\u4ED8\u6B3E",collapseLen:5}),{run:F,data:u}=f({initalData:{}}),{run:N}=f({success:()=>B("/purchase/purchPay")}),{run:b}=f({success:()=>R()});function R(){h(),c.value&&c.value.refresh()}const h=()=>F(W({DzNo:v.value})),P=l=>N(Z(l));function D(l){const r={...l,dzNo:v.value};b(G(r))}return m.value&&h(),(l,r)=>{const n=i("ElCollapseItem"),g=i("ElCollapse"),x=i("ElTabPane"),V=i("ElTabs");return t(),p("div",X,[a(V,null,{default:o(()=>[a(x,{label:e(E)},{default:o(()=>[a(g,{modelValue:e(d),"onUpdate:modelValue":r[0]||(r[0]=S=>j(d)?d.value=S:null)},{default:o(()=>[a(n,{name:"1",title:e(E)},{default:o(()=>[s(" \u4ED8\u6B3E\u8BE6\u60C5 "),e(m)?(t(),_(e(H),{key:0,columns:e(K),data:e(u)},null,8,["columns","data"])):(t(),p(C,{key:1},[s(" \u521B\u5EFA\uFF1A\u9009\u62E9\u5BF9\u8D26\u5355 "),a(M,{onCreate:P})],2112))]),_:1},8,["title"]),e(m)?(t(),p("div",Y,[a(n,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[a(e(J),{ref_key:"formRef",ref:c,readonly:"",id:e(u).payNo},null,8,["id"])]),_:1}),s(" \u5BA1\u6279\u8282\u70B9 "),e(k)?s("v-if",!0):(t(),p(C,{key:0},[String(e(u).status)==="1"&&e(A)("020")?(t(),_(n,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:o(()=>[a(e(O),{"approve-value":"2","reject-value":"4",onApproval:D})]),_:1})):s("v-if",!0),String(e(u).status)==="2"?(t(),_(n,{key:1,name:"5",title:"\u4E0A\u4F20\u56DE\u6267"},{default:o(()=>[a(e(Q),{"approve-value":"3",onApproval:D})]),_:1})):s("v-if",!0)],64))])):s("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var De=T($,[["__file","D:/work/accout-vue3-ui/src/views/purchase/purchPay__/detail.vue"]]);export{De as default};
|