From b1cb0925184e4426b93306cb4c290586126383c7 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期一, 02 六月 2025 17:44:10 +0800
Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory

---
 culture/src/views/pedigree-chart/components/PlanForm.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/culture/src/views/pedigree-chart/components/PlanForm.vue b/culture/src/views/pedigree-chart/components/PlanForm.vue
index 5894a92..190ba65 100644
--- a/culture/src/views/pedigree-chart/components/PlanForm.vue
+++ b/culture/src/views/pedigree-chart/components/PlanForm.vue
@@ -1,6 +1,6 @@
 <template>
     <!-- 设置传代计划数弹窗 -->
-    <el-dialog :title="planForm.status === 'detail' ? '传代计划数详情' : '设置传代计划数'" :visible.sync="planDialogVisible"
+    <el-dialog :title="planForm.status == 'add' ? '新增传代计划数' : planForm.status == 'edit' ? '编辑传代计划数' : '传代计划数详情'" :visible.sync="planDialogVisible"
         width="40%" :close-on-click-modal="false">
         <el-form :model="planForm" :rules="planRules" ref="planForm" label-position="top">
             <el-form-item label="菌种源" prop="strainSourceStart">
@@ -69,10 +69,16 @@
     },
     methods: {
         openInitData(value) {
+            console.log(value);
+            
             this.planForm = {
                 ...this.planForm,
                 ...value
             }
+            if (value.status == 'edit') {
+                this.planForm.strainCode = value.strainCode1
+                this.planForm.strainName = value.strainName1
+            }
             this.openDialog()
         },
         openDialog() {

--
Gitblit v1.7.1