|
@ -32,7 +32,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="two-row mt-14px"> |
|
|
<div class="two-row mt-14px"> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
<div class="data1 w-[47.3%]" > |
|
|
|
|
|
<!-- 呆滞库存预警 --> |
|
|
<div class="title">{{ t('home.slack_stock_warning')}}</div> |
|
|
<div class="title">{{ t('home.slack_stock_warning')}}</div> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="materialData?.stagnantBalanceList" |
|
|
:data="materialData?.stagnantBalanceList" |
|
@ -87,8 +88,19 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
<!-- <el-pagination style="margin-top:10px" |
|
|
|
|
|
v-model:current-page="currentPage_stagnantBalance" |
|
|
|
|
|
v-model:page-size="pageSize_stagnantBalance" |
|
|
|
|
|
:page-sizes="[10, 20, 30, 50, 100]" |
|
|
|
|
|
:small="true" |
|
|
|
|
|
:background="false" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
|
:total="total_stagnantBalance" |
|
|
|
|
|
@current-change="handleCurrentChange_stagnantBalance" |
|
|
|
|
|
/> --> |
|
|
</div> |
|
|
</div> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
|
|
|
<!-- 超期库存预警 --> |
|
|
<div class="title">{{ t('home.overstock_warning') }}</div> |
|
|
<div class="title">{{ t('home.overstock_warning') }}</div> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="materialData?.overdueBalanceList" |
|
|
:data="materialData?.overdueBalanceList" |
|
@ -143,10 +155,21 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
<!-- <el-pagination style="margin-top:10px" |
|
|
|
|
|
v-model:current-page="currentPage_overdueBalance" |
|
|
|
|
|
v-model:page-size="pageSize_overdueBalance" |
|
|
|
|
|
:page-sizes="[10, 20, 30, 50, 100]" |
|
|
|
|
|
:small="true" |
|
|
|
|
|
:background="false" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
|
:total="total_overdueBalance" |
|
|
|
|
|
@current-change="handleCurrentChange_overdueBalance" |
|
|
|
|
|
/> --> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="two-row mt-14px"> |
|
|
<div class="two-row mt-14px"> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
|
|
|
<!-- 高低储预警 --> |
|
|
<div class="title">{{ t('home.high_and_low_storage_warning') }}</div> |
|
|
<div class="title">{{ t('home.high_and_low_storage_warning') }}</div> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="materialData?.warningBalanceList" |
|
|
:data="materialData?.warningBalanceList" |
|
@ -201,8 +224,19 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
<!-- <el-pagination style="margin-top:10px" |
|
|
|
|
|
v-model:current-page="currentPage_warningBalance" |
|
|
|
|
|
v-model:page-size="pageSize_warningBalance" |
|
|
|
|
|
:page-sizes="[10, 20, 30, 50, 100]" |
|
|
|
|
|
:small="true" |
|
|
|
|
|
:background="false" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
|
:total="total_warningBalance" |
|
|
|
|
|
@current-change="handleCurrentChange_warningBalance" |
|
|
|
|
|
/> --> |
|
|
</div> |
|
|
</div> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
<div class="data1 w-[47.3%]"> |
|
|
|
|
|
<!-- 待处理任务 --> |
|
|
<div class="title">{{ t('home.waiting_tasks') }}</div> |
|
|
<div class="title">{{ t('home.waiting_tasks') }}</div> |
|
|
<Echart :options="barOptions" :height="280" :key="lineIndex" /> |
|
|
<Echart :options="barOptions" :height="280" :key="lineIndex" /> |
|
|
</div> |
|
|
</div> |
|
@ -222,8 +256,8 @@ const lineIndex = ref(0) |
|
|
|
|
|
|
|
|
const materialData = ref() |
|
|
const materialData = ref() |
|
|
// 获取原料管理员数据 |
|
|
// 获取原料管理员数据 |
|
|
const getMaterialData = async () => { |
|
|
const getMaterialData = () => { |
|
|
await IndexApi.getMaterialData().then((res) => { |
|
|
IndexApi.getMaterialData().then((res) => { |
|
|
materialData.value = res |
|
|
materialData.value = res |
|
|
getJobCharts() |
|
|
getJobCharts() |
|
|
}) |
|
|
}) |
|
@ -250,9 +284,33 @@ const getJobCharts = async () => { |
|
|
]) |
|
|
]) |
|
|
lineIndex.value++ |
|
|
lineIndex.value++ |
|
|
} |
|
|
} |
|
|
onMounted(async () => { |
|
|
onMounted(() => { |
|
|
// await getMaterialData() |
|
|
// 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) |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
.title { |
|
|
.title { |
|
|