佣金账户, 后台界面显示优化

This commit is contained in:
2026-03-01 16:09:32 +08:00
parent b19d99d201
commit b6fcebabde
32 changed files with 1738 additions and 1554 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/advertising-log/list', url: '/market-commission/advertising-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/agency-log/list', url: '/market-commission/agency-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/cocreator-log/list', url: '/market-commission/cocreator-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/direct-push-log/list', url: '/market-commission/direct-push-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/goods-cost-log/list', url: '/market-commission/goods-cost-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/operation-log/list', url: '/market-commission/operation-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/service-provider-log/list', url: '/market-commission/service-provider-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market-commission/user-point-log/list', url: '/market-commission/user-point-log/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
current, current,
size, size,
} },
}) });
} }
export const getDetail = (id) => { export const getDetail = (id) => {

View File

@@ -23,7 +23,7 @@ export default {
hide: true, hide: true,
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -30,7 +30,7 @@ export default {
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -23,7 +23,7 @@ export default {
hide: true, hide: true,
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -30,7 +30,7 @@ export default {
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -23,7 +23,7 @@ export default {
hide: true, hide: true,
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -30,7 +30,7 @@ export default {
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '变动金额', label: '变动金额',
prop: 'amount', prop: 'amount',
@@ -48,6 +56,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '用户id', label: '用户id',
prop: 'userId', prop: 'userId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
}, },
{ {
label: '变动金额', label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '变动金额', label: '变动金额',
prop: 'amount', prop: 'amount',
@@ -48,6 +56,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '用户id', label: '用户id',
prop: 'userId', prop: 'userId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
}, },
{ {
label: '变动金额', label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -26,14 +26,17 @@ export default {
label: '账户id', label: '账户id',
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
hide: true,
overHidden: true, overHidden: true,
}, },
{ {
label: '用户id', label: '佣金账户',
prop: 'userId', prop: 'commissionAccount',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
}, },
{ {
label: '金额', label: '金额',
prop: 'amount', prop: 'amount',
@@ -50,10 +53,11 @@ export default {
type: 'input', type: 'input',
}, },
{ {
label: '来源id', label: '订单号',
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
search: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '变动金额', label: '变动金额',
prop: 'amount', prop: 'amount',
@@ -61,6 +69,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -28,13 +28,31 @@ export default {
type: 'input', type: 'input',
width: 120, width: 120,
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
width: 120,
},
{ {
label: '用户id', label: '用户id',
prop: 'userId', prop: 'userId',
type: 'input', type: 'input',
width: 120,
overHidden: true, overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
width: 120,
search: true,
}, },
{ {
label: '变动金额', label: '变动金额',
@@ -52,6 +70,7 @@ export default {
label: '业务类型', label: '业务类型',
prop: 'sourceType', prop: 'sourceType',
type: 'input', type: 'input',
width: 120,
}, },
{ {
label: '来源id', label: '来源id',
@@ -59,6 +78,7 @@ export default {
type: 'input', type: 'input',
width: 120, width: 120,
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId', prop: 'accountId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{ {
label: '用户id', label: '用户id',
prop: 'userId', prop: 'userId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
}, },
{ {
label: '变动金额', label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId', prop: 'sourceId',
type: 'input', type: 'input',
overHidden: true, overHidden: true,
hide: true,
}, },
{ {
label: '来源详情', label: '来源详情',

View File

@@ -24,7 +24,7 @@ export default {
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -30,7 +30,7 @@ export default {
}, },
{ {
label: '用户账户', label: '用户账号',
prop: 'account', prop: 'account',
type: 'input', type: 'input',
search: true, search: true,

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionAdvertisingLog"; import {
import option from "@/option/market/marketCommissionAdvertisingLog"; getList,
import {mapGetters} from "vuex"; getDetail,
import {exportBlob} from "@/api/common"; add,
update,
remove,
} from '@/api/market/marketCommissionAdvertisingLog';
import option from '@/option/market/marketCommissionAdvertisingLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionAdvertisingLog_add, false), addBtn: this.validData(this.permission.marketCommissionAdvertisingLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionAdvertisingLog_view, false), viewBtn: this.validData(this.permission.marketCommissionAdvertisingLog_view, false),
delBtn: this.validData(this.permission.marketCommissionAdvertisingLog_delete, false), delBtn: this.validData(this.permission.marketCommissionAdvertisingLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionAdvertisingLog_edit, false) editBtn: this.validData(this.permission.marketCommissionAdvertisingLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/advertising-log/marketCommissionAdvertisingLog/export-marketCommissionAdvertisingLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/advertising-log/marketCommissionAdvertisingLog/export-marketCommissionAdvertisingLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%广告补贴佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `5%广告补贴佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +217,10 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +230,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionAgencyLog"; import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionAgencyLog';
import option from "@/option/market/marketCommissionAgencyLog"; import option from '@/option/market/marketCommissionAgencyLog';
import {mapGetters} from "vuex"; import { mapGetters } from 'vuex';
import {exportBlob} from "@/api/common"; import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionAgencyLog_add, false), addBtn: this.validData(this.permission.marketCommissionAgencyLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionAgencyLog_view, false), viewBtn: this.validData(this.permission.marketCommissionAgencyLog_view, false),
delBtn: this.validData(this.permission.marketCommissionAgencyLog_delete, false), delBtn: this.validData(this.permission.marketCommissionAgencyLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionAgencyLog_edit, false) editBtn: this.validData(this.permission.marketCommissionAgencyLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/agencyl-og/marketCommissionAgencyLog/export-marketCommissionAgencyLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/agencyl-og/marketCommissionAgencyLog/export-marketCommissionAgencyLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `15%极差代理佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `15%极差代理佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +211,11 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
userAccount : params.userAccount,
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionCoCreatorLog"; import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionCoCreatorLog';
import option from "@/option/market/marketCommissionCoCreatorLog"; import option from '@/option/market/marketCommissionCoCreatorLog';
import {mapGetters} from "vuex"; import { mapGetters } from 'vuex';
import {exportBlob} from "@/api/common"; import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionCoCreatorLog_add, false), addBtn: this.validData(this.permission.marketCommissionCoCreatorLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionCoCreatorLog_view, false), viewBtn: this.validData(this.permission.marketCommissionCoCreatorLog_view, false),
delBtn: this.validData(this.permission.marketCommissionCoCreatorLog_delete, false), delBtn: this.validData(this.permission.marketCommissionCoCreatorLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionCoCreatorLog_edit, false) editBtn: this.validData(this.permission.marketCommissionCoCreatorLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/cocreator-log/marketCommissionCoCreatorLog/export-marketCommissionCoCreatorLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/cocreator-log/marketCommissionCoCreatorLog/export-marketCommissionCoCreatorLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%联创佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `5%联创佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +211,10 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +224,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionDirectPushLog"; import {
import option from "@/option/market/marketCommissionDirectPushLog"; getList,
import {mapGetters} from "vuex"; getDetail,
import {exportBlob} from "@/api/common"; add,
update,
remove,
} from '@/api/market/marketCommissionDirectPushLog';
import option from '@/option/market/marketCommissionDirectPushLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionDirectPushLog_add, false), addBtn: this.validData(this.permission.marketCommissionDirectPushLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionDirectPushLog_view, false), viewBtn: this.validData(this.permission.marketCommissionDirectPushLog_view, false),
delBtn: this.validData(this.permission.marketCommissionDirectPushLog_delete, false), delBtn: this.validData(this.permission.marketCommissionDirectPushLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionDirectPushLog_edit, false) editBtn: this.validData(this.permission.marketCommissionDirectPushLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/direct-push-log/marketCommissionDirectPushLog/export-marketCommissionDirectPushLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/direct-push-log/marketCommissionDirectPushLog/export-marketCommissionDirectPushLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `10%直推人佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `10%直推人佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +217,11 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +231,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionGoodsCostLog"; import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionGoodsCostLog';
import option from "@/option/market/marketCommissionGoodsCostLog"; import option from '@/option/market/marketCommissionGoodsCostLog';
import {mapGetters} from "vuex"; import { mapGetters } from 'vuex';
import {exportBlob} from "@/api/common"; import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionGoodsCostLog_add, false), addBtn: this.validData(this.permission.marketCommissionGoodsCostLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionGoodsCostLog_view, false), viewBtn: this.validData(this.permission.marketCommissionGoodsCostLog_view, false),
delBtn: this.validData(this.permission.marketCommissionGoodsCostLog_delete, false), delBtn: this.validData(this.permission.marketCommissionGoodsCostLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionGoodsCostLog_edit, false) editBtn: this.validData(this.permission.marketCommissionGoodsCostLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/goods-cost-log/marketCommissionGoodsCostLog/export-marketCommissionGoodsCostLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/goods-cost-log/marketCommissionGoodsCostLog/export-marketCommissionGoodsCostLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `25%商品成本佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `25%商品成本佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +211,11 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
sourceId: params.sourceId,
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionOperationLog"; import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionOperationLog';
import option from "@/option/market/marketCommissionOperationLog"; import option from '@/option/market/marketCommissionOperationLog';
import {mapGetters} from "vuex"; import { mapGetters } from 'vuex';
import {exportBlob} from "@/api/common"; import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionOperationLog_add, false), addBtn: this.validData(this.permission.marketCommissionOperationLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionOperationLog_view, false), viewBtn: this.validData(this.permission.marketCommissionOperationLog_view, false),
delBtn: this.validData(this.permission.marketCommissionOperationLog_delete, false), delBtn: this.validData(this.permission.marketCommissionOperationLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionOperationLog_edit, false) editBtn: this.validData(this.permission.marketCommissionOperationLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/operation-log/marketCommissionOperationLog/export-marketCommissionOperationLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/operation-log/marketCommissionOperationLog/export-marketCommissionOperationLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%运营佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `5%运营佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +211,10 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +224,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionServiceProviderLog"; import {
import option from "@/option/market/marketCommissionServiceProviderLog"; getList,
import {mapGetters} from "vuex"; getDetail,
import {exportBlob} from "@/api/common"; add,
update,
remove,
} from '@/api/market/marketCommissionServiceProviderLog';
import option from '@/option/market/marketCommissionServiceProviderLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionServiceProviderLog_add, false), addBtn: this.validData(this.permission.marketCommissionServiceProviderLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionServiceProviderLog_view, false), viewBtn: this.validData(this.permission.marketCommissionServiceProviderLog_view, false),
delBtn: this.validData(this.permission.marketCommissionServiceProviderLog_delete, false), delBtn: this.validData(this.permission.marketCommissionServiceProviderLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionServiceProviderLog_edit, false) editBtn: this.validData(this.permission.marketCommissionServiceProviderLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/service-provider-log/marketCommissionServiceProviderLog/export-marketCommissionServiceProviderLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/service-provider-log/marketCommissionServiceProviderLog/export-marketCommissionServiceProviderLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%服务商佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `5%服务商佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +217,11 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +231,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>

View File

@@ -1,6 +1,7 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" <avue-crud
:option="option"
v-model:search="search" v-model:search="search"
v-model:page="page" v-model:page="page"
v-model="form" v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad"> @on-load="onLoad"
>
<template #menu-left> <template #menu-left>
<!-- <el-button type="danger"--> <!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template> </template>
<script> <script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionUserPointLog"; import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionUserPointLog';
import option from "@/option/market/marketCommissionUserPointLog"; import option from '@/option/market/marketCommissionUserPointLog';
import {mapGetters} from "vuex"; import { mapGetters } from 'vuex';
import {exportBlob} from "@/api/common"; import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util"; import { downloadXls } from '@/utils/util';
import {dateNow} from "@/utils/date"; import { dateNow } from '@/utils/date';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
total: 0 total: 0,
}, },
selectionList: [], selectionList: [],
option: option, option: option,
data: [] data: [],
}; };
}, },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(['permission']),
permissionList() { permissionList() {
return { return {
addBtn: this.validData(this.permission.marketCommissionUserPointLog_add, false), addBtn: this.validData(this.permission.marketCommissionUserPointLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionUserPointLog_view, false), viewBtn: this.validData(this.permission.marketCommissionUserPointLog_view, false),
delBtn: this.validData(this.permission.marketCommissionUserPointLog_delete, false), delBtn: this.validData(this.permission.marketCommissionUserPointLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionUserPointLog_edit, false) editBtn: this.validData(this.permission.marketCommissionUserPointLog_edit, false),
}; };
}, },
ids() { ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(',');
} },
}, },
methods: { methods: {
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then(() => { add(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
window.console.log(error); window.console.log(error);
}); }
);
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then(() => { update(row).then(
() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
done(); done();
}, error => { },
error => {
loading(); loading();
console.log(error); console.log(error);
}); }
);
}, },
rowDel(row) { rowDel(row) {
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
}); });
}, },
handleDelete() { handleDelete() {
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.$confirm("确定将选择数据删除?", { this.$confirm('确定将选择数据删除?', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => { .then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!',
}); });
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `//market-commission/user-point-log/marketCommissionUserPointLog/export-marketCommissionUserPointLog?${this.website.tokenHeader}=${getToken()}`; let downloadUrl = `//market-commission/user-point-log/marketCommissionUserPointLog/export-marketCommissionUserPointLog?${
const { this.website.tokenHeader
} = this.query; }=${getToken()}`;
let values = { const {} = this.query;
}; let values = {};
this.$confirm("是否导出数据?", "提示", { this.$confirm('是否导出数据?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning" type: 'warning',
}).then(() => { }).then(() => {
NProgress.start(); NProgress.start();
exportBlob(downloadUrl, values).then(res => { exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `30%购买人获取用户积分佣金流水表${dateNow()}.xlsx`); downloadXls(res.data, `30%购买人获取用户积分佣金流水表${dateNow()}.xlsx`);
NProgress.done(); NProgress.done();
}) });
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {
if (["edit", "view"].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
@@ -203,10 +211,11 @@
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
const { const {} = this.query;
} = this.query;
let values = { let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
}; };
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} },
}; };
</script> </script>
<style> <style></style>
</style>