detail.24833266.js 2.9 KB

1
  1. import{_ as U,d as j,n as w,bs as I,w as q,ah as z,b2 as v,r as p,o as t,c as i,l as a,C as o,u as e,aq as G,a as u,G as c,F as B}from"./index.0bc83371.js";import{u as L}from"./useDetail.934e99ce.js";import W from"./choose-form.75257fd0.js";import{B as H}from"./basic-descriptions.10a27b1b.js";import{R as J}from"./index.3b71de1a.js";import{h as K,a as M,b as O}from"./index.96fc0e1f.js";import{D as A}from"./default.027d3886.js";import{R as Q}from"./receipt.e9cd6fa0.js";import{p as X}from"./purchPay.3b024fb8.js";import"./porder.1fe952aa.js";import"./choose-modal.2daa3f04.js";import"./index.a6946a3d.js";import"./status.d6b2a53d.js";import"./date-range.96fed5ff.js";import"./tootip.d8389d77.js";import"./global.9ad647c8.js";import"./index.f4209e16.js";/* empty css */const Y={class:"padding__container"},Z={key:0},$=j({__name:"detail",setup(ee){const{push:y}=w(),k="purchPayDetail",{hasPermissionWithCode:E}=I(k),m=q(null),{isSuperUser:F}=z(),{id:h,isDetail:f,title:C,collapses:d}=L({baseName:"\u91C7\u8D2D\u4ED8\u6B3E",collapseLen:5}),{run:b,data:s}=v({initalData:{}}),{run:N}=v({success:()=>y("/purchase/purchPay")}),{run:R}=v({success:()=>P()});function P(){D(),m.value&&m.value.refresh()}const D=()=>b(K({DzNo:h.value})),g=r=>N(M(r));function _(r){const n={...r,dzNo:h.value};R(O(n))}return f.value&&D(),(r,n)=>{const l=p("ElCollapseItem"),S=p("ElCollapse"),V=p("ElTabPane"),x=p("ElTabs");return t(),i("div",Y,[a(x,null,{default:o(()=>[a(V,{label:e(C)},{default:o(()=>[a(S,{modelValue:e(d),"onUpdate:modelValue":n[0]||(n[0]=T=>G(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(H),{key:0,columns:e(X),data:e(s)},null,8,["columns","data"])):(t(),i(B,{key:1},[u(" \u521B\u5EFA\uFF1A\u9009\u62E9\u5BF9\u8D26\u5355 "),a(W,{onCreate:g})],2112))]),_:1},8,["title"]),e(f)?(t(),i("div",Z,[a(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[a(e(J),{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(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(A),{"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(A),{"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 Ce=U($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/purchPay/detail.vue"]]);export{Ce as default};