| | |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="任务名称"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | <el-input |
| | | v-model="topqueryParams.taskName" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审核人"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | <el-form-item label="创建人"> |
| | | <el-input |
| | | v-model="topqueryParams.createBy" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审核时间"> |
| | | <el-form-item label="创建时间"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px" |
| | |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="随访类型" prop="status"> |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | <el-form-item label="模版名称" prop="status"> |
| | | <el-input |
| | | v-model="topqueryParams.templatename" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="模版" prop="status"> |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-form-item label="任务状态" prop="status"> |
| | | <el-select v-model="topqueryParams.sendState" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="门诊随访状态" prop="status"> |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in dict.type.task_status" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | label="任务名称" |
| | | fixed |
| | | align="center" |
| | | sortable |
| | | key="taskName" |
| | | prop="taskName" |
| | | :show-overflow-tooltip="true" |
| | |
| | | </div> |
| | | <div |
| | | style="font-size: 18px; margin-bottom: 20px" |
| | | v-if="taskform.showDate[0]" |
| | | v-if="taskform.showDate" |
| | | > |
| | | 执行日期:<span |
| | | style="font-size: 18px; color: #2376b7; margin-bottom: 20px" |
| | |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "问卷服务", |
| | | label: "患者报告", |
| | | }, |
| | | ], |
| | | tasktopic: "2", //新增类型 |
| | |
| | | this.taskoptions, |
| | | this.tasktopic |
| | | ); |
| | | getTasklist(this.topqueryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | getTasklist(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | (response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.$forceUpdate(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | // 查看门诊随访详情 |
| | | Referencequestion(row) { |
| | |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { type: 2, typename: typename }, |
| | | }); |
| | | } else if (this.tasktopic == 1) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { type: 3, typename: typename }, |
| | | }); |
| | | } |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: this.tasktopic, id: row.taskid }, |
| | | }); |
| | | if (this.tasktopic == 1 || this.tasktopic == 2 || this.tasktopic == 3) { |
| | | // this.$router.push({ |
| | | // path: "/followvisit/particty", |
| | | // query: { type: this.tasktopic, id: row.taskid }, |
| | | // }); |
| | | if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 4 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: this.tasktopic, id: row.taskid }, |
| | | query: { type: 1, id: row.taskid }, |
| | | }); |
| | | } else if (this.tasktopic == 6) { |
| | | this.$router.push({ |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { type: this.tasktopic, id: row.taskid }, |
| | | query: { type: 2, id: row.taskid }, |
| | | }); |
| | | } else if (this.tasktopic == 1) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { type: 3, id: row.taskid }, |
| | | }); |
| | | } |
| | | }, |
| | |
| | | sponsor(row) { |
| | | console.log(row, "任务信息"); |
| | | this.taskform = row; |
| | | if (this.taskform.showDate) { |
| | | console.log(12); |
| | | if (this.taskform.showDate && this.taskform.sendType != 2) { |
| | | this.taskform.showDate = this.taskform.showDate.split(","); |
| | | } |
| | | if (this.taskform.showTimeMorn) { |
| | | if (this.taskform.showTimeMorn && this.taskform.sendType != 2) { |
| | | this.taskform.showTimeMorn = this.taskform.showTimeMorn.split(","); |
| | | } else { |
| | | this.taskform.showTimeMorn = []; |
| | | } |
| | | if (this.taskform.showTimeNight) { |
| | | if (this.taskform.showTimeNight && this.taskform.sendType != 2) { |
| | | this.taskform.showTimeNight = this.taskform.showTimeNight.split(","); |
| | | } else { |
| | | this.taskform.showTimeNight = []; |
| | | } |
| | | if (this.taskform.showTimeNoon) { |
| | | if (this.taskform.showTimeNoon && this.taskform.sendType != 2) { |
| | | this.taskform.showTimeNoon = this.taskform.showTimeNoon.split(","); |
| | | } else { |
| | | this.taskform.showTimeNoon = []; |
| | | } |
| | | if (row.sendState != 2) { |
| | | if (this.taskform.sendState != 2 && this.taskform.sendType != 2) { |
| | | this.taskformVisible = true; |
| | | } else if (this.taskform.sendState != 2 && this.taskform.sendType == 2) { |
| | | this.TaskOperation.taskId = row.taskid; |
| | | this.TaskOperation.sendState = 2; |
| | | this.TaskOperation.sendType = 2; |
| | | this.$modal |
| | | .confirm( |
| | | '当前选中任务名称为"' + |
| | | row.taskName + |
| | | '"的数据项为立即执行任务,发起执行后不可撤回!是否继续' |
| | | ) |
| | | .then(() => { |
| | | TaskTemplateSendExecution(this.TaskOperation).then((res) => { |
| | | if (res.code == 200) { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("任务已立即执行"); |
| | | } |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | } else { |
| | | this.$modal.msgError("任务已发起,不可再次发起"); |
| | | } |
| | |
| | | |
| | | // 依照新增 |
| | | newAdd(row) { |
| | | TaskTemplateSendExecution().then((res) => {}); |
| | | this.$modal |
| | | .confirm("是否依照当前任务创建新任务?") |
| | | .then(() => { |
| | | if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 4 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, id: row.taskid, nhh: 1 }, |
| | | }); |
| | | } else if (this.tasktopic == 6) { |
| | | this.$router.push({ |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { type: 2, id: row.taskid, nhh: 1 }, |
| | | }); |
| | | } else if (this.tasktopic == 1) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { type: 3, id: row.taskid, nhh: 1 }, |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | // 暂停 |
| | | stop(row) { |
| | | console.log(row); |
| | | if (row.sendState == 2) { |
| | | this.TaskOperation.taskId = row.taskId; |
| | | this.TaskOperation.taskId = row.taskid; |
| | | this.TaskOperation.sendState = 3; |
| | | this.TaskOperation.sendType = ""; |
| | | this.TaskOperation.taskType = row.type; |
| | | TaskTemplateSendExecution(this.TaskOperation).then((res) => { |
| | | this.$modal.msgSuccess("任务已暂停"); |
| | | this.getList(); |