diff --git a/scripts/remove-i18n.js b/scripts/remove-i18n.js index c43c0b0..e659d86 100644 --- a/scripts/remove-i18n.js +++ b/scripts/remove-i18n.js @@ -25,13 +25,13 @@ function getNestedValue(obj, path) { // 替换文件内容 function replaceContent(content) { // 替换模板中的 $t('key') - content = content.replace( - /(? { - const value = getNestedValue(zhCN, key) - return value ? `'${value}'` : match - } - ) + // content = content.replace( + // /(? { + // const value = getNestedValue(zhCN, key) + // return value ? `'${value}'` : match + // } + // ) // 替换 JavaScript 中的 this.$t('key') content = content.replace(/this\.\$t\(['"]([^'"]+)['"]\)/g, (match, key) => { diff --git a/src/api/supply.js b/src/api/supply.js index 7edf911..934bf6f 100644 --- a/src/api/supply.js +++ b/src/api/supply.js @@ -64,6 +64,14 @@ export function supplierProduct(params) { }) } +// 供应商类型 +export function getCustTypeList(params) { + return request({ + url: '/system/pub/enums/supply-type', + method: 'get', + params + }) +} // 供应商管理列表 export function getSupplierList(params) { return request({ diff --git a/src/api/ticket.js b/src/api/ticket.js new file mode 100644 index 0000000..5b18eaa --- /dev/null +++ b/src/api/ticket.js @@ -0,0 +1,58 @@ + +import request from '@/utils/request' + +// 新零售门票活动-列表 +export function ticketList(params) { + return request({ + url: '/activity/manage/ticket/list', + method: 'get', + params + }) +} +// 新零售门票活动-新增 +export function ticketSave(data) { + return request({ + url: '/activity/manage/ticket/save', + method: 'post', + data + }) +} +// 新零售门票活动-修改 +export function ticketUpdate(data) { + return request({ + url: '/activity/manage/ticket/update', + method: 'post', + data + }) +} +// 新零售门票活动-删除 +export function delTicket(id) { + return request({ + url: '/activity/manage/ticket/' + id, + method: 'delete' + }) +} +// 获取单条门票活动 +export function getOneTicket(id) { + return request({ + url: '/activity/manage/ticket/getOne/' + id, + method: 'get' + }) +} +// 会员消费赠送-查看 +export function memberConsumeRule(params) { + return request({ + url: '/activity/manage/member-consume-rule/detail', + method: 'get', + params + }) +} + +// 自助购票-列表 +export function ticketQuery(data) { + return request({ + url: '/sale/manage/ticket/query?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize, + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 3d99693..b258f9c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,7 +8,7 @@ import Vue from 'vue' import Router from 'vue-router' import i18n from '@/assets/i18n/index' Vue.use(Router) - +import { tickets } from './module/tickets' /* Layout */ import Layout from '@/layout' import ParentView from '@/components/ParentView' @@ -1820,6 +1820,7 @@ export const constantRoutes = [ name: 'Activity', meta: { title: '营销管理', icon: 'yx', icon1: 'yxSel' }, children: [ + ...tickets, { path: 'giftGoods', name: 'GiftGoods', diff --git a/src/router/module/tickets.js b/src/router/module/tickets.js new file mode 100644 index 0000000..08f81a9 --- /dev/null +++ b/src/router/module/tickets.js @@ -0,0 +1,40 @@ +import ParentView from '@/components/ParentView' +export const tickets = [ + { + path: 'ticket', + name: 'Ticket', + component: ParentView, + hidden: false, + children: [ + { + path: 'ticketList', + name: 'TicketList', + component: () => import('@/views/marketing/ticket/index'), + meta: { title: '门票活动' }, + hidden: false + }, + { + path: 'addTicket', + name: 'AddTicket', + component: () => import('@/views/marketing/ticket/addTicket'), + meta: { title: '基本信息' }, + hidden: true + } + ] + }, + { + path: 'ticketQuery', + name: 'TicketQuery', + component: ParentView, + hidden: false, + children: [ + { + path: 'ticketQueryList', + name: 'TickeQuerytList', + component: () => import('@/views/marketing/ticketQueryList/index'), + meta: { title: '自助购票' }, + hidden: false + } + ] + } +] diff --git a/src/views/marketing/ticket/addTicket.vue b/src/views/marketing/ticket/addTicket.vue new file mode 100644 index 0000000..ab08726 --- /dev/null +++ b/src/views/marketing/ticket/addTicket.vue @@ -0,0 +1,462 @@ + + + + + diff --git a/src/views/marketing/ticket/index.vue b/src/views/marketing/ticket/index.vue new file mode 100644 index 0000000..6dd5397 --- /dev/null +++ b/src/views/marketing/ticket/index.vue @@ -0,0 +1,335 @@ + + + + diff --git a/src/views/marketing/ticketQueryList/index.vue b/src/views/marketing/ticketQueryList/index.vue new file mode 100644 index 0000000..2a5d79a --- /dev/null +++ b/src/views/marketing/ticketQueryList/index.vue @@ -0,0 +1,373 @@ + + + + diff --git a/src/views/system/supplierSet/index.vue b/src/views/system/supplierSet/index.vue index 98f4e84..7c04726 100644 --- a/src/views/system/supplierSet/index.vue +++ b/src/views/system/supplierSet/index.vue @@ -351,6 +351,12 @@ export default { site.areaList().then((res) => { this.areaData = res.data }) + this.getCustTypeList() + }, + getCustTypeList() { + api.getCustTypeList().then((res) => { + this.custTypeList = res.data + }) }, reset() { this.select = {}