From 651e740368416b0b2b5da19e92028f7ed3c6135f Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期一, 30 六月 2025 15:50:06 +0800
Subject: [PATCH] fix

---
 culture/src/views/strain-library/validation/chief-cell/add.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/culture/src/views/strain-library/validation/chief-cell/add.vue b/culture/src/views/strain-library/validation/chief-cell/add.vue
index 1ad2d6a..2a20f16 100644
--- a/culture/src/views/strain-library/validation/chief-cell/add.vue
+++ b/culture/src/views/strain-library/validation/chief-cell/add.vue
@@ -33,7 +33,7 @@
             </div>
             <div class="end-btn" style="margin-top: 400px">
                 <el-button type="primary" @click="handleSubmit">提交</el-button>
-                <el-button @click="handleDraft">存草稿</el-button>
+                <el-button @click="handleDraft" v-if="roleType != 1">存草稿</el-button>
             </div>
         </el-form>
 
@@ -60,6 +60,7 @@
             batchForm: {
                 count: ''
             },
+            roleType: JSON.parse(sessionStorage.getItem('userInfo')).roleType * 1,
             form: {
                 strainSource: '',         // 菌种来源
                 identifyingStrainCode: '',      // 鉴别菌株编号
@@ -104,7 +105,7 @@
         handleSignatureConfirm(signatureImage) {
             this.signatureVisible = false;
             const id = this.$route.query.id || this.$route.params.id;
-            const submitData = { ...this.form, strainType: 2, isDraft: this.form.isDraft&&this.currentAction === 'draft' ? this.form.isDraft : this.currentAction == 'submit' ? 0 : 1, handleSignature: signatureImage.signature, experimentTime: this.form.experimentTime ? moment(this.form.experimentTime).format('YYYY-MM-DD') : '' };
+            const submitData = { ...this.form, strainType: 2, isDraft: this.form.isDraft && this.currentAction === 'draft' ? this.form.isDraft : this.currentAction == 'submit' ? 0 : 1, handleSignature: signatureImage.signature, experimentTime: this.form.experimentTime ? moment(this.form.experimentTime).format('YYYY-MM-DD') : '' };
             if (this.currentAction === 'submit' || this.form.isDraft == 1) {
                 if (id) {
                     // 编辑

--
Gitblit v1.7.1