From 23806befcf6bb05afe5a4de5f708ceb18574e6ba Mon Sep 17 00:00:00 2001
From: dzc <2388224167@qq.com>
Date: Thu, 16 Apr 2026 11:29:09 +0800
Subject: [PATCH] =?UTF-8?q?feat:bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 +-
src/api/thirdparty/third-pay-order.ts | 9 ++
.../thirdparty/third-pay-order/index.vue | 79 +++++++++++++-
.../wallet/components/transaction-list.vue | 27 +++--
src/views/wallet/wallet-cz/index.vue | 9 +-
src/views/wallet/wallet-inactive/index.vue | 56 +++-------
src/views/wallet/wallet-jz/index.vue | 7 +-
.../wallet/wallet-manage/change-balance.vue | 8 +-
src/views/wallet/wallet-manage/index.vue | 100 +++++-------------
src/views/wallet/wallet-qb/index.vue | 7 +-
.../wallet/wallet-recharge-water/index.vue | 22 ++--
.../wallet/wallet-rule-transaction/index.vue | 3 +-
src/views/wallet/wallet-th/index.vue | 7 +-
src/views/wallet/wallet-tk/index.vue | 9 +-
src/views/wallet/wallet-xf/index.vue | 9 +-
15 files changed, 197 insertions(+), 159 deletions(-)
diff --git a/.env.development b/.env.development
index 671ee0c..726b6ea 100644
--- a/.env.development
+++ b/.env.development
@@ -12,14 +12,14 @@ ENV = 'development'
# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 测试线上-过期
# VITE_ADMIN_PROXY_PATH = http://localhost:9999/
VITE_ADMIN_PROXY_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
-# VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境线上
+# VITE_ADMIN_PROXY_PATH = https://stgl.pj.gov.cn/api # 正式环境线上
# 图片访问基础地址
# VITE_IMAGE_BASE_PATH = http://123.157.250.162:8089/api/ # 测试线上
# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api/ # 测试线上-过期
# VITE_IMAGE_BASE_PATH = http://localhost:9999
VITE_IMAGE_BASE_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地
-# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境线上
+# VITE_IMAGE_BASE_PATH = https://stgl.pj.gov.cn/api/ # 正式环境线上
# 代码生成服务地址
VITE_GEN_PROXY_PATH = http://192.168.110.156:5003
diff --git a/src/api/thirdparty/third-pay-order.ts b/src/api/thirdparty/third-pay-order.ts
index a0f007e..ad4dcbe 100644
--- a/src/api/thirdparty/third-pay-order.ts
+++ b/src/api/thirdparty/third-pay-order.ts
@@ -8,6 +8,15 @@ export function fetchList(query?: Object) {
})
}
+// 小程序退款
+export function miniRefund(data?: any) {
+ return request({
+ url: "/third/third-mini-app-pay/refund",
+ method: "post",
+ data: data,
+ })
+}
+
export function addObj(obj?: Object) {
return request({
url: "/third/third-pay-order",
diff --git a/src/views/thirdparty/third-pay-order/index.vue b/src/views/thirdparty/third-pay-order/index.vue
index ba1533a..fa1c1a3 100644
--- a/src/views/thirdparty/third-pay-order/index.vue
+++ b/src/views/thirdparty/third-pay-order/index.vue
@@ -2,6 +2,9 @@
+
+
+
@@ -65,16 +68,57 @@
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+ 退款
+
+
@@ -108,6 +152,7 @@ const selectObjs = ref([]) as any
const multiple = ref(true)
const state: BasicTableProps = reactive({
+ createdIsNeed: false,
queryForm: {},
pageList: thirdPayOrderApi.fetchList
})
@@ -122,6 +167,14 @@ const {
tableStyle
} = useTable(state)
+onMounted(() => {
+ const { query } = useRoute()
+ if (query.payNo) {
+ state.queryForm.payNo = query.payNo
+ }
+ getDataList()
+})
+
// 清空搜索条件
const resetQuery = () => {
// 清空搜索条件
@@ -131,6 +184,24 @@ const resetQuery = () => {
getDataList()
}
+const refund = async (row: any) => {
+ try {
+ await useMessageBox().confirm(`此操作将退款${row.price}元`)
+ } catch {
+ return
+ }
+ try {
+ await thirdPayOrderApi.miniRefund({
+ payNo: row.payNo,
+ refundPrice: ''
+ })
+ getDataList()
+ useMessage().success("退款成功")
+ } catch (err: any) {
+ useMessage().error(err.msg)
+ }
+}
+
// 导出excel
const exportExcel = () => {
downBlobFile('/third/third-pay-order/export', Object.assign(state.queryForm, { ids: selectObjs }), 'thirdPayOrder.xlsx')
diff --git a/src/views/wallet/components/transaction-list.vue b/src/views/wallet/components/transaction-list.vue
index bee9e92..3e25643 100644
--- a/src/views/wallet/components/transaction-list.vue
+++ b/src/views/wallet/components/transaction-list.vue
@@ -1,17 +1,26 @@
-
+
-
-
+
{{ displayPrice(row.price) }}
{{ displayPrice(row.balance) }}
-
+
+
+
+
+
+
+ 退款
+
+
+
+
({
queryForm: {},
pageList: walletTransactionApi.publicPageJoin,
@@ -40,10 +50,13 @@ const state: BasicTableProps = reactive({
const { getDataList, total, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } =
useTable(state)
+const refund = async (row: any) => {
+ push("/thirdparty/third-pay-order/index?payNo=" + row.bizId)
+}
+
// 打开弹窗
const openDialog = (id: string) => {
visible.value = true
- form.id = ""
if (id) {
state.queryForm.walletId = id
state.dataList = []
@@ -55,4 +68,4 @@ const openDialog = (id: string) => {
defineExpose({
openDialog,
})
-
+
\ No newline at end of file
diff --git a/src/views/wallet/wallet-cz/index.vue b/src/views/wallet/wallet-cz/index.vue
index f01be91..333da85 100644
--- a/src/views/wallet/wallet-cz/index.vue
+++ b/src/views/wallet/wallet-cz/index.vue
@@ -16,6 +16,10 @@
+
+
+
@@ -44,9 +48,8 @@
-
-
-
+
+
diff --git a/src/views/wallet/wallet-inactive/index.vue b/src/views/wallet/wallet-inactive/index.vue
index 3b1fb8c..654af84 100644
--- a/src/views/wallet/wallet-inactive/index.vue
+++ b/src/views/wallet/wallet-inactive/index.vue
@@ -1,16 +1,9 @@
-
+
@@ -18,24 +11,20 @@
-
+
- {{ $t("common.queryBtn") }}
+ {{ $t("common.queryBtn")
+ }}
{{ $t("common.resetBtn") }}
-
+
删除
-
-
-
+
+
@@ -80,7 +57,8 @@
-
+
diff --git a/src/views/wallet/wallet-jz/index.vue b/src/views/wallet/wallet-jz/index.vue
index dd3a853..4130d6f 100644
--- a/src/views/wallet/wallet-jz/index.vue
+++ b/src/views/wallet/wallet-jz/index.vue
@@ -13,6 +13,10 @@
+
+
+
@@ -39,9 +43,8 @@
-
-
+
diff --git a/src/views/wallet/wallet-manage/change-balance.vue b/src/views/wallet/wallet-manage/change-balance.vue
index b46dad2..6b3d1f0 100644
--- a/src/views/wallet/wallet-manage/change-balance.vue
+++ b/src/views/wallet/wallet-manage/change-balance.vue
@@ -1,6 +1,7 @@
-
+
@@ -27,7 +28,8 @@
-
+
@@ -98,7 +100,7 @@ const openDialog = (userId: string, id: string) => {
// 提交
const onSubmit = async () => {
- const valid = await dataFormRef.value.validate().catch(() => {})
+ const valid = await dataFormRef.value.validate().catch(() => { })
if (!valid) return false
if (form.changeBalance <= 0) {
useMessage().error("变动余额不能为零")
diff --git a/src/views/wallet/wallet-manage/index.vue b/src/views/wallet/wallet-manage/index.vue
index b2d425b..a0e9799 100644
--- a/src/views/wallet/wallet-manage/index.vue
+++ b/src/views/wallet/wallet-manage/index.vue
@@ -1,16 +1,9 @@
-
+
@@ -23,45 +16,26 @@
- {{ $t("common.queryBtn") }}
+ {{ $t("common.queryBtn")
+ }}
{{ $t("common.resetBtn") }}
-
+
删除
-
+
-
-
-
+
+
@@ -103,49 +77,29 @@
-
+
- 详情
- 详情
+ 充值/扣款
- 充值/扣款
+
+ @click="doTransferAccounts(row)">
转账
-
+
diff --git a/src/views/wallet/wallet-qb/index.vue b/src/views/wallet/wallet-qb/index.vue
index 259545d..cbbfcd6 100644
--- a/src/views/wallet/wallet-qb/index.vue
+++ b/src/views/wallet/wallet-qb/index.vue
@@ -38,7 +38,6 @@
-
@@ -46,10 +45,8 @@
-
-
-
+
+
diff --git a/src/views/wallet/wallet-recharge-water/index.vue b/src/views/wallet/wallet-recharge-water/index.vue
index 19c9ab0..dbaa285 100644
--- a/src/views/wallet/wallet-recharge-water/index.vue
+++ b/src/views/wallet/wallet-recharge-water/index.vue
@@ -16,7 +16,7 @@
-
+
@@ -25,8 +25,9 @@
value-format="YYYY-MM-DD HH:mm:ss" type="datetimerange" />
- {{ $t("common.queryBtn")
- }}
+
+ {{ $t("common.queryBtn") }}
+
{{ $t("common.resetBtn") }}
@@ -41,7 +42,6 @@
-
@@ -56,8 +56,8 @@
-
-
+
+
@@ -72,23 +72,23 @@
-
+
-
-
+
+
{{ displayPrice(row.beforePrice) }}
-
+
{{ displayPrice(row.price) }}
-
+
diff --git a/src/views/wallet/wallet-rule-transaction/index.vue b/src/views/wallet/wallet-rule-transaction/index.vue
index d4f092c..e0e1695 100644
--- a/src/views/wallet/wallet-rule-transaction/index.vue
+++ b/src/views/wallet/wallet-rule-transaction/index.vue
@@ -43,8 +43,7 @@
-
-
+
diff --git a/src/views/wallet/wallet-th/index.vue b/src/views/wallet/wallet-th/index.vue
index b462841..b20bb4b 100644
--- a/src/views/wallet/wallet-th/index.vue
+++ b/src/views/wallet/wallet-th/index.vue
@@ -10,6 +10,10 @@
+
+
+
@@ -36,8 +40,7 @@
-
-
+
diff --git a/src/views/wallet/wallet-tk/index.vue b/src/views/wallet/wallet-tk/index.vue
index dd3dd7c..44247b8 100644
--- a/src/views/wallet/wallet-tk/index.vue
+++ b/src/views/wallet/wallet-tk/index.vue
@@ -10,6 +10,10 @@
+
+
+
@@ -36,9 +40,8 @@
-
-
-
+
+
diff --git a/src/views/wallet/wallet-xf/index.vue b/src/views/wallet/wallet-xf/index.vue
index b2430a9..56455ce 100644
--- a/src/views/wallet/wallet-xf/index.vue
+++ b/src/views/wallet/wallet-xf/index.vue
@@ -13,6 +13,10 @@
+
+
+
@@ -39,9 +43,8 @@
-
-
-
+
+