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