detail.d4c359.js 2.8 KB

1
  1. import{_ as T,d as U,p as j,aM as w,x as z,ai as q,bc as _,r as i,o as t,c as p,l as a,D as o,m as e,ar as G,a as s,G as c,aN as L,F as h}from"./index.js";import{u as M}from"./useDetail.d77f98f9.js";import O from"./choose-form.02c605.js";import{R as W}from"./index.8ad79f80.js";import{h as H,a as J,b as K}from"./index.5f728d54.js";import{D as B}from"./default.86fd4980.js";import{R as Q}from"./receipt.2e6f7d0d.js";import{p as X}from"./purchPay.db2f1e31.js";import"./porder.9a85976d.js";import"./choose-modal.6c8fdc.js";import"./date-range.4010f801.js";import"./orderRecord.4d98a397.js";import"./global.9ad647c8.js";import"./index.e075def9.js";/* empty css */const Y={class:"padding__container"},Z={key:0},$=U({__name:"detail",setup(ee){const{push:y}=j(),k="supplierPayDetail",{hasPermissionWithCode:E}=w(k),m=z(null),{isSuperUser:F}=q(),{id:D,isDetail:d,title:C,collapses:f}=M({baseName:"\u901A\u7528\u91C7\u8D2D\u4ED8\u6B3E",collapseLen:5}),{run:N,data:u}=_({initalData:{}}),{run:b}=_({success:()=>y("/purchase/purchPay")}),{run:R}=_({success:()=>P()});function P(){A(),m.value&&m.value.refresh()}const A=()=>N(H({DzNo:D.value})),g=r=>b(J(r));function v(r){const n={...r,dzNo:D.value};R(K(n))}return d.value&&A(),(r,n)=>{const l=i("ElCollapseItem"),S=i("ElCollapse"),x=i("ElTabPane"),V=i("ElTabs");return t(),p("div",Y,[a(V,null,{default:o(()=>[a(x,{label:e(C)},{default:o(()=>[a(S,{modelValue:e(f),"onUpdate:modelValue":n[0]||(n[0]=I=>G(f)?f.value=I:null)},{default:o(()=>[a(l,{name:"1",title:e(C)},{default:o(()=>[s(" \u4ED8\u6B3E\u8BE6\u60C5 "),e(d)?(t(),c(e(L),{key:0,columns:e(X),data:e(u)},null,8,["columns","data"])):(t(),p(h,{key:1},[s(" \u521B\u5EFA\uFF1A\u9009\u62E9\u5BF9\u8D26\u5355 "),a(O,{onCreate:g})],2112))]),_:1},8,["title"]),e(d)?(t(),p("div",Z,[a(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[a(e(W),{ref_key:"formRef",ref:m,readonly:"",id:e(u).payNo},null,8,["id"])]),_:1}),s(" \u5BA1\u6279\u8282\u70B9 "),e(F)?s("v-if",!0):(t(),p(h,{key:0},[String(e(u).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:v})]),_:1})):s("v-if",!0),String(e(u).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:v})]),_:1})):s("v-if",!0),String(e(u).status)==="3"?(t(),c(l,{key:2,name:"5",title:"\u4E0A\u4F20\u56DE\u6267"},{default:o(()=>[a(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 _e=T($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierPay/detail.vue"]]);export{_e as default};