This commit is contained in:
2025-04-22 11:47:25 +08:00
parent eab81e29df
commit 86aa66800c
10 changed files with 227 additions and 229 deletions

View File

@@ -147,6 +147,112 @@ const admin = {
data: data
});
},
getInterventionList: async (data) => {
return request({
url: '/admin/intervention/getInterventionList',
method: Method.POST,
data: data
});
},
getBusinessmoneylogPlatform: async () => {
return request({
url: '/admin/businessmoneylog/getPlatform',
method: Method.POST,
});
},
getBusinessmoneylogPurpose: async () => {
return request({
url: '/admin/businessmoneylog/getPurpose',
method: Method.POST,
});
},
getBusinessmoneylogList: async (data) => {
return request({
url: '/admin/businessmoneylog/getList',
method: Method.POST,
data: data
});
},
getUsermoneylogPlatform: async () => {
return request({
url: '/admin/usermoneylog/getPlatform',
method: Method.POST,
});
},
getUsermoneylogPurpose: async () => {
return request({
url: '/admin/usermoneylog/getPurpose',
method: Method.POST,
});
},
getUsermoneylogList: async (data) => {
return request({
url: '/admin/usermoneylog/getList',
method: Method.POST,
data: data
});
},
getWithdrawalPerson: async () => {
return request({
url: '/admin/withdrawal/getPerson',
method: Method.POST,
});
},
getWithdrawalPlatform: async () => {
return request({
url: '/admin/withdrawal/getPlatform',
method: Method.POST,
});
},
getWithdrawalList: async (data) => {
return request({
url: '/admin/withdrawal/getList',
method: Method.POST,
data: data
});
},
getWithdrawllogStatus: async (data) => {
return request({
url: '/admin/withdrawallog/getStatus',
method: Method.POST,
data: data
});
},
getWithdrawllogList: async (data) => {
return request({
url: '/admin/withdrawallog/getList',
method: Method.POST,
data: data
});
},
getBusinessList: async (data) => {
return request({
url: '/admin/business/getList',
method: Method.POST,
data: data
});
},
getUserList: async (data) => {
return request({
url: '/admin/user/getList',
method: Method.POST,
data: data
});
},
getAccountList: async (data) => {
return request({
url: '/admin/account/getList',
method: Method.POST,
data: data
});
},
getTaskblockList: async (data) => {
return request({
url: '/admin/taskblock/getList',
method: Method.POST,
data: data
});
},
}
export default admin;

View File

@@ -60,33 +60,33 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'b_uid',
type: 'input',
label: '商家ID',
placeholder: '请输入商家ID',
},
{
key: 'u_uid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
},
{
key: 'wd',
type: 'input',
label: '账号',
placeholder: '请输入账号',
},
{
key: 'wd',
key: 'account',
type: 'input',
label: '推广账号',
placeholder: '请输入推广账号',
},
{
key: 'wd',
key: 'rangeTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '推广日期',
},
];
const po = reactive({
wd: null,
});
const po = reactive({});
const vo = reactive({
page: '',
rows: [],
@@ -95,7 +95,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getTaskblockList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -106,6 +106,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 拉黑记录 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -69,47 +69,45 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'uid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
},
{
key: 'wd',
key: 'puid',
type: 'input',
label: '邀请人',
placeholder: '请输入邀请人',
},
{
key: 'wd',
key: 'mobile',
type: 'input',
label: '手机号',
placeholder: '请输入手机号',
},
{
key: 'wd',
key: 'status',
type: 'select',
label: '状态',
placeholder: '请选择状态',
api: async () => ({
data: [
{
name: '选项一',
name: '禁用',
id: 0,
},
{
name: '可用',
id: 1,
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
key: 'rangTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '入驻时间',
},
@@ -131,7 +129,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getUserList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -142,6 +140,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 达人账号 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -8,37 +8,37 @@ import EditInfoModal from "./components/EditInfoModal.vue";
const columns = [
{
title: '商家ID',
dataIndex: 'key',
dataIndex: 'uid',
},
{
title: '昵称',
dataIndex: 'key',
dataIndex: 'nickname',
},
{
title: '头像',
dataIndex: 'key',
dataIndex: 'avatar',
},
{
title: '手机号',
dataIndex: 'key',
dataIndex: 'mobile',
},
{
title: '微信号',
dataIndex: 'image',
dataIndex: 'wechat',
slotName: 'image',
},
{
title: '状态',
dataIndex: 'status',
slotName: 'status',
dataIndex: 'status_text',
slotName: 'status_text',
},
{
title: '邀请人',
dataIndex: 'key',
dataIndex: 'puid',
},
{
title: '入驻日期',
dataIndex: 'key',
dataIndex: 'createtime',
},
{
title: '操作',
@@ -49,47 +49,45 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'uid',
type: 'input',
label: '商家ID',
placeholder: '请输入商家ID',
},
{
key: 'wd',
key: 'puid',
type: 'input',
label: '邀请人',
placeholder: '请输入邀请人',
},
{
key: 'wd',
key: 'mobile',
type: 'input',
label: '手机号',
placeholder: '请输入手机号',
},
{
key: 'wd',
key: 'status',
type: 'select',
label: '状态',
placeholder: '请选择状态',
api: async () => ({
data: [
{
name: '选项一',
name: '禁用',
id: 0,
},
{
name: '可用',
id: 1,
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
key: 'rangeTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '入驻时间',
},
@@ -111,7 +109,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getBusinessList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -122,6 +120,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 商家账号 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>
@@ -133,7 +132,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
:loading="loading"
:columns="columns"
class="flex-grow">
<template v-slot:status>
<template v-slot:status_text>
状态
</template>
<template v-slot:action>

View File

@@ -54,19 +54,21 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'uuid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
},
{
key: 'wd',
key: 'account',
type: 'input',
label: '账号',
placeholder: '请输入账号',
},
{
key: 'wd',
key: 'rangeTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '推广日期',
},
@@ -83,7 +85,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getAccountList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -94,6 +96,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 推广账号 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig"
:button-col="false">

View File

@@ -73,77 +73,47 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'uid',
type: 'input',
label: '商家ID',
placeholder: '请输入商家ID',
},
{
key: 'wd',
key: 'task_id',
type: 'input',
label: '关联任务ID',
placeholder: '请输入关联任务ID',
},
{
key: 'wd',
key: 'u_uid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
},
{
key: 'wd',
key: 'platform',
type: 'select',
label: '动账渠道',
placeholder: '请选择动账渠道',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
api: async () => Api.admin.getBusinessmoneylogPlatform(),
},
{
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.admin.getBusinessmoneylogPurpose(),
},
{
key: 'rangeTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '动账日期',
}
];
const po = reactive({
wd: null,
});
const po = reactive({});
const vo = reactive({
page: '',
rows: [],
@@ -152,7 +122,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getBusinessmoneylogList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -163,6 +133,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 资金管理() -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -73,66 +73,36 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'u_uid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
},
{
key: 'wd',
key: 'mt_code',
type: 'input',
label: '关联任务ID',
placeholder: '请输入关联任务ID',
},
{
key: 'wd',
key: 'tc_code',
type: 'input',
label: '子任务ID',
placeholder: '请输入子任务ID',
},
{
key: 'wd',
key: 'platform',
type: 'select',
label: '动账渠道',
placeholder: '请选择动账渠道',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
api: async () => Api.admin.getUsermoneylogPlatform()
},
{
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.admin.getUsermoneylogPurpose()
},
{
key: 'wd',
@@ -152,7 +122,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getUsermoneylogList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -163,6 +133,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 资金管理() -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -58,71 +58,43 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'uid',
type: 'input',
label: 'ID',
placeholder: '请输入ID',
},
{
key: 'wd',
key: 'nealname',
type: 'input',
label: '姓名',
placeholder: '请输入姓名',
},
{
key: 'wd',
key: 'account',
type: 'input',
label: '卡号',
placeholder: '请输入卡号',
},
{
key: 'wd',
key: 'type',
type: 'select',
label: '身份',
placeholder: '请选择身份',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
api: async () => Api.admin.getWithdrawalPerson()
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
key: 'rangeTime',
start: 'start_time',
end: 'end_time',
type: 'datetime',
label: '申请时间',
},
{
key: 'wd',
key: 'status',
type: 'select',
label: '状态',
placeholder: '请选择状态',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
api: async () => Api.admin.getWithdrawllogStatus()
},
];
@@ -137,7 +109,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getWithdrawllogList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -181,6 +153,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<div class="mock-card mb-[20px]">
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -56,72 +56,42 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'person',
type: 'select',
label: '身份',
placeholder: '请选择身份',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
api: async () => Api.admin.getWithdrawalPerson(),
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
},
{
key: 'wd',
key: 'code',
type: 'input',
label: '身份ID',
placeholder: '请输入身份ID',
},
{
key: 'wd',
key: 'id_card',
type: 'input',
label: '身份证号',
placeholder: '请输入身份证号',
},
{
key: 'wd',
key: 'account',
type: 'input',
label: '卡号',
placeholder: '请输入卡号',
},
{
key: 'wd',
key: 'mobile',
type: 'input',
label: '电话号',
placeholder: '请输入电话号',
},
{
key: 'wd',
key: 'platform',
type: 'select',
label: '提现方式',
placeholder: '请选择提现方式',
api: async () => ({
data: [
{
name: '选项一',
id: 1,
},
{
name: '选项二',
id: 2,
},
{
name: '选项三',
id: 3,
},
]
}),
api: async () => Api.admin.getWithdrawalPlatform()
},
];
@@ -136,7 +106,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.system.getData,
api: Api.admin.getWithdrawalList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -147,6 +117,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<!-- 提现信息 -->
<a-card>
<Filter
@search="initFetchData"
v-model:from="po"
:config="FilterConfig">
</Filter>

View File

@@ -70,49 +70,49 @@ const columns = [
];
const FilterConfig = [
{
key: 'wd',
key: 'm_code',
type: 'input',
label: '任务编号',
placeholder: '请输入任务编号',
span: 6,
},
{
key: 'wd',
key: 't_uid',
type: 'input',
label: '子任务编号',
placeholder: '请输入子任务编号',
span: 6,
},
{
key: 'wd',
key: 'deduct',
type: 'custom',
label: '扣除',
slotName: 'deduct',
span: 6,
},
{
key: 'wd',
key: 'money_type',
type: 'custom',
label: '达人到手',
slotName: 'hands',
span: 6,
},
{
key: 'wd',
key: 'uuid',
type: 'input',
label: '达人ID',
placeholder: '请输入达人ID',
span: 6,
},
{
key: 'wd',
key: 'b_uid',
type: 'input',
label: '商家ID',
placeholder: '请输入商家ID',
span: 6,
},
{
key: 'wd',
key: 'account',
type: 'input',
label: '达人账号',
placeholder: '请输入达人账号',
@@ -130,7 +130,11 @@ const FilterConfig = [
const po = reactive({
pass: 1,
dcl: 1,
money_type: null,
deduct: null,
status: 0,
ratio: null,
money: null,
});
const vo = reactive({
page: '',
@@ -139,7 +143,7 @@ const vo = reactive({
});
const {loading, pagination, initFetchData} = useTableQuery({
parameter: po,
api: Api.admin.getExchangeLog,
api: Api.admin.getInterventionList,
callback: (data) => {
Object.assign(vo, data);
}
@@ -153,20 +157,20 @@ const {loading, pagination, initFetchData} = useTableQuery({
v-model:from="po"
:config="FilterConfig">
<template v-slot:deduct>
<XSelect :api="Api.system.getRange"></XSelect>
<a-input-number placeholder="请输入比例" class="ml-[20px]">
<XSelect :api="Api.system.getRange" v-model:model-value="po.deduct"></XSelect>
<a-input-number v-model:model-value="po.ratio" placeholder="请输入比例" class="ml-[20px]">
<template #suffix>%</template>
</a-input-number>
</template>
<template v-slot:hands>
<XSelect :api="Api.system.getRange"></XSelect>
<a-input-number placeholder="请输入金额" class="ml-[20px]">
<XSelect :api="Api.system.getRange" v-model:model-value="po.money_type"></XSelect>
<a-input-number v-model:model-value="po.money" placeholder="请输入金额" class="ml-[20px]">
</a-input-number>
</template>
</Filter>
<a-tabs type="rounded" v-model:active-key="po.dcl">
<a-tab-pane title="待处理" :key="1">
<a-tabs type="rounded" v-model:active-key="po.status" @change="initFetchData">
<a-tab-pane title="待处理" :key="0">
</a-tab-pane>
<a-tab-pane title="已处理" :key="2">
</a-tab-pane>