diff --git a/src/views/projectFront/laborManage/EpidemicPrevention/index.vue b/src/views/projectFront/laborManage/EpidemicPrevention/index.vue
index 99ac7190..4cc6558f 100644
--- a/src/views/projectFront/laborManage/EpidemicPrevention/index.vue
+++ b/src/views/projectFront/laborManage/EpidemicPrevention/index.vue
@@ -236,8 +236,8 @@
:value="item.value">
-
-
+
@@ -276,7 +276,7 @@
{{ vaccineStatusEnum[row.needleTimes] }}
-
+
@@ -311,6 +311,7 @@ import {
export default {
components: {},
data: () => ({
+ workerId:'',
// 3 衢州版 2 星璇版 1 正常版本
styleType:'',
// 项目SN
@@ -498,7 +499,7 @@ export default {
this.vaccineForm = {
inoculationTime: null,
needleTimes: undefined,
- remark: undefined,
+ remarks: undefined,
},
this.resetForm('nucleicAcidForm');
this.resetForm('vaccineForm');
@@ -541,19 +542,20 @@ export default {
/** 更新 */
handleUpdate(row, title) {
console.log('row: ', row);
+ this.workerId = row.id
this.title = title;
this.reset();
this.detailLoading = true;
// 核酸时间
if (title.includes('核酸')) {
- workerNucleicAcidDetectionList({ workerId: row.id }).then(res => {
+ workerNucleicAcidDetectionList({ workerId: this.workerId }).then(res => {
console.log('查询人员新冠核酸检测记录: ', res);
this.detailList = res.result;
this.detailLoading = false;
this.open = true;
})
} else {
- workerVaccineInoculationList({ workerId: row.id }).then(res => {
+ workerVaccineInoculationList({ workerId: this.workerId}).then(res => {
console.log('查询人员疫苗接种记录: ', res);
this.detailList = res.result;
this.detailLoading = false;
@@ -609,10 +611,14 @@ export default {
submitNucleicAcidForm: function() {
this.$refs['nucleicAcidForm'].validate(valid => {
if (!valid) return
- addWorkerNucleicAcidDetection(this.nucleicAcidForm).then(res => {
- this.$message.success('提交成功');
+ let data = this.nucleicAcidForm
+ data.workerId = this.workerId
+ addWorkerNucleicAcidDetection(data).then(res => {
+ if(res.code == 200 ){
+ this.$message.success('提交成功');
this.getList();
this.cancel()
+ }
})
})
},
@@ -620,11 +626,14 @@ export default {
submitVaccineForm: function() {
this.$refs['vaccineForm'].validate(valid => {
if (!valid) return
- console.log('this.vaccineForm: ', this.vaccineForm);
- addWorkerVaccineInfo(this.vaccineForm).then(res => {
- this.$message.success('提交成功');
+ let data = this.vaccineForm
+ data.workerId = this.workerId
+ addWorkerVaccineInfo(data).then(res => {
+ if(res.code == 200){
+ this.$message.success('提交成功');
this.getList();
this.cancel()
+ }
})
})
},