diff --git a/src/views/home/components/material.vue b/src/views/home/components/material.vue index 2649ab4b3..efe37218d 100644 --- a/src/views/home/components/material.vue +++ b/src/views/home/components/material.vue @@ -32,7 +32,8 @@
-
+
+
{{ t('home.slack_stock_warning')}}
+
+
{{ t('home.overstock_warning') }}
+
+
{{ t('home.high_and_low_storage_warning') }}
+
+
{{ t('home.waiting_tasks') }}
@@ -222,8 +256,8 @@ const lineIndex = ref(0) const materialData = ref() // 获取原料管理员数据 -const getMaterialData = async () => { - await IndexApi.getMaterialData().then((res) => { +const getMaterialData = () => { + IndexApi.getMaterialData().then((res) => { materialData.value = res getJobCharts() }) @@ -250,9 +284,33 @@ const getJobCharts = async () => { ]) lineIndex.value++ } -onMounted(async () => { - // await getMaterialData() +onMounted(() => { + // getMaterialData() }) + +// 呆滞库存预警 +const currentPage_stagnantBalance = ref(1) +const pageSize_stagnantBalance = ref(10) +const total_stagnantBalance= ref(100) +const handleCurrentChange_stagnantBalance = (val)=>{ + console.log('呆滞库存预警',val) +} + +// 超期库存预警 +const currentPage_overdueBalance = ref(1) +const pageSize_overdueBalance = ref(10) +const total_overdueBalance= ref(100) +const handleCurrentChange_overdueBalance = (val)=>{ + console.log('超期库存预警',val) +} + +// 高低储预警 +const currentPage_warningBalance = ref(1) +const pageSize_warningBalance = ref(10) +const total_warningBalance= ref(100) +const handleCurrentChange_warningBalance = (val)=>{ + console.log('高低储预警',val) +}