|
|
|
|
@ -175,6 +175,10 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
historyData = _useState28[0],
|
|
|
|
|
setHistoryData = _useState28[1];
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
|
|
confirmLoading = _useState30[0],
|
|
|
|
|
setConfirmLoading = _useState30[1];
|
|
|
|
|
var statusType = {
|
|
|
|
|
'not_exported': '未导出',
|
|
|
|
|
'exported': '已导出',
|
|
|
|
|
@ -612,6 +616,7 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
confirmLoading: confirmLoading,
|
|
|
|
|
centered: true,
|
|
|
|
|
keyboard: false,
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
@ -625,7 +630,9 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return myForm.validateFields();
|
|
|
|
|
case 2:
|
|
|
|
|
(0,materials/* new_substance_create_details */.NP)({
|
|
|
|
|
setConfirmLoading(true);
|
|
|
|
|
_context.next = 5;
|
|
|
|
|
return (0,materials/* new_substance_create_details */.NP)({
|
|
|
|
|
substance_detail: {
|
|
|
|
|
substance_id: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.id,
|
|
|
|
|
num: myForm.getFieldValue('num')
|
|
|
|
|
@ -638,7 +645,9 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
myForm.setFieldValue('image', '');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case 5:
|
|
|
|
|
setConfirmLoading(false);
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|