|
@@ -408,7 +408,7 @@ const PoDetail: React.FC<Props> = ({ po, qc, warehouse }) => { |
|
|
const handleChange = useCallback(debounce((e: React.ChangeEvent<HTMLInputElement>) => { |
|
|
const handleChange = useCallback(debounce((e: React.ChangeEvent<HTMLInputElement>) => { |
|
|
const raw = e.target.value; |
|
|
const raw = e.target.value; |
|
|
const id = e.target.id |
|
|
const id = e.target.id |
|
|
const temp = [...polInputList] |
|
|
|
|
|
|
|
|
const temp = polInputList |
|
|
switch (id) { |
|
|
switch (id) { |
|
|
case "lotNo": |
|
|
case "lotNo": |
|
|
if (raw.trim() === '') { |
|
|
if (raw.trim() === '') { |
|
@@ -438,7 +438,7 @@ const PoDetail: React.FC<Props> = ({ po, qc, warehouse }) => { |
|
|
default: |
|
|
default: |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
setPolInputList(() => temp) |
|
|
|
|
|
|
|
|
// setPolInputList(() => temp) |
|
|
}, 300), [rowIndex]); |
|
|
}, 300), [rowIndex]); |
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|