2023-08-30 20:15:31 +08:00
|
|
|
<!--
|
|
|
|
* @Author: Kane
|
|
|
|
* @Date: 2023-08-30 14:08:57
|
|
|
|
* @LastEditors: Kane
|
|
|
|
* @FilePath: /task_schedule/src/components/CallerArchievementComponent.vue
|
|
|
|
* @Description:
|
|
|
|
*
|
|
|
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
|
|
-->
|
|
|
|
<template>
|
2023-08-31 20:34:36 +08:00
|
|
|
<div class="caller-archievment-wrapper">
|
2023-08-30 20:15:31 +08:00
|
|
|
<table>
|
2023-08-31 20:34:36 +08:00
|
|
|
<tr>
|
2023-09-01 19:05:30 +08:00
|
|
|
<td>坐席名称</td><td>{{ CallerName }}</td>
|
2023-08-31 20:34:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-09-01 19:05:30 +08:00
|
|
|
<td>车险保费</td><td>{{ PresentMonthPremium }} 万元</td>
|
2023-08-31 20:34:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-09-04 19:01:52 +08:00
|
|
|
<td>车非渗透率</td><td>{{ ui.attachingRate }}%</td>
|
2023-08-31 20:34:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-09-04 19:01:52 +08:00
|
|
|
<td>续保率</td><td>{{ ui.renewalRate }}%</td>
|
2023-08-31 20:34:36 +08:00
|
|
|
</tr>
|
2023-08-30 20:15:31 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
2023-09-01 19:05:30 +08:00
|
|
|
import { computed } from "vue";
|
|
|
|
interface CallerArchievementComponentUI
|
2023-08-30 20:15:31 +08:00
|
|
|
{
|
|
|
|
callerName: string,
|
|
|
|
thisMonthPremium: number,
|
|
|
|
attachingRate: string,
|
|
|
|
renewalRate: string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2023-08-31 20:34:36 +08:00
|
|
|
name: "CallerArchievementComponent",
|
2023-09-01 19:05:30 +08:00
|
|
|
props: {
|
|
|
|
callerName: {
|
|
|
|
type: String,
|
|
|
|
require: true,
|
|
|
|
default: (): string => "",
|
|
|
|
},
|
2023-08-30 20:15:31 +08:00
|
|
|
thisMonthPremium: {
|
|
|
|
type: Number,
|
|
|
|
require: true,
|
2023-09-01 19:05:30 +08:00
|
|
|
default: (): number => 0,
|
2023-08-30 20:15:31 +08:00
|
|
|
},
|
|
|
|
},
|
2023-09-01 19:05:30 +08:00
|
|
|
setup( props )
|
2023-08-30 20:15:31 +08:00
|
|
|
{
|
2023-09-01 19:05:30 +08:00
|
|
|
const ui: CallerArchievementComponentUI = {
|
2023-08-30 20:15:31 +08:00
|
|
|
callerName: "",
|
|
|
|
thisMonthPremium: 0,
|
|
|
|
attachingRate: "0.0",
|
|
|
|
renewalRate: "0.0",
|
|
|
|
};
|
|
|
|
|
2023-09-01 19:05:30 +08:00
|
|
|
const PresentMonthPremium = computed((): string =>
|
|
|
|
{
|
|
|
|
return ( props.thisMonthPremium / 10000 ).toFixed( 2 );
|
|
|
|
});
|
|
|
|
|
|
|
|
const CallerName = computed((): string =>
|
|
|
|
{
|
|
|
|
return props.callerName;
|
|
|
|
});
|
2023-09-04 19:01:52 +08:00
|
|
|
|
2023-09-01 19:05:30 +08:00
|
|
|
return {
|
|
|
|
CallerName,
|
|
|
|
PresentMonthPremium,
|
|
|
|
ui,
|
|
|
|
};
|
2023-08-30 20:15:31 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
2023-09-04 19:01:52 +08:00
|
|
|
.caller-archievment-wrapper
|
|
|
|
{
|
|
|
|
width: 100%;
|
|
|
|
}
|
2023-09-01 19:05:30 +08:00
|
|
|
</style>
|