detail.750485.js 2.9 KB

1
  1. import{_ as O,d as w,p as L,aM as j,ai as z,x as y,bc as p,z as q,r as c,o as s,c as D,l as t,D as u,m as e,ar as G,a as o,G as m,aN as B,F as H,dI as M}from"./index.js";import{u as W}from"./useDetail.d77f98f9.js";import{R as Y}from"./index.8ad79f80.js";import $ from"./choose-form.70892e.js";import{R as J}from"./receipt.2e6f7d0d.js";import{d as K}from"./index.5f728d54.js";import{p as Q,a as X}from"./purchPay.db2f1e31.js";import{p as Z}from"./purchPayRelive.e0536c50.js";import"./porder.9a85976d.js";import{h as ee,d as ae,a as te,e as se,b as ue}from"./index.32083902.js";import"./orderRecord.4d98a397.js";import"./choose-modal.6319c4.js";import"./date-range.4010f801.js";import"./index.e075def9.js";/* empty css */const oe={class:"padding__container"},le={key:1},re=w({__name:"detail",setup(ne){const{push:R}=L(),k="purchPayReliveDetail",{hasPermissionWithCode:A}=j(k),{isSuperUser:b}=z(),d=y(!0),N=y(null),{id:f,isDetail:n,title:C,collapses:_}=W({baseName:"\u91C7\u8D2D\u4ED8\u6B3E\u89E3\u9664",collapseLen:5}),{run:P,data:i}=p({initalData:{},success:({orderCode:a})=>g(K({dzNo:a}))}),{run:g,data:v}=p({initalData:{}}),{run:F}=p({success:()=>R("/purchase/purchPayRelive")}),{run:x}=p({success:()=>{h(),d.value=!1,q(()=>d.value=!0)}}),h=()=>P(ee({returnCode:f.value})),T=(a,l)=>F(l.value?ae(a):te(a)),I=a=>{const{payNo:l}=i.value,r=l.slice(3,9),E=Number(r)<M;x(E?se({returnCode:f.value,...a}):ue({returnCode:f.value,...a}))};return n.value&&h(),(a,l)=>{const r=c("ElCollapseItem"),E=c("ElCollapse"),S=c("ElTabPane"),U=c("ElTabs");return s(),D("div",oe,[t(U,null,{default:u(()=>[t(S,{label:e(C)},{default:u(()=>[t(E,{modelValue:e(_),"onUpdate:modelValue":l[0]||(l[0]=V=>G(_)?_.value=V:null)},{default:u(()=>[t(r,{name:"1",title:e(C)},{default:u(()=>[o(" \u89E3\u9664\u4ED8\u6B3E\u8BE6\u60C5 "),e(n)?(s(),m(e(B),{key:0,class:"mb-2",columns:e(Z),data:e(i)},null,8,["columns","data"])):(s(),D(H,{key:1},[o(" \u521B\u5EFA\uFF1A\u9009\u62E9\u4ED8\u6B3E\u89E3\u9664 "),t($,{onCreate:T})],2112))]),_:1},8,["title"]),e(n)?(s(),m(r,{key:0,name:"4",title:"\u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5"},{default:u(()=>[o(" \u91C7\u8D2D\u4ED8\u6B3E\u8BE6\u60C5 "),t(e(B),{columns:!e(v).cgdlist||e(v).cgdlist.length===0?e(Q):e(X),data:e(v)},null,8,["columns","data"])]),_:1})):o("v-if",!0),e(n)?(s(),D("div",le,[t(r,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:u(()=>[d.value?(s(),m(e(Y),{key:0,ref_key:"formRef",ref:N,readonly:"",id:e(i).payNo},null,8,["id"])):o("v-if",!0)]),_:1}),String(e(i).status)==="1"&&!e(b)&&e(A)("020")?(s(),m(r,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:u(()=>[t(e(J),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:I})]),_:1})):o("v-if",!0)])):o("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ke=O(re,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/purchPayRelive/detail.vue"]]);export{ke as default};