From 013c63b6a07231bb4456106e31715b0982167abd Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期三, 04 六月 2025 09:38:46 +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 | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/culture/src/views/pedigree-chart/components/PlanForm.vue b/culture/src/views/pedigree-chart/components/PlanForm.vue index 5894a92..dfeb2ca 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.formStatus == 'add' ? '新增传代计划数' : planForm.formStatus == '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"> @@ -28,13 +28,13 @@ </el-col> <el-col :span="10"> <el-form-item label="传代计划数" prop="generationCount"> - <el-input-number :disabled="planForm.status === 'detail'" v-model="planForm.generationCount" + <el-input-number :disabled="planForm.formStatus === 'detail'" v-model="planForm.generationCount" :controls="false" :min="1" placeholder="请输入" /> </el-form-item> </el-col> </el-row> </el-form> - <div v-if="planForm.status !== 'detail'" class="dialog-footer"> + <div v-if="planForm.formStatus !== 'detail'" class="dialog-footer"> <el-button type="primary" @click="handleSubmit">提交签字</el-button> </div> </el-dialog> @@ -69,10 +69,16 @@ }, methods: { openInitData(value) { + console.log(value); + this.planForm = { ...this.planForm, ...value } + if (value.formStatus == 'edit') { + this.planForm.strainCode = value.strainCode1 + this.planForm.strainName = value.strainName1 + } this.openDialog() }, openDialog() { -- Gitblit v1.7.1