提交 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,6 +175,8 @@ ...@@ -173,6 +175,8 @@
planChangeData(val) { planChangeData(val) {
const _this = this const _this = this
let labelList = val.yLabelList let labelList = val.yLabelList
console.log()
if(labelList) {
labelList.forEach(function (item, index) { labelList.forEach(function (item, index) {
let nodeItem = _this.groupList.filter(function(item1){ let nodeItem = _this.groupList.filter(function(item1){
return item1.labelId == item; return item1.labelId == item;
...@@ -186,6 +190,7 @@ ...@@ -186,6 +190,7 @@
} }
} }
} }
}
</script> </script>
<style scoped> <style scoped>
......
...@@ -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,6 +70,8 @@ ...@@ -70,6 +70,8 @@
this.$emit('closeFinishFollowup',false) this.$emit('closeFinishFollowup',false)
}, },
finishFollowUp() { finishFollowUp() {
this.$refs['finishData'].validate(valid => {
if (valid) {
const { changeCode, planId, patientIdList } = this.finishData; const { changeCode, planId, patientIdList } = this.finishData;
finishPlan({ finishPlan({
changeCode, changeCode,
...@@ -106,6 +108,10 @@ ...@@ -106,6 +108,10 @@
type: 'error' type: 'error'
}); });
}); });
} else {
return false;
}
});
} }
} }
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册