diff --git a/src/components/Qc/QcStockInModal.tsx b/src/components/Qc/QcStockInModal.tsx
index 7c2be1e..653b68d 100644
--- a/src/components/Qc/QcStockInModal.tsx
+++ b/src/components/Qc/QcStockInModal.tsx
@@ -710,9 +710,9 @@ const printQrcode = useCallback(
{stockInLineInfo.jobOrderId ? (
-
+
) : (
-
+
)
}
{skipQc === false && (
diff --git a/src/components/StockIn/CalculateExpiryDateModal.tsx b/src/components/StockIn/CalculateExpiryDateModal.tsx
index e49f621..e14f160 100644
--- a/src/components/StockIn/CalculateExpiryDateModal.tsx
+++ b/src/components/StockIn/CalculateExpiryDateModal.tsx
@@ -161,7 +161,7 @@ const CalculateExpiryDateModal: React.FC = ({
style={{
flex: 10,
marginBottom: "20px",
- width: "80%",
+ width: "70%",
// height: "80%",
position: "fixed",
top: "50%",
@@ -191,8 +191,8 @@ const CalculateExpiryDateModal: React.FC = ({
adapterLocale={`${language}-hk`}
>
-
- {t("Fill in Expiry Date")}
+
+ {t("Fill in Expiry Date")}
@@ -228,12 +228,13 @@ const CalculateExpiryDateModal: React.FC = ({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
- height: '100%',
+ alignSelf: 'flex-start',
+ mt: '8px', // align icon with vertical center of MUI outlined input
+ height: 56,
}}>
+ fontSize: '1.25rem', color:'secondary.main',
+ }}/>
= ({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
- height: '100%',
+ alignSelf: 'flex-start',
+ mt: '8px',
+ height: 56,
}}>
-
+
= ({
name="submit"
variant="contained"
startIcon={}
- sx={{fontSize: '24px'}}
disabled={expiryDate === undefined || hasError}
onClick={handleSubmit}
>
diff --git a/src/components/StockIn/FgStockInForm.tsx b/src/components/StockIn/FgStockInForm.tsx
index 3b07efa..d108caa 100644
--- a/src/components/StockIn/FgStockInForm.tsx
+++ b/src/components/StockIn/FgStockInForm.tsx
@@ -47,6 +47,8 @@ interface Props {
// qc: QcItemWithChecks[];
disabled: boolean;
putawayMode?: boolean;
+ /** When true, use compact field sizing to match Putaway Detail (上架詳情) section. */
+ compactFields?: boolean;
}
type EntryError =
| {
@@ -90,6 +92,7 @@ const FgStockInForm: React.FC = ({
itemDetail,
disabled,
putawayMode = false,
+ compactFields = false,
}) => {
const {
t,
@@ -186,7 +189,7 @@ return (
{...register("productLotNo", {
// required: "productLotNo required!",
})}
- sx={textfieldSx}
+ sx={compactFields ? undefined : textfieldSx}
disabled={true}
/>
@@ -199,7 +202,7 @@ return (
{...register("itemName", {
// required: "productLotNo required!",
})}
- sx={textfieldSx}
+ sx={compactFields ? undefined : textfieldSx}
disabled={true}
// error={Boolean(errors.productLotNo)}
// helperText={errors.productLotNo?.message}
@@ -221,7 +224,7 @@ return (
>
>
@@ -377,7 +381,7 @@ return (
>
setOpenExpDatePicker(false)}
slotProps={{
textField: {
+ fullWidth: true,
InputProps: {
...(!disabled && {
endAdornment: (
-
+