1 |
- import{_ as V,d as x,n as T,aL as q,w as I,ah as U,b3 as _,r as i,o as a,c as A,l as t,C as o,u as e,aq as j,G as l,a as s,F as z}from"./index.88f7d256.js";import{u as L}from"./useDetail.60c209b5.js";import G from"./choose-form.e36b851f.js";import{B as W}from"./basic-descriptions.5c20357d.js";import H from"./index.12100e15.js";import{h as J,a as K,b as M}from"./index.aa2570c0.js";import{D as C}from"./default.aa36b191.js";import{R as Q}from"./receipt.7a915582.js";import{s as X}from"./purchPayRelive.83a26b5f.js";import"./porder.b626a198.js";import"./choose-modal.6576648c.js";import"./index.69815c3e.js";import"./status.2df4810d.js";import"./date-range.b361462b.js";import"./tootip.514b092e.js";import"./orderRecord.c9c18fd5.js";import"./calc.850c7422.js";import"./index.942b383b.js";import"./global.9ad647c8.js";import"./index.cab0a6ad.js";/* empty css */const Y={class:"padding__container bg-white"},Z={key:0},$=x({__name:"detail",setup(ee){const{push:E}=T(),k="supSendOrderPayDetail",{hasPermissionWithCode:m}=q(k),c=I(null),{isSuperUser:B}=U(),{id:D,isDetail:d,title:h,collapses:f}=L({baseName:"\u53D1\u8D27\u8FD0\u5355\u4ED8\u6B3E",collapseLen:5}),{run:N,data:r}=_({initalData:{}}),{run:b}=_({success:()=>E("/supplierOrder/supSendOrderPay")}),{run:F}=_({success:()=>P()});function P(){y(),c.value&&c.value.refresh()}const y=()=>N(J({DzNo:D.value})),g=n=>b(K(n));function v(n){const p={...n,dzNo:D.value};F(M(p))}return d.value&&y(),(n,p)=>{const u=i("ElCollapseItem"),S=i("ElCollapse"),R=i("ElTabPane"),w=i("ElTabs");return a(),A("div",Y,[t(w,null,{default:o(()=>[t(R,{label:e(h)},{default:o(()=>[t(S,{modelValue:e(f),"onUpdate:modelValue":p[0]||(p[0]=O=>j(f)?f.value=O:null)},{default:o(()=>[t(u,{name:"1",title:e(h)},{default:o(()=>[e(d)?(a(),l(e(W),{key:0,columns:e(X),data:e(r)},null,8,["columns","data"])):(a(),l(G,{key:1,onCreate:g}))]),_:1},8,["title"]),e(d)?(a(),A("div",Z,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[t(H,{ref_key:"formRef",ref:c,request:"",readonly:"",payNo:e(r).payNo},null,8,["payNo"])]),_:1}),s(" \u5BA1\u6279\u8282\u70B9 "),e(B)?s("v-if",!0):(a(),A(z,{key:0},[String(e(r).status)==="1"&&e(m)("039")?(a(),l(u,{key:0,name:"3",title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:o(()=>[t(e(C),{"approve-value":"2","reject-value":"6",onApproval:v})]),_:1})):s("v-if",!0),String(e(r).status)==="2"&&e(m)("020")?(a(),l(u,{key:1,name:"4",title:"\u4E1A\u52A1\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:o(()=>[t(e(C),{"approve-value":"3","reject-value":"7",onApproval:v})]),_:1})):s("v-if",!0),String(e(r).status)==="3"&&e(m)("049")?(a(),l(u,{key:2,name:"5",title:"\u4E0A\u4F20\u56DE\u6267"},{default:o(()=>[t(e(Q),{"approve-value":"4",onApproval:v})]),_:1})):s("v-if",!0)],64))])):s("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Ee=V($,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/supplierOrder/sendOrderPay/detail.vue"]]);export{Ee as default};
|