From 1f314a43f16e18a1f985409b56ab13ff56204ecc Mon Sep 17 00:00:00 2001 From: kaeery <3491123437@qq.com> Date: Fri, 28 Feb 2025 22:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=9B=E7=94=9F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E3=80=91=20=E6=96=B0=E5=A2=9E#=20=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E6=80=BB=E7=BB=93=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8=E3=80=81?= =?UTF-8?q?=E5=AD=90=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=BB=84=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/summary/index.ts | 4 ++ src/components/daterange-picker/index.vue | 26 +++++++++---- src/enums/index.ts | 4 ++ src/hooks/useCommon.ts | 9 +++-- .../account-list/account-dialog.vue | 26 +++++++++---- .../sub_account/modules/account-list.vue | 27 ++++++++----- src/views/summary/index.vue | 7 +++- .../summary/modules/record-search-form.vue | 14 +++---- src/views/summary/modules/summary-record.vue | 38 ++++++++++++++----- 9 files changed, 109 insertions(+), 46 deletions(-) diff --git a/src/api/summary/index.ts b/src/api/summary/index.ts index 3ad80a9..ac7a88f 100644 --- a/src/api/summary/index.ts +++ b/src/api/summary/index.ts @@ -20,3 +20,7 @@ export function templateDetail(params: any) { export function templateDelete(params: any) { return request.post({ url: '/template/del', params }) } +// 总结列表 +export function summaryRecordLists(params: any) { + return request.get({ url: '/summary/template/list', params }) +} diff --git a/src/components/daterange-picker/index.vue b/src/components/daterange-picker/index.vue index 094cd49..aba6dbd 100644 --- a/src/components/daterange-picker/index.vue +++ b/src/components/daterange-picker/index.vue @@ -1,7 +1,17 @@ \ No newline at end of file + diff --git a/src/enums/index.ts b/src/enums/index.ts index 2cfdcb2..afcbb46 100644 --- a/src/enums/index.ts +++ b/src/enums/index.ts @@ -92,6 +92,10 @@ export const clueStepMap: Record = { [clueStepEnum.CLUE_COMPLETED]: '转化完成', [clueStepEnum.UPDATE_CLUSE_PROGRESS]: '修改跟进' } +export enum groupLeaderEnum { + YES = 1, + NO = 0 +} const keys: Record = { conversionMap: conversionMap, diff --git a/src/hooks/useCommon.ts b/src/hooks/useCommon.ts index 630eaa8..7b93126 100644 --- a/src/hooks/useCommon.ts +++ b/src/hooks/useCommon.ts @@ -28,6 +28,7 @@ export interface GroupProp { id: number groupName: string } + export function useCommon() { const categoryLists = ref([]) const groupLists = ref([]) @@ -133,7 +134,7 @@ export function useAuthStaffOperation(component: Component, isGoBack = false, ev const filedKey = msg === '意见反馈' ? 'reply' : msg === '提现' ? 'failReason' : 'refuseReason' const identity = msg == '提现' ? '分销商' : '师傅' const { id } = row - let data = { id, status: OperationEnumMap[type] } + const data = { id, status: OperationEnumMap[type] } type === OperationTextEnum.SUCCESS ? feedback .confirm(`您确定通过【${row[field]}】${identity}的${msg}申请吗?`) @@ -204,7 +205,7 @@ export function useUploadMoreAction() { return new Promise((resolve, reject) => { const text = type === 'pdf' ? '文件' : '图片' if (!isImage(file, type)) { - let msg = type === 'pdf' ? 'pdf' : 'jpg,png,jpeg' + const msg = type === 'pdf' ? 'pdf' : 'jpg,png,jpeg' toast(`请上传${msg}格式的${text}`, 'error') fileList.splice(-1, 1) uploadRef.value?.abort(file) @@ -242,7 +243,7 @@ export function useUploadMoreAction() { type: 'warning' }) .then(() => { - let index = fileList.indexOf(file) + const index = fileList.indexOf(file) fileList.splice(index, 1) fileUploadList.value[type] = fileList }) @@ -256,7 +257,7 @@ export function useUploadMoreAction() { const handlePreview = (file: UploadFile, type: string) => { if (!unref(fileUploadList)[type].length) return imgViewerVisible.value = true - let index = unref(fileUploadList)[type].indexOf(file) + const index = unref(fileUploadList)[type].indexOf(file) viewerIndex.value = index previewSrcList.value = unref(fileUploadList)[type].map(file => file.url!) } diff --git a/src/views/account_center/sub_account/components/account-list/account-dialog.vue b/src/views/account_center/sub_account/components/account-list/account-dialog.vue index 9b3b457..f5a47d6 100644 --- a/src/views/account_center/sub_account/components/account-list/account-dialog.vue +++ b/src/views/account_center/sub_account/components/account-list/account-dialog.vue @@ -47,9 +47,8 @@ {{ option.label }} @@ -66,7 +65,7 @@