| | |
| | | </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"> |
| | |
| | | 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" }, |
| | |
| | | if (this.archive.formData[k]) Object.assign(this.form[k], this.archive.formData[k]); |
| | | }); |
| | | } |
| | | this.followupCycle = this.archive.followupCycle || []; |
| | | } |
| | | } |
| | | if (autoEdit) this.editing = true; |
| | |
| | | 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(() => { |