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

fixed

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