mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-03 10:56:00 +00:00
feat 分账接口联调
This commit is contained in:
@@ -52,6 +52,16 @@ export function detail(id) {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 分账完结
|
||||
*/
|
||||
export function finish(id) {
|
||||
return defHttp.post<Result<AllocationOrder>>({
|
||||
url: '/order/allocation/finish',
|
||||
params: { id },
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分账结果
|
||||
*/
|
||||
|
@@ -32,13 +32,28 @@
|
||||
</vxe-column>
|
||||
<vxe-column field="errorMsg" title="错误原因" />
|
||||
<vxe-column field="finishTime" title="完成时间" />
|
||||
<vxe-column fixed="right" width="170" :showOverflow="false" title="操作">
|
||||
<vxe-column fixed="right" width="200" :showOverflow="false" title="操作">
|
||||
<template #default="{ row }">
|
||||
<a-link @click="show(row)">查看</a-link>
|
||||
<a-divider type="vertical" />
|
||||
<a-link @click="syncInfo(row)">同步</a-link>
|
||||
<a-divider type="vertical" />
|
||||
<a-link @click="showDetail(row)">明细列表</a-link>
|
||||
<a-divider type="vertical" />
|
||||
<a-dropdown>
|
||||
<a>
|
||||
更多
|
||||
<icon icon="ant-design:down-outlined" :size="12" />
|
||||
</a>
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item>
|
||||
<a-link @click="syncInfo(row)">同步</a-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-link @click="finishInfo(row)">完结</a-link>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
@@ -59,7 +74,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted } from 'vue'
|
||||
import { $ref } from 'vue/macros'
|
||||
import { page, findChannels, sync } from './AllocationOrder.api'
|
||||
import { page, findChannels, sync, finish } from "./AllocationOrder.api";
|
||||
import useTablePage from '/@/hooks/bootx/useTablePage'
|
||||
import { VxeTable, VxeTableInstance, VxeToolbarInstance } from 'vxe-table'
|
||||
import { useMessage } from '/@/hooks/web/useMessage'
|
||||
@@ -71,6 +86,7 @@
|
||||
import { FormEditType } from '/@/enums/formTypeEnum'
|
||||
import AllocationOrderDetailList from './AllocationOrderDetailList.vue'
|
||||
import AllocationOrderInfo from './AllocationOrderInfo.vue'
|
||||
import { PayStatus } from "/@/enums/payment/PayStatus";
|
||||
|
||||
// 使用hooks
|
||||
const { handleTableChange, pageQueryResHandel, resetQueryParams, pagination, sortChange, sortParam, pages, model, loading } =
|
||||
@@ -147,6 +163,23 @@
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 完结分账
|
||||
*/
|
||||
function finishInfo(record) {
|
||||
createConfirm({
|
||||
iconType: 'info',
|
||||
title: '完结分账',
|
||||
content: '确定完结分账吗?',
|
||||
onOk: () => {
|
||||
finish(record.id).then(() => {
|
||||
createMessage.success('完结请求发送成功')
|
||||
queryPage()
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*/
|
||||
|
@@ -34,6 +34,17 @@
|
||||
<vxe-column field="asyncChannel" title="异步支付方式" width="160">
|
||||
<template #default="{ row }">{{ dictConvert('PayChannel', row.asyncChannel) || '无' }}</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="allocation" title="分账" width="160">
|
||||
<template #default="{ row }">
|
||||
<a-tag v-if="row.allocation" color="green">支持</a-tag>
|
||||
<a-tag v-else color="red">不支持</a-tag>
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="allocation" title="分账状态" width="160">
|
||||
<template #default="{ row }">
|
||||
{{ dictConvert('AllocationStatus', row.allocationStatus) }}
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="expiredTime" title="过期时间" sortable width="220" />
|
||||
<vxe-column fixed="right" width="200" :showOverflow="false" title="操作">
|
||||
<template #default="{ row }">
|
||||
@@ -84,7 +95,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, onMounted } from 'vue'
|
||||
import { $ref } from 'vue/macros'
|
||||
import { allocationById, close, page, syncById } from "./PayOrder.api";
|
||||
import { allocationById, close, page, syncById } from './PayOrder.api'
|
||||
import useTablePage from '/@/hooks/bootx/useTablePage'
|
||||
import PayOrderInfo from './PayOrderInfo.vue'
|
||||
import RefundModel from './RefundModel.vue'
|
||||
|
Reference in New Issue
Block a user