feat: 完善会员交易与任务管理流程
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<n-descriptions v-if="detail.id" bordered :column="2">
|
||||
<n-descriptions-item label="任务">{{ detail.taskTitle }}</n-descriptions-item>
|
||||
<n-descriptions-item label="会员">
|
||||
{{ detail.username }} / {{ detail.mobileMask }}
|
||||
{{ detail.username }} / {{ detail.mobile }}
|
||||
</n-descriptions-item>
|
||||
<n-descriptions-item label="佣金">
|
||||
¥{{ ((detail.commissionAmount || 0) / 100).toFixed(2) }}
|
||||
@@ -110,6 +110,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, h, onMounted, reactive, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import { BasicForm, useForm } from '@/components/Form';
|
||||
import { BasicTable, TableAction } from '@/components/Table';
|
||||
@@ -118,6 +119,7 @@
|
||||
import { columns, loadOptions, schemas } from './model';
|
||||
|
||||
const message = useMessage();
|
||||
const route = useRoute();
|
||||
const dict = useDictStore();
|
||||
const searchRef = ref();
|
||||
const tableRef = ref();
|
||||
@@ -152,7 +154,11 @@
|
||||
schemas,
|
||||
});
|
||||
|
||||
const loadTable = (params) => SubmissionList({ ...searchRef.value?.formModel, ...params });
|
||||
const loadTable = (params) => SubmissionList({
|
||||
...searchRef.value?.formModel,
|
||||
...params,
|
||||
tradeOrderId: Number(route.query.tradeOrderId) || undefined,
|
||||
});
|
||||
|
||||
function reload() {
|
||||
tableRef.value?.reload();
|
||||
|
||||
@@ -33,7 +33,7 @@ const tag = (k, v) =>
|
||||
export const columns = [
|
||||
{ title: '记录ID', key: 'id', width: 90 },
|
||||
{ title: '用户名', key: 'username', width: 130 },
|
||||
{ title: '手机号', key: 'mobileMask', width: 130 },
|
||||
{ title: '手机号', key: 'mobile', width: 130 },
|
||||
{ title: '任务标题', key: 'taskTitle', width: 180 },
|
||||
{ title: '等级', key: 'levelName', width: 110 },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user