21 Commits

Author SHA1 Message Date
6bdad9b4f0 feat:
1. add query condition for user order
2026-02-15 11:34:44 +08:00
lzqadmin
fd7617b09f 修改划拨福利包接口名 2026-02-15 00:40:23 +08:00
lzqadmin
0e676e5737 后台excel批量划拨用户福利包提示优化 2026-02-15 00:25:46 +08:00
27c2eaa52d Merge remote-tracking branch 'origin/main' 2026-02-14 23:17:55 +08:00
84bddcf81f feat:
1. add lottery
2026-02-14 23:17:38 +08:00
lzqadmin
f2d6896282 后台excel批量划拨用户福利包 2026-02-14 22:24:58 +08:00
lzqadmin
694b553a18 用户佣金 2026-02-14 13:56:45 +08:00
lzqadmin
5cd7c19b69 sourceType 改成 字符串类型 2026-02-14 13:38:55 +08:00
lzqadmin
ff50b1928d 1 2026-02-13 23:32:49 +08:00
lzqadmin
d353c44dbb 1 2026-02-13 23:03:40 +08:00
lzqadmin
5628edde25 后台划拨福利积分: 用户到用户 2026-02-13 19:15:18 +08:00
lzqadmin
e4c74da655 将福利积分, 现金券, 福利包移动至 market 2026-02-13 18:47:40 +08:00
lzqadmin
be74a7c1d8 用户积分, 佣金账户 2026-02-13 13:50:15 +08:00
7398afae67 Merge remote-tracking branch 'origin/main' 2026-02-12 15:30:01 +08:00
42aabac304 feat:
1. add notice
2026-02-12 15:29:48 +08:00
lzqadmin
889857801b 收货地址 2026-02-12 15:06:15 +08:00
1351bfb682 feat:
1. add notice
2026-02-12 14:59:50 +08:00
5947b5609c feat:
1. add notice
2026-02-12 09:48:09 +08:00
e7f61d06bb feat:
1. add notice
2026-02-12 09:25:39 +08:00
d22b0e69dd Merge remote-tracking branch 'origin/main' 2026-02-12 09:22:21 +08:00
2ee22e9fa1 feat:
1. add category
2026-02-12 09:22:09 +08:00
77 changed files with 8808 additions and 226 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-usermarketbenefitpackage/userMarketBenefitPackage/list',
url: '/blade-lotteryprize/lotteryPrize/list',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-usermarketbenefitpackage/userMarketBenefitPackage/detail',
url: '/blade-lotteryprize/lotteryPrize/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-usermarketbenefitpackage/userMarketBenefitPackage/remove',
url: '/blade-lotteryprize/lotteryPrize/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-usermarketbenefitpackage/userMarketBenefitPackage/submit',
url: '/blade-lotteryprize/lotteryPrize/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-usermarketbenefitpackage/userMarketBenefitPackage/submit',
url: '/blade-lotteryprize/lotteryPrize/submit',
method: 'post',
data: row
})

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-usermarketbenefitpackagelog/userMarketBenefitPackageLog/list',
url: '/blade-lotteryprize/lotteryRecord/list',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-usermarketbenefitpackagelog/userMarketBenefitPackageLog/detail',
url: '/blade-lotteryprize/lotteryRecord/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-usermarketbenefitpackagelog/userMarketBenefitPackageLog/remove',
url: '/blade-lotteryprize/lotteryRecord/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-usermarketbenefitpackagelog/userMarketBenefitPackageLog/submit',
url: '/blade-lotteryprize/lotteryRecord/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-usermarketbenefitpackagelog/userMarketBenefitPackageLog/submit',
url: '/blade-lotteryprize/lotteryRecord/submit',
method: 'post',
data: row
})

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-regionsinfo/regionsInfo/list',
url: '/common/region/list',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-regionsinfo/regionsInfo/detail',
url: '/common/region/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-regionsinfo/regionsInfo/remove',
url: '/common/region/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-regionsinfo/regionsInfo/submit',
url: '/common/region/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-regionsinfo/regionsInfo/submit',
url: '/common/region/submit',
method: 'post',
data: row
})

View File

@@ -0,0 +1,49 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/common/address/page',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getDetail = id => {
return request({
url: '/common/address/detail',
method: 'get',
params: {
id,
},
});
};
export const remove = ids => {
return request({
url: '/common/address/remove',
method: 'post',
params: {
ids,
},
});
};
export const add = row => {
return request({
url: '/common/address/submit',
method: 'post',
data: row,
});
};
export const update = row => {
return request({
url: '/common/address/submit',
method: 'post',
data: row,
});
};

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-usernotice/userNotice/list',
url: '/common/notice/page',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-usernotice/userNotice/detail',
url: '/common/notice/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-usernotice/userNotice/remove',
url: '/common/notice/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-usernotice/userNotice/save',
url: '/common/notice/save',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-usernotice/userNotice/submit',
url: '/common/notice/submit',
method: 'post',
data: row
})

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/user-order/order/page',
url: '/common/order/page',
method: 'get',
params: {
...params,
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/user-order/order/detail',
url: '/common/order/detail',
method: 'get',
params: {
id
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/user-order/order/remove',
url: '/common/order/remove',
method: 'post',
params: {
ids,
@@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/user-order/order/submit',
url: '/common/order/submit',
method: 'post',
data: row
})
@@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/user-order/order/submit',
url: '/common/order/submit',
method: 'post',
data: row
})
@@ -50,7 +50,7 @@ export const update = (row) => {
export const confirmPayment = (row) => {
return request({
url: '/user-order/order/confirm-payment',
url: '/common/order/confirm-payment',
method: 'post',
data: row
});
@@ -58,7 +58,7 @@ export const confirmPayment = (row) => {
export const fillExpress = (id, expressNo) => {
return request({
url: '/user-order/order/fill-express',
url: '/common/order/fill-express',
method: 'post',
data: {id, expressNo}
});

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/common/user-point/page',
method: 'get',
params: {
...params,
current,
size,
},
});
}
export const getDetail = (id) => {
return request({
url: '/common/user-point/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/common/user-point/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/common/user-point/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/common/user-point/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/common/user-point-log/page',
method: 'get',
params: {
...params,
current,
size,
},
});
}
export const getDetail = (id) => {
return request({
url: '/common/user-point-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/common/user-point-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/common/user-point-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/common/user-point-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-package/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-package/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-package/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-package/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-package/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-package-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-package-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-package-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-package-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-package-log/submit',
method: 'post',
data: row
})
}

View File

@@ -4,7 +4,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/list',
url: '/market/benefit-package-template/list',
method: 'get',
params: {
...params,
@@ -16,7 +16,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/detail',
url: '/market/benefit-package-template/detail',
method: 'get',
params: {
id
@@ -26,7 +26,7 @@ export const getDetail = (id) => {
export const remove = (ids) => {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/remove',
url: '/market/benefit-package-template/remove',
method: 'post',
params: {
ids,
@@ -36,7 +36,7 @@ export const remove = (ids) => {
export const add = (row) => {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/submit',
url: '/market/benefit-package-template/submit',
method: 'post',
data: row
})
@@ -44,18 +44,18 @@ export const add = (row) => {
export const update = (row) => {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/submit',
url: '/market/benefit-package-template/submit',
method: 'post',
data: row
})
}
export function doGivePack(row) {
export function allocatePackage(row) {
return request({
url: '/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/doGivePack',
url: '/market/benefit-package-template/allocate-benefit-package',
method: 'post',
data: row
})
data: row,
});
}

View File

@@ -0,0 +1,61 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-point/page',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-point/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-point/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-point/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-point/submit',
method: 'post',
data: row
})
}
export function transfer(row) {
return request({
url: '/market/benefit-point/transfer',
method: 'post',
data: row,
});
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-point-log/page',
method: 'get',
params: {
...params,
current,
size,
},
});
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-point-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-point-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-point-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-point-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/cash-coupon/page',
method: 'get',
params: {
...params,
current,
size,
},
});
}
export const getDetail = (id) => {
return request({
url: '/market/cash-coupon/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/cash-coupon/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/cash-coupon/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/cash-coupon/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/cash-coupon-log/page',
method: 'get',
params: {
...params,
current,
size,
},
});
}
export const getDetail = (id) => {
return request({
url: '/market/cash-coupon-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/cash-coupon-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/cash-coupon-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/cash-coupon-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/account/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/account/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/account/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/account/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/account/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/advertising-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/advertising-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/advertising-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/advertising-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/advertising-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/agency-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/agency-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/agency-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/agency-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/agency-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/cocreator-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/cocreator-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/cocreator-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/cocreator-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/cocreator-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/direct-push-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/direct-push-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/direct-push-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/direct-push-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/direct-push-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/goods-cost-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/goods-cost-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/goods-cost-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/goods-cost-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/goods-cost-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/operation-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/operation-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/operation-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/operation-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/operation-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/service-provider-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/service-provider-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/service-provider-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/service-provider-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/service-provider-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/user-point-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market-commission/user-point-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market-commission/user-point-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market-commission/user-point-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market-commission/user-point-log/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-commission/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-commission/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-commission/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-commission/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-commission/submit',
method: 'post',
data: row
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market/benefit-commission-log/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/market/benefit-commission-log/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/market/benefit-commission-log/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/market/benefit-commission-log/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/market/benefit-commission-log/submit',
method: 'post',
data: row
})
}

View File

@@ -190,8 +190,7 @@ export const option = {
{
label: '模型类名',
prop: 'modelClass',
addDisabled: true,
editDisabled: true,
rules: [
{
required: true,

View File

@@ -7,10 +7,7 @@ export default {
border: true,
index: true,
viewBtn: true,
addBtn: false,
delBtn: false,
editBtn: false,
selection: false,
selection: true,
dialogClickModal: false,
column: [
{
@@ -23,58 +20,38 @@ export default {
hide: true,
},
{
label: "统计日期",
prop: "statisticalDate",
label: "奖品名称",
prop: "prizeName",
type: "input",
},
{
label: "用户id",
prop: "userId",
search : true,
label: "奖品类型",
prop: "prizeType",
type: "input",
},
{
label: "用户手机号",
prop: "phone",
type: "input",
search : true,
},
{
label: "用户名",
prop: "userName",
label: "奖品内容",
prop: "prizeValue",
type: "input",
},
{
label: "来源",
prop: "type",
type: "select",
dicUrl: "/api/blade-system/dict/dictionary?code=app_package_type",
dataType: "number",
props: {
label: "dictValue",
value: "dictKey"
},
width : 140,
},
{
label: "积分包id",
prop: "userPackageId",
label: "中奖概率(如 0.05 = 5%)",
prop: "probability",
type: "input",
},
{
label: "积分包名称",
prop: "packageName",
label: "总库存(-1 表示无限)",
prop: "stock",
type: "input",
},
{
label: "积分包信息快照",
prop: "packageDetail",
label: "每日发放上限",
prop: "dailyLimit",
type: "input",
overHidden: true,
},
{
label: "赠送数量",
prop: "giveNumber",
label: "排序(用于前端展示顺序)",
prop: "sortOrder",
type: "input",
},
{
@@ -128,7 +105,7 @@ export default {
hide: true,
},
{
label: "状态",
label: "状态:0=下架 1=上架",
prop: "status",
type: "input",
addDisplay: false,

View File

@@ -0,0 +1,106 @@
export default {
height:'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
selection: true,
dialogClickModal: false,
column: [
{
label: "主键",
prop: "id",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "用户id",
prop: "userId",
type: "input",
},
{
label: "中奖奖品ID(null 表示未中奖/谢谢参与)",
prop: "prizeId",
type: "input",
},
{
label: "消耗积分",
prop: "pointsUsed",
type: "input",
},
{
label: "备注",
prop: "remark",
type: "input",
},
{
label: "创建人",
prop: "createUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建部门",
prop: "createDept",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "创建时间",
prop: "createTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改人",
prop: "updateUser",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改时间",
prop: "updateTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "0=未发放 1=已发放 2=发放失败",
prop: "status",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "是否已删除",
prop: "isDeleted",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
]
}

View File

@@ -0,0 +1,153 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '地区信息id',
prop: 'regionsInfoId',
type: 'input',
hide: true,
},
{
label: '省份',
prop: 'province',
type: 'input',
},
{
label: '城市',
prop: 'city',
type: 'input',
},
{
label: '区县',
prop: 'district',
type: 'input',
},
{
label: '街道',
prop: 'street',
type: 'input',
},
{
label: '详细地址',
prop: 'detail',
type: 'input',
},
{
label: '收货人',
prop: 'consignee',
type: 'input',
},
{
label: '联系电话',
prop: 'phone',
type: 'input',
},
{
label: '是否默认地址',
prop: 'isDefault',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -6,8 +6,9 @@ export default {
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
editBtn: false,
addBtn: true,
viewBtn: false,
editBtn: true,
delBtn: false,
selection: false,
dialogClickModal: false,
@@ -19,25 +20,8 @@ export default {
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: false,
overHidden: true,
hide: true,
},
{
label: "发布消息范围",
prop: "noticeRange",
type: 'select',
dicData:[{name:"个人",code:0},{name:"全部",code:1}],
props: {
label: 'name',
value: 'code'
},
value : 0,
viewDisplay: false,
hide : true,
overHidden : true,
},
{
label: "用户id",
prop: "userId",
@@ -46,13 +30,16 @@ export default {
rules: [
{ required: true, message: "用户id不能为空", trigger: "blur" }
],
search : true,
addDisplay: false,
editDisplay: false,
hide: true,
},
{
label: "通知类型",
prop: "noticeType",
type: 'select',
dicUrl: '/blade-system/dict/dictionary?code=app_notice_type',
type: 'radio',
span:24,
dicUrl: '/blade-system/dict/dictionary?code=notice_type',
props: {
label: 'dictValue',
value: 'dictKey'
@@ -61,7 +48,6 @@ export default {
rules: [
{ required: true, message: "通知类型必选", trigger: "blur" }
],
search : true,
},
{
label: "是否已读",
@@ -75,20 +61,13 @@ export default {
dataType: 'number',
addDisplay: false,
editDisplay: false,
search : true,
},
{
label: "阅读时间",
prop: "releaseTime",
type: "input",
addDisplay: false,
editDisplay: false,
overHidden : true,
hide: true,
},
{
label: "标题",
prop: "title",
type: "input",
span:24,
rules: [
{ required: true, message: "标题必填", trigger: "blur" }
]
@@ -96,7 +75,8 @@ export default {
{
label: "内容",
prop: "content",
type: "input",
span:24,
type: "textarea",
overHidden : true,
rules: [
{ required: true, message: "内容必填", trigger: "blur" }
@@ -107,9 +87,6 @@ export default {
prop: "remarks",
type: "input",
},
{
label: "创建人",
prop: "createUser",
@@ -129,13 +106,12 @@ export default {
hide: true,
},
{
label: "创建时间",
label: "发布时间",
prop: "createTime",
type: "input",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: "修改人",

View File

@@ -24,6 +24,7 @@ export default {
label: "下单账号",
prop: "account",
type: "input",
search: true,
overHidden: true,
},
{

View File

@@ -0,0 +1,106 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键(用户id)',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '版本号',
prop: 'version',
type: 'input',
hide: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,153 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '上一笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -93,8 +93,9 @@ export default {
},
formatter: (row, value, cellValue) => {
if (!Array.isArray(value)) return '';
return value.map(s => `${s.attr}:${s.value}`).join('; ');
return value.map(s => `${s.attr} : ${s.value}`).join('; ');
},
overHidden: true,
},
{
label: "单位",

View File

@@ -0,0 +1,153 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
addBtn: false,
delBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '统计日期',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
search: true,
type: 'input',
overHidden: true,
},
{
label: '用户手机号',
prop: 'phone',
type: 'input',
search: true,
},
{
label: '用户名',
prop: 'userName',
type: 'input',
},
{
label: '来源',
prop: 'type',
type: 'select',
dicUrl: '/api/blade-system/dict/dictionary?code=app_package_type',
dataType: 'number',
props: {
label: 'dictValue',
value: 'dictKey',
},
width: 140,
},
{
label: '积分包id',
prop: 'userPackageId',
type: 'input',
overHidden: true,
},
{
label: '积分包名称',
prop: 'packageName',
type: 'input',
},
{
label: '积分包信息',
prop: 'packageDetail',
type: 'input',
overHidden: true,
},
{
label: '赠送数量',
prop: 'giveNumber',
type: 'input',
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,107 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键(用户id)',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '版本号',
prop: 'version',
type: 'input',
hide: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,160 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
overHidden: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '上一笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '手续费',
prop: 'fee',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,106 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键(用户id)',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '版本号',
prop: 'version',
type: 'input',
hide: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,154 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
hide: true,
},
{
label: '用户账户',
prop: 'account',
type: 'input',
search: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '上一笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,136 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: true,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户名称',
prop: 'accountName',
type: 'input',
},
{
label: '账户代码',
prop: 'accountCode',
type: 'input',
addDisplay: false,
editDisplay: false,
hide: true,
},
{
label: '账户类型',
prop: 'accountType',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=commission_account_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
addDisplay: false,
editDisplay: false,
},
{
label: '账户总余额',
prop: 'amount',
type: 'input',
addDisplay: false,
editDisplay: false,
},
{
label: '版本号',
prop: 'version',
type: 'input',
hide: true,
addDisplay: false,
editDisplay: false,
},
{
label: '备注',
prop: 'remark',
type: 'input',
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,151 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '是否完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,157 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,151 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,169 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '金额是否发放到用户',
prop: 'isSalaryPaid',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
width: 160,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,157 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,164 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '随机立减金额',
prop: 'cutAmount',
type: 'input',
width: 120,
},
{
label: '随机立减说明',
prop: 'cutDetail',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,205 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
width: 120,
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
width: 120,
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
width: 140,
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '金额是否发放到用户',
prop: 'isSalaryPaid',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
width: 160,
overHidden: true,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '收货地址id',
prop: 'addressId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '省市区id',
prop: 'regionId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '服务商id',
prop: 'serviceProviderId',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '服务类型',
prop: 'serviceType',
type: 'input',
width: 120,
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,169 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '账户id',
prop: 'accountId',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
type: 'input',
},
{
label: '上笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '0-未完成 1-已完成',
prop: 'isComplete',
type: 'input',
hide: true,
},
{
label: '金额是否发放到用户',
prop: 'isSalaryPaid',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
width: 160,
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,100 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '用户id',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
},
{
label: '佣金金额',
prop: 'amount',
type: 'input',
},
{
label: '版本号',
prop: 'version',
type: 'input',
hide: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,145 @@
export default {
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
delBtn: false,
addBtn: false,
editBtn: false,
selection: false,
dialogClickModal: false,
column: [
{
label: '主键',
prop: 'id',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
},
{
label: '金额',
prop: 'amount',
type: 'input',
},
{
label: '上一笔金额',
prop: 'lastAmount',
type: 'input',
},
{
label: '业务类型',
prop: 'sourceType',
type: 'input',
},
{
label: '来源id',
prop: 'sourceId',
type: 'input',
overHidden: true,
},
{
label: '来源详情',
prop: 'sourceDetail',
type: 'input',
overHidden: true,
},
{
label: '收入/支出',
prop: 'type',
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=point_spend_type',
props: {
label: 'dictValue',
value: 'dictKey',
},
dataType: 'number',
},
{
label: '统计时间',
prop: 'statisticalDate',
type: 'input',
overHidden: true,
},
{
label: '备注',
prop: 'remark',
type: 'input',
overHidden: true,
},
{
label: '创建人',
prop: 'createUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '创建时间',
prop: 'createTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '修改时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
},
],
};

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<el-button type="danger"
icon="el-icon-delete"
plain
v-if="permission.lotteryPrize_delete"
@click="handleDelete">删 除
</el-button>
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/common/commonLotteryPrize";
import option from "@/option/common/commonLotteryPrize";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.lotteryPrize_add, false),
viewBtn: this.validData(this.permission.lotteryPrize_view, false),
delBtn: this.validData(this.permission.lotteryPrize_delete, false),
editBtn: this.validData(this.permission.lotteryPrize_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
// handleExport() {
// let downloadUrl = `/blade-lotteryprize/lotteryPrize/export-lotteryPrize?${this.website.tokenHeader}=${getToken()}`;
// const {
// } = this.query;
// let values = {
// };
// this.$confirm("是否导出数据?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning"
// }).then(() => {
// NProgress.start();
// exportBlob(downloadUrl, values).then(res => {
// downloadXls(res.data, `奖品配置表${dateNow()}.xlsx`);
// NProgress.done();
// })
// });
// },
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<el-button type="danger"
icon="el-icon-delete"
plain
v-if="permission.lotteryRecord_delete"
@click="handleDelete">删 除
</el-button>
<el-button type="warning"
plain
icon="el-icon-download"
@click="handleExport">导 出
</el-button>
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/common/commonLotteryRecord";
import option from "@/option/common/commonLotteryRecord";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.lotteryRecord_add, false),
viewBtn: this.validData(this.permission.lotteryRecord_view, false),
delBtn: this.validData(this.permission.lotteryRecord_delete, false),
editBtn: this.validData(this.permission.lotteryRecord_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `/blade-lotteryprize/lotteryRecord/export-lotteryRecord?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `抽奖记录表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.userAddress_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/common/commonUserAddress';
import option from '@/option/common/commonUserAddress';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.userAddress_add, false),
viewBtn: this.validData(this.permission.userAddress_view, false),
delBtn: this.validData(this.permission.userAddress_delete, false),
editBtn: this.validData(this.permission.userAddress_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `/blade-useraddress/userAddress/export-userAddress?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户地址表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account : params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -37,8 +37,8 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/customer/userNotice";
import option from "@/option/customer/userNotice";
import {getList, getDetail, add, update, remove} from "@/api/common/commonUserNotice";
import option from "@/option/common/commonUserNotice";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonUserPoint_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/common/commonUserPoint';
import option from '@/option/common/commonUserPoint';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonUserPoint_add, false),
viewBtn: this.validData(this.permission.commonUserPoint_view, false),
delBtn: this.validData(this.permission.commonUserPoint_delete, false),
editBtn: this.validData(this.permission.commonUserPoint_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/user-point/commonUserPoint/export-commonUserPoint?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户商城积分表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonUserPointLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/common/commonUserPointLog';
import option from '@/option/common/commonUserPointLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonUserPointLog_add, false),
viewBtn: this.validData(this.permission.commonUserPointLog_view, false),
delBtn: this.validData(this.permission.commonUserPointLog_delete, false),
editBtn: this.validData(this.permission.commonUserPointLog_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/user-point-log/commonUserPointLog/export-commonUserPointLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户商城积分流水表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -37,8 +37,8 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/userPackage/userMarketBenefitPackage";
import option from "@/option/userPackage/userMarketBenefitPackage";
import {getList, getDetail, add, update, remove} from "@/api/market/marketBenefitPackage";
import option from "@/option/market/marketBenefitPackage";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';

View File

@@ -37,8 +37,8 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/userPackage/userMarketBenefitPackageLog";
import option from "@/option/userPackage/userMarketBenefitPackageLog";
import {getList, getDetail, add, update, remove} from "@/api/market/marketBenefitPackageLog";
import option from "@/option/market/marketBenefitPackageLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';

View File

@@ -0,0 +1,394 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.userMarketBenefitPackageTemplate_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
<el-button type="success" plain icon="el-icon-upload" @click="importBenefitPackage"
>批量导入福利包
</el-button>
</template>
<template #menu="{ row }">
<el-button type="text" icon="el-icon-document" size="small" @click="openGivePack(row)"
>划拨福利包
</el-button>
</template>
</avue-crud>
<el-dialog :title="`划拨积分包`" append-to-body v-model="givePackBox" width="1000px">
<avue-form
:option="givePackOption"
:data="givePackData"
v-model="givePackFrom"
@submit="allocatePackageSubmit"
ref="stateCrud"
/>
</el-dialog>
<el-dialog title="用户福利包导入" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="excelUploadAfter">
<template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
点击下载<i class="el-icon-download el-icon--right"></i>
</el-button>
</template>
</avue-form>
</el-dialog>
</basic-container>
</template>
<script>
import {
getList,
getDetail,
add,
update,
remove,
allocatePackage,
} from '@/api/market/marketBenefitPackageTemplate';
import option from '@/option/market/marketBenefitPackageTemplate';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
givePackBox: false,
givePackOption: {
addBtn: false,
editBtn: true,
delBtn: false,
menu: false,
labelWidth: 200,
column: [
{
label: '账户',
prop: 'userPhone',
type: 'input',
},
{
label: '划拨数量',
prop: 'giveNumber',
type: 'input',
},
{
label: '备注',
prop: 'remark',
type: 'input',
},
],
},
givePackData: '',
givePackFrom: {
id: '',
},
excelBox: false,
excelForm: {},
excelOption: {
submitBtn: false,
emptyBtn: false,
column: [
{
label: '上传用户福利包',
labelWidth: 200,
prop: 'excelFile',
type: 'upload',
drag: true,
loadText: '模板上传中,请稍等',
span: 24,
propsHttp: {
res: 'data',
},
tip: '请上传 .xls,.xlsx 标准格式文件',
action: '/market/benefit-package-template/import-benefit-package',
},
],
},
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_add, false),
viewBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_view, false),
delBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_delete, false),
editBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/export-userMarketBenefitPackageTemplate?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `积分包信息表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
openGivePack(row) {
this.givePackBox = true;
this.givePackFrom.id = row.id;
},
allocatePackageSubmit(form, done) {
const data = {
packId: form.id,
phone: form.userPhone,
giveNumber: form.giveNumber,
remark: form.remark,
};
allocatePackage(data).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
this.givePackBox = false;
this.givePackFrom = {
id: '',
userPhone: '',
giveNumber: '',
remark: '',
};
},
error => {
done();
this.givePackBox = false;
console.log(error);
}
);
},
importBenefitPackage() {
this.excelBox = true;
},
excelUploadAfter(res, done, loading, column) {
console.log('上结束:::');
window.console.log(column);
console.log('打印:::', res);
if (res.length) {
const errMsg = res
.map(
(item, idx) =>
`${idx + 1}. ${item.errorMsg} 账户: ${item.account} 福利包: ${item.benefitPackage}`
)
.join('<br><br>');
this.$alert(errMsg, '导入失败', {
confirmButtonText: '我知道了',
type: 'error',
dangerouslyUseHTMLString: true, //
customClass: 'alert-error-list', //
});
}
done();
},
},
};
</script>
<style>
.alert-error-list .el-message-box__message {
max-height: 450px; /* 最大高度 */
overflow-y: auto; /* 超出时显示滚动条 */
padding: 12px 20px; /* 增加内边距,更美观 */
line-height: 1.6; /* 行高更舒适 */
text-align: left;
}
</style>

View File

@@ -0,0 +1,322 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonBenefitPoint_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
<template #menu="{ row }">
<el-button
type="text"
icon="el-icon-document"
size="small"
@click="openGiveBenefitPoint(row)"
>划拨福利积分
</el-button>
</template>
</avue-crud>
<el-dialog
:title="`划拨福利积分-从此账户划拨到指定账户`"
append-to-body
v-model="giveBenefitPointBox"
width="1000px"
>
<avue-form
:option="giveBenefitPointOption"
:data="giveBenefitPointData"
v-model="giveBenefitPointFrom"
@submit="giveBenefitPointSubmit"
ref="stateCrud"
/>
</el-dialog>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove, transfer } from '@/api/market/marketBenefitPoint';
import option from '@/option/market/marketBenefitPoint';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import { doGivePack } from '@/api/market/marketBenefitPackageTemplate';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
giveBenefitPointBox: false,
giveBenefitPointOption: {
addBtn: false,
editBtn: true,
delBtn: false,
menu: false,
labelWidth: 200,
column: [
{
label: '到账账户',
prop: 'account',
type: 'input',
},
{
label: '划拨数量',
prop: 'giveAmount',
type: 'input',
},
],
},
giveBenefitPointData: '',
giveBenefitPointFrom: {
id: '',
},
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonBenefitPoint_add, false),
viewBtn: this.validData(this.permission.commonBenefitPoint_view, false),
delBtn: this.validData(this.permission.commonBenefitPoint_delete, false),
editBtn: this.validData(this.permission.commonBenefitPoint_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/benefit-point/commonBenefitPoint/export-commonBenefitPoint?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户福利值表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
openGiveBenefitPoint(row) {
this.giveBenefitPointBox = true;
this.giveBenefitPointFrom.id = row.id;
},
giveBenefitPointSubmit(form, done) {
const data = {
id: form.id,
account: form.account,
amount: form.giveAmount,
};
transfer(data).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
this.giveBenefitPointBox = false;
this.giveBenefitPointFrom = {
id: '',
account: '',
giveAmount: '',
};
},
error => {
done();
this.giveBenefitPointBox = false;
console.log(error);
}
);
},
},
};
</script>
<style></style>

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonBenefitPointLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/market/marketBenefitPointLog';
import option from '@/option/market/marketBenefitPointLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonBenefitPointLog_add, false),
viewBtn: this.validData(this.permission.commonBenefitPointLog_view, false),
delBtn: this.validData(this.permission.commonBenefitPointLog_delete, false),
editBtn: this.validData(this.permission.commonBenefitPointLog_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/benefit-point-log/commonBenefitPointLog/export-commonBenefitPointLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户福利值流水表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonCashCoupon_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/market/marketCashCoupon';
import option from '@/option/market/marketCashCoupon';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonCashCoupon_add, false),
viewBtn: this.validData(this.permission.commonCashCoupon_view, false),
delBtn: this.validData(this.permission.commonCashCoupon_delete, false),
editBtn: this.validData(this.permission.commonCashCoupon_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/cash-coupon/commonCashCoupon/export-commonCashCoupon?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户现金券表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -0,0 +1,232 @@
<template>
<basic-container>
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.commonCashCouponLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import { getList, getDetail, add, update, remove } from '@/api/market/marketCashCouponLog';
import option from '@/option/market/marketCashCouponLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
selectionList: [],
option: option,
data: [],
};
},
computed: {
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.commonCashCouponLog_add, false),
viewBtn: this.validData(this.permission.commonCashCouponLog_view, false),
delBtn: this.validData(this.permission.commonCashCouponLog_delete, false),
editBtn: this.validData(this.permission.commonCashCouponLog_edit, false),
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
window.console.log(error);
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
loading();
console.log(error);
}
);
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//common/cash-coupon-log/commonCashCouponLog/export-commonCashCouponLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户现金券流水表${dateNow()}.xlsx`);
NProgress.done();
});
});
},
beforeOpen(done, type) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {} = this.query;
let values = {
account: params.account,
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
},
},
};
</script>
<style></style>

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.marketCommissionAccount_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionAccount";
import option from "@/option/market/marketCommissionAccount";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionAccount_add, false),
viewBtn: this.validData(this.permission.marketCommissionAccount_view, false),
delBtn: this.validData(this.permission.marketCommissionAccount_delete, false),
editBtn: this.validData(this.permission.marketCommissionAccount_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/account/marketCommissionAccount/export-marketCommissionAccount?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户佣金账户表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.marketCommissionAdvertisingLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, 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 {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionAdvertisingLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionAdvertisingLog_view, false),
delBtn: this.validData(this.permission.marketCommissionAdvertisingLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionAdvertisingLog_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/advertising-log/marketCommissionAdvertisingLog/export-marketCommissionAdvertisingLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%广告补贴佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

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

View File

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

View File

@@ -23,7 +23,7 @@
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.userMarketBenefitPackageTemplate_delete"-->
<!-- v-if="permission.marketCommissionDirectPushLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
@@ -32,34 +32,13 @@
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
<template #menu="{ row }">
<el-button type="text"
icon="el-icon-document"
size="small"
@click="openGivePack(row)">划拨福利包
</el-button>
</template>
</avue-crud>
<el-dialog :title="`划拨积分包`" append-to-body v-model="givePackBox" width="1000px">
<avue-form
:option="givePackOption"
:data="givePackData"
v-model="givePackFrom"
@submit="givePackSubmit"
ref="stateCrud"
/>
</el-dialog>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove , doGivePack} from "@/api/userPackage/userMarketBenefitPackageTemplate";
import option from "@/option/userPackage/userMarketBenefitPackageTemplate";
import {getList, getDetail, 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';
@@ -82,53 +61,17 @@
},
selectionList: [],
option: option,
data: [],
givePackBox: false,
givePackOption: {
addBtn: false,
editBtn: true,
delBtn: false,
menu: false,
labelWidth: 200,
column: [
{
label: "手机号",
prop: "userPhone",
type: "input",
},
{
label: "划拨数量",
prop: "giveNumber",
type: "input",
},
{
label: "备注",
prop: "remark",
type: "input",
},
]
},
givePackData: '',
givePackFrom:{
id:''
},
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_add, false),
viewBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_view, false),
delBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_delete, false),
editBtn: this.validData(this.permission.userMarketBenefitPackageTemplate_edit, false)
addBtn: this.validData(this.permission.marketCommissionDirectPushLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionDirectPushLog_view, false),
delBtn: this.validData(this.permission.marketCommissionDirectPushLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionDirectPushLog_edit, false)
};
},
ids() {
@@ -206,7 +149,7 @@
});
},
handleExport() {
let downloadUrl = `/blade-usermarketbenefitpackagetemplate/userMarketBenefitPackageTemplate/export-userMarketBenefitPackageTemplate?${this.website.tokenHeader}=${getToken()}`;
let downloadUrl = `//market-commission/direct-push-log/marketCommissionDirectPushLog/export-marketCommissionDirectPushLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
@@ -218,7 +161,7 @@
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `积分包信息表${dateNow()}.xlsx`);
downloadXls(res.data, `10%直推人佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
@@ -273,42 +216,7 @@
this.loading = false;
this.selectionClear();
});
},
openGivePack(row){
this.givePackBox = true;
this.givePackFrom.id = row.id;
},
givePackSubmit(form , done ){
const data = {
packId : form.id,
phone : form.userPhone,
giveNumber : form.giveNumber,
remark : form.remark,
}
doGivePack(data).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
this.givePackBox = false;
this.givePackFrom = {
id : "",
userPhone : "" ,
giveNumber : "",
remark : ""
}
}, error => {
done();
this.givePackBox = false;
console.log(error);
});
},
}
}
};
</script>

View File

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

View File

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

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.marketCommissionServiceProviderLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, 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 {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionServiceProviderLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionServiceProviderLog_view, false),
delBtn: this.validData(this.permission.marketCommissionServiceProviderLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionServiceProviderLog_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/service-provider-log/marketCommissionServiceProviderLog/export-marketCommissionServiceProviderLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%服务商佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

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

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.userCommission_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketUserCommission";
import option from "@/option/market/marketUserCommission";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.userCommission_add, false),
viewBtn: this.validData(this.permission.userCommission_view, false),
delBtn: this.validData(this.permission.userCommission_delete, false),
editBtn: this.validData(this.permission.userCommission_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `/blade-usercommission/userCommission/export-userCommission?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户佣金表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>

View File

@@ -0,0 +1,225 @@
<template>
<basic-container>
<avue-crud :option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
:table-loading="loading"
:data="data"
:permission="permissionList"
:before-open="beforeOpen"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.userCommissionLog_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<!-- <el-button type="warning"-->
<!-- plain-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport">导 出-->
<!-- </el-button>-->
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketUserCommissionLog";
import option from "@/option/market/marketUserCommissionLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {getToken} from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
export default {
data() {
return {
form: {},
query: {},
search: {},
loading: true,
page: {
pageSize: 10,
currentPage: 1,
total: 0
},
selectionList: [],
option: option,
data: []
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
addBtn: this.validData(this.permission.userCommissionLog_add, false),
viewBtn: this.validData(this.permission.userCommissionLog_view, false),
delBtn: this.validData(this.permission.userCommissionLog_delete, false),
editBtn: this.validData(this.permission.userCommissionLog_edit, false)
};
},
ids() {
let ids = [];
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
window.console.log(error);
});
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
done();
}, error => {
loading();
console.log(error);
});
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(this.ids);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `/blade-usercommissionlog/userCommissionLog/export-userCommissionLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `用户佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
currentChange(currentPage){
this.page.currentPage = currentPage;
},
sizeChange(pageSize){
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
});
}
}
};
</script>
<style>
</style>