Commit 19ad993c by sunhaiwei

生产任务提交的时候添加提示信息

parent 15d54f2b
...@@ -93,6 +93,19 @@ ...@@ -93,6 +93,19 @@
} catch (error) {} } catch (error) {}
} }
} catch (error) { } catch (error) {
if (error) {
let errorFields = error["errorFields"];
if (Array.isArray(errorFields) && errorFields.length > 0) {
let errorInfos = errorFields[0]["errors"];
if (Array.isArray(errorInfos) && errorInfos.length > 0) {
let description = errorInfos[0];
notification.error({
message: t('提示'),
description: "物料清单列表"+description,
});
}
}
}
return saveSuccess; return saveSuccess;
} }
} }
...@@ -136,4 +149,3 @@ ...@@ -136,4 +149,3 @@
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment