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