Browse Source

解决库存原料管理问题

dev
ywh 1 year ago
parent
commit
7c3762d5db
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      src/pages/device/deviceInfo/components/StockMaterialForm.jsx

+ 1
- 6
src/pages/device/deviceInfo/components/StockMaterialForm.jsx View File

@@ -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;
}
});
}


Loading…
Cancel
Save