feat(warning): 库存预警邮件支持顺延发送,前端物料列表新增预警状态展示列
This commit is contained in:
@ -302,6 +302,22 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="userStore.hasPermission('material_list:view_warning')" label="预警状态" width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
<template v-if="row.warningStatus === 2">
|
||||
<el-tag type="danger" size="small">红色预警</el-tag>
|
||||
<div style="font-size: 11px; color: #999;">阈值: {{ row.warningRed }}</div>
|
||||
</template>
|
||||
<template v-else-if="row.warningStatus === 1">
|
||||
<el-tag type="warning" size="small">黄色预警</el-tag>
|
||||
<div style="font-size: 11px; color: #999;">阈值: {{ row.warningYellow }}</div>
|
||||
</template>
|
||||
<template v-else-if="row.warningEnabled">
|
||||
<el-tag type="success" size="small">已配置</el-tag>
|
||||
</template>
|
||||
<span v-else style="color: #c0c4cc;">-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="userStore.hasPermission('material_list:operation')" label="操作" width="280" fixed="right" align="center">
|
||||
<template #default="scope">
|
||||
<el-button v-if="userStore.hasPermission('material_list:operation')" link type="primary" size="small" @click="handleEdit(scope.row)">编辑</el-button>
|
||||
|
||||
Reference in New Issue
Block a user