| | |
| | | <div class="todo-division">待办事由:{{ item.approveReason }}</div> |
| | | <div style="display: flex;justify-content: space-between;align-items: center;" |
| | | > |
| | | <div class="todo-title">申请类型:{{ item.approveId }}</div> |
| | | <div class="todo-title">申请类型:{{ item.approveTypeName }}</div> |
| | | <div class="todo-division">申请部门:{{ item.approveDeptName }}</div> |
| | | <div class="todo-time">{{ item.approveTime }}</div> |
| | | </div> |
| | |
| | | |
| | | <script setup> |
| | | import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue' |
| | | import { homeTodos } from '@/api/viewIndex.js' |
| | | import { staffOnJobListPage } from '@/api/personnelManagement/employeeRecord.js' |
| | | import { listCustomer } from '@/api/basicData/customerFile.js' |
| | | import { listSupplier } from '@/api/basicData/supplierManageFile.js' |
| | | import { homeTodos, summaryStatistics } from '@/api/viewIndex.js' |
| | | import { getLedgerPage } from '@/api/equipmentManagement/ledger.js' |
| | | import { getRepairPage } from '@/api/equipmentManagement/repair.js' |
| | | import { getUpkeepPage } from '@/api/equipmentManagement/upkeep.js' |
| | |
| | | const totalStaff = ref(0) |
| | | const totalCustomers = ref(0) |
| | | const totalSuppliers = ref(0) |
| | | // 同比(占位值,可接入真实接口) |
| | | const staffYoY = ref(-0.52) // 示例:-0.52% |
| | | const customersYoY = ref(0.82) // 示例:0.82% |
| | | const suppliersYoY = ref(0.1) // 示例:0.10% |
| | | // 同比 |
| | | const staffYoY = ref(0) |
| | | const customersYoY = ref(0) |
| | | const suppliersYoY = ref(0) |
| | | const equipmentNum = ref(0) |
| | | const equipmentRepair = ref(0) |
| | | const equipmentMaintain = ref(0) |
| | |
| | | |
| | | // 获取员工、客户、供应商数量 |
| | | const getNum = () => { |
| | | const params = { |
| | | pageNum: -1, |
| | | pageSize: -1, |
| | | } |
| | | staffOnJobListPage({ ...params, staffState: 1 }).then((res) => { |
| | | totalStaff.value = res.data.total |
| | | }) |
| | | listCustomer(params).then((res) => { |
| | | totalCustomers.value = res.total |
| | | }) |
| | | listSupplier(params).then((res) => { |
| | | totalSuppliers.value = res.data.total |
| | | summaryStatistics().then((res) => { |
| | | totalStaff.value = res.data.totalStaff |
| | | staffYoY.value = res.data.staffGrowthRate |
| | | totalCustomers.value = res.data.totalCustomer |
| | | customersYoY.value = res.data.customerGrowthRate |
| | | totalSuppliers.value = res.data.totalSupplier |
| | | suppliersYoY.value = res.data.supplierGrowthRate |
| | | }).catch(err => { |
| | | console.error('获取基础统计数据失败:', err) |
| | | }) |
| | | } |
| | | |
| | |
| | | color: #d0e7ff; |
| | | } |
| | | |
| | | .card-compare > span:first-child { |
| | | font-size: 13px; |
| | | opacity: 0.8; |
| | | } |
| | | |
| | | .compare-value { |
| | | font-weight: 600; |
| | | } |