| | |
| | | { |
| | | name: '开票', |
| | | type: 'line', |
| | | data: receiptAmount, |
| | | data: invoiceAmount, |
| | | stack: 'Total', |
| | | areaStyle: { |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | |
| | | { |
| | | name: '回款', |
| | | type: 'line', |
| | | data: invoiceAmount, |
| | | data: receiptAmount, |
| | | stack: 'Total', |
| | | lineStyle: { |
| | | width: 0 |
| | |
| | | const res = await approveAndDeviceTodos() |
| | | const { approveTodo, deviceRepairTodo } = res.data |
| | | |
| | | // 显示通知 |
| | | ElNotification({ |
| | | title: '待办事项提醒', |
| | | message: `当前有${approveTodo}条待审批事项,${deviceRepairTodo}条待维修事项`, |
| | | type: 'warning', |
| | | duration: 5000 |
| | | }) |
| | | // 当approveTodo和deviceRepairTodo合>0时显示通知 |
| | | if (approveTodo > 0 || deviceRepairTodo > 0) { |
| | | ElNotification({ |
| | | title: '待办事项提醒', |
| | | message: `当前有${approveTodo}条待审批事项,${deviceRepairTodo}条待维修事项`, |
| | | type: 'warning', |
| | | duration: 5000 |
| | | })} |
| | | } catch (error) { |
| | | console.error('获取协同待办事项失败:', error) |
| | | } |