detail.e42c8d.js 2.3 KB

1
  1. import{_ as T,d as V,p as w,aM as I,ai as U,x as v,bc as r,z,r as i,o as t,c as f,l as a,D as s,m as e,ar as j,a as l,G as _,aN as y,F as q}from"./index.js";import{u as G}from"./useDetail.d77f98f9.js";import{R as L}from"./index.8ad79f80.js";import M from"./choose-form.e12182.js";import{d as O}from"./index.5f728d54.js";import{p as $,a as H}from"./purchPay.db2f1e31.js";import{p as J}from"./purchPayRelive.e0536c50.js";import"./porder.9a85976d.js";import{h as K,d as Q,a as S}from"./index.32083902.js";import"./orderRecord.4d98a397.js";import"./choose-modal.eff1aa.js";import"./date-range.4010f801.js";const W={class:"padding__container"},X={key:1},Y=V({__name:"detail",setup(Z){const{push:h}=w();I("purchPayReliveDetail"),U();const c=v(!0),B=v(null),{id:k,isDetail:o,title:E,collapses:p}=G({baseName:"\u91C7\u8D2D\u4ED8\u6B3E\u89E3\u9664",collapseLen:5}),{run:R,data:D}=r({initalData:{},success:({orderCode:u})=>b(O({dzNo:u}))}),{run:b,data:m}=r({initalData:{}}),{run:N}=r({success:()=>h("/supply/supplyPurchPayRelive")});r({success:()=>{C(),c.value=!1,z(()=>c.value=!0)}});const C=()=>R(K({returnCode:k.value})),F=(u,n)=>N(n.value?Q(u):S(u));return o.value&&C(),(u,n)=>{const d=i("ElCollapseItem"),g=i("ElCollapse"),P=i("ElTabPane"),x=i("ElTabs");return t(),f("div",W,[a(x,null,{default:s(()=>[a(P,{label:e(E)},{default:s(()=>[a(g,{modelValue:e(p),"onUpdate:modelValue":n[0]||(n[0]=A=>j(p)?p.value=A:null)},{default:s(()=>[a(d,{name:"1",title:e(E)},{default:s(()=>[l(" \u89E3\u9664\u4ED8\u6B3E\u8BE6\u60C5 "),e(o)?(t(),_(e(y),{key:0,class:"mb-2",columns:e(J),data:e(D)},null,8,["columns","data"])):(t(),f(q,{key:1},[l(" \u521B\u5EFA\uFF1A\u9009\u62E9\u4ED8\u6B3E\u89E3\u9664 "),a(M,{onCreate:F})],2112))]),_:1},8,["title"]),e(o)?(t(),_(d,{key:0,name:"4",title:"\u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5"},{default:s(()=>[l(" \u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5 "),a(e(y),{columns:!e(m).cgdlist||e(m).cgdlist.length===0?e($):e(H),data:e(m)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(o)?(t(),f("div",X,[a(d,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:s(()=>[c.value?(t(),_(e(L),{key:0,ref_key:"formRef",ref:B,readonly:"",id:e(D).payNo},null,8,["id"])):l("v-if",!0)]),_:1})])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var de=T(Y,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/purchPayRelive/detail.vue"]]);export{de as default};