@@ -69,14 +86,14 @@ onMounted(() => {
- 立即提现
+ 立即提现
diff --git a/src/pages/merchant/pages/my-wallet/moving-account-details.vue b/src/pages/merchant/pages/my-wallet/moving-account-details.vue
index ad95c85..565eb12 100644
--- a/src/pages/merchant/pages/my-wallet/moving-account-details.vue
+++ b/src/pages/merchant/pages/my-wallet/moving-account-details.vue
@@ -7,113 +7,101 @@ import Api from "../../../../api/index.js";
const columns = [
{
title: '动账日期',
- dataIndex: 'value'
+ dataIndex: 'createtime1'
},
{
title: '动账时间',
- dataIndex: 'value'
+ dataIndex: 'createtime2'
},
{
title: '交易流水号',
- dataIndex: 'value'
+ dataIndex: 'sn'
},
{
title: '动账渠道',
- dataIndex: 'value'
+ dataIndex: 'platform_name'
},
{
title: '状态',
- dataIndex: 'value'
+ dataIndex: 'status',
+ slotName: 'status'
},
{
title: '动账用途',
- dataIndex: 'value'
+ dataIndex: 'purpose_name'
},
{
title: '动账金额(元)',
- dataIndex: 'value'
+ dataIndex: 'money'
},
{
title: '付款人账户',
- dataIndex: 'value'
+ dataIndex: 'account'
},
{
title: '关联任务ID',
- dataIndex: 'value'
+ dataIndex: 'task_id'
},
{
title: '子任务ID',
- dataIndex: 'value'
+ dataIndex: 'task_children_id'
},
{
title: '钱包余额(元) ',
- dataIndex: 'value'
+ dataIndex: 'business_money'
},
{
title: '任务款余额(元)',
- dataIndex: 'value'
+ dataIndex: 'business_coin'
},
{
title: '资产合计(元)',
- dataIndex: 'value'
+ dataIndex: 'sum',
+ slotName: 'sum'
},
];
const FilterConfig = computed(() => [
{
- key: 'wd',
+ key: 'platform',
type: 'select',
label: '动账渠道',
placeholder: '全部',
api: async () => ({
data: [
{
- name: '选项一',
+ name: '全部',
+ id: 0,
+ },
+ {
+ name: '支付宝',
id: 1,
},
{
- name: '选项二',
+ name: '/',
id: 2,
},
- {
- name: '选项三',
- id: 3,
- },
]
})
},
{
- key: 'wd',
+ key: 'purpose',
type: 'select',
label: '动账用途',
placeholder: '全部',
- api: async () => ({
- data: [
- {
- name: '选项一',
- id: 1,
- },
- {
- name: '选项二',
- id: 2,
- },
- {
- name: '选项三',
- id: 3,
- },
- ]
- })
+ api: async () => Api.merchant.getPurpose()
},
{
- key: 'wd',
+ key: 'task_id',
type: 'input',
label: '关联ID',
placeholder: '请输入任务ID',
},
{
- key: 'wd',
+ key: 'rangeTime',
+ start: 'start_time',
+ end: 'end_time',
type: 'datetime',
label: '动账日期',
- placeholder: '全部',
},
]);
const vo = reactive({
@@ -127,7 +115,7 @@ const po = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
- api: Api.system.getData,
+ api: Api.merchant.getBusinessMoneyLog,
callback: (data) => {
Object.assign(vo, data);
console.log(vo);
@@ -162,6 +150,13 @@ const {loading, pagination, initFetchData} = useTableQuery({
:loading="loading"
class="flex-grow"
:columns="columns">
+
+ 成功
+ 失败
+
+
+ {{ (record.business_money + record.business_coin).toFixed(2) }}
+
@@ -175,4 +170,36 @@ const {loading, pagination, initFetchData} = useTableQuery({
letter-spacing: 0;
margin-bottom: 20px;
}
+
+.status {
+ @apply flex whitespace-nowrap items-center gap-[6px];
+ &::before {
+ content: '';
+ @apply block size-[6px] rounded-[50%];
+ }
+}
+
+.success {
+ &::before {
+ @apply bg-[rgb(var(--green-6))];
+ }
+}
+
+.danger {
+ &::before {
+ @apply bg-[rgb(var(--red-6))];
+ }
+}
+
+.warning {
+ &::before {
+ @apply bg-[rgb(var(--orange-6))];
+ }
+}
+
+.primary {
+ &::before {
+ @apply bg-[rgb(var(--arcoblue-6))];
+ }
+}