|
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
<el-table-column label="支付时间" align="center" prop="paymentTime"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button link type="primary" icon="Refresh">手动刷新</el-button>
|
|
|
|
|
<el-button link type="primary" icon="Refresh" @click="refreshOrderStatus(scope.row.orderNo)">手动刷新</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -69,7 +69,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup name="money">
|
|
|
|
|
import { payment } from "@/api/order/payment";
|
|
|
|
|
import { payment, refreshStatus } from "@/api/order/payment";
|
|
|
|
|
import { listOrder } from "@/api/order/order";
|
|
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
|
|
|
|
|
|
|
@ -105,6 +105,7 @@ function getUser() {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 发起支付
|
|
|
|
|
function handlePayment() {
|
|
|
|
|
loading.value = true
|
|
|
|
|
payment(form.value).then(response => {
|
|
|
|
|
@ -114,6 +115,15 @@ function handlePayment() {
|
|
|
|
|
open.value = true
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 刷新订单状态
|
|
|
|
|
function refreshOrderStatus(orderNo) {
|
|
|
|
|
refreshStatus(orderNo).then(response => {
|
|
|
|
|
proxy.$modal.msgSuccess(response.msg);
|
|
|
|
|
getList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function reset() {
|
|
|
|
|
payUrl.value = ""
|
|
|
|
|
aoid.value = ""
|
|
|
|
|
|