人工随访修改
This commit is contained in:
parent
320ca59fb9
commit
531e69ebdb
@ -39,7 +39,6 @@
|
||||
<div style="width: 50%">出生日期:{{ list.birthDate }}</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<!-- <div>注册时间:{{ $route.query.createTime }}</div> -->
|
||||
<div>家属电话:{{ list.familyMemberPhone }}</div>
|
||||
<div style="width: 50%">住址:{{ list.address }}</div>
|
||||
</div>
|
||||
@ -271,8 +270,6 @@
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 人工随访 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -281,9 +278,7 @@
|
||||
<script>
|
||||
import { selectFollowPatientInfo, question, addPatientQuestionResult } from "@/api/system/followupsee";
|
||||
import { getScript } from "@/api/manage/script";
|
||||
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
export default {
|
||||
name: "patientdetails",
|
||||
data() {
|
||||
@ -291,9 +286,8 @@ export default {
|
||||
obj: {},
|
||||
checkList: [],
|
||||
checked: false,
|
||||
formlist:{},
|
||||
formlist: {},
|
||||
form: {
|
||||
|
||||
taskType: this.$route.query.taskType,
|
||||
routeHandleId: Cookies.get('userId'),
|
||||
routeHandlePerson: Cookies.get('userName'),
|
||||
@ -314,12 +308,6 @@ export default {
|
||||
{ required: true, message: '请输入任务处理信息', trigger: 'change' }
|
||||
],
|
||||
},
|
||||
|
||||
options: [
|
||||
{ id: 1, value: 'A', label: '选项A' },
|
||||
{ id: 2, value: 'B', label: '选项B', show: 'true' },
|
||||
{ id: 3, value: 'C', label: '选项C' }
|
||||
],
|
||||
radio: "B",
|
||||
id: "",
|
||||
list: [],
|
||||
@ -329,9 +317,7 @@ export default {
|
||||
totalScore: 0, //总分
|
||||
routeHandlePerson: null,
|
||||
routeHandleId: null,
|
||||
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
},
|
||||
@ -344,9 +330,6 @@ export default {
|
||||
getScript(this.$route.query.templateId).then(response => {
|
||||
if (response.data) {
|
||||
this.formlist = response.data;
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -359,7 +342,6 @@ export default {
|
||||
},
|
||||
// 时间填空题
|
||||
timepickerselect(e, index) {
|
||||
console.log(e)
|
||||
this.questiondata.questionSubjectList[index].optionAnswer = e
|
||||
},
|
||||
radioGroupChange(e, item) {
|
||||
@ -386,14 +368,10 @@ export default {
|
||||
} else {
|
||||
this.questiondata.questionSubjectList[index].questionSubjectOptionList[aindex].optionChooseSign = '1'
|
||||
}
|
||||
console.log(this.questiondata, '11111111复选框')
|
||||
},
|
||||
|
||||
info() {
|
||||
selectFollowPatientInfo(this.id).then((res) => {
|
||||
|
||||
this.list = res.data;
|
||||
|
||||
});
|
||||
|
||||
},
|
||||
@ -432,23 +410,9 @@ export default {
|
||||
/** 提交按钮 */
|
||||
submit() {
|
||||
if (this.$route.query.taskType == 'QUESTIONNAIRE_SCALE') {
|
||||
console.log(this.questiondata, 'questiondata')
|
||||
// 对象.新名字=对象.原数组
|
||||
this.$delete(this.questiondata, 'updateBy',)
|
||||
this.$delete(this.questiondata, 'updateTime',)
|
||||
this.questiondata.subjectResultDTOList = this.questiondata.questionSubjectList
|
||||
this.obj = JSON.parse(JSON.stringify(this.questiondata))
|
||||
delete this.obj.questionSubjectList;
|
||||
this.obj.subjectResultDTOList.forEach(e => {
|
||||
e.optionResultList = e.questionSubjectOptionList
|
||||
if (e.optionResultList.optionSubmitAnswer) {
|
||||
e.optionResultList.optionSubmitAnswer = e.optionResultList.optionSubmitAnswer
|
||||
}
|
||||
this.$delete(this.obj, '0', '')
|
||||
delete e.questionSubjectOptionList;
|
||||
});
|
||||
console.log(this.obj, 'obj')
|
||||
|
||||
var score = 0
|
||||
// 单选、多选、打分分值
|
||||
this.questiondata.questionSubjectList.forEach(e => {
|
||||
@ -460,12 +424,26 @@ export default {
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(score, 'score')
|
||||
// console.log(score, 'score')
|
||||
this.questiondata.totalScore = score
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
this.questiondata.subjectResultDTOList = this.questiondata.questionSubjectList
|
||||
this.obj = JSON.parse(JSON.stringify(this.questiondata))
|
||||
delete this.obj.questionSubjectList;
|
||||
this.obj.subjectResultDTOList.forEach(e => {
|
||||
e.optionResultList = e.questionSubjectOptionList
|
||||
if (e.optionResultList.optionSubmitAnswer) {
|
||||
e.optionResultList.optionSubmitAnswer = e.optionResultList.optionSubmitAnswer
|
||||
}
|
||||
// this.$delete(this.obj, '0', '')
|
||||
delete e.questionSubjectOptionList;
|
||||
});
|
||||
// console.log(this.obj, 'obj')
|
||||
|
||||
|
||||
} else if (this.$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP') {
|
||||
console.log(this.questiondata, 'questiondata')
|
||||
// 对象.新名字=对象.原数组
|
||||
@ -479,20 +457,17 @@ export default {
|
||||
if (e.optionResultList.optionSubmitAnswer) {
|
||||
e.optionResultList.optionSubmitAnswer = e.optionResultList.optionSubmitAnswer
|
||||
}
|
||||
this.$delete(this.obj, '0', '')
|
||||
// this.$delete(this.obj, '0', '')
|
||||
delete e.questionSubjectOptionList;
|
||||
});
|
||||
console.log(this.obj, 'obj')
|
||||
this.$delete(this.questiondata, 'totalScore',)
|
||||
// this.$delete(this.obj, 'totalScore',)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// return
|
||||
// 问卷、随访
|
||||
if (this.$route.query.taskType == 'QUESTIONNAIRE_SCALE' || this.$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP') {
|
||||
|
||||
// console.log(this.obj, 'objobj')
|
||||
// return
|
||||
this.$refs["questiondata"].validate(valid => {
|
||||
if (valid) {
|
||||
addPatientQuestionResult(this.obj).then(response => {
|
||||
@ -515,6 +490,8 @@ export default {
|
||||
}
|
||||
});
|
||||
} else if (this.$route.query.taskType == 'PHONE_OUTBOUND') {
|
||||
console.log(this.form, '话术')
|
||||
// return
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
this.form.departmentId=this.formlist.departmentId,
|
||||
@ -544,8 +521,6 @@ export default {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
// 取消
|
||||
cencal() {
|
||||
@ -555,7 +530,6 @@ export default {
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
handleClick(tab, event) {
|
||||
console.log(tab, event);
|
||||
},
|
||||
@ -563,7 +537,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-input.is-disabled .el-input__inner {
|
||||
::v-deep .el-input.is-disabled .el-input__inner {
|
||||
background: #fff !important;
|
||||
color: #606266;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user