MSI\derek 1 месяц назад
Родитель
Сommit
dfec980d4a
1 измененных файлов: 4 добавлений и 1 удалений
  1. +4
    -1
      src/components/DetailScheduleDetail/ViewByFGDetails.tsx

+ 4
- 1
src/components/DetailScheduleDetail/ViewByFGDetails.tsx Просмотреть файл

@@ -40,6 +40,8 @@ export type FGRecord = {
inStockQty: number;
productionQty?: number;
purchaseQty?: number;
safetyStock?: number;
lastMonthAvgStock?: number
};

const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => {
@@ -1742,7 +1744,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => {
},
]);

const updatePagingController = (updatedObj) => {
const updatePagingController = (updatedObj: any) => {
setPagingController((prevState) => {
return prevState.map((item, index) => {
if (index === updatedObj?.index) {
@@ -2176,6 +2178,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => {
{`${t("FG Demand Date")}: ${date}`}
</Typography> */}
<EditableSearchResults<FGRecord>
index={1}
items={fakeRecords[index]} // Use the corresponding records for the day
columns={columns}
setPagingController={updatePagingController}


Загрузка…
Отмена
Сохранить