From 040a8a9ca6e6a8f68d1610a38af2dd13949d42a5 Mon Sep 17 00:00:00 2001
From: miaojiale <1123971748@qq.com>
Date: Wed, 7 Dec 2022 10:42:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CustomForm/FormItemSelf.vue | 14 ++++++-----
.../FormComponents/CustomForm/index.vue | 24 ++++++++++---------
.../audit-detail/components/screenReview.vue | 10 ++++----
3 files changed, 26 insertions(+), 22 deletions(-)
diff --git a/src/components/FormComponents/CustomForm/FormItemSelf.vue b/src/components/FormComponents/CustomForm/FormItemSelf.vue
index ac16068..2076eb6 100644
--- a/src/components/FormComponents/CustomForm/FormItemSelf.vue
+++ b/src/components/FormComponents/CustomForm/FormItemSelf.vue
@@ -43,7 +43,7 @@
:disabled="item.disabled"
>
-
+
@@ -357,7 +357,7 @@
{{ item.importantFieldDesc || "*" }}
@@ -392,9 +392,7 @@ export default {
showIndex: {
default: false,
},
- vwForm: {
- default: {},
- },
+ vwForm: {},
formId: {},
getPatientId: {
type: Function,
@@ -432,10 +430,13 @@ export default {
}
},
computed: {
+ getVwForm() {
+ return this.vwForm()
+ },
//重要字段空数据且填写表单时添加重点
isEmpty() {
const { importantField, prop } = this.item
- if (!importantField || this.vwForm.detail) return ""
+ if (!importantField || this.getVwForm.detail) return ""
const value = this.form[prop] // []
let empty = !value
@@ -638,6 +639,7 @@ export default {
const values = dyMap[key]
let display = false
if (Array.isArray(val)) {
+ // 胃癌和进展性胃癌单独控制
if (
prop == "early_gastric_cancer" ||
prop == "period_gastric_cancer"
diff --git a/src/components/FormComponents/CustomForm/index.vue b/src/components/FormComponents/CustomForm/index.vue
index de96e74..d275a1c 100644
--- a/src/components/FormComponents/CustomForm/index.vue
+++ b/src/components/FormComponents/CustomForm/index.vue
@@ -144,15 +144,17 @@ export default {
},
},
provide() {
- const vwForm = {}
- for (const k in this.options) {
- if (k !== "column" && k !== "group") {
- vwForm[k] = this.options[k]
- }
- }
-
return {
- vwForm,
+ vwForm: () => {
+ const vwForm = {}
+ for (const k in this.options) {
+ if (k !== "column" && k !== "group") {
+ vwForm[k] = this.options[k]
+ }
+ }
+ return vwForm
+ },
+ formId: "",
}
},
data() {
@@ -355,9 +357,9 @@ export default {
// 绑定部分值(此时表单已渲染)
initfields(obj) {
for (let k in obj) {
- if (this.form.hasOwnProperty(k)) {
- this.form[k] = obj[k]
- }
+ // if (this.form.hasOwnProperty(k)) {
+ this.form[k] = obj[k]
+ // }
}
},
},
diff --git a/src/views/audit-detail/components/screenReview.vue b/src/views/audit-detail/components/screenReview.vue
index 74f79e9..2888044 100644
--- a/src/views/audit-detail/components/screenReview.vue
+++ b/src/views/audit-detail/components/screenReview.vue
@@ -8,7 +8,7 @@
+
@@ -44,7 +43,9 @@ export default {
form: {
name: "123",
phone: "18712412341",
+ min_age: "18",
},
+ asideShow: true,
}
},
computed: {
@@ -66,7 +67,6 @@ export default {
this.getCurrentFormByType()
},
mounted() {},
-
methods: {
getCurrentFormByType(type = 1) {
this.fromLoading = true
--
2.22.0