From 8ac7e0ca090ab5ce0f8435e8af6f78a23c0dd6e0 Mon Sep 17 00:00:00 2001 From: pyt <626651354@qq.com> Date: 星期一, 19 五月 2025 18:04:45 +0800 Subject: [PATCH] feat --- culture/src/views/strain-library/strain-library-manage/add.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/culture/src/views/strain-library/strain-library-manage/add.vue b/culture/src/views/strain-library/strain-library-manage/add.vue index 5c91b36..0c4dbd1 100644 --- a/culture/src/views/strain-library/strain-library-manage/add.vue +++ b/culture/src/views/strain-library/strain-library-manage/add.vue @@ -106,7 +106,7 @@ rules: { strainCode: [{ validator: (rule, value, callback) => { - if (this.currentAction === 'submit' && !value.trim()) { + if (this.currentAction === 'submit' && !value) { callback(new Error('请输入菌种编号')); } else { callback(); @@ -149,8 +149,13 @@ this.currentAction = 'submit' this.$refs.strainForm.validate((valid) => { if (valid) { - this.signatureVisible = true this.form.isDraft = isDraft + if (isDraft == 1) { + //存草稿 + this.handleSignatureConfirm('') + } else { + this.signatureVisible = true + } } }) }, @@ -193,8 +198,6 @@ requestData.id = this.$route.query.id; await edit(requestData); } else if (this.currentAction === 'batchAdd') { - console.log(requestData); - await addBatch(requestData); } else { await add(requestData); -- Gitblit v1.7.1