浏览代码

update

master
CANCERYS\kw093 2 天前
父节点
当前提交
3e808d454f
共有 3 个文件被更改,包括 8 次插入7 次删除
  1. +1
    -1
      src/components/PickOrderSearch/LotTable.tsx
  2. +3
    -2
      src/components/PickOrderSearch/SearchResultsTable.tsx
  3. +4
    -4
      src/components/PickOrderSearch/newcreatitem.tsx

+ 1
- 1
src/components/PickOrderSearch/LotTable.tsx 查看文件

@@ -358,7 +358,7 @@ const LotTable: React.FC<LotTableProps> = ({
checked={selectedLotRowId === `row_${index}`}
onChange={() => onLotSelection(`row_${index}`, lot.lotId)}
// ✅ Allow selection of available AND insufficient_stock lots
disabled={lot.lotAvailability === 'expired' || lot.lotAvailability === 'status_unavailable'}
//disabled={lot.lotAvailability === 'expired' || lot.lotAvailability === 'status_unavailable'}
value={`row_${index}`}
name="lot-selection"
/>


+ 3
- 2
src/components/PickOrderSearch/SearchResultsTable.tsx 查看文件

@@ -167,7 +167,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
color={item.currentStockBalance && item.currentStockBalance > 0 ? "success.main" : "error.main"}
sx={{ fontWeight: item.currentStockBalance && item.currentStockBalance > 0 ? 'bold' : 'normal' }}
>
{item.currentStockBalance || 0}
{item.currentStockBalance?.toLocaleString()||0}
</Typography>
</TableCell>
@@ -177,6 +177,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
{item.uomDesc || "-"}
</Typography>
</TableCell>
<TableCell align="right">
{/* Order Quantity */}

@@ -208,7 +209,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
}}
disabled={isItemInCreated(item.id)}
/>
</TableCell>
{/* Target Date */}
<TableCell align="right">
<Typography variant="body2">


+ 4
- 4
src/components/PickOrderSearch/newcreatitem.tsx 查看文件

@@ -1029,10 +1029,10 @@ const handleQtyBlur = useCallback((itemId: number) => {
color={stockBalance > 0 ? "success.main" : "error.main"}
sx={{ fontWeight: stockBalance > 0 ? 'bold' : 'normal' }}
>
{stockBalance}
{stockBalance?.toLocaleString() }
</Typography>
);
},
);
},
},
{
name: "targetDate",
@@ -1191,7 +1191,7 @@ const handleQtyBlur = useCallback((itemId: number) => {
textAlign: 'right' // Add right alignment for the value
}}
>
{stockBalance}
{stockBalance?.toLocaleString() }
</Typography>
</Box>
);


正在加载...
取消
保存