This commit is contained in:
shidongli 2024-04-12 16:43:34 +08:00
parent 5e3174a155
commit 384825cf58
2 changed files with 586 additions and 564 deletions

View File

@ -193,7 +193,6 @@
>
<el-input
disabled
v-model="item.fillBlanksAnswer"
placeholder="请输入答案"
type="textarea"
@ -207,7 +206,6 @@
>
<el-date-picker
disabled
@change="timepicker($event, index)"
clearable
v-model="item.fillBlanksAnswer"
@ -288,16 +286,16 @@
</div>
</div>
</div>
</template>
</template>
<script>
import { selectFollowPatientInfo, question, addPatientQuestionResult } from "@/api/system/followupsee";
import {
import { selectFollowPatientInfo, question, addPatientQuestionResult } from "@/api/system/followupsee";
import {
selectPatientQuestionSubmit,
} from "@/api/system/taskExecuteRecord";
import { getScript } from "@/api/manage/script";
import Cookies from 'js-cookie'
export default {
import { getScript } from "@/api/manage/script";
import Cookies from 'js-cookie'
export default {
name: "patientdetails",
data() {
return {
@ -334,6 +332,10 @@
console.log(this.$route.query.routeHandleRemark, "res");
} else {
if (this.$route.query.routeHandleRemark) {
this.questiondata.routeHandleRemark =
this.$route.query.routeHandleRemark;
}
getScript(this.$route.query.templateId).then(response => {
if (response.data) {
this.formlist = response.data;
@ -428,7 +430,7 @@
this.questiondata.manageRouteName = this.$route.query.manageRouteName
this.questiondata.manageRouteNodeName = this.$route.query.manageRouteNodeName
this.questiondata.taskType = this.$route.query.taskType
this.questiondata.visitRecordId=this.$route.query.visitRecordId
this.questiondata.visitRecordId = this.$route.query.visitRecordId
this.questiondata.totalScore = 0
this.questiondata.subjectResultList.forEach(e => {
if (e.questionType == 'MULTIPLE_CHOICE' || e.questionType == 'MULTIPLE_CHOICE_QUESTIONS' || e.questionType == 'SCORING_QUESTIONS' || e.questionType == 'COMBINATION_RADIO_SUBJECT' || e.questionType == 'COMBINATION_MULTIPLE_SUBJECT' || e.questionType == 'COMBINATION_SCORING_SUBJECT') {
@ -448,44 +450,44 @@
},
},
};
};
</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;
}
::v-deep .el-textarea.is-disabled .el-textarea__inner {
}
::v-deep .el-textarea.is-disabled .el-textarea__inner {
color: #606266;
background: #fff;
}
.tk {
}
.tk {
::v-deep .el-textarea__inner {
margin: 20px 0 10px 30px;
}
}
}
::v-deep .el-radio {
::v-deep .el-radio {
padding: 10px;
}
::v-deep .el-checkbox-group {
}
::v-deep .el-checkbox-group {
display: flex;
flex-direction: column;
padding: 10px 0px 10px 24px;
}
::v-deep .el-checkbox {
}
::v-deep .el-checkbox {
padding: 10px 0 10px 0px;
// padding: 10px;
}
.custom-radio-group {
}
.custom-radio-group {
display: flex;
flex-direction: column;
padding: 10px 0 10px 10px;
.custom {
padding: 10px 0 10px 10px;
}
}
.bodytop {
}
.bodytop {
position: relative;
top: 20px;
// height: 500px;
@ -516,13 +518,13 @@
margin: 10px 0px 10px 30px;
font-size: 16px;
}
}
.right {
}
.right {
width: 100%;
height: 500px;
// background: yellow;
}
.header {
}
.header {
background-color: #f1f3f5;
padding-top: 10px;
@ -664,6 +666,6 @@
}
}
}
}
</style>
}
</style>

View File

@ -238,10 +238,12 @@
<div class="nexttime">
<el-form
ref="form"
ref="formlist"
:model="formlist"
label-width="110px"
:inline="true"
:rules="rulesphone"
>
<el-form-item label="话术名称" prop="scriptName">
<el-input
@ -267,6 +269,16 @@
placeholder="请输入话术简介"
/>
</el-form-item>
<br />
<el-form-item label="任务处理信息" prop="routeHandleRemark">
<el-input
type="textarea"
v-model="formlist.routeHandleRemark"
placeholder="请输入任务处理信息"
/>
</el-form-item>
</el-form>
</div>
</div>
@ -308,6 +320,12 @@ export default {
{ required: true, message: '请输入任务处理信息', trigger: 'change' }
],
},
rulesphone:{
routeHandleRemark: [
{ required: true, message: '请输入任务处理信息', trigger: 'change' }
],
},
radio: "B",
id: "",
list: [],
@ -327,6 +345,7 @@ export default {
if (this.$route.query.taskType == 'QUESTIONNAIRE_SCALE' || this.$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP') {
this.questioninfo();
} else {
getScript(this.$route.query.templateId).then(response => {
if (response.data) {
this.formlist = response.data;
@ -491,14 +510,15 @@ export default {
}
});
} else if (this.$route.query.taskType == 'PHONE_OUTBOUND') {
console.log(this.form, '话术')
// console.log(this.form, '')
// return
this.$refs["form"].validate(valid => {
this.$refs["formlist"].validate(valid => {
if (valid) {
this.form.departmentId=this.formlist.departmentId,
this.form.departmentName=this.formlist.departmentName,
this.form.diseaseTypeId=this.formlist.diseaseTypeId,
this.form.diseaseTypeName=this.formlist.diseaseTypeName,
this.form.routeHandleRemark=this.formlist.routeHandleRemark
console.log(this.form, 'this.form')
// return
addPatientQuestionResult(this.form).then(response => {