Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
08229cae4f
@ -49,15 +49,11 @@
|
||||
<!-- 问卷模板 -->
|
||||
<div
|
||||
class="right"
|
||||
v-if="
|
||||
$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'
|
||||
"
|
||||
v-if="$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'"
|
||||
>
|
||||
<div
|
||||
class="handle"
|
||||
v-if="
|
||||
$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'
|
||||
"
|
||||
v-if="$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'"
|
||||
>
|
||||
<el-form
|
||||
:inline="true"
|
||||
@ -88,7 +84,7 @@
|
||||
>
|
||||
您好!本问卷用于评估日常生活能力,请根据自身日常实际表现选择合适的选项。
|
||||
</div>
|
||||
<!--
|
||||
<!--
|
||||
<div
|
||||
class="sport"
|
||||
v-if="$route.query.taskNodeType == 'ARTIFICIAL_FOLLOW_UP'"
|
||||
@ -305,7 +301,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="电话短信提醒" prop="phone">
|
||||
<el-form-item label="电话短信提醒" prop="phoneMessageRemind">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.phoneMessageRemind"
|
||||
@ -432,9 +428,7 @@ export default {
|
||||
this.id = this.$route.query.manageRouteId;
|
||||
this.info();
|
||||
this.infolistword();
|
||||
if (
|
||||
this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE"
|
||||
) {
|
||||
if (this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE") {
|
||||
this.questioninfo();
|
||||
} else if (this.$route.query.taskNodeType == "PHONE_OUTBOUND") {
|
||||
selectPhonePush(this.$route.query.manageRouteNodeId).then((response) => {
|
||||
@ -500,7 +494,7 @@ export default {
|
||||
timepickerselect(e, index) {
|
||||
this.questiondata.questionSubjectList[index].fillBlanksAnswer = e;
|
||||
},
|
||||
radioGroupChange(e, item) { },
|
||||
radioGroupChange(e, item) {},
|
||||
// 选中某个单选框时,由radio时触发
|
||||
radioChange(e, item, index) {
|
||||
console.log(e, item, index, "选中某个单选框时");
|
||||
@ -580,6 +574,7 @@ export default {
|
||||
|
||||
/** 提交按钮 */
|
||||
submit() {
|
||||
// return
|
||||
if (this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE") {
|
||||
// 对象.新名字=对象.原数组
|
||||
this.$delete(this.questiondata, "updateBy");
|
||||
@ -641,9 +636,7 @@ export default {
|
||||
// this.$delete(this.obj, 'totalScore',)
|
||||
}
|
||||
// 问卷、随访
|
||||
if (
|
||||
this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE"
|
||||
) {
|
||||
if (this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE") {
|
||||
// console.log(this.obj, 'objobj')
|
||||
// return
|
||||
this.$refs["questiondata"].validate((valid) => {
|
||||
@ -670,40 +663,43 @@ export default {
|
||||
}
|
||||
});
|
||||
} else if (this.$route.query.taskNodeType == "PHONE_OUTBOUND") {
|
||||
// console.log(this.form, '话术')
|
||||
// return
|
||||
this.$refs["formlist"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.form.phoneMessageRemind = this.optionslist.find(
|
||||
(el) => el.dictLabel == this.formlist.phoneMessageRemind
|
||||
)?.dictValue;
|
||||
this.form.phoneRedialTimes = this.optionslistS.find(
|
||||
(el) => el.dictLabel == this.formlist.phoneRedialTimes
|
||||
)?.dictValue;
|
||||
(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);
|
||||
this.form.phoneConnectStatus = this.formlist.phoneConnectStatus;
|
||||
this.form.phoneMessageRemind = this.formlist.phoneMessageRemind;
|
||||
this.form.visitRecordId = this.$route.query.visitRecordId;
|
||||
|
||||
(this.form.visitRecordId = this.$route.query.visitRecordId),
|
||||
// console.log(this.form, 'this.form')
|
||||
// return
|
||||
addPatientQuestionResult(this.form).then((response) => {
|
||||
this.$confirm("保存成功, 是否返回上一页?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "success",
|
||||
})
|
||||
.then(() => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/task/followup",
|
||||
});
|
||||
var formlists = JSON.parse(JSON.stringify(this.form));
|
||||
// return;
|
||||
addPatientQuestionResult(formlists).then((response) => {
|
||||
this.$confirm("保存成功, 是否返回上一页?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "success",
|
||||
})
|
||||
.then(() => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/task/followup",
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
this.$modal.msgSuccess("保存成功");
|
||||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
this.$modal.msgSuccess("保存成功");
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -824,8 +820,8 @@ export default {
|
||||
margin-top: 20px;
|
||||
::v-deep .el-textarea__inner {
|
||||
width: 500px;
|
||||
height: 250px;
|
||||
}
|
||||
height: 250px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user