spring
6 天以前 f7165c61dd8a808132c09096f5a367565387f3e4
src/views/warehouseManagement/index.vue
@@ -68,6 +68,7 @@
          style="width: 100%; height: calc(100vh - 30em)"
          show-summary
          :summary-method="summarizeChildrenTable"
          :row-class-name="tableRowClassName"
        >
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column
@@ -897,6 +898,14 @@
    }
  });
};
// 添加判断行类名的函数
const tableRowClassName = (row) => {
  if (activeTab.value === 'officialInventory' && row.row.inventoryQuantity < 3) {
    return 'low-inventory-row';
  }
  return '';
};
// 关闭审核弹框
const cancelReview = () => {
  proxy.$refs.formRef.resetFields();
@@ -908,4 +917,8 @@
:deep(.el-table) {
  margin: 20px 0;
}
:deep(.low-inventory-row) {
  background-color: #ffcccc;
}
</style>