@@ -59,8 +62,8 @@
{{ displayPrice(row.balance) }}
-
-
+
+
删除
diff --git a/src/views/wallet/wallet-tk/index.vue b/src/views/wallet/wallet-tk/index.vue
index 2716e1b..36a4985 100644
--- a/src/views/wallet/wallet-tk/index.vue
+++ b/src/views/wallet/wallet-tk/index.vue
@@ -8,15 +8,18 @@
-
-
-
+
+
+
- {{ $t('common.queryBtn')
- }}
- {{ $t('common.resetBtn') }}
+
+ {{ $t('common.queryBtn') }}
+
+
+ {{ $t('common.resetBtn') }}
+
@@ -39,12 +42,31 @@
+
+
+
+
{{ row.walletTypeName }}
+
+
+
+
+
+
+
+
+ {{ displayPrice(row.price) }}
+
+
+
-
- 编辑
- 删除
+
+
+ 详情
+
+ 编辑
+ 删除
@@ -62,11 +84,13 @@ import { BasicTableProps, useTable } from "/@/hooks/table";
import { pageTk } from "/@/api/wallet/wallet-transaction";
import { useMessage, useMessageBox } from "/@/hooks/message";
import { useDict } from '/@/hooks/dict';
+import * as hardAfterSaleApi from '/@/api/hard/hard-after-sale'
+import { displayPrice } from "/@/utils/formatMoney"
// 引入组件
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
// 定义查询字典
-
+const { wallet_type } = useDict('wallet_type');
// 定义变量内容
const formDialogRef = ref()
// 搜索变量
@@ -76,6 +100,8 @@ const showSearch = ref(true)
const selectObjs = ref([]) as any
const multiple = ref(true)
+const { push } = useRouter()
+
const state: BasicTableProps = reactive({
queryForm: {},
pageList: pageTk
@@ -100,6 +126,14 @@ const resetQuery = () => {
getDataList()
}
+const doRefund = async (row: any) => {
+ const { data } = await hardAfterSaleApi.getObj(row.bizId)
+ if (!data) {
+ useMessage().error("查看错误")
+ }
+ push({ path: '/hard/hard-after-sale/order-refund', query: { id: data.orderId, type: "view" } })
+}
+
// 导出excel
const exportExcel = () => {
downBlobFile('/wallet/walletRecharge/export', Object.assign(state.queryForm, { ids: selectObjs }), 'walletRecharge.xlsx')
diff --git a/src/views/wallet/wallet-xf/index.vue b/src/views/wallet/wallet-xf/index.vue
index ac12074..edca1db 100644
--- a/src/views/wallet/wallet-xf/index.vue
+++ b/src/views/wallet/wallet-xf/index.vue
@@ -8,15 +8,18 @@
-
-
-
+
+
+
- {{ $t('common.queryBtn')
- }}
- {{ $t('common.resetBtn') }}
+
+ {{ $t('common.queryBtn') }}
+
+
+ {{ $t('common.resetBtn') }}
+
@@ -39,12 +42,31 @@
+
+
+
+
{{ row.walletTypeName }}
+
+
+
+
+
+
+
+
+ {{ displayPrice(row.price) }}
+
+
+
-
- 编辑
- 删除
+
+
+ 详情
+
+ 编辑
+ 删除
@@ -62,11 +84,14 @@ import { BasicTableProps, useTable } from "/@/hooks/table";
import { pageXf } from "/@/api/wallet/wallet-transaction";
import { useMessage, useMessageBox } from "/@/hooks/message";
import { useDict } from '/@/hooks/dict';
+import { displayPrice } from "/@/utils/formatMoney"
+
+const { push } = useRouter()
// 引入组件
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
// 定义查询字典
-
+const { wallet_type } = useDict('wallet_type');
// 定义变量内容
const formDialogRef = ref()
// 搜索变量
@@ -105,6 +130,10 @@ const exportExcel = () => {
downBlobFile('/wallet/walletRecharge/export', Object.assign(state.queryForm, { ids: selectObjs }), 'walletRecharge.xlsx')
}
+const doRefund = (row: any) => {
+ push({ path: '/hard/hard-after-sale/order-refund', query: { id: row.bizId, type: "view" } })
+}
+
// 多选事件
const selectionChangHandle = (objs: { id: string }[]) => {
selectObjs.value = objs.map(({ id }) => id);