Browse Source

fix: change textbookSubscription

DESKTOP-USV654P\pc 1 week ago
parent
commit
fbc79366fc

+ 7 - 0
src/views/educational/textbookSubscription/components/textBookPop.vue

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