detail.92ffd3f0.js 2.9 KB

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