Fixed disappearing cards on production board.
This commit is contained in:
@@ -2,25 +2,30 @@ import React from "react";
|
||||
import { Card, Row, Col } from "antd";
|
||||
import { DateTimeFormatter } from "../../utils/DateFormatter";
|
||||
import ProductionAlert from "../production-list-columns/production-list-columns.alert.component";
|
||||
import { EyeFilled } from "@ant-design/icons";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
export default function ProductionBoardCard(card) {
|
||||
console.log("card", card);
|
||||
// console.log("card", card);
|
||||
return (
|
||||
<Card
|
||||
className="react-kanban-card"
|
||||
className='react-kanban-card'
|
||||
style={{ margin: ".2rem 0rem" }}
|
||||
actions={
|
||||
<div>
|
||||
<ProductionAlert record={card} />
|
||||
</div>
|
||||
}
|
||||
size="small"
|
||||
actions={[
|
||||
<ProductionAlert record={card} key='alert' />,
|
||||
<Link to={`/manage/jobs/${card.id}`}>
|
||||
<EyeFilled key='setting' />
|
||||
</Link>,
|
||||
]}
|
||||
size='small'
|
||||
title={`${card.ro_number || card.est_number} - ${card.ownr_ln} - ${
|
||||
card.v_model_yr
|
||||
} ${card.v_make_desc.substring(0, 4) || ""} ${card.v_model_desc || ""}`}
|
||||
>
|
||||
} ${card.v_make_desc.substring(0, 4) || ""} ${card.v_model_desc || ""}`}>
|
||||
<Row>
|
||||
<Col span={12}></Col>
|
||||
<Col span={12}>
|
||||
<div>{`B: ${card.labhrs || "?"}`}</div>
|
||||
<div>{`R: ${card.labhrs || "?"}`}</div>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<DateTimeFormatter>{card.scheduled_completion}</DateTimeFormatter>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user