| | |
| | | |
| | | const handleSubmit = async () => { |
| | | const locData = removeEmptyKeys(formData) |
| | | // 批量禁用库位 |
| | | if (fieldType === 'status') { |
| | | locData.useStatus = 'X' |
| | | } |
| | | // 批量修改库位状态 |
| | | // if (fieldType === 'status') { |
| | | // locData.useStatus = 'X' |
| | | // } |
| | | const parmas = { |
| | | id: selectedIds, |
| | | loc: locData |
| | |
| | | |
| | | {fieldType === 'status' && |
| | | <Grid item xs={6}> |
| | | {/* <StatusSelectInput |
| | | onChange={(e) => handleChange(e.target.value, 'status')} |
| | | defaultValue={''} |
| | | require={false} |
| | | /> */} |
| | | <TextField |
| | | {/* <TextField |
| | | label={translate('table.field.loc.useStatus')} |
| | | value={'X(禁用)'} |
| | | size="small" |
| | | fullWidth |
| | | disabled |
| | | /> */} |
| | | <DictionarySelect |
| | | label={translate("table.field.loc.useStatus")} |
| | | name="useStatus" |
| | | value={formData.useStatus} |
| | | onChange={(e) => handleChange(e.target.value, 'useStatus')} |
| | | size="small" |
| | | dictTypeCode="sys_loc_use_stas" |
| | | /> |
| | | </Grid> |
| | | } |