|
@@ -107,6 +107,13 @@
|
|
confirmLoading: true,
|
|
confirmLoading: true,
|
|
});
|
|
});
|
|
const postData = getDataSource().filter((item) => item.inNum);
|
|
const postData = getDataSource().filter((item) => item.inNum);
|
|
|
|
+ if (postData.length === 0) {
|
|
|
|
+ createMessage.warning('请输入教材数量');
|
|
|
|
+ setModalProps({
|
|
|
|
+ confirmLoading: false,
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
await postTextbookSubscriptionInstockroom(postData, 'none');
|
|
await postTextbookSubscriptionInstockroom(postData, 'none');
|
|
createMessage.success('操作成功');
|
|
createMessage.success('操作成功');
|
|
closeModal();
|
|
closeModal();
|