diff --git a/src/apis/modules/equiteType.js b/src/apis/modules/equiteType.js new file mode 100644 index 0000000..300cdf2 --- /dev/null +++ b/src/apis/modules/equiteType.js @@ -0,0 +1,14 @@ +/** + * 区域模块接口 + */ +import request from '@/utils/request' +// 获取项目列表 +export const getProjectList = (params) => request.basic.get('/api/v1/product-categories', params) +// 获取单挑数据 +export const getItem = (id) => request.basic.get(`/api/v1/product-categories/${id}`) +// 添加条目 +export const createProject = (params) => request.basic.post('/api/v1/product-categories', params) +// 更新role +export const updateItem = (id, params) => request.basic.put(`/api/v1/product-categories/${id}`, params) +// 删除数据 +export const delItem = (id) => request.basic.delete(`/api/v1/product-categories/${id}`) diff --git a/src/locales/lang/zh-CN/menu.js b/src/locales/lang/zh-CN/menu.js index 5716e0c..0acd155 100644 --- a/src/locales/lang/zh-CN/menu.js +++ b/src/locales/lang/zh-CN/menu.js @@ -99,5 +99,6 @@ export default { ycbirth: '生日礼遇', activityOrder:'活动报名列表', banner:'首页轮播图', - equiteMgt:'权益兑换' + equiteMgt:'权益兑换', + equiteType:'权益兑换类型' } diff --git a/src/router/routes/equiteMgt.js b/src/router/routes/equiteMgt.js index 75c987b..bc2e1ce 100644 --- a/src/router/routes/equiteMgt.js +++ b/src/router/routes/equiteMgt.js @@ -13,5 +13,18 @@ export default [ permission: '*', } - } + }, + { + path: 'equiteType/index', + name: 'equiteType', + component: 'equiteType/index.vue', + meta: { + icon: CoffeeOutlined, + title: '权益类型', + isMenu: true, + keepAlive: true, + permission: '*', + } + + }, ] diff --git a/src/views/equite/aiya/index.vue b/src/views/equite/aiya/index.vue index b75cdc6..c634d78 100644 --- a/src/views/equite/aiya/index.vue +++ b/src/views/equite/aiya/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/birth/index.vue b/src/views/equite/birth/index.vue index a7db602..7687789 100644 --- a/src/views/equite/birth/index.vue +++ b/src/views/equite/birth/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/caizhai/index.vue b/src/views/equite/caizhai/index.vue index d2971ac..b655e9c 100644 --- a/src/views/equite/caizhai/index.vue +++ b/src/views/equite/caizhai/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/fangchan/index.vue b/src/views/equite/fangchan/index.vue index 21be194..8406f88 100644 --- a/src/views/equite/fangchan/index.vue +++ b/src/views/equite/fangchan/index.vue @@ -79,6 +79,9 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/hotel/index.vue b/src/views/equite/hotel/index.vue index 953875e..163c75f 100644 --- a/src/views/equite/hotel/index.vue +++ b/src/views/equite/hotel/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/jiazhuang/index.vue b/src/views/equite/jiazhuang/index.vue index c8fad29..74a9785 100644 --- a/src/views/equite/jiazhuang/index.vue +++ b/src/views/equite/jiazhuang/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/kangyang/index.vue b/src/views/equite/kangyang/index.vue index 13f3ab9..5b3d546 100644 --- a/src/views/equite/kangyang/index.vue +++ b/src/views/equite/kangyang/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/life/index.vue b/src/views/equite/life/index.vue index 88492e2..7cf72a6 100644 --- a/src/views/equite/life/index.vue +++ b/src/views/equite/life/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/lvyou/index.vue b/src/views/equite/lvyou/index.vue index 580212d..a6a8d2a 100644 --- a/src/views/equite/lvyou/index.vue +++ b/src/views/equite/lvyou/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/parentChild/index.vue b/src/views/equite/parentChild/index.vue index d1e6880..b0fb393 100644 --- a/src/views/equite/parentChild/index.vue +++ b/src/views/equite/parentChild/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/quanwu/index.vue b/src/views/equite/quanwu/index.vue index 480b0ac..c8e578f 100644 --- a/src/views/equite/quanwu/index.vue +++ b/src/views/equite/quanwu/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equite/yllvs/index.vue b/src/views/equite/yllvs/index.vue index e5f132b..8c590cb 100644 --- a/src/views/equite/yllvs/index.vue +++ b/src/views/equite/yllvs/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/equiteMgt/components/EditDialog.vue b/src/views/equiteMgt/components/EditDialog.vue index a83e61f..2aed9cc 100644 --- a/src/views/equiteMgt/components/EditDialog.vue +++ b/src/views/equiteMgt/components/EditDialog.vue @@ -21,7 +21,12 @@ - + + + + + - - + @@ -151,7 +156,8 @@ formRules.value = { concatName: [{ required: true, message: '请输入订单联系人' }], concatPhone: [{ required: true, message: '请输入订单电话' }], price: [{ required: true, message: '请输入所需积分' }], - stock: [{ required: true, message: '请输入库存数量' }], + sequence: [{ required: true, message: '请输入排序' }], + stock: [{ required: true, message: '请输入已兑数量' }], maxNum: [{ required: true, message: '请输入兑换数量上限' }], canNum: [{ required: true, message: '请输入兑换次数上限' }], // details: [{ required: true, message: '请输入详情' }], diff --git a/src/views/equiteMgt/index.vue b/src/views/equiteMgt/index.vue index dd7707c..631eacf 100644 --- a/src/views/equiteMgt/index.vue +++ b/src/views/equiteMgt/index.vue @@ -79,7 +79,7 @@ - + @@ -118,7 +118,7 @@ import { PlusOutlined, EditOutlined, DeleteOutlined, QrcodeOutlined } from '@ant import { useI18n } from 'vue-i18n' defineOptions({ - name: 'equiteMgt', + name: 'equiteType', }) const { t } = useI18n() // 解构出t方法 const open = ref(false) @@ -131,7 +131,8 @@ const columns = [ { title: '订单联系人', dataIndex: 'concatName', width: 200 }, { title: '订单电话', dataIndex: 'concatPhone', width: 200 }, { title: '所需积分', dataIndex: 'price', width: 100, align: 'center' }, - { title: '库存', dataIndex: 'stock', width: 100, align: 'center' }, + { title: '已兑', dataIndex: 'stock', width: 100, align: 'center' }, + { title: '排序', dataIndex: 'sequence', width: 100, align: 'center' }, { title: '兑换数量上限', dataIndex: 'maxNum', width: 120 }, { title: '兑换次数上限', dataIndex: 'canNum', width: 120 }, { title: '详情', dataIndex: 'details', align: 'center', width: 100 }, diff --git a/src/views/equiteType/components/EditDialog.vue b/src/views/equiteType/components/EditDialog.vue new file mode 100644 index 0000000..a536740 --- /dev/null +++ b/src/views/equiteType/components/EditDialog.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/views/equiteType/index.vue b/src/views/equiteType/index.vue new file mode 100644 index 0000000..a8cc20a --- /dev/null +++ b/src/views/equiteType/index.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/ycequite/ycbirth/index.vue b/src/views/ycequite/ycbirth/index.vue index ab03bb6..0173472 100644 --- a/src/views/ycequite/ycbirth/index.vue +++ b/src/views/ycequite/ycbirth/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycfwjbj/index.vue b/src/views/ycequite/ycfwjbj/index.vue index 6cc9dc9..d12840e 100644 --- a/src/views/ycequite/ycfwjbj/index.vue +++ b/src/views/ycequite/ycfwjbj/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycjd/index.vue b/src/views/ycequite/ycjd/index.vue index d70f3e6..ff08929 100644 --- a/src/views/ycequite/ycjd/index.vue +++ b/src/views/ycequite/ycjd/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycjztg/index.vue b/src/views/ycequite/ycjztg/index.vue index 06e7dd9..61da53e 100644 --- a/src/views/ycequite/ycjztg/index.vue +++ b/src/views/ycequite/ycjztg/index.vue @@ -79,6 +79,7 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycmcby/index.vue b/src/views/ycequite/ycmcby/index.vue index 71f841f..8a5cf78 100644 --- a/src/views/ycequite/ycmcby/index.vue +++ b/src/views/ycequite/ycmcby/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycparentChild/index.vue b/src/views/ycequite/ycparentChild/index.vue index b807ce2..6a1094f 100644 --- a/src/views/ycequite/ycparentChild/index.vue +++ b/src/views/ycequite/ycparentChild/index.vue @@ -80,6 +80,8 @@ const columns = [ { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination() diff --git a/src/views/ycequite/ycqw/index.vue b/src/views/ycequite/ycqw/index.vue index efcd551..4c5938b 100644 --- a/src/views/ycequite/ycqw/index.vue +++ b/src/views/ycequite/ycqw/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycqwsc/index.vue b/src/views/ycequite/ycqwsc/index.vue index 7ebd47c..adda104 100644 --- a/src/views/ycequite/ycqwsc/index.vue +++ b/src/views/ycequite/ycqwsc/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycxwybm/index.vue b/src/views/ycequite/ycxwybm/index.vue index 475c9a1..11f316a 100644 --- a/src/views/ycequite/ycxwybm/index.vue +++ b/src/views/ycequite/ycxwybm/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ] diff --git a/src/views/ycequite/ycyllvs/index.vue b/src/views/ycequite/ycyllvs/index.vue index 37abb8f..1c35f7e 100644 --- a/src/views/ycequite/ycyllvs/index.vue +++ b/src/views/ycequite/ycyllvs/index.vue @@ -79,6 +79,8 @@ const columns = [ { title: '联系人姓名', dataIndex: 'concatName' }, { title: '创建时间', dataIndex: 'createdAt', width: 150, align: 'center' }, { title: '过期时间', dataIndex: 'expireAt', width: 150, align: 'center' }, + { title: '权益名称', dataIndex: 'productName', width: 150, align: 'center' }, + { title: '状态', dataIndex: 'status', width: 100, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, ]