diff --git a/src/api/medicalunion-management.js b/src/api/medicalunion-management.js
index 0e42096839af41c54735294971c3e72c2e462aab..5a50f14fdaee68b856c165423dd6c4c2d16f71a2 100644
--- a/src/api/medicalunion-management.js
+++ b/src/api/medicalunion-management.js
@@ -24,6 +24,15 @@ export function medicalunionList(params = {}) {
params,
})
}
+// 添加标准获取医联体
+export function getMedicalunionList(params = {}) {
+ return request({
+ url: "/cloud-upms/sys/union/select",
+ method: "get",
+ params,
+ })
+}
+
export function deleteUnion(id) {
return request({
url: `/cloud-upms/sys/union/${id}`,
diff --git a/src/components/FormComponents/CustomForm/FormItemSelf.vue b/src/components/FormComponents/CustomForm/FormItemSelf.vue
index 3df0aaa5826594a0a54d0d7ec16a1e8ef76cda44..c4ae25cf830ba203b7f7d37e22086c389224cc86 100644
--- a/src/components/FormComponents/CustomForm/FormItemSelf.vue
+++ b/src/components/FormComponents/CustomForm/FormItemSelf.vue
@@ -50,7 +50,11 @@
>
-
+
@@ -218,8 +222,8 @@
@@ -400,7 +404,7 @@
/**
* @description 自定义单组件
*/
-
+import { getMedicalunionList } from "@/api/medicalunion-management"
import ElUploadSelf from "@/components/Upload"
import FormItemText from "./FormItemText"
import DialogToothBit from "./DialogToothBit"
@@ -483,13 +487,24 @@ export default {
this.numberReset()
this.checkboxReset()
if (this.item.prop == "union_id") {
- this.unionList = [{ label: "嗡嗡嗡", value: 1 }]
+ this.getMedicalunionList()
}
},
mounted() {
this.showFormItem()
},
methods: {
+ // 获取医联体列表
+ getMedicalunionList() {
+ getMedicalunionList().then((res) => {
+ console.log(res)
+ if (res.code == 1) {
+ this.unionList = res.data
+ } else {
+ this.unionList = []
+ }
+ })
+ },
scrollToView() {
if (this.$refs["JY_LCYY"]) {
this.$refs["JY_LCYY"].$el.scrollIntoView({ behavior: "smooth" })
diff --git a/src/components/FormComponents/CustomForm/FormItemText.vue b/src/components/FormComponents/CustomForm/FormItemText.vue
index 23cc0fb9c74c57ef983b8ade4cf6597d42c1a968..5a69d21a291f466223f00be56972c69cf7d311d8 100644
--- a/src/components/FormComponents/CustomForm/FormItemText.vue
+++ b/src/components/FormComponents/CustomForm/FormItemText.vue
@@ -24,6 +24,9 @@
>
{{ screeningAdvise[form[item.prop]] }}
+
+ {{ unionName }}
+
{{
String(form[item.prop]) | getItemText(item.dicData, item.type)
}}
@@ -43,6 +46,7 @@ export default {
props: {
item: Object,
form: Object | Array,
+ unionList: Array,
},
data() {
return {
@@ -51,6 +55,7 @@ export default {
medium: "中危",
high: "高危",
},
+ unionName: "",
screeningAdvise: {
1: "可定期随访",
2: "推荐胶囊内镜或胃镜检查",
@@ -70,6 +75,16 @@ export default {
return val
},
},
+ watch: {
+ unionList(v) {
+ if (v.length > 0 && this.form[this.item.prop]) {
+ console.log()
+ this.unionName = v.filter(
+ (e) => e.unionNo == this.form[this.item.prop]
+ )[0].unionName
+ }
+ },
+ },
}