WXL (wul)
2026-11-09 b4fe2c16274a91fee4fb26d91374f95fbe2dbcec
src/views/patient/archives/maternalHealth/detail.vue
@@ -173,6 +173,19 @@
            </el-card>
          </template>
          <!-- 随访周期(围绝经期MHI) -->
          <template v-if="archive.subType === 'menopause'">
            <el-card class="info-card" shadow="never" style="margin-top:14px">
              <div slot="header" class="card-header"><span>随访周期</span></div>
              <EditableTable
                :data.sync="followupCycle"
                :editing="editing"
                :columns="followupColumns"
                auto-seq="seq"
              />
            </el-card>
          </template>
          <!-- ===== 围绝经期MHI:6 个量表 tab ===== -->
          <template v-if="archive.subType === 'menopause'">
            <el-card class="info-card" shadow="never" style="margin-top:14px">
@@ -404,6 +417,7 @@
    return {
      PREGNANCY_OPTIONS, PREGNANCY_DETAIL_OPTIONS, PREGNANCY_DETAIL_HINTS, UNREGISTERED_REASONS,
      loading: false, archive: null, editing: true, activeTab: "sysQ", mainTab: "detail",
      followupCycle: [],
      followupColumns: [
        { prop: "seq", label: "序号", width: 60 },
        { prop: "planDate", label: "拟随访日期", width: 180, type: "date" },
@@ -536,6 +550,7 @@
                  if (this.archive.formData[k]) Object.assign(this.form[k], this.archive.formData[k]);
                });
              }
              this.followupCycle = this.archive.followupCycle || [];
            }
          }
          if (autoEdit) this.editing = true;
@@ -611,7 +626,10 @@
      if (this.editing) {
        // 先把页面表单回填到档案对象,再整体提交
        if (this.archive.subType === "pregnancy") this.archive.pregFormData = JSON.parse(JSON.stringify(this.pregForm));
        if (this.archive.subType === "menopause") this.archive.formData = JSON.parse(JSON.stringify(this.form));
        if (this.archive.subType === "menopause") {
          this.archive.formData = JSON.parse(JSON.stringify(this.form));
          this.archive.followupCycle = JSON.parse(JSON.stringify(this.followupCycle));
        }
        this.loading = true;
        saveArchive(this.archive)
          .then(() => {