提交 b4043b02 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

fixed

上级 ec5b0553
...@@ -65,18 +65,19 @@ ...@@ -65,18 +65,19 @@
} }
}, },
methods: { methods: {
...mapActions('planManage', ['getResidentList']), ...mapActions('planManage', ['getResidentList','getResidentDetail']),
clickClose() { clickClose() {
this.$emit('closeFinishFollowup',false) this.$emit('closeFinishFollowup',false)
}, },
finishFollowUp() { finishFollowUp() {
this.$refs['finishData'].validate(valid => { this.$refs['finishData'].validate(valid => {
if (valid) { if (valid) {
const { changeCode, planId, patientIdList } = this.finishData; const { changeCode, planId, patientIdList, planPatientsIdList } = this.finishData;
finishPlan({ finishPlan({
changeCode, changeCode,
planId, planId,
patientIdList, patientIdList,
planPatientsIdList
}).then((data) => { }).then((data) => {
if(data.code == '000000') { if(data.code == '000000') {
this.$message({ this.$message({
......
...@@ -174,14 +174,17 @@ ...@@ -174,14 +174,17 @@
}, },
finishFollowup() { finishFollowup() {
let patientIdList = []; let patientIdList = [];
let planPatientsIdList = [];
patientIdList.push(this.residentDetail.patientId) patientIdList.push(this.residentDetail.patientId)
planPatientsIdList.push(this.residentDetail.fPlanDto.planPatientsId)
this.finishData = { this.finishData = {
changeCode: this.status, changeCode: this.status,
planId: this.residentDetail.fPlanDto.id, planId: this.residentDetail.fPlanDto.id,
patientName: this.residentDetail.patientName, patientName: this.residentDetail.patientName,
patientIdList: patientIdList, patientIdList: patientIdList,
title: this.status==3?'恢复随访':'结束随访', title: this.status==3?'恢复随访':'结束随访',
reasonName: this.status==3?'恢复原因:':'结束原因:' reasonName: this.status==3?'恢复原因:':'结束原因:',
planPatientsIdList: this.residentDetail.planPatientsId
} }
this.showFinishFollowup = true; this.showFinishFollowup = true;
}, },
......
...@@ -341,9 +341,11 @@ ...@@ -341,9 +341,11 @@
} }
let patientIds = []; let patientIds = [];
let patientNames = []; let patientNames = [];
let planPatientsIdList = [];
this.finishPatientList.forEach(function (item, index) { this.finishPatientList.forEach(function (item, index) {
patientIds.push(item.patientId) patientIds.push(item.patientId)
patientNames.push(item.patientName) patientNames.push(item.patientName)
planPatientsIdList.push(item.fuPlanPatientId)
}); });
console.log(patientIds) console.log(patientIds)
if(patientNames.length>4) { if(patientNames.length>4) {
...@@ -360,17 +362,21 @@ ...@@ -360,17 +362,21 @@
patientIdList: patientIds, patientIdList: patientIds,
title: this.status==3?'恢复随访':'结束随访', title: this.status==3?'恢复随访':'结束随访',
reasonName: this.status==3?'恢复原因:':'结束原因:', reasonName: this.status==3?'恢复原因:':'结束原因:',
planPatientsIdList:planPatientsIdList
}; };
} else { } else {
let patientIds = []; let patientIds = [];
let planPatientsIdList = [];
patientIds.push(row.patientId) patientIds.push(row.patientId)
planPatientsIdList.push(row.fuPlanPatientId)
this.finishData = { this.finishData = {
changeCode: this.status, changeCode: this.status,
planId: this.$route.query.planId, planId: this.$route.query.planId,
patientName: row.patientName, patientName: row.patientName,
patientIdList: patientIds, patientIdList: patientIds,
title: this.status==3?'恢复随访':'结束随访', title: this.status==3?'恢复随访':'结束随访',
reasonName: this.status==3?'恢复原因:':'结束原因:' reasonName: this.status==3?'恢复原因:':'结束原因:',
planPatientsIdList: planPatientsIdList
}; };
} }
this.showFinishFollowup = true; this.showFinishFollowup = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册