|
@@ -1,11 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="ma-content-block">
|
|
<div class="ma-content-block">
|
|
|
- <sa-table
|
|
|
|
|
- ref="crudRef"
|
|
|
|
|
- :options="options"
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- :searchForm="searchForm"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
|
|
|
<!-- 搜索区 tableSearch -->
|
|
<!-- 搜索区 tableSearch -->
|
|
|
<template #tableSearch>
|
|
<template #tableSearch>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
@@ -24,7 +19,7 @@
|
|
|
[{{ item.id }}] {{ item.name }}
|
|
[{{ item.id }}] {{ item.name }}
|
|
|
</a-option>
|
|
</a-option>
|
|
|
</a-select> -->
|
|
</a-select> -->
|
|
|
- <a-tree-select
|
|
|
|
|
|
|
+ <!-- <a-tree-select
|
|
|
v-model="searchForm.game_id"
|
|
v-model="searchForm.game_id"
|
|
|
:data="allGameOptions"
|
|
:data="allGameOptions"
|
|
|
placeholder="请选择游戏"
|
|
placeholder="请选择游戏"
|
|
@@ -34,84 +29,48 @@
|
|
|
tree-checked-strategy="child"
|
|
tree-checked-strategy="child"
|
|
|
:tree-checkable="true"
|
|
:tree-checkable="true"
|
|
|
:max-tag-count="1"
|
|
:max-tag-count="1"
|
|
|
- />
|
|
|
|
|
|
|
+ /> -->
|
|
|
|
|
+ <game-select v-model="searchForm.game_id" multiple />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
|
<a-form-item label="日期" field="pay_date">
|
|
<a-form-item label="日期" field="pay_date">
|
|
|
- <a-range-picker
|
|
|
|
|
- v-model="searchForm.pay_date"
|
|
|
|
|
- :show-time="false"
|
|
|
|
|
- mode="date"
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-range-picker v-model="searchForm.pay_date" :show-time="false" mode="date" style="width: 100%" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
|
<a-form-item label="账号" field="user_name">
|
|
<a-form-item label="账号" field="user_name">
|
|
|
- <a-input
|
|
|
|
|
- v-model="searchForm.user_name"
|
|
|
|
|
- placeholder="请输入账号"
|
|
|
|
|
- allow-clear
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-input v-model="searchForm.user_name" placeholder="请输入账号" allow-clear />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
|
<a-form-item label="角色ID" field="role_id">
|
|
<a-form-item label="角色ID" field="role_id">
|
|
|
- <a-input
|
|
|
|
|
- v-model="searchForm.role_id"
|
|
|
|
|
- placeholder="请输入角色ID"
|
|
|
|
|
- allow-clear
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-input v-model="searchForm.role_id" placeholder="请输入角色ID" allow-clear />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
|
<a-form-item label="订单号" field="orderid">
|
|
<a-form-item label="订单号" field="orderid">
|
|
|
- <a-input
|
|
|
|
|
- v-model="searchForm.orderid"
|
|
|
|
|
- placeholder="请输入订单号"
|
|
|
|
|
- allow-clear
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-input v-model="searchForm.orderid" placeholder="请输入订单号" allow-clear />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="8" :xs="24">
|
|
<a-col :sm="8" :xs="24">
|
|
|
<a-form-item label="交易订单号" field="tradeid">
|
|
<a-form-item label="交易订单号" field="tradeid">
|
|
|
- <a-input
|
|
|
|
|
- v-model="searchForm.tradeid"
|
|
|
|
|
- placeholder="请输入交易订单号"
|
|
|
|
|
- allow-clear
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-input v-model="searchForm.tradeid" placeholder="请输入交易订单号" allow-clear />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Table 自定义渲染 -->
|
|
<!-- Table 自定义渲染 -->
|
|
|
- <template #game_id="{ record }">
|
|
|
|
|
- [{{ record.game_id }}] {{ record.game_name }}
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template #game_id="{ record }"> [{{ record.game_id }}] {{ record.game_name }} </template>
|
|
|
<template #sync_status="{ record }">
|
|
<template #sync_status="{ record }">
|
|
|
<!-- 1成功 2失败 3处理中 -->
|
|
<!-- 1成功 2失败 3处理中 -->
|
|
|
- <a-tag
|
|
|
|
|
- :color="
|
|
|
|
|
- record.sync_status === 1
|
|
|
|
|
- ? 'green'
|
|
|
|
|
- : record.sync_status === 2
|
|
|
|
|
- ? 'red'
|
|
|
|
|
- : 'blue'
|
|
|
|
|
- "
|
|
|
|
|
- >
|
|
|
|
|
- {{
|
|
|
|
|
- record.sync_status === 1
|
|
|
|
|
- ? "成功"
|
|
|
|
|
- : record.sync_status === 2
|
|
|
|
|
- ? "失败"
|
|
|
|
|
- : "异常回调"
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ <a-tag :color="record.sync_status === 1 ? 'green' : record.sync_status === 2 ? 'red' : 'blue'">
|
|
|
|
|
+ {{ record.sync_status === 1 ? '成功' : record.sync_status === 2 ? '失败' : '异常回调' }}
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
<template #send_status="{ record }">
|
|
<template #send_status="{ record }">
|
|
|
<a-tag :color="record.send_status === 1 ? 'green' : 'red'">
|
|
<a-tag :color="record.send_status === 1 ? 'green' : 'red'">
|
|
|
- {{ record.send_status === 1 ? "成功" : "失败" }}
|
|
|
|
|
|
|
+ {{ record.send_status === 1 ? '成功' : '失败' }}
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
<template #operationCell="{ record }">
|
|
<template #operationCell="{ record }">
|
|
@@ -130,27 +89,28 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { onMounted, ref, reactive } from "vue";
|
|
|
|
|
-import { Message, Modal } from "@arco-design/web-vue";
|
|
|
|
|
-import EditForm from "./edit.vue";
|
|
|
|
|
-import api from "../../api/customer/sdkOrder";
|
|
|
|
|
-import commonApi from "../../api/common";
|
|
|
|
|
|
|
+import { onMounted, ref, reactive } from 'vue'
|
|
|
|
|
+import { Message, Modal } from '@arco-design/web-vue'
|
|
|
|
|
+import EditForm from './edit.vue'
|
|
|
|
|
+import api from '../../api/customer/sdkOrder'
|
|
|
|
|
+import commonApi from '../../api/common'
|
|
|
|
|
+import GameSelect from '@/components/game-select/index.vue'
|
|
|
|
|
|
|
|
// 引用定义
|
|
// 引用定义
|
|
|
-const crudRef = ref();
|
|
|
|
|
-const editRef = ref();
|
|
|
|
|
-const viewRef = ref();
|
|
|
|
|
-const allGameOptions = ref([]);
|
|
|
|
|
|
|
+const crudRef = ref()
|
|
|
|
|
+const editRef = ref()
|
|
|
|
|
+const viewRef = ref()
|
|
|
|
|
+const allGameOptions = ref([])
|
|
|
|
|
|
|
|
// 搜索表单
|
|
// 搜索表单
|
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
|
- orderid: "",
|
|
|
|
|
- tradeid: "",
|
|
|
|
|
- game_id: "",
|
|
|
|
|
- user_name: "",
|
|
|
|
|
- role_id: "",
|
|
|
|
|
|
|
+ orderid: '',
|
|
|
|
|
+ tradeid: '',
|
|
|
|
|
+ game_id: '',
|
|
|
|
|
+ user_name: '',
|
|
|
|
|
+ role_id: '',
|
|
|
pay_date: [],
|
|
pay_date: [],
|
|
|
-});
|
|
|
|
|
|
|
+})
|
|
|
|
|
|
|
|
// SaTable 基础配置
|
|
// SaTable 基础配置
|
|
|
const options = reactive({
|
|
const options = reactive({
|
|
@@ -158,76 +118,76 @@ const options = reactive({
|
|
|
showSummary: true,
|
|
showSummary: true,
|
|
|
summary: [
|
|
summary: [
|
|
|
{
|
|
{
|
|
|
- text: "总金额",
|
|
|
|
|
- suffixText: "元",
|
|
|
|
|
|
|
+ text: '总金额',
|
|
|
|
|
+ suffixText: '元',
|
|
|
|
|
|
|
|
- action: "totalRow",
|
|
|
|
|
- dataIndex: "money",
|
|
|
|
|
|
|
+ action: 'totalRow',
|
|
|
|
|
+ dataIndex: 'money',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
add: {
|
|
add: {
|
|
|
show: false,
|
|
show: false,
|
|
|
- auth: ["/v1/customer/SdkOrder/save"],
|
|
|
|
|
|
|
+ auth: ['/v1/customer/SdkOrder/save'],
|
|
|
func: async () => {
|
|
func: async () => {
|
|
|
- editRef.value?.open();
|
|
|
|
|
|
|
+ editRef.value?.open()
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
edit: {
|
|
edit: {
|
|
|
show: false,
|
|
show: false,
|
|
|
- auth: ["/v1/customer/SdkOrder/update"],
|
|
|
|
|
|
|
+ auth: ['/v1/customer/SdkOrder/update'],
|
|
|
func: async (record) => {
|
|
func: async (record) => {
|
|
|
- editRef.value?.open("edit");
|
|
|
|
|
- editRef.value?.setFormData(record);
|
|
|
|
|
|
|
+ editRef.value?.open('edit')
|
|
|
|
|
+ editRef.value?.setFormData(record)
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
delete: {
|
|
delete: {
|
|
|
show: false,
|
|
show: false,
|
|
|
- auth: ["/v1/customer/SdkOrder/destroy"],
|
|
|
|
|
|
|
+ auth: ['/v1/customer/SdkOrder/destroy'],
|
|
|
func: async (params) => {
|
|
func: async (params) => {
|
|
|
- const resp = await api.destroy(params);
|
|
|
|
|
|
|
+ const resp = await api.destroy(params)
|
|
|
if (resp.code === 200) {
|
|
if (resp.code === 200) {
|
|
|
- Message.success(`删除成功!`);
|
|
|
|
|
- crudRef.value?.refresh();
|
|
|
|
|
|
|
+ Message.success(`删除成功!`)
|
|
|
|
|
+ crudRef.value?.refresh()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
-});
|
|
|
|
|
|
|
+})
|
|
|
|
|
|
|
|
// SaTable 列配置
|
|
// SaTable 列配置
|
|
|
const columns = reactive([
|
|
const columns = reactive([
|
|
|
- { title: "充值账号", dataIndex: "user_name", width: 180 },
|
|
|
|
|
- { title: "充值IP", dataIndex: "user_ip", width: 180 },
|
|
|
|
|
- { title: "订单号", dataIndex: "orderid", width: 180 },
|
|
|
|
|
- { title: "交易订单号", dataIndex: "tradeid", width: 180 },
|
|
|
|
|
- { title: "研发订单号", dataIndex: "cp_orderid", width: 180 },
|
|
|
|
|
- { title: "支付时间", dataIndex: "pay_date", width: 180 },
|
|
|
|
|
|
|
+ { title: '充值账号', dataIndex: 'user_name', width: 180 },
|
|
|
|
|
+ { title: '充值IP', dataIndex: 'user_ip', width: 180 },
|
|
|
|
|
+ { title: '订单号', dataIndex: 'orderid', width: 180 },
|
|
|
|
|
+ { title: '交易订单号', dataIndex: 'tradeid', width: 180 },
|
|
|
|
|
+ { title: '研发订单号', dataIndex: 'cp_orderid', width: 180 },
|
|
|
|
|
+ { title: '支付时间', dataIndex: 'pay_date', width: 180 },
|
|
|
{
|
|
{
|
|
|
- title: "金额",
|
|
|
|
|
- dataIndex: "money",
|
|
|
|
|
|
|
+ title: '金额',
|
|
|
|
|
+ dataIndex: 'money',
|
|
|
width: 180,
|
|
width: 180,
|
|
|
},
|
|
},
|
|
|
- { title: "充值游戏", dataIndex: "game_id", width: 180 },
|
|
|
|
|
|
|
+ { title: '充值游戏', dataIndex: 'game_id', width: 180 },
|
|
|
|
|
|
|
|
- { title: "充值区服", dataIndex: "server_name", width: 180 },
|
|
|
|
|
- { title: "角色ID", dataIndex: "role_id", width: 180 },
|
|
|
|
|
- { title: "角色名", dataIndex: "role_name", width: 180 },
|
|
|
|
|
|
|
+ { title: '充值区服', dataIndex: 'server_name', width: 180 },
|
|
|
|
|
+ { title: '角色ID', dataIndex: 'role_id', width: 180 },
|
|
|
|
|
+ { title: '角色名', dataIndex: 'role_name', width: 180 },
|
|
|
|
|
|
|
|
- { title: "支付状态", dataIndex: "sync_status", width: 180 },
|
|
|
|
|
- { title: "发货状态", dataIndex: "send_status", width: 180 },
|
|
|
|
|
|
|
+ { title: '支付状态', dataIndex: 'sync_status', width: 180 },
|
|
|
|
|
+ { title: '发货状态', dataIndex: 'send_status', width: 180 },
|
|
|
|
|
|
|
|
- { title: "充值方式", dataIndex: "pay_channel_name", width: 180 },
|
|
|
|
|
|
|
+ { title: '充值方式', dataIndex: 'pay_channel_name', width: 180 },
|
|
|
|
|
|
|
|
- { title: "支付返回值", dataIndex: "sync_result", width: 180 },
|
|
|
|
|
- { title: "回调信息", dataIndex: "sync_data", width: 180 },
|
|
|
|
|
|
|
+ { title: '支付返回值', dataIndex: 'sync_result', width: 180 },
|
|
|
|
|
+ { title: '回调信息', dataIndex: 'sync_data', width: 180 },
|
|
|
|
|
|
|
|
- { title: "SDK版本", dataIndex: "sdk_version", width: 180 },
|
|
|
|
|
-]);
|
|
|
|
|
|
|
+ { title: 'SDK版本', dataIndex: 'sdk_version', width: 180 },
|
|
|
|
|
+])
|
|
|
|
|
|
|
|
// 页面数据初始化
|
|
// 页面数据初始化
|
|
|
const initPage = async () => {
|
|
const initPage = async () => {
|
|
|
- await getGameListTree();
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ await getGameListTree()
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// 获取子游戏options
|
|
// 获取子游戏options
|
|
|
// const getGameOptions = async () => {
|
|
// const getGameOptions = async () => {
|
|
@@ -236,36 +196,36 @@ const initPage = async () => {
|
|
|
// };
|
|
// };
|
|
|
|
|
|
|
|
const getGameListTree = async () => {
|
|
const getGameListTree = async () => {
|
|
|
- const res = await commonApi.getGameListTreeNoAuthApi();
|
|
|
|
|
- allGameOptions.value = res.data;
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ const res = await commonApi.getGameListTreeNoAuthApi()
|
|
|
|
|
+ allGameOptions.value = res.data
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// 补发
|
|
// 补发
|
|
|
const handleSend = async (record) => {
|
|
const handleSend = async (record) => {
|
|
|
- console.log(record);
|
|
|
|
|
|
|
+ console.log(record)
|
|
|
Modal.info({
|
|
Modal.info({
|
|
|
- title: "补发",
|
|
|
|
|
- content: "确定要补发吗?",
|
|
|
|
|
- okText: "确定",
|
|
|
|
|
- cancelText: "取消",
|
|
|
|
|
|
|
+ title: '补发',
|
|
|
|
|
+ content: '确定要补发吗?',
|
|
|
|
|
+ okText: '确定',
|
|
|
|
|
+ cancelText: '取消',
|
|
|
onOk: async () => {
|
|
onOk: async () => {
|
|
|
- const resp = await api.send(record.orderid);
|
|
|
|
|
|
|
+ const resp = await api.send(record.orderid)
|
|
|
if (resp.code === 200) {
|
|
if (resp.code === 200) {
|
|
|
- Message.success(`操作成功,请稍后刷新`);
|
|
|
|
|
- crudRef.value?.refresh();
|
|
|
|
|
|
|
+ Message.success(`操作成功,请稍后刷新`)
|
|
|
|
|
+ crudRef.value?.refresh()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- });
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// SaTable 数据请求
|
|
// SaTable 数据请求
|
|
|
const refresh = async () => {
|
|
const refresh = async () => {
|
|
|
- crudRef.value?.refresh();
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ crudRef.value?.refresh()
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// 页面加载完成执行
|
|
// 页面加载完成执行
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
- initPage();
|
|
|
|
|
|
|
+ initPage()
|
|
|
// refresh();
|
|
// refresh();
|
|
|
-});
|
|
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|