|
|
@@ -0,0 +1,98 @@
|
|
|
+<template>
|
|
|
+ <div class="flex full-width flex-col">
|
|
|
+ <div class="flex flex-center full-width flex-justify-between">
|
|
|
+ <span class="bold font-16">{{ user.info.deptName }}</span>
|
|
|
+ <span class="font-13 grey-9 mr-10">数据统计时间:{{ date }}</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="flex flex-center flex-justify-between mb-15 ml-20"
|
|
|
+ style="margin-top: 50px"
|
|
|
+ >
|
|
|
+ <div class="flex flex-col flex-center">
|
|
|
+ <span class="bold">年度责任目标</span>
|
|
|
+ <span class="mt-15 font-34 main-color"
|
|
|
+ >{{ info.plan_complete_amount
|
|
|
+ }}<span class="font-13 black">万元</span></span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="flex flex-col flex-center">
|
|
|
+ <span class="bold">累计完成投资</span>
|
|
|
+ <span class="mt-15 font-34 main-color"
|
|
|
+ >{{ info.total_complete_amount
|
|
|
+ }}<span class="font-13 black">万元</span></span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="flex flex-col flex-center">
|
|
|
+ <span class="bold">投资完成比例</span>
|
|
|
+ <span class="mt-15 font-34 main-color"
|
|
|
+ >{{ info.rate }}<span class="font-13 black"></span
|
|
|
+ ></span>
|
|
|
+ </div>
|
|
|
+ <div class="flex flex-col flex-center mr-20">
|
|
|
+ <span class="bold">当月计划投资</span>
|
|
|
+ <span class="mt-15 font-34 main-color"
|
|
|
+ >{{ info.month_plan_complete_amount
|
|
|
+ }}<span class="font-13 black">万元</span></span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="flex flex-col flex-center mr-20">
|
|
|
+ <span class="bold">当月完成投资</span>
|
|
|
+ <span class="mt-15 font-34 main-color"
|
|
|
+ >{{ info.month_total_complete_amount
|
|
|
+ }}<span class="font-13 black">万元</span></span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { useStore } from '@/store/user.js'
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'owner',
|
|
|
+ setup() {
|
|
|
+ const user = useStore()
|
|
|
+ return { user }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ date: '',
|
|
|
+ year: '',
|
|
|
+ info: {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.fetch()
|
|
|
+ // 获取当前日期
|
|
|
+ const date = new Date()
|
|
|
+ let nowMonth = date.getMonth() + 1
|
|
|
+ let strDate = date.getDate()
|
|
|
+ const seperator = '-'
|
|
|
+ if (nowMonth >= 1 && nowMonth <= 9) {
|
|
|
+ nowMonth = '0' + nowMonth
|
|
|
+ }
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = '0' + strDate
|
|
|
+ }
|
|
|
+ this.date = date.getFullYear() + seperator + nowMonth + seperator + strDate
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ fetch() {
|
|
|
+ let params = {
|
|
|
+ deptId: this.user.info.deptId,
|
|
|
+ year: new Date().getFullYear()
|
|
|
+ }
|
|
|
+ this.$api.invest.homeInvest(params).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.info = res.data
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss"></style>
|