From 7aaeae87d6c9441beddfbd410a3706b18ca4a5fd Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Thu, 9 Feb 2023 15:38:35 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=AD=9B=E6=9F=A5=E6=9F=A5=E8=AF=A2=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E9=BB=98=E8=AE=A4=E9=9D=9E=E8=8D=89=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/screening/components/ConfigForms.vue | 2 ++ src/views/screening/components/FormTab.vue | 7 +++++++ src/views/screening/index.vue | 2 ++ 3 files changed, 11 insertions(+) diff --git a/src/views/screening/components/ConfigForms.vue b/src/views/screening/components/ConfigForms.vue index 07320da..bce1cd7 100644 --- a/src/views/screening/components/ConfigForms.vue +++ b/src/views/screening/components/ConfigForms.vue @@ -42,6 +42,7 @@ :form="form" :disabled="disabled" :operation="operation" + :isDraft="isDraft" :active-name="activeName" contrast :form-initial="formInitial" @@ -117,6 +118,7 @@ export default { patientId: String, formClass: String, operation: String, + isDraft: String, }, data() { return { diff --git a/src/views/screening/components/FormTab.vue b/src/views/screening/components/FormTab.vue index cd5ea69..0760567 100644 --- a/src/views/screening/components/FormTab.vue +++ b/src/views/screening/components/FormTab.vue @@ -103,6 +103,10 @@ export default { formEdit: {}, formInitial: {}, operation: String, // !默认新增,传入为edit为编辑需要传formRecordId + isDraft: { + type: String, + default: "", + }, }, provide() { return { @@ -219,6 +223,9 @@ export default { if (this.operation && this.operation == "edit") { params.formRecordId = this.formData.formRecordId || this.newformRecordId // 是否为编辑的表单id } + if (this.isDraft) { + params.statusMap.is_draft = this.isDraft + } this.$emit("handleConfirm", params, done, (res) => { // 多次填写的表单新增时,获取最新数据 if (this.form.fillType === 1 && !this.formData.formRecordId) { diff --git a/src/views/screening/index.vue b/src/views/screening/index.vue index 2b7a8e5..80dfaf7 100644 --- a/src/views/screening/index.vue +++ b/src/views/screening/index.vue @@ -34,6 +34,8 @@ :patient-id="patientId" :disabled="disabled" :tabDisabled="tabDisabled" + :isDraft="'0'" + :operation="'edit'" > -- 2.22.0