修改任务管理--处理

This commit is contained in:
shidongli 2025-01-21 16:30:54 +08:00
parent bc37303345
commit 10ae82f280
3 changed files with 54 additions and 42 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="headernewhandel"> <div class="headernewhandel">
<!-- 左侧 --> <!-- 左侧 -->
<div :class="isshow ? 'left' : 'noleft'"> <div :class="isshow ? 'left' : 'noleft'">
<el-tabs v-model="activeName" @tab-click="handleClick" v-if="isshow"> <el-tabs v-model="activeName" @tab-click="handleClick" v-if="isshow">
<el-tab-pane <el-tab-pane
label="任务详情" label="任务详情"
@ -9,11 +9,7 @@
v-if="$route.query.taskNodeType == 'PHONE_OUTBOUND'" v-if="$route.query.taskNodeType == 'PHONE_OUTBOUND'"
> >
<div class="nexttime"> <div class="nexttime">
<el-form <el-form ref="formlist" :model="formlist" label-width="110px">
ref="formlist"
:model="formlist"
label-width="110px"
>
<el-form-item label="电话" prop="patientPhone"> <el-form-item label="电话" prop="patientPhone">
<el-input <el-input
disabled disabled
@ -68,14 +64,14 @@
<el-form-item label="第二次拨打时间" prop="secondTime "> <el-form-item label="第二次拨打时间" prop="secondTime ">
<el-input <el-input
disabled disabled
v-model="formlist.secondTime " v-model="formlist.secondTime"
placeholder="请输入第二次拨打时间" placeholder="请输入第二次拨打时间"
/> />
</el-form-item> </el-form-item>
<el-form-item label="第三次拨打时间" prop="thirdTime "> <el-form-item label="第三次拨打时间" prop="thirdTime ">
<el-input <el-input
disabled disabled
v-model="formlist.thirdTime " v-model="formlist.thirdTime"
placeholder="请输入第三次拨打时间" placeholder="请输入第三次拨打时间"
/> />
</el-form-item> </el-form-item>
@ -91,7 +87,6 @@
placeholder="" placeholder=""
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -574,12 +569,12 @@ export default {
e.questionType == "COMBINATION_MULTIPLE_SUBJECT" || e.questionType == "COMBINATION_MULTIPLE_SUBJECT" ||
e.questionType == "COMBINATION_SCORING_SUBJECT" e.questionType == "COMBINATION_SCORING_SUBJECT"
) { ) {
if(e.whetherScore==true){ if (e.whetherScore == true) {
e.whetherScore = 1; e.whetherScore = 1;
}else if(e.whetherScore==false){ } else if (e.whetherScore == false) {
e.whetherScore = 0; e.whetherScore = 0;
} }
}else{ } else {
e.whetherScore = 0; e.whetherScore = 0;
} }
e.questionSubjectOptionList.forEach((el) => { e.questionSubjectOptionList.forEach((el) => {
@ -604,7 +599,7 @@ export default {
this.$delete(this.questiondata, "updateTime"); this.$delete(this.questiondata, "updateTime");
var score = 0; var score = 0;
// //
var lengthScore=this.questiondata.questionSubjectList.filter(f=> f.whetherScore == 0) var lengthScore = this.questiondata.questionSubjectList.filter(f => f.whetherScore == 0)
this.questiondata.questionSubjectList.forEach((e) => { this.questiondata.questionSubjectList.forEach((e) => {
if (e.questionSubjectOptionList?.length > 0) { if (e.questionSubjectOptionList?.length > 0) {
e.questionSubjectOptionList.forEach((el) => { e.questionSubjectOptionList.forEach((el) => {
@ -622,10 +617,10 @@ export default {
} }
}); });
if(lengthScore.length==this.questiondata.questionSubjectList.length){ if (lengthScore.length == this.questiondata.questionSubjectList.length) {
this.questiondata.totalScore = ''; this.questiondata.totalScore = '';
}else{ } else {
this.questiondata.totalScore = score; this.questiondata.totalScore = score;
} }
} }
}); });
@ -677,9 +672,17 @@ export default {
this.$store this.$store
.dispatch("tagsView/delView", this.$route) .dispatch("tagsView/delView", this.$route)
.then(({ visitedViews }) => { .then(({ visitedViews }) => {
this.$router.push({ if (this.$route.query.path == "/task/taskmanagement") {
path: "/task/followup", this.$router.push({
}); path: "/task/taskmanagement",
});
} else {
this.$router.push({
path: "/task/followup",
});
}
}); });
}) })
.catch(() => { .catch(() => {
@ -721,9 +724,16 @@ export default {
this.$store this.$store
.dispatch("tagsView/delView", this.$route) .dispatch("tagsView/delView", this.$route)
.then(({ visitedViews }) => { .then(({ visitedViews }) => {
this.$router.push({ if (this.$route.query.path == "/task/taskmanagement") {
path: "/task/followup", this.$router.push({
}); path: "/task/taskmanagement",
});
} else {
this.$router.push({
path: "/task/followup",
});
}
}); });
}) })
.catch(() => { .catch(() => {
@ -832,17 +842,16 @@ export default {
height: calc(100vh - 84px); height: calc(100vh - 84px);
// background-color: #f1f3f5; // background-color: #f1f3f5;
display: flex; display: flex;
::v-deep .el-tabs__item{ ::v-deep .el-tabs__item {
padding: 0 13px; padding: 0 13px;
} }
.nexttime{ .nexttime {
height: calc(100vh - 300px); height: calc(100vh - 300px);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
// background: aliceblue; // background: aliceblue;
/* height: 30vh; */ /* height: 30vh; */
margin-top: 25px; margin-top: 25px;
} }
::v-deep .el-tabs__header { ::v-deep .el-tabs__header {
@ -857,7 +866,7 @@ export default {
margin-top: 20px; margin-top: 20px;
width: 27%; width: 27%;
// background: red; // background: red;
::v-deep .el-form{ ::v-deep .el-form {
padding-right: 9px; padding-right: 9px;
// margin-left: -14px; // margin-left: -14px;
} }
@ -938,11 +947,10 @@ export default {
.right_top { .right_top {
// width: 39%; // width: 39%;
width: 350px; width: 350px;
::v-deep .el-textarea__inner{ ::v-deep .el-textarea__inner {
width: 338px; width: 338px;
height: 250px; height: 250px;
margin-top: 10px; margin-top: 10px;
} }
} }
} }

View File

@ -1507,7 +1507,7 @@
this.$router.push({ this.$router.push({
path: "/task/followupsee", path: "/task/followupsee",
query: { query: {
path: "/task/followup", path: "/task/taskmanagement",
patientId: row.patientId, patientId: row.patientId,
taskNodeType: row.taskNodeType, taskNodeType: row.taskNodeType,
templateId: row.templateId, templateId: row.templateId,

View File

@ -60,10 +60,7 @@
<el-tab-pane label="签约记录" name="five"> <el-tab-pane label="签约记录" name="five">
<signingRecords v-if="activeName == 'five'"></signingRecords> <signingRecords v-if="activeName == 'five'"></signingRecords>
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane label="任务处理" name="six">
label="任务处理"
name="six"
>
<keep-alive> <keep-alive>
<Taskprocess v-if="activeName == 'six'" ref="process"></Taskprocess> <Taskprocess v-if="activeName == 'six'" ref="process"></Taskprocess>
</keep-alive> </keep-alive>
@ -133,9 +130,17 @@ export default {
}, },
// //
cencal() { cencal() {
this.$router.push({ if (this.$route.query.path == "/task/taskmanagement") {
path: "/task/followup", this.$router.push({
}); path: "/task/taskmanagement",
});
} else {
this.$router.push({
path: "/task/followup",
});
}
}, },
}, },
}; };
@ -275,7 +280,6 @@ export default {
background-color: #fff; background-color: #fff;
margin: 10px auto; margin: 10px auto;
padding: 10px 0px 10px 20px; padding: 10px 0px 10px 20px;
} }
.topheaderup { .topheaderup {
width: 99%; width: 99%;