|
@@ -7,32 +7,20 @@
|
|
|
|
|
|
<cl-row>
|
|
|
<el-checkbox v-model="showSummary" label="统计数据" size="small" />
|
|
|
- <el-tag v-if="showSummary" class="ml-2" effect="light"
|
|
|
- >成功总金额: {{ summary.num1 }}</el-tag
|
|
|
- >
|
|
|
- <el-tag v-if="showSummary" class="ml-2" effect="light"
|
|
|
- >成功订单手续费: {{ summary.num2 }}</el-tag
|
|
|
- >
|
|
|
- <el-tag
|
|
|
- v-if="showSummary && checkPerm(service.dj.order.permission.update)"
|
|
|
- class="ml-2"
|
|
|
- effect="light"
|
|
|
- >通道手续费: {{ summary.num5.toFixed(2) }}</el-tag
|
|
|
- >
|
|
|
- <el-tag v-if="showSummary" class="ml-2" effect="light"
|
|
|
- >成功订单数: {{ summary.num3 }}</el-tag
|
|
|
- >
|
|
|
- <el-tag v-if="showSummary" class="ml-2" effect="light"
|
|
|
- >成功率: {{ summary.num4.toFixed(2) }}%</el-tag
|
|
|
- >
|
|
|
+ <el-tag v-if="showSummary" class="ml-2" effect="light">成功总金额: {{ summary.num1 }}</el-tag>
|
|
|
+ <el-tag v-if="showSummary" class="ml-2" effect="light">成功订单手续费: {{ summary.num2 }}</el-tag>
|
|
|
+ <el-tag v-if="showSummary && checkPerm(service.dj.order.permission.update)" class="ml-2"
|
|
|
+ effect="light">通道手续费: {{ summary.num5.toFixed(2) }}</el-tag>
|
|
|
+ <el-tag v-if="showSummary" class="ml-2" effect="light">成功订单数: {{ summary.num3 }}</el-tag>
|
|
|
+ <el-tag v-if="showSummary" class="ml-2" effect="light">成功率: {{ summary.num4.toFixed(2) }}%</el-tag>
|
|
|
</cl-row>
|
|
|
|
|
|
<cl-row>
|
|
|
<!-- 数据表格 -->
|
|
|
<cl-table ref="Table" :contextMenu="[]">
|
|
|
<template #column-detail="{ scope }">
|
|
|
- <div style="padding: 10px">
|
|
|
- <el-descriptions border :column="4">
|
|
|
+ <div style="padding: 10px;">
|
|
|
+ <el-descriptions border :column="4" class="desc">
|
|
|
<el-descriptions-item :span="2" label="付款时间">
|
|
|
{{ scope.row.date }}
|
|
|
</el-descriptions-item>
|
|
@@ -51,6 +39,10 @@
|
|
|
{{ scope.row.returnUrl }}
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item :span="4" label="支付地址">
|
|
|
+ {{ scope.row.payUrl }}
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
<el-descriptions-item :span="4" label="备注/失败描述">
|
|
|
{{ scope.row.remark }}
|
|
|
</el-descriptions-item>
|
|
@@ -128,19 +120,12 @@ const items = ref<ClForm.Item[]>([
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: "AppID",
|
|
|
- prop: "mainId",
|
|
|
+ label: "通道编码",
|
|
|
+ prop: "code",
|
|
|
component: {
|
|
|
name: "el-input"
|
|
|
}
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "通道编码",
|
|
|
- // prop: "code",
|
|
|
- // component: {
|
|
|
- // name: "el-input"
|
|
|
- // }
|
|
|
- // },
|
|
|
{
|
|
|
label: "支付状态",
|
|
|
prop: "status",
|
|
@@ -189,30 +174,6 @@ const items = ref<ClForm.Item[]>([
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- label: "结算状态",
|
|
|
- prop: "settleStatus",
|
|
|
- component: {
|
|
|
- name: "el-select",
|
|
|
- props: {
|
|
|
- clearable: true
|
|
|
- },
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: "未结算",
|
|
|
- value: 0
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已确认",
|
|
|
- value: 1
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已结算",
|
|
|
- value: 2
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
{
|
|
|
label: "日期范围",
|
|
|
prop: "createTime",
|
|
@@ -223,7 +184,7 @@ const items = ref<ClForm.Item[]>([
|
|
|
type: "datetimerange",
|
|
|
unlinkPanels: true,
|
|
|
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
|
- onChange() {}
|
|
|
+ onChange() { }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -315,7 +276,6 @@ const Table = useTable({
|
|
|
{ prop: "outOrderNo", label: "商户订单号" },
|
|
|
{ prop: "traceNo", label: "交易号" },
|
|
|
{ prop: "mchId", label: "商户号" },
|
|
|
- { prop: "mainId", label: "AppId" },
|
|
|
{ prop: "code", label: "通道编码" },
|
|
|
{
|
|
|
prop: "amount",
|
|
@@ -353,15 +313,6 @@ const Table = useTable({
|
|
|
{ label: "通知失败", value: 2, color: "#F56C6C" }
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- prop: "settleStatus",
|
|
|
- label: "结算状态",
|
|
|
- dict: [
|
|
|
- { label: "待结算", value: 0, color: "#909399" },
|
|
|
- { label: "已确认", value: 1, color: "#67C23A" },
|
|
|
- { label: "已结算", value: 2, color: "#4165d7" }
|
|
|
- ]
|
|
|
- },
|
|
|
// { prop: "remark", label: "备注", showOverflowTooltip: true },
|
|
|
{
|
|
|
type: "op",
|
|
@@ -395,52 +346,6 @@ const Table = useTable({
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (+scope.row.settleStatus === 0) {
|
|
|
- if (checkPerm(service.dj.order.permission.settle)) {
|
|
|
- btns.push({
|
|
|
- label: "确认结算",
|
|
|
- type: "primary",
|
|
|
- async onClick({ scope }: any) {
|
|
|
- try {
|
|
|
- const data = await service.dj.order.settle({
|
|
|
- id: scope.row.id
|
|
|
- });
|
|
|
- if (+data.status === 1) {
|
|
|
- ElMessage.success("确认结算成功");
|
|
|
- } else {
|
|
|
- ElMessage.warning("订单未结算,请稍后重试!");
|
|
|
- Crud.value?.refresh();
|
|
|
- }
|
|
|
- } catch (e) {
|
|
|
- ElMessage.warning("订单未结算,请稍后重试");
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- if (+scope.row.settleStatus === 1) {
|
|
|
- if (checkPerm(service.dj.order.permission.settle)) {
|
|
|
- btns.push({
|
|
|
- label: "结算完结",
|
|
|
- type: "primary",
|
|
|
- async onClick({ scope }: any) {
|
|
|
- try {
|
|
|
- const data = await service.dj.order.settle({
|
|
|
- id: scope.row.id
|
|
|
- });
|
|
|
- if (+data.status === 1) {
|
|
|
- ElMessage.success("结算完结成功");
|
|
|
- } else {
|
|
|
- ElMessage.warning("订单未结算完结,请稍后重试!");
|
|
|
- Crud.value?.refresh();
|
|
|
- }
|
|
|
- } catch (e) {
|
|
|
- ElMessage.warning("订单未结算完结,请稍后重试");
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
} else {
|
|
|
if (checkPerm(service.dj.order.permission.query)) {
|
|
|
btns.push({
|
|
@@ -505,4 +410,8 @@ const Crud = useCrud(
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.desc .el-descriptions__label {
|
|
|
+ min-width: 115px;
|
|
|
+}
|
|
|
</style>
|