diff --git a/.vscode/settings.json b/.vscode/settings.json index 34310929..54be7d8c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -83,7 +83,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "[vue]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" diff --git a/src/api/bpm/task/index.ts b/src/api/bpm/task/index.ts index 7b599509..df6d8160 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -44,7 +44,7 @@ export const exportTask = async (params) => { // 获取所有可回退的节点 export const getReturnList = async (params) => { - return await request.get({ url: '/bpm/task/get-return-list', params }) + return await request.get({ url: '/bpm/task/return-list', params }) } // 回退 diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 8af2a697..41ec35d8 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -1,3 +1,10 @@ +/* + * @Author: zyna + * @Date: 2023-12-02 13:08:56 + * @LastEditTime: 2023-12-17 16:28:20 + * @FilePath: \yudao-ui-admin-vue3\src\api\crm\business\index.ts + * @Description: + */ import request from '@/config/axios' export interface BusinessVO { @@ -55,3 +62,8 @@ export const deleteBusiness = async (id: number) => { export const exportBusiness = async (params) => { return await request.download({ url: `/crm/business/export-excel`, params }) } + +//联系人关联商机列表 +export const getBusinessPageByContact = async (params) => { + return await request.get({ url: `/crm/business/page-by-contact`, params }) +} diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index f983cb12..d0da7231 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -8,7 +8,7 @@ export interface ContactVO { email: string post: string customerId: number - address: string + detailAddress: string remark: string ownerUserId: string lastTime: Date @@ -26,6 +26,11 @@ export interface ContactVO { ownerUserName: string } +export interface ContactBusinessReqVO { + contactId: number + businessIds: number[] +} + // 查询 CRM 联系人列表 export const getContactPage = async (params) => { return await request.get({ url: `/crm/contact/page`, params }) @@ -65,3 +70,13 @@ export const exportContact = async (params) => { export const getSimpleContactList = async () => { return await request.get({ url: `/crm/contact/simple-all-list` }) } + +// 批量新增联系人商机关联 +export const createContactBusinessList = async (data: ContactBusinessReqVO) => { + return await request.post({ url: `/crm/contact/create-business-list`, data }) +} + +// 解除联系人商机关联 +export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => { + return await request.delete({ url: `/crm/contact/delete-business-list`, data }) +} diff --git a/src/api/crm/contactbusinesslink/index.ts b/src/api/crm/contactbusinesslink/index.ts deleted file mode 100644 index 45935abe..00000000 --- a/src/api/crm/contactbusinesslink/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -import request from '@/config/axios' - -export interface ContactBusinessLinkVO { - id: number - contactId: number - businessId: number -} - -// 查询联系人商机关联分页 -export const getContactBusinessLinkPage = async (params) => { - return await request.get({ url: `/crm/contact-business-link/page`, params }) -} - -// 查询联系人商机关联详情 -export const getContactBusinessLink = async (id: number) => { - return await request.get({ url: `/crm/contact-business-link/get?id=` + id }) -} - -// 新增联系人商机关联 -export const createContactBusinessLink = async (data: ContactBusinessLinkVO) => { - return await request.post({ url: `/crm/contact-business-link/create`, data }) -} - -// 修改联系人商机关联 -export const updateContactBusinessLink = async (data: ContactBusinessLinkVO) => { - return await request.put({ url: `/crm/contact-business-link/update`, data }) -} - -// 删除联系人商机关联 -export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => { - return await request.delete({ url: `/crm/contact-business-link/delete-batch`, data }) -} - -// 导出联系人商机关联 Excel -export const exportContactBusinessLink = async (params) => { - return await request.download({ url: `/crm/contact-business-link/export-excel`, params }) -} - -//批量新增联系人商机关联 -export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO[]) => { - return await request.post({ url: `/crm/contact-business-link/create-batch`, data }) -} -// 查询联系人关联商机列表 -export const getBusinessByContactPage = async (params) => { - return await request.get({ url: `/crm/contact-business-link/page-by-contact`, params }) -} -// TODO @zyna:根据后端,调整下请求 diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 5ef43950..a025e346 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -59,7 +59,7 @@ export const deleteCustomer = async (id: number) => { } // 导出客户 Excel -export const exportCustomer = async (params) => { +export const exportCustomer = async (params: any) => { return await request.download({ url: `/crm/customer/export-excel`, params }) } @@ -67,3 +67,13 @@ export const exportCustomer = async (params) => { export const queryAllList = async () => { return await request.get({ url: `/crm/customer/query-all-list` }) } + +// 查询客户操作日志 +export const getOperateLogPage = async (params: any) => { + return await request.get({ url: '/crm/customer/operate-log-page', params }) +} + +// 锁定/解锁客户 +export const lockCustomer = async (id: number, lockStatus: boolean) => { + return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } }) +} diff --git a/src/api/crm/customerLimitConfig/index.ts b/src/api/crm/customer/limitConfig/index.ts similarity index 100% rename from src/api/crm/customerLimitConfig/index.ts rename to src/api/crm/customer/limitConfig/index.ts diff --git a/src/api/crm/customerPoolConfig/index.ts b/src/api/crm/customer/poolConfig/index.ts similarity index 77% rename from src/api/crm/customerPoolConfig/index.ts rename to src/api/crm/customer/poolConfig/index.ts index 3cd8ef28..b96e61fc 100644 --- a/src/api/crm/customerPoolConfig/index.ts +++ b/src/api/crm/customer/poolConfig/index.ts @@ -1,12 +1,11 @@ import request from '@/config/axios' -import { ConfigVO } from '@/api/infra/config' export interface CustomerPoolConfigVO { enabled?: boolean contactExpireDays?: number dealExpireDays?: number notifyEnabled?: boolean - notifyDays: number + notifyDays?: number } // 获取客户公海规则设置 @@ -15,6 +14,6 @@ export const getCustomerPoolConfig = async () => { } // 更新客户公海规则设置 -export const saveCustomerPoolConfig = async (data: ConfigVO) => { +export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => { return await request.put({ url: `/crm/customer-pool-config/save`, data }) } diff --git a/src/api/report/ureport/index.ts b/src/api/report/ureport/index.ts new file mode 100644 index 00000000..2a9daea4 --- /dev/null +++ b/src/api/report/ureport/index.ts @@ -0,0 +1,39 @@ +import request from '@/config/axios' + +export interface UReportDataVO { + id: number + name: string + status: number + content: string + remark: string +} + +// 查询Ureport2报表分页 +export const getUReportDataPage = async (params) => { + return await request.get({ url: `/report/ureport-data/page`, params }) +} + +// 查询Ureport2报表详情 +export const getUReportData = async (id: number) => { + return await request.get({ url: `/report/ureport-data/get?id=` + id }) +} + +// 新增Ureport2报表 +export const createUReportData = async (data: UReportDataVO) => { + return await request.post({ url: `/report/ureport-data/create`, data }) +} + +// 修改Ureport2报表 +export const updateUReportData = async (data: UReportDataVO) => { + return await request.put({ url: `/report/ureport-data/update`, data }) +} + +// 删除Ureport2报表 +export const deleteUReportData = async (id: number) => { + return await request.delete({ url: `/report/ureport-data/delete?id=` + id }) +} + +// 导出Ureport2报表 Excel +export const exportUReportData = async (params) => { + return await request.download({ url: `/report/ureport-data/export-excel`, params }) +} diff --git a/src/api/system/operatelog/index.ts b/src/api/system/operatelog/index.ts index 848a5333..e5d3d364 100644 --- a/src/api/system/operatelog/index.ts +++ b/src/api/system/operatelog/index.ts @@ -23,6 +23,32 @@ export type OperateLogVO = { resultData: string } +export type OperateLogV2VO = { + id: number + userNickname: string + traceId: string + userType: number + userId: number + userName: string + type: string + subType: string + bizId: number + action: string + extra: string + requestMethod: string + requestUrl: string + userIp: string + userAgent: string + creator: string + creatorName: string + createTime: Date + // 数据扩展,渲染时使用 + title: string // 操作标题(如果为空则取 name 值) + colSize: number // 变更记录行数 + contentStrList: string[] + tagsContentList: string[] +} + // 查询操作日志列表 export const getOperateLogPage = (params: PageParam) => { return request.get({ url: '/system/operate-log/page', params }) diff --git a/src/components/AppLinkInput/data.ts b/src/components/AppLinkInput/data.ts index 0a8208eb..36412565 100644 --- a/src/components/AppLinkInput/data.ts +++ b/src/components/AppLinkInput/data.ts @@ -35,8 +35,6 @@ export const enum APP_LINK_TYPE_ENUM { PRODUCT_DETAIL_NORMAL, // 拼团商品详情 PRODUCT_DETAIL_COMBINATION, - // 积分商品详情 - PRODUCT_DETAIL_POINT, // 秒杀商品详情 PRODUCT_DETAIL_SECKILL } @@ -80,10 +78,6 @@ export const APP_LINK_GROUP_LIST = [ name: '系统设置', path: '/pages/public/setting' }, - { - name: '问题反馈', - path: '/pages/public/feedback' - }, { name: '常见问题', path: '/pages/public/faq' @@ -112,11 +106,6 @@ export const APP_LINK_GROUP_LIST = [ name: '秒杀商品详情', path: '/pages/goods/seckill', type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL - }, - { - name: '积分商品详情', - path: '/pages/goods/score', - type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_POINT } ] }, @@ -145,10 +134,6 @@ export const APP_LINK_GROUP_LIST = [ name: '签到中心', path: '/pages/app/sign' }, - { - name: '积分商城', - path: '/pages/app/score-shop' - }, { name: '优惠券中心', path: '/pages/coupon/list' @@ -172,10 +157,6 @@ export const APP_LINK_GROUP_LIST = [ name: '分销中心', path: '/pages/commission/index' }, - { - name: '申请分销商', - path: '/pages/commission/apply' - }, { name: '推广商品', path: '/pages/commission/goods' @@ -184,10 +165,6 @@ export const APP_LINK_GROUP_LIST = [ name: '分销订单', path: '/pages/commission/order' }, - { - name: '分享记录', - path: '/pages/commission/share-log' - }, { name: '我的团队', path: '/pages/commission/team' @@ -208,10 +185,6 @@ export const APP_LINK_GROUP_LIST = [ { name: '申请提现', path: '/pages/pay/withdraw' - }, - { - name: '提现记录', - path: '/pages/pay/withdraw-log' } ] }, @@ -242,10 +215,6 @@ export const APP_LINK_GROUP_LIST = [ name: '地址管理', path: '/pages/user/address/list' }, - { - name: '发票管理', - path: '/pages/user/invoice/list' - }, { name: '用户佣金', path: '/pages/user/wallet/commission' diff --git a/src/components/DiyEditor/components/ComponentContainer.vue b/src/components/DiyEditor/components/ComponentContainer.vue index e6f1beb3..0137278a 100644 --- a/src/components/DiyEditor/components/ComponentContainer.vue +++ b/src/components/DiyEditor/components/ComponentContainer.vue @@ -8,11 +8,11 @@
- +
{{ component.name }}
- +
@@ -54,7 +54,7 @@ import { propTypes } from '@/utils/propTypes' import { object } from 'vue-types' /** - * 组件容器 + * 组件容器:目前在中间部分 * 用于包裹组件,为组件提供 背景、外边距、内边距、边框等样式 */ defineOptions({ name: 'ComponentContainer' }) @@ -100,6 +100,7 @@ const emits = defineEmits<{ (e: 'copy'): void (e: 'delete'): void }>() + /** * 移动组件 * @param direction 移动方向 @@ -107,12 +108,14 @@ const emits = defineEmits<{ const handleMoveComponent = (direction: number) => { emits('move', direction) } + /** * 复制组件 */ const handleCopyComponent = () => { emits('copy') } + /** * 删除组件 */ diff --git a/src/components/DiyEditor/components/ComponentContainerProperty.vue b/src/components/DiyEditor/components/ComponentContainerProperty.vue index a8187898..4f48e204 100644 --- a/src/components/DiyEditor/components/ComponentContainerProperty.vue +++ b/src/components/DiyEditor/components/ComponentContainerProperty.vue @@ -1,8 +1,11 @@ \ No newline at end of file diff --git a/src/views/report/ureport/index.vue b/src/views/report/ureport/index.vue new file mode 100644 index 00000000..e9d6c0e4 --- /dev/null +++ b/src/views/report/ureport/index.vue @@ -0,0 +1,13 @@ +