|  |  |  | 
|---|
|  |  |  | const newObj = removeEmptyKeys(value); | 
|---|
|  |  |  | return !_.isEmpty(newObj); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return !_.isNil(value) && (_.isNumber(value) ? value !== 0 : !_.isEmpty(value)); | 
|---|
|  |  |  | return !_.isNil(value); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const handleSubmit = async () => { | 
|---|
|  |  |  | const parmas = { | 
|---|
|  |  |  | id: selectedIds, | 
|---|
|  |  |  | ...removeEmptyKeys(formData) | 
|---|
|  |  |  | ids: selectedIds, | 
|---|
|  |  |  | warehouseAreas: { | 
|---|
|  |  |  | ...removeEmptyKeys(formData) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const res = await request.post(`/warehouseAreas/modify`, parmas); | 
|---|
|  |  |  | const res = await request.post(`/warehouseAreas/batch/update`, parmas); | 
|---|
|  |  |  | if (res?.data?.code === 200) { | 
|---|
|  |  |  | handleClose() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | {fieldType === 'status' && | 
|---|
|  |  |  | <Grid item xs={6}> | 
|---|
|  |  |  | <StatusSelectInput | 
|---|
|  |  |  | onChange={(e) => handleChange(e.target.value, 'status')} | 
|---|
|  |  |  | onChange={(e) => handleChange(+e.target.value, 'status')} | 
|---|
|  |  |  | defaultValue={''} | 
|---|
|  |  |  | require={false} | 
|---|
|  |  |  | /> | 
|---|