diff --git a/src/components/occDisease/OccDisease.vue b/src/components/occDisease/OccDisease.vue
index fecfd3c..4d5654b 100644
--- a/src/components/occDisease/OccDisease.vue
+++ b/src/components/occDisease/OccDisease.vue
@@ -179,6 +179,7 @@ export default {
btnOk() {
let message = ''
this.dataTransOpts.tableM.patient_poison.forEach((e, i) => {
+ if(e.poisonId) message = `接害因素,第 ${i+1} 行,不能为空`
if (!e.occupationalAbnormalId) e.occupationalAbnormalId = null
});
if (message) {
diff --git a/src/components/occDisease/OccDiseaseHistory.vue b/src/components/occDisease/OccDiseaseHistory.vue
index d09fe56..f644b4f 100644
--- a/src/components/occDisease/OccDiseaseHistory.vue
+++ b/src/components/occDisease/OccDiseaseHistory.vue
@@ -68,20 +68,31 @@
@@ -90,8 +101,12 @@ import moment from "moment";
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, objCopy, deepCopy, arrayExistObj } from "../../utlis/proFunc";
+import DictPoison from "../../views/basic-dictionary/ToxicFactors.vue"
+
export default {
- components: {},
+ components: {
+ DictPoison
+ },
props: ["refFunc"],
data() {
return {
@@ -116,6 +131,7 @@ export default {
dialogPoison: false,
currRow: 0,
choosedPoison: [],
+ dialogDictPoison: false,
};
},
@@ -235,7 +251,33 @@ export default {
this.dataTransOpts.tableM.patient_occupational_history[this.currRow]['poison'] = `${this.choosedPoison}`
this.dialogPoison = false
// console.log('this.dataTransOpts.tableM.patient_poison', this.dataTransOpts.tableM.patient_poison)
- }
+ },
+
+ // 显示接害因素维护
+ btnDictPoison() {
+ this.dialogDictPoison = true
+ },
+
+ closeDialogDictPoison() {
+ //职业病 接害因素
+ postapi("/api/app/Poison/GetPoisonWithTypeList").then(res => {
+ if (res.code > -1) {
+ this.dict.poison = res.data;
+ this.dict.poisonList = []
+ this.dict.poison.forEach(e => {
+ e.poisonDtos.forEach(e2 => {
+ this.dict.poisonList.push({
+ poisonTypeName: e.poisonTypeName,
+ id: e2.id,
+ displayName: e2.displayName,
+ simpleCode: e2.simpleCode
+ })
+ });
+ });
+ this.refreshPoison()
+ }
+ })
+ },
},
diff --git a/src/components/occDisease/OccDiseasePoison.vue b/src/components/occDisease/OccDiseasePoison.vue
index 93e620a..a90a4ab 100644
--- a/src/components/occDisease/OccDiseasePoison.vue
+++ b/src/components/occDisease/OccDiseasePoison.vue
@@ -12,7 +12,8 @@
-
+
@@ -44,19 +45,31 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -65,8 +78,13 @@ import moment from "moment";
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, objCopy, deepCopy, arrayExistObj } from "../../utlis/proFunc";
+
+import DictPoison from "../../views/basic-dictionary/ToxicFactors.vue"
+
export default {
- components: {},
+ components: {
+ DictPoison
+ },
props: ["refFunc", "height"],
data() {
return {
@@ -80,6 +98,7 @@ export default {
currRow: 0,
choosedPoison: {},
dialogPoison: false,
+ dialogDictPoison: false,
};
},
@@ -103,26 +122,7 @@ export default {
moment, checkPagePriv,
//数据初始化
- dictInit() {
-
- //职业病 接害因素
- // postapi("/api/app/Poison/GetPoisonWithTypeList").then(res => {
- // if (res.code > -1) {
- // this.dict.poison = res.data;
- // this.poison = res.data;
- // this.dict.poisonList = []
- // this.dict.poison.forEach(e => {
- // e.poisonDtos.forEach(e2 => {
- // this.dict.poisonList.push({
- // poisonTypeName: e.poisonTypeName,
- // id: e2.id,
- // displayName: e2.displayName,
- // simpleCode: e2.simpleCode
- // })
- // });
- // });
- // }
- // })
+ dictInit() {
//职业病检查结论
postapi("/api/app/OccupationalAbnormal/GetList").then((res) => {
@@ -133,9 +133,9 @@ export default {
},
- // 显示选择症状项目
- btnDispPoison(index) {
- this.currRow = index
+ // 刷新本页面接害因素字典
+ refreshPoison(){
+ let index = this.currRow
this.poisonList = deepCopy(this.dict.poisonList)
this.dataTransOpts.tableM.patient_poison.forEach((e, i) => {
if (i != index) {
@@ -144,6 +144,12 @@ export default {
}
});
this.poison = this.madeSelectGroup(this.poisonList)
+ },
+
+ // 显示选择症状项目
+ btnDispPoison(index) {
+ this.currRow = index
+ this.refreshPoison()
this.dialogPoison = true
},
@@ -213,7 +219,33 @@ export default {
this.dataTransOpts.tableM.patient_poison[this.currRow]['poisonName'] = this.choosedPoison.displayName
this.dialogPoison = false
// console.log('this.dataTransOpts.tableM.patient_poison', this.dataTransOpts.tableM.patient_poison)
- }
+ },
+
+ // 显示接害因素维护
+ btnDictPoison() {
+ this.dialogDictPoison = true
+ },
+
+ closeDialogDictPoison() {
+ //职业病 接害因素
+ postapi("/api/app/Poison/GetPoisonWithTypeList").then(res => {
+ if (res.code > -1) {
+ this.dict.poison = res.data;
+ this.dict.poisonList = []
+ this.dict.poison.forEach(e => {
+ e.poisonDtos.forEach(e2 => {
+ this.dict.poisonList.push({
+ poisonTypeName: e.poisonTypeName,
+ id: e2.id,
+ displayName: e2.displayName,
+ simpleCode: e2.simpleCode
+ })
+ });
+ });
+ this.refreshPoison()
+ }
+ })
+ },
},
diff --git a/src/components/report/PatientRegisterListNobtn.vue b/src/components/report/PatientRegisterListNobtn.vue
index 5f236bd..ce1bb1a 100644
--- a/src/components/report/PatientRegisterListNobtn.vue
+++ b/src/components/report/PatientRegisterListNobtn.vue
@@ -20,7 +20,7 @@
{{ scope.row.isUpload == "Y" ? "√" : "" }}
-
+
diff --git a/src/views/basic-dictionary/ToxicFactors.vue b/src/views/basic-dictionary/ToxicFactors.vue
index 120697e..9da930f 100644
--- a/src/views/basic-dictionary/ToxicFactors.vue
+++ b/src/views/basic-dictionary/ToxicFactors.vue
@@ -140,7 +140,7 @@