|
|
@@ -24,10 +24,8 @@ const StockMaterialForm = (props) => { |
|
|
|
if (r.data) { |
|
|
|
message.success('修改成功'); |
|
|
|
props.onOk(); |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
message.error('修改失败' + r.errors); |
|
|
|
return false; |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
@@ -35,12 +33,9 @@ const StockMaterialForm = (props) => { |
|
|
|
message.destroy(key); |
|
|
|
if (r.data) { |
|
|
|
message.success('添加成功'); |
|
|
|
actionRef.current.reload(); |
|
|
|
return true; |
|
|
|
props.onOk(); |
|
|
|
} else { |
|
|
|
message.error('添加失败' + r.errors); |
|
|
|
actionRef.current.reload(); |
|
|
|
return false; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|