repair: brandDevice sparepart integration
This commit is contained in:
@@ -21,6 +21,7 @@ export const useSolutionLogic = (solutionForm) => {
|
||||
solutionForm.setFieldValue(['solution_items', newKey, 'name'], '');
|
||||
solutionForm.setFieldValue(['solution_items', newKey, 'type'], 'text');
|
||||
solutionForm.setFieldValue(['solution_items', newKey, 'text'], '');
|
||||
solutionForm.setFieldValue(['solution_items', newKey, 'status'], true);
|
||||
}, 0);
|
||||
};
|
||||
|
||||
@@ -57,8 +58,10 @@ export const useSolutionLogic = (solutionForm) => {
|
||||
// Reset form values
|
||||
solutionForm.resetFields();
|
||||
solutionForm.setFieldsValue({
|
||||
solution_status_0: true,
|
||||
solution_type_0: 'text',
|
||||
solution_items: [{
|
||||
status: true,
|
||||
type: 'text',
|
||||
}]
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user