sf_web_dist/js/viewdetail.1756209496808BX-hUYB9.js
2025-08-26 20:00:06 +08:00

2 lines
2.0 KiB
JavaScript

import{b2 as e,ag as l,D as a,r as o,m as r,e as t,w as s,l as c,c as u,a7 as n,a8 as i,g as w,t as d,$ as v,aX as b}from"./index.1756209496808Btmi-4DJ.js";import{s as m}from"./staticData.17562094968088wZxkmL4.js";const p={class:"list"},R={class:"item-box"},_=e({__name:"viewdetail",props:{showDetailDialog:{type:Boolean,default:!1},currentRow:{type:Object,default:{}}},emits:["update:showDetailDialog"],setup(e,{emit:_}){const f=e;let h=l([]);a(()=>f.showDetailDialog,e=>{e&&(console.log("showDetailDialog",f.currentRow),h=[],h.push({label:"商户编号",value:f.currentRow.shop_id},{label:"商户名称",value:f.currentRow.shop_name,color:"#409EFF"},{label:"系统订单号",value:f.currentRow.order_no,color:"#67C23A"},{label:"下游订单号",value:f.currentRow.shop_order_no,color:"#67C23A"},{label:"交易金额",value:f.currentRow.money,color:"#E6A23C"},{label:"支付通道",value:f.currentRow.pay_name,color:"#409EFF"},{label:"手续费",value:f.currentRow.fee,color:"#F56C6C"},{label:"实际金额",value:f.currentRow.pay_money,color:"#409EFF"},{label:"入金渠道",value:f.currentRow.api_name,color:"#F56C6C"},{label:"成本费率",value:f.currentRow.three_fee,color:"#409EFF"},{label:"提交时间",value:f.currentRow.create_time},{label:"成功时间",value:f.currentRow.succ_time,color:"#67C23A"},{label:"状态",value:m.orderStatus.find(e=>e.value===f.currentRow.status).label,color:g(f.currentRow.status)}))});const D=o(),F=_,C=()=>{F("update:showDetailDialog",!1)},g=e=>{switch(e){case 0:case 1:return"#F56C6C";case 2:return"#409EFF";case 3:return"#67C23A";default:return"#E6A23C"}};return(l,a)=>{const o=b;return t(),r(o,{"model-value":e.showDetailDialog,title:"订单详情",width:"600px","before-close":C,ref_key:"channelRef",ref:D},{default:s(()=>[c("div",p,[c("ul",null,[(t(!0),u(n,null,i(w(h),e=>(t(),u("li",{class:"item",key:e.label},[c("div",R,d(e.label),1),c("div",{style:v({color:e.color?e.color:"#666"}),class:"item-box"},d(e.value),5)]))),128))])])]),_:1},8,["model-value"])}}},[["__scopeId","data-v-6a9c3fc5"]]);export{_ as default};