detail.cf329b82.js 2.9 KB

1
  1. import{_ as U,d as j,A as I,aZ as w,E as z,ai as L,b8 as v,x as p,o as t,c as i,y as a,K as o,u as e,ao as q,a as u,N as c,L as A}from"./index.1417328f.js";import{u as K}from"./useDetail.1c3d5449.js";import{p as W}from"./_details.1899f29a.js";import Z from"./choose-form.523dc4e5.js";import{B as G}from"./basic-descriptions.cadaf928.js";import{R as H}from"./index.38882c18.js";import{h as J,a as M,b as O}from"./index.514aa846.js";import{D as B}from"./default.2af79f8c.js";import{R as Q}from"./receipt.5753ba6f.js";import"./_options.d0ef3218.js";import"./choose-modal.77eed037.js";import"./reconciliation.53461462.js";import"./tootip.8c37fa8a.js";import"./index.08fe6875.js";import"./status.0f757cb5.js";import"./status.727086c1.js";import"./global.9ad647c8.js";import"./index.8de1d191.js";/* empty css */const X={class:"padding__container"},Y={key:0},$=j({__name:"detail",setup(ee){const{push:y}=I(),k="purchPayDetail",{hasPermissionWithCode:E}=w(k),m=z(null),{isSuperUser:F}=L(),{id:h,isDetail:f,title:C,collapses:d}=K({baseName:"\u91C7\u8D2D\u4ED8\u6B3E",collapseLen:5}),{run:N,data:s}=v({initalData:{}}),{run:b}=v({success:()=>y("/purchase/purchPay")}),{run:P}=v({success:()=>R()});function R(){D(),m.value&&m.value.refresh()}const D=()=>N(J({DzNo:h.value})),g=r=>b(M(r));function _(r){const n={...r,dzNo:h.value};P(O(n))}return f.value&&D(),(r,n)=>{const l=p("ElCollapseItem"),x=p("ElCollapse"),S=p("ElTabPane"),V=p("ElTabs");return t(),i("div",X,[a(V,null,{default:o(()=>[a(S,{label:e(C)},{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(C)},{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(),i(A,{key:1},[u(" \u521B\u5EFA\uFF1A\u9009\u62E9\u5BF9\u8D26\u5355 "),a(Z,{onCreate:g})],2112))]),_:1},8,["title"]),e(f)?(t(),i("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(),i(A,{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(B),{"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(B),{"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 De=U($,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/purchPay/detail.vue"]]);export{De as default};