From 1422c0b781832c9828d534069b26d2eb86fa1364 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Fri, 27 Oct 2023 16:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/db/pkg/telsale_archievement_pkg.pck | 72 +++++++++---------- code/db/甯哥敤璇彞.sql | 31 +++++++- .../src/assets/css/public/variables.scss | 12 +++- .../src/components/DishonorListComponent.vue | 4 +- .../src/components/HonorListComponent.vue | 9 +-- .../src/views/DesktopArchievement.vue | 2 +- 6 files changed, 80 insertions(+), 50 deletions(-) diff --git a/code/db/pkg/telsale_archievement_pkg.pck b/code/db/pkg/telsale_archievement_pkg.pck index 01dc3dd..6e16c7a 100644 --- a/code/db/pkg/telsale_archievement_pkg.pck +++ b/code/db/pkg/telsale_archievement_pkg.pck @@ -145,18 +145,29 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS a_present_month OUT NUMBER, a_mensual_cur OUT cur_type ) IS - l_caller_name VARCHAR2(100); - l_this_month VARCHAR2(4); - l_this_year VARCHAR2(4); - l_firstday DATE; - l_rownum INTEGER; + l_caller_name VARCHAR2(100); + l_department_name VARCHAR2(100); + --l_this_month VARCHAR2(4); + l_this_year VARCHAR2(4); + --l_firstday DATE; + l_rownum INTEGER; BEGIN - --查询坐席名称,验证代码 + --查询坐席名称,和部门名称,验证代码 BEGIN - SELECT saler_name - INTO l_caller_name - FROM tele_saler - WHERE saler_code = a_caller_code; + SELECT zx.saler_name, + bm.department_name + INTO l_caller_name, + l_department_name + FROM tele_saler zx, + tele_saler_team team, + idst0.bm_t bm + WHERE zx.saler_code = a_caller_code + AND zx.team_code = team.team_code + AND team.department_code = bm.department_code; + /* SELECT saler_name + INTO l_caller_name + FROM tele_saler + WHERE saler_code = a_caller_code;*/ EXCEPTION -- 如果没有查询到坐席名称,说明代码有误,抛出异常 WHEN no_data_found THEN @@ -164,12 +175,12 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS CALLERCODE_EXCEPTION_MSG); END; - l_this_month := to_char(SYSDATE, - 'mm'); - l_this_year := to_char(SYSDATE, - 'yyyy'); - l_firstday := to_date(l_this_year || '-01-01 00:00:00', - 'yyyy-mm-dd hh24:mi:ss'); + --l_this_month := to_char(SYSDATE, + -- 'mm'); + l_this_year := to_char(SYSDATE, + 'yyyy'); + --l_firstday := to_date(l_this_year || '-01-01 00:00:00', + -- 'yyyy-mm-dd hh24:mi:ss'); --总车险保费 SELECT round(nvl(SUM(cf.车险个人客户保费), @@ -177,7 +188,8 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS 2) bf INTO a_total FROM 坐席车非每日保费 cf - WHERE cf.坐席工号 = a_caller_code + WHERE cf.坐席名称 = l_caller_name + AND cf.部门 = l_department_name AND cf.年份 = l_this_year; --渗透率 @@ -194,28 +206,7 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS FROM BI电销坐席车非渗透率跟踪表 t WHERE t.经办 = l_caller_name AND rownum = 1; - /*SELECT decode(nvl(SUM(cf.车险个人客户保费), - 0), - 0, - 0, - round(SUM(cf.车非融合保费) / SUM(cf.车险个人客户保费) * 100, - 2)) - INTO a_attaching_rate - FROM 坐席车非每日保费 cf - WHERE cf.坐席工号 = a_caller_code - AND cf.年份 = l_this_year - AND cf.月份 = l_this_month;*/ - --续保率 - /*SELECT decode(nvl(SUM(xb.到期数), - 0), - 0, - 0, - round(SUM(xb.已续保累计) / SUM(xb.到期数) * 100, - 2)) xbl - INTO a_renewal_rate - FROM 坐席续保统计 xb - WHERE xb.坐席工号 = a_caller_code;*/ SELECT rownum, round(nvl(t."个车续保率(全月)(%)", 0), @@ -229,11 +220,12 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS --每月业绩 OPEN A_MENSUAL_CUR FOR SELECT CF.月份 MM, - ROUND(NVL(SUM(CF.车险个人客户保费 + CF.车非融合保费), + ROUND(NVL(SUM(CF.车险个人客户保费), 0), 0) BF FROM 坐席车非每日保费 CF - WHERE cf.坐席工号 = a_caller_code + WHERE cf.坐席名称 = l_caller_name + AND cf.部门 = l_department_name AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE, 'yyyy') || '-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') diff --git a/code/db/甯哥敤璇彞.sql b/code/db/甯哥敤璇彞.sql index de0fd2d..915dc63 100644 --- a/code/db/甯哥敤璇彞.sql +++ b/code/db/甯哥敤璇彞.sql @@ -52,7 +52,7 @@ SELECT GROUP BY 月份, 部门代码, 坐席名称 -HAVING 月份 = '06月' +HAVING 月份 = '10月' ORDER BY 部门代码, 车非渗透率 DESC; @@ -61,7 +61,7 @@ SELECT 2) 车非渗透率 FROM 坐席车非每日保费 WHERE 部门代码 = 'QDI' - AND 月份 = '05' + AND 月份 = '10' AND 年份 = '2023' GROUP BY 坐席名称 ORDER BY 车非渗透率 DESC; @@ -75,3 +75,30 @@ SELECT WHERE xb.部门 = '续保业务部' GROUP BY 坐席名称 ORDER BY 坐席名称 DESC; +------------------------------------- +SELECT zx.saler_name, + bm.department_name + FROM tele_saler zx, + tele_saler_team team, + idst0.bm_t bm + WHERE zx.saler_name = '张楚沂' + AND zx.team_code = team.team_code + AND team.department_code = bm.department_code; +---------------------------------------- +/* +truncate table BI机构渗透率跟踪表; +*/ + +SELECT * + FROM BI电销坐席车非渗透率跟踪表 t + WHERE t.经办 = '张楚沂'; + +SELECT * + FROM BI电销坐席续保率跟踪表 + WHERE 责任人 = '张楚沂'; + +SELECT * + FROM BI机构渗透率跟踪表; + +SELECT * + FROM BI机构当月个车续保率跟踪表; diff --git a/code/web/task_schedule/src/assets/css/public/variables.scss b/code/web/task_schedule/src/assets/css/public/variables.scss index 5f3a65e..de5b57a 100644 --- a/code/web/task_schedule/src/assets/css/public/variables.scss +++ b/code/web/task_schedule/src/assets/css/public/variables.scss @@ -2,18 +2,28 @@ * @Author: Kane * @Date: 2023-02-28 19:25:30 * @LastEditors: Kane - * @FilePath: /task_schedule/src/assets/css/public/global.scss + * @FilePath: /task_schedule/src/assets/css/public/variables.scss * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ // color +/* $color-bg-01: #fecb96; $color-bg-02: #f7954e; $color-bg-03: #f27620; $color-bg-04: #da3703; $color-bg-05: #ba1800; +*/ + +$color-bg-01: #00b2f8; +$color-bg-02: #00b0fb; +$color-bg-03: #0279ea; +$color-bg-04: #046ed6; +$color-bg-05: #033eb6; + +$color-title-font: #046ed6; $color-charts-bg: #ffffff9f; $color-honorlist-bg: rgba(255, 255, 255, 0.3); diff --git a/code/web/task_schedule/src/components/DishonorListComponent.vue b/code/web/task_schedule/src/components/DishonorListComponent.vue index 66e497f..7f6211c 100644 --- a/code/web/task_schedule/src/components/DishonorListComponent.vue +++ b/code/web/task_schedule/src/components/DishonorListComponent.vue @@ -15,8 +15,8 @@ alt="" >
- "娑8鐏70"绐佸洿鎴 - {{ props.month }}鏈堝叆钀ュ潗甯 + 鈥滄秷 8 鐏 6 绐佸洿鎴樷 + 鎸囨爣钀藉悗鍏ヨ惀鍧愬腑
diff --git a/code/web/task_schedule/src/components/HonorListComponent.vue b/code/web/task_schedule/src/components/HonorListComponent.vue index d5081b8..9db743f 100644 --- a/code/web/task_schedule/src/components/HonorListComponent.vue +++ b/code/web/task_schedule/src/components/HonorListComponent.vue @@ -9,7 +9,7 @@ -->