2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{d as S,O as $,f as z,r as m,h as i,c as A,a as l,u as a,t as o,N as t,y as L,I as u,w as s,e as c,B as r,R as w,i as g,F as M,a8 as x,X as O,V as j,E as q,Y as X,$ as Y,aO as G,a0 as H}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{D as J,B as K,C as Q}from"./sys-8ead7f22.js";const U={class:"main-container"},W={class:"detail-head"},Z=l("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),ee={class:"ml-[1px]"},te=l("span",{class:"adorn"},"|",-1),ae={class:"right"},le={class:"input-width"},se={class:"input-width"},oe={class:"input-width"},ne={class:"input-width"},ie={class:"input-width"},ue={class:"input-width"},ce={class:"input-width"},re={class:"input-width"},_e={class:"input-width"},de={class:"input-width"},pe={class:"input-width cursor-pointer"},Ee=S({__name:"pay_detail",setup(me){const h=$(),k=z(),E=h.meta.title,T=parseInt(h.query.id||0),d=m(!0),e=m(null),v=async()=>{d.value=!0,e.value=null,await J(T).then(({data:_})=>{e.value=_}).catch(()=>{}),d.value=!1};v();const B=()=>{x.confirm(t("passTips"),t("warning"),{confirmButtonText:t("confirm"),cancelButtonText:t("cancel"),type:"warning"}).then(({value:_})=>{K(e.value.out_trade_no).then(()=>{v()}).catch()}).catch(()=>{})},C=()=>{x.prompt(t("refuseReason"),t("warning"),{confirmButtonText:t("confirm"),cancelButtonText:t("cancel"),inputErrorMessage:t("refuseReason"),inputPattern:/\S/,inputType:"textarea"}).then(({value:_})=>{Q({out_trade_no:e.value.out_trade_no,reason:_}).then(()=>{v()}).catch()}).catch(()=>{})},y=m([]),f=m(!1),R=()=>{y.value[0]=w(e.value.voucher),f.value=!0};return(_,p)=>{const n=O,V=j,b=q,N=X,D=Y,I=G,F=H;return i(),A(M,null,[l("div",U,[l("div",W,[l("div",{class:"left",onClick:p[0]||(p[0]=P=>a(k).push({path:"/finance/pay/offlinepay"}))},[Z,l("span",ee,o(a(t)("returnToPreviousPage")),1)]),te,l("span",ae,o(a(E)),1)]),L((i(),u(D,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[d.value?r("",!0):(i(),u(N,{key:0,model:e.value,"label-width":"150px",ref:"formRef",class:"page-form mt-[10px]"},{default:s(()=>[c(n,{label:a(t)("outTradeNo")},{default:s(()=>[l("div",le,o(e.value.out_trade_no),1)]),_:1},8,["label"]),c(n,{label:a(t)("createTime")},{default:s(()=>[l("div",se,o(e.value.create_time),1)]),_:1},8,["label"]),c(n,{label:a(t)("money")},{default:s(()=>[l("div",oe,o(e.value.money),1)]),_:1},8,["label"]),c(n,{label:a(t)("body")},{default:s(()=>[l("div",ne,o(e.value.body),1)]),_:1},8,["label"]),c(n,{label:a(t)("channel")},{default:s(()=>[l("div",ie,o(e.value.channel_name),1)]),_:1},8,["label"]),c(n,{label:a(t)("payStatus")},{default:s(()=>[l("div",ue,o(e.value.status_name),1)]),_:1},8,["label"]),e.value.type_name?(i(),u(n,{key:0,label:a(t)("payType")},{default:s(()=>[l("div",ce,o(e.value.type_name),1)]),_:1},8,["label"])):r("",!0),e.value.pay_time?(i(),u(n,{key:1,label:a(t)("payTime")},{default:s(()=>[l("div",re,o(e.value.pay_time),1)]),_:1},8,["label"])):r("",!0),e.value.close_time?(i(),u(n,{key:2,label:a(t)("failTime")},{default:s(()=>[l("div",_e,o(e.value.close_time),1)]),_:1},8,["label"])):r("",!0),e.value.fail_reason?(i(),u(n,{key:3,label:a(t)("failReason")},{default:s(()=>[l("div",de,o(e.value.fail_reason),1)]),_:1},8,["label"])):r("",!0),e.value.type=="offlinepay"&&e.value.voucher?(i(),u(n,{key:4,label:a(t)("voucher")},{default:s(()=>[l("div",pe,[c(V,{style:{width:"100%"},src:a(w)(e.value.voucher),fit:"cover",onClick:R},null,8,["src"])])]),_:1},8,["label"])):r("",!0),e.value.type=="offlinepay"&&e.value.status==3?(i(),u(n,{key:5,label:a(t)("auditVoucher")},{default:s(()=>[c(b,{type:"primary",onClick:B},{default:s(()=>[g(o(a(t)("pass")),1)]),_:1}),c(b,{type:"primary",onClick:C},{default:s(()=>[g(o(a(t)("refuse")),1)]),_:1})]),_:1},8,["label"])):r("",!0)]),_:1},8,["model"]))]),_:1})),[[F,d.value]])]),f.value?(i(),u(I,{key:0,"url-list":y.value,onClose:p[1]||(p[1]=P=>f.value=!1),"initial-index":0,"zoom-rate":1},null,8,["url-list"])):r("",!0)],64)}}});export{Ee as default};
|