1 |
- import{_ as I,d as T,n as U,aL as j,w as q,ah as z,b3 as _,r as i,o as t,c as p,l as a,C as o,u as e,aq as L,a as u,G as m,F as A}from"./index.88f7d256.js";import{u as G}from"./useDetail.60c209b5.js";import W from"./choose-form.ad567113.js";import{B as H}from"./basic-descriptions.5c20357d.js";import{R as J}from"./index.9fa951c4.js";import{h as K,a as M,b as O}from"./index.aa2570c0.js";import{D as B}from"./default.aa36b191.js";import{R as Q}from"./receipt.7a915582.js";import{p as X}from"./purchPay.16ad270f.js";import"./porder.b626a198.js";import"./choose-modal.57d7838d.js";import"./index.69815c3e.js";import"./status.2df4810d.js";import"./date-range.b361462b.js";import"./orderRecord.c9c18fd5.js";import"./tootip.514b092e.js";import"./calc.850c7422.js";import"./global.9ad647c8.js";import"./index.cab0a6ad.js";/* empty css */const Y={class:"padding__container"},Z={key:0},$=T({__name:"detail",setup(ee){const{push:y}=U(),k="supplierPayDetail",{hasPermissionWithCode:E}=j(k),c=q(null),{isSuperUser:F}=z(),{id:C,isDetail:f,title:D,collapses:d}=G({baseName:"\u901A\u7528\u91C7\u8D2D\u4ED8\u6B3E",collapseLen:5}),{run:b,data:s}=_({initalData:{}}),{run:N}=_({success:()=>y("/purchase/purchPay")}),{run:R}=_({success:()=>P()});function P(){h(),c.value&&c.value.refresh()}const h=()=>b(K({DzNo:C.value})),g=r=>N(M(r));function v(r){const n={...r,dzNo:C.value};R(O(n))}return f.value&&h(),(r,n)=>{const l=i("ElCollapseItem"),S=i("ElCollapse"),V=i("ElTabPane"),w=i("ElTabs");return t(),p("div",Y,[a(w,null,{default:o(()=>[a(V,{label:e(D)},{default:o(()=>[a(S,{modelValue:e(d),"onUpdate:modelValue":n[0]||(n[0]=x=>L(d)?d.value=x:null)},{default:o(()=>[a(l,{name:"1",title:e(D)},{default:o(()=>[u(" \u4ED8\u6B3E\u8BE6\u60C5 "),e(f)?(t(),m(e(H),{key:0,columns:e(X),data:e(s)},null,8,["columns","data"])):(t(),p(A,{key:1},[u(" \u521B\u5EFA\uFF1A\u9009\u62E9\u5BF9\u8D26\u5355 "),a(W,{onCreate:g})],2112))]),_:1},8,["title"]),e(f)?(t(),p("div",Z,[a(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[a(e(J),{ref_key:"formRef",ref:c,readonly:"",id:e(s).payNo},null,8,["id"])]),_:1}),u(" \u5BA1\u6279\u8282\u70B9 "),e(F)?u("v-if",!0):(t(),p(A,{key:0},[String(e(s).status)==="1"&&e(E)("039")?(t(),m(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:v})]),_:1})):u("v-if",!0),String(e(s).status)==="2"&&e(E)("020")?(t(),m(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:v})]),_:1})):u("v-if",!0),String(e(s).status)==="3"?(t(),m(l,{key:2,name:"5",title:"\u4E0A\u4F20\u56DE\u6267"},{default:o(()=>[a(e(Q),{"approve-value":"4",onApproval:v})]),_:1})):u("v-if",!0)],64))])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Ae=I($,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/supplierPay/detail.vue"]]);export{Ae as default};
|