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

bug fixed

上级 f183c8d9
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
placeholder="请选择"> placeholder="请选择">
<el-option <el-option
v-for="(item, index) in groupList" v-for="(item, index) in groupList"
:key="item.labelId+index" :key="index"
:label="item.labelName" :label="item.labelName"
:value="item.labelId"> :value="item.labelId">
</el-option> </el-option>
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
<el-form-item label="随访计划:" prop="planId"> <el-form-item label="随访计划:" prop="planId">
<el-select v-model="planChangeData.planId" size="small"> <el-select v-model="planChangeData.planId" size="small">
<el-option <el-option
v-for="item in planOption" v-for="(item,index) in planOption"
:key="item.id" :key="index"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.id">
</el-option> </el-option>
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
this.$emit('closeChangePlan',false); this.$emit('closeChangePlan',false);
}, },
changePlans() { changePlans() {
const _this = this
this.$refs['planChangeData'].validate(valid => { this.$refs['planChangeData'].validate(valid => {
if (valid) { if (valid) {
const { planPatientsId, planId, patientId, startDate } = this.planChangeData; const { planPatientsId, planId, patientId, startDate } = this.planChangeData;
...@@ -140,10 +141,11 @@ ...@@ -140,10 +141,11 @@
}); });
if(this.$route.name == 'residentList') { if(this.$route.name == 'residentList') {
this.getResidentList({ this.getResidentList({
planId, planId: this.planChangeData.planIdOld,
status: this.planChangeData.status status: this.planChangeData.status
}); });
} else if(this.$route.name == 'residentDetail') { } else if(this.$route.name == 'residentDetail') {
this.$router.push({path: '/followup/plan-manage/resident-detail', query: {patientId: patientId, planId: planId}})
this.getResidentDetail({ this.getResidentDetail({
planId, planId,
patientId patientId
...@@ -173,16 +175,19 @@ ...@@ -173,16 +175,19 @@
planChangeData(val) { planChangeData(val) {
const _this = this const _this = this
let labelList = val.yLabelList let labelList = val.yLabelList
labelList.forEach(function (item, index) { console.log()
let nodeItem = _this.groupList.filter(function(item1){ if(labelList) {
return item1.labelId == item; labelList.forEach(function (item, index) {
}); let nodeItem = _this.groupList.filter(function(item1){
let pushItem = { return item1.labelId == item;
labelId: nodeItem[0].labelId, });
label: nodeItem[0].labelName, let pushItem = {
} labelId: nodeItem[0].labelId,
_this.selectedGroup.push(pushItem) label: nodeItem[0].labelName,
}) }
_this.selectedGroup.push(pushItem)
})
}
} }
} }
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-form <el-form
:model="finishData" :model="finishData"
:rules="rules" :rules="rules"
label-width="100px"> label-width="100px" ref="finishData">
<el-form-item label="居民:"> <el-form-item label="居民:">
{{finishData.patientName}} {{finishData.patientName}}
</el-form-item> </el-form-item>
...@@ -70,41 +70,47 @@ ...@@ -70,41 +70,47 @@
this.$emit('closeFinishFollowup',false) this.$emit('closeFinishFollowup',false)
}, },
finishFollowUp() { finishFollowUp() {
const { changeCode, planId, patientIdList } = this.finishData; this.$refs['finishData'].validate(valid => {
finishPlan({ if (valid) {
changeCode, const { changeCode, planId, patientIdList } = this.finishData;
planId, finishPlan({
patientIdList, changeCode,
}).then((data) => { planId,
if(data.code == '000000') { patientIdList,
this.$message({ }).then((data) => {
message: '操作成功!', if(data.code == '000000') {
type: 'success' this.$message({
}); message: '操作成功!',
if(this.$route.name == 'residentList') { type: 'success'
this.getResidentList({ });
planId, if(this.$route.name == 'residentList') {
status: changeCode this.getResidentList({
}) planId,
} else if(this.$route.name == 'residentDetail') { status: changeCode
this.getResidentDetail({ })
planId, } else if(this.$route.name == 'residentDetail') {
patientId: patientIdList[0] this.getResidentDetail({
}) planId,
} patientId: patientIdList[0]
})
}
this.clickClose() this.clickClose()
} else { } else {
this.$message({ this.$message({
message: `${data.message}`, message: `${data.message}`,
type: 'error' type: 'error'
});
}
}).catch((err) => {
this.$message({
message: `${err.message}`,
type: 'error'
});
}); });
} else {
return false;
} }
}).catch((err) => {
this.$message({
message: `${err.message}`,
type: 'error'
});
}); });
} }
} }
......
...@@ -162,7 +162,8 @@ ...@@ -162,7 +162,8 @@
planId: this.residentDetail.fPlanDto.id, planId: this.residentDetail.fPlanDto.id,
patientId: this.residentDetail.patientId, patientId: this.residentDetail.patientId,
yLabelList: this.residentDetail.labelIdList, yLabelList: this.residentDetail.labelIdList,
startDate: this.residentDetail.fPlanDto.timeStr startDate: this.residentDetail.fPlanDto.timeStr,
planIdOld: this.residentDetail.fPlanDto.id,
} }
this.showChangePlan = true; this.showChangePlan = true;
}, },
......
...@@ -244,9 +244,10 @@ ...@@ -244,9 +244,10 @@
planPatientsId: row.fuPlanPatientId, planPatientsId: row.fuPlanPatientId,
planId: this.$route.query.planId, planId: this.$route.query.planId,
patientId: row.patientId, patientId: row.patientId,
yLabelList: row.labelIdList||[], yLabelList: row.labelIdList,
startDate: row.time, startDate: row.time,
status: this.status status: this.status,
planIdOld: this.$route.query.planId,
} }
this.showChangePlan = true; this.showChangePlan = true;
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册