Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
14cf6c7546
@ -373,9 +373,9 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="LIS对照" prop="lisCompare">
|
<!-- <el-form-item label="LIS对照" prop="lisCompare">
|
||||||
<el-input v-model="form.lisCompare" placeholder="请输入LIS对照" />
|
<el-input v-model="form.lisCompare" placeholder="请输入LIS对照" />
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item label="计量单位" prop="projectUnit">
|
<el-form-item label="计量单位" prop="projectUnit">
|
||||||
<el-input v-model="form.projectUnit" placeholder="请输入计量单位" />
|
<el-input v-model="form.projectUnit" placeholder="请输入计量单位" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@ -556,6 +556,8 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
|
|
||||||
|
this.queryParams.deviceType=''
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
<el-tabs v-model="queryParams.nodeExecuteStatus" @tab-click="handleClick">
|
||||||
|
<el-tab-pane label="未执行" name="UNEXECUTED"></el-tab-pane>
|
||||||
|
<el-tab-pane label="已执行" name="EXECUTED"></el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
<el-form
|
<el-form
|
||||||
:model="queryParams"
|
:model="queryParams"
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
@ -317,11 +321,20 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-bank-card"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
>处理</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
v-if="queryParams.nodeExecuteStatus == 'EXECUTED'"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-notebook-2"
|
icon="el-icon-notebook-2"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handledatail(scope.row)"
|
||||||
>处理</el-button
|
>详情</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -347,7 +360,7 @@ import {
|
|||||||
selectAgencyList, getAgencyList
|
selectAgencyList, getAgencyList
|
||||||
} from "@/api/manage/selectAgencyList";
|
} from "@/api/manage/selectAgencyList";
|
||||||
export default {
|
export default {
|
||||||
name: "TaskExecuteRecord",
|
name: "Followup22",
|
||||||
dicts: ["visit_type"],
|
dicts: ["visit_type"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -390,6 +403,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
nodeExecuteStatus: 'UNEXECUTED',
|
||||||
followStartTime: null,
|
followStartTime: null,
|
||||||
followEndTime: null,
|
followEndTime: null,
|
||||||
clinicalStartTime: null,
|
clinicalStartTime: null,
|
||||||
@ -446,6 +460,30 @@ export default {
|
|||||||
this.selectAgencyinfo();
|
this.selectAgencyinfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleClick(tab, event) {
|
||||||
|
this.intentionalTime = [],
|
||||||
|
this.mzTime = [],
|
||||||
|
this.ryTime = [],
|
||||||
|
this.queryParams.dischargeStartTime = null
|
||||||
|
this.queryParams.dischargeEndTime = null
|
||||||
|
this.queryParams.clinicalStartTime = null
|
||||||
|
this.queryParams.clinicalEndTime = null
|
||||||
|
this.queryParams.followStartTime = null
|
||||||
|
this.queryParams.followEndTime = null
|
||||||
|
this.queryParams.admissionEndTime=null
|
||||||
|
this.queryParams.admissionStartTime=null
|
||||||
|
this.queryParams.mainDiagnosis=null
|
||||||
|
this.queryParams.visitSerialNumber=null
|
||||||
|
this.queryParams.attendingPhysicianId=null
|
||||||
|
this.queryParams.visitMethod=null
|
||||||
|
this.queryParams.patientName=null
|
||||||
|
this.queryParams.hospitalAgencyId=null
|
||||||
|
this.queryParams.campusAgencyId=null
|
||||||
|
this.queryParams.departmentId=null
|
||||||
|
this.queryParams.wardId=null
|
||||||
|
this.queryParams.patientPhone=null
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
if (e == 'DISCHARGE') {
|
if (e == 'DISCHARGE') {
|
||||||
this.queryParams.clinicalStartTime = null
|
this.queryParams.clinicalStartTime = null
|
||||||
@ -454,13 +492,12 @@ export default {
|
|||||||
} else if (e == 'OUTPATIENT_SERVICE') {
|
} else if (e == 'OUTPATIENT_SERVICE') {
|
||||||
this.queryParams.dischargeStartTime = null
|
this.queryParams.dischargeStartTime = null
|
||||||
this.queryParams.dischargeEndTime = null
|
this.queryParams.dischargeEndTime = null
|
||||||
}else{
|
} else {
|
||||||
|
|
||||||
this.queryParams.dischargeStartTime = null
|
this.queryParams.dischargeStartTime = null
|
||||||
this.queryParams.dischargeEndTime = null
|
this.queryParams.dischargeEndTime = null
|
||||||
this.queryParams.clinicalStartTime = null
|
this.queryParams.clinicalStartTime = null
|
||||||
this.queryParams.clinicalEndTime = null
|
this.queryParams.clinicalEndTime = null
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log(e)
|
console.log(e)
|
||||||
// DISCHARGE
|
// DISCHARGE
|
||||||
@ -503,13 +540,6 @@ export default {
|
|||||||
//选中医院获取院区
|
//选中医院获取院区
|
||||||
changehospitalAgency(id) {
|
changehospitalAgency(id) {
|
||||||
this.getAgencyListinfo('HOSPITAL', id)
|
this.getAgencyListinfo('HOSPITAL', id)
|
||||||
// let query = {
|
|
||||||
// agencyStatus: 'ON',
|
|
||||||
// nodeType: 'CAMPUS',
|
|
||||||
// parentId: id,
|
|
||||||
// }
|
|
||||||
// selectAgencyList(query).then(res => {
|
|
||||||
// this.campusAgencylist = res.data
|
|
||||||
this.queryParams.campusAgencyId = null
|
this.queryParams.campusAgencyId = null
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
@ -521,12 +551,6 @@ export default {
|
|||||||
//选中院区获取科室
|
//选中院区获取科室
|
||||||
changecampusAgency(id) {
|
changecampusAgency(id) {
|
||||||
this.getAgencyListinfo('CAMPUS', id)
|
this.getAgencyListinfo('CAMPUS', id)
|
||||||
// let query = {
|
|
||||||
// nodeType: 'DEPARTMENT',
|
|
||||||
// agencyId: id,
|
|
||||||
// }
|
|
||||||
// getDepartmentList(query).then(res => {
|
|
||||||
// this.departmentlist = res.data
|
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
// })
|
// })
|
||||||
@ -588,6 +612,7 @@ export default {
|
|||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
|
nodeExecuteStatus: 'UNEXECUTED',
|
||||||
id: null,
|
id: null,
|
||||||
patientId: null,
|
patientId: null,
|
||||||
manageRouteId: null,
|
manageRouteId: null,
|
||||||
@ -626,7 +651,7 @@ export default {
|
|||||||
this.queryParams.clinicalEndTime = null
|
this.queryParams.clinicalEndTime = null
|
||||||
} else {
|
} else {
|
||||||
console.log(this.queryParams, '-----')
|
console.log(this.queryParams, '-----')
|
||||||
if (!this.queryParams.visitMethod || this.queryParams.visitMethod=='IN_THE_HOSPITAL') {
|
if (!this.queryParams.visitMethod || this.queryParams.visitMethod == 'IN_THE_HOSPITAL') {
|
||||||
this.queryParams.clinicalStartTime = this.mzTime[0]
|
this.queryParams.clinicalStartTime = this.mzTime[0]
|
||||||
this.queryParams.clinicalEndTime = this.mzTime[1]
|
this.queryParams.clinicalEndTime = this.mzTime[1]
|
||||||
this.queryParams.dischargeStartTime = this.queryParams.clinicalStartTime
|
this.queryParams.dischargeStartTime = this.queryParams.clinicalStartTime
|
||||||
@ -677,6 +702,7 @@ export default {
|
|||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
nodeExecuteStatus: 'UNEXECUTED',
|
||||||
followStartTime: null,
|
followStartTime: null,
|
||||||
followEndTime: null,
|
followEndTime: null,
|
||||||
clinicalStartTime: null,
|
clinicalStartTime: null,
|
||||||
@ -684,7 +710,6 @@ export default {
|
|||||||
admissionEndTime: null,
|
admissionEndTime: null,
|
||||||
admissionStartTime: null,
|
admissionStartTime: null,
|
||||||
mainDiagnosis: null,
|
mainDiagnosis: null,
|
||||||
|
|
||||||
visitSerialNumber: null,
|
visitSerialNumber: null,
|
||||||
attendingPhysicianId: null,
|
attendingPhysicianId: null,
|
||||||
patientId: null,
|
patientId: null,
|
||||||
@ -723,7 +748,7 @@ export default {
|
|||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加患者管理任务执行记录";
|
this.title = "添加患者管理任务执行记录";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 处理按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@ -735,7 +760,7 @@ export default {
|
|||||||
cardNo: row.cardNo,
|
cardNo: row.cardNo,
|
||||||
patientName: row.patientName,
|
patientName: row.patientName,
|
||||||
manageRouteName: row.manageRouteName,
|
manageRouteName: row.manageRouteName,
|
||||||
manageRouteNodeName:row.routeNodeName,
|
manageRouteNodeName: row.routeNodeName,
|
||||||
patientPhone: row.patientPhone,
|
patientPhone: row.patientPhone,
|
||||||
sex: row.sex,
|
sex: row.sex,
|
||||||
birthDate: row.birthDate,
|
birthDate: row.birthDate,
|
||||||
@ -746,9 +771,20 @@ export default {
|
|||||||
age: row.birthDate ? getAge(row.birthDate) : "",
|
age: row.birthDate ? getAge(row.birthDate) : "",
|
||||||
manageRouteId: row.manageRouteId,
|
manageRouteId: row.manageRouteId,
|
||||||
manageRouteNodeId: row.manageRouteNodeId,
|
manageRouteNodeId: row.manageRouteNodeId,
|
||||||
|
|
||||||
|
departmentId: row.departmentId,
|
||||||
|
departmentName: row.departmentName,
|
||||||
|
diseaseTypeId: row.diseaseTypeId ? row.diseaseTypeId : null,
|
||||||
|
diseaseTypeName: row.diseaseTypeName ? row.diseaseTypeName : null,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
// 详情
|
||||||
|
handledatail(row) {
|
||||||
|
console.log(row)
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
|||||||
@ -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>
|
||||||
@ -50,9 +49,18 @@
|
|||||||
<!-- 问卷模板 -->
|
<!-- 问卷模板 -->
|
||||||
<div
|
<div
|
||||||
class="right"
|
class="right"
|
||||||
v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'"
|
v-if="
|
||||||
|
$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
|
||||||
|
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div style="float: right; margin-top: 20px">
|
<div
|
||||||
|
style="float: right; margin-top: 20px"
|
||||||
|
v-if="
|
||||||
|
$route.query.taskType == 'QUESTIONNAIRE_SCALE' ||
|
||||||
|
$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'
|
||||||
|
"
|
||||||
|
>
|
||||||
<el-form
|
<el-form
|
||||||
:inline="true"
|
:inline="true"
|
||||||
class="demo-form-inline"
|
class="demo-form-inline"
|
||||||
@ -69,10 +77,38 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="sport">问卷模板: Barthel指数评定问卷</div>
|
<div
|
||||||
<div class="words">
|
class="sport"
|
||||||
|
v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'"
|
||||||
|
>
|
||||||
|
问卷模板: Barthel指数评定问卷
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="words"
|
||||||
|
v-if="$route.query.taskType == 'QUESTIONNAIRE_SCALE'"
|
||||||
|
>
|
||||||
您好!本问卷用于评估日常生活能力,请根据自身日常实际表现选择合适的选项。
|
您好!本问卷用于评估日常生活能力,请根据自身日常实际表现选择合适的选项。
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="sport"
|
||||||
|
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
|
||||||
|
>
|
||||||
|
人工随访模板: 神经内科人工随访
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="words"
|
||||||
|
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
|
||||||
|
>
|
||||||
|
**您好!
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="words"
|
||||||
|
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
|
||||||
|
>
|
||||||
|
我是✕✕医院的工作人员,今天给您打电话想要了解一下您的恢复情况。
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="words"
|
class="words"
|
||||||
v-for="(item, index) in questiondata.questionSubjectList"
|
v-for="(item, index) in questiondata.questionSubjectList"
|
||||||
@ -167,8 +203,8 @@
|
|||||||
style="margin: 20px 0 10px 30px"
|
style="margin: 20px 0 10px 30px"
|
||||||
>
|
>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@change="timepicker($event,index)"
|
@change="timepicker($event, index)"
|
||||||
clearable
|
clearable
|
||||||
v-model="item.optionAnswer"
|
v-model="item.optionAnswer"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
@ -182,8 +218,8 @@
|
|||||||
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
v-if="item.questionType == 'TIME_BLANKS_SUBJECT'"
|
||||||
>
|
>
|
||||||
<el-time-select
|
<el-time-select
|
||||||
@change="timepickerselect($event,index)"
|
@change="timepickerselect($event, index)"
|
||||||
clearable
|
clearable
|
||||||
v-model="item.optionAnswer"
|
v-model="item.optionAnswer"
|
||||||
:picker-options="{
|
:picker-options="{
|
||||||
start: '08:30',
|
start: '08:30',
|
||||||
@ -199,39 +235,41 @@
|
|||||||
<!-- 电话外呼 -->
|
<!-- 电话外呼 -->
|
||||||
<div v-if="$route.query.taskType == 'PHONE_OUTBOUND'">
|
<div v-if="$route.query.taskType == 'PHONE_OUTBOUND'">
|
||||||
<div class="sport">电话外呼</div>
|
<div class="sport">电话外呼</div>
|
||||||
<div class="nexttime">话术名称</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 人工随访 -->
|
<div class="nexttime">
|
||||||
<div
|
<el-form
|
||||||
class="right"
|
ref="form"
|
||||||
v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'"
|
:model="formlist"
|
||||||
>
|
label-width="110px"
|
||||||
<div class="sport">人工随访模板: 神经内科人工随访</div>
|
:inline="true"
|
||||||
<div class="words">**您好!</div>
|
>
|
||||||
<div class="words">
|
<el-form-item label="话术名称" prop="scriptName">
|
||||||
我是✕✕医院的工作人员,今天给您打电话想要了解一下您的恢复情况。
|
<el-input
|
||||||
</div>
|
disabled
|
||||||
<div class="words">
|
v-model="formlist.scriptName"
|
||||||
1.进食【单选题】
|
placeholder="请输入话术名称"
|
||||||
<el-radio-group v-model="radio" class="custom-radio-group">
|
/>
|
||||||
<el-radio
|
</el-form-item>
|
||||||
v-for="item in options"
|
<br />
|
||||||
:key="item.id"
|
<el-form-item label="通用话术名称" prop="commonScriptName">
|
||||||
:label="item.value"
|
<el-input
|
||||||
>
|
disabled
|
||||||
{{ item.label }}
|
v-model="formlist.commonScriptName"
|
||||||
</el-radio>
|
placeholder="请输入通用话术名称"
|
||||||
<!-- <el-radio label="1" class="custom">备选项</el-radio>
|
/>
|
||||||
<el-radio label="2" class="custom">备选项</el-radio>
|
</el-form-item>
|
||||||
<el-radio label="3" class="custom">备选项</el-radio> -->
|
<br />
|
||||||
</el-radio-group>
|
<el-form-item label="话术简介" prop="scriptIntroduction">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
type="textarea"
|
||||||
|
v-model="formlist.scriptIntroduction"
|
||||||
|
placeholder="请输入话术简介"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div v-if="$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP'">
|
|
||||||
<div class="sport">人工随访模板:</div>
|
|
||||||
<div class="sport">人工随访模板内容:</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -239,8 +277,8 @@
|
|||||||
|
|
||||||
<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 Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "patientdetails",
|
name: "patientdetails",
|
||||||
data() {
|
data() {
|
||||||
@ -248,17 +286,28 @@ export default {
|
|||||||
obj: {},
|
obj: {},
|
||||||
checkList: [],
|
checkList: [],
|
||||||
checked: false,
|
checked: false,
|
||||||
|
formlist: {},
|
||||||
|
form: {
|
||||||
|
taskType: this.$route.query.taskType,
|
||||||
|
routeHandleId: Cookies.get('userId'),
|
||||||
|
routeHandlePerson: Cookies.get('userName'),
|
||||||
|
routeHandleRemark: null,
|
||||||
|
patientId: this.$route.query.patientId,
|
||||||
|
manageRouteId: this.$route.query.manageRouteId,
|
||||||
|
manageRouteNodeId: this.$route.query.manageRouteNodeId,
|
||||||
|
patientName: this.$route.query.patientName,
|
||||||
|
manageRouteName: this.$route.query.manageRouteName,
|
||||||
|
manageRouteNodeName: this.$route.query.manageRouteNodeName,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
diseaseTypeId: null,
|
||||||
|
diseaseTypeName: null,
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
routeHandleRemark: [
|
routeHandleRemark: [
|
||||||
{ 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: [],
|
||||||
@ -268,29 +317,33 @@ export default {
|
|||||||
totalScore: 0, //总分
|
totalScore: 0, //总分
|
||||||
routeHandlePerson: null,
|
routeHandlePerson: null,
|
||||||
routeHandleId: null,
|
routeHandleId: null,
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.id = this.$route.query.manageRouteId;
|
this.id = this.$route.query.manageRouteId;
|
||||||
this.info();
|
this.info();
|
||||||
this.questioninfo();
|
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;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 日期填空题
|
// 日期填空题
|
||||||
timepicker(e,index){
|
timepicker(e, index) {
|
||||||
this.questiondata.questionSubjectList[index].optionAnswer=e
|
this.questiondata.questionSubjectList[index].optionAnswer = e
|
||||||
|
|
||||||
},
|
},
|
||||||
// 时间填空题
|
// 时间填空题
|
||||||
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) {
|
||||||
},
|
},
|
||||||
// 选中某个单选框时,由radio时触发
|
// 选中某个单选框时,由radio时触发
|
||||||
@ -304,27 +357,21 @@ export default {
|
|||||||
el.optionChooseSign = '1'
|
el.optionChooseSign = '1'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log(this.questiondata, 'this.questiondata')
|
||||||
|
this.questiondata
|
||||||
},
|
},
|
||||||
// 复选框
|
// 复选框
|
||||||
radioChangecheck(e, item, index, aindex) {
|
radioChangecheck(e, item, index, aindex) {
|
||||||
console.log(e, item, index, '选中某个复选框时')
|
console.log(e, item, index, '选中某个复选框时')
|
||||||
if (e == true) {
|
if (e == true) {
|
||||||
|
|
||||||
|
|
||||||
this.questiondata.questionSubjectList[index].questionSubjectOptionList[aindex].optionChooseSign = '0'
|
this.questiondata.questionSubjectList[index].questionSubjectOptionList[aindex].optionChooseSign = '0'
|
||||||
} 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;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -340,13 +387,18 @@ export default {
|
|||||||
this.questiondata.patientName = this.$route.query.patientName
|
this.questiondata.patientName = this.$route.query.patientName
|
||||||
this.questiondata.manageRouteName = this.$route.query.manageRouteName
|
this.questiondata.manageRouteName = this.$route.query.manageRouteName
|
||||||
this.questiondata.manageRouteNodeName = this.$route.query.manageRouteNodeName
|
this.questiondata.manageRouteNodeName = this.$route.query.manageRouteNodeName
|
||||||
|
this.questiondata.taskType = this.$route.query.taskType
|
||||||
this.questiondata.totalScore = 0
|
this.questiondata.totalScore = 0
|
||||||
this.questiondata.questionSubjectList.forEach(e => {
|
this.questiondata.questionSubjectList.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') {
|
||||||
|
e.whetherScore = '1'
|
||||||
|
} else {
|
||||||
|
e.whetherScore = '0'
|
||||||
|
}
|
||||||
e.questionSubjectOptionList.forEach(el => {
|
e.questionSubjectOptionList.forEach(el => {
|
||||||
|
el.questionNumber = e.questionNumber
|
||||||
if (e.questionType == 'MULTIPLE_CHOICE_QUESTIONS' || e.questionType == 'COMBINATION_MULTIPLE_SUBJECT') {
|
if (e.questionType == 'MULTIPLE_CHOICE_QUESTIONS' || e.questionType == 'COMBINATION_MULTIPLE_SUBJECT') {
|
||||||
el.optionChooseSign = '1'
|
el.optionChooseSign = '1'
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -357,52 +409,118 @@ export default {
|
|||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submit() {
|
submit() {
|
||||||
var score = 0
|
if (this.$route.query.taskType == 'QUESTIONNAIRE_SCALE') {
|
||||||
// 单选、多选、打分分值
|
// 对象.新名字=对象.原数组
|
||||||
this.questiondata.questionSubjectList.forEach(e => {
|
this.$delete(this.questiondata, 'updateBy',)
|
||||||
if (e.questionSubjectOptionList?.length > 0) {
|
this.$delete(this.questiondata, 'updateTime',)
|
||||||
e.questionSubjectOptionList.forEach(el => {
|
var score = 0
|
||||||
if (e.questionType == 'MULTIPLE_CHOICE' || e.questionType == 'MULTIPLE_CHOICE_QUESTIONS' || e.questionType == 'SCORING_QUESTIONS') {
|
// 单选、多选、打分分值
|
||||||
if(el.optionChooseSign=='0'){
|
this.questiondata.questionSubjectList.forEach(e => {
|
||||||
score += el.optionScore
|
if (e.questionSubjectOptionList?.length > 0) {
|
||||||
|
e.questionSubjectOptionList.forEach(el => {
|
||||||
|
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') {
|
||||||
|
if (el.optionChooseSign == '0') {
|
||||||
|
score += el.optionScore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
// console.log(score, 'score')
|
||||||
console.log(score,'score')
|
this.questiondata.totalScore = score
|
||||||
this.questiondata.totalScore=score
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
console.log(this.questiondata, 'questiondata')
|
this.questiondata.subjectResultDTOList = this.questiondata.questionSubjectList
|
||||||
// 对象.新名字=对象.原数组
|
this.obj = JSON.parse(JSON.stringify(this.questiondata))
|
||||||
this.questiondata.subjectResultDTOList = this.questiondata.questionSubjectList
|
delete this.obj.questionSubjectList;
|
||||||
this.obj = JSON.parse(JSON.stringify(this.questiondata))
|
this.obj.subjectResultDTOList.forEach(e => {
|
||||||
delete this.obj.questionSubjectList;
|
e.optionResultList = e.questionSubjectOptionList
|
||||||
this.obj.subjectResultDTOList.forEach(e => {
|
if (e.optionResultList.optionSubmitAnswer) {
|
||||||
e.optionResultList = e.questionSubjectOptionList
|
e.optionResultList.optionSubmitAnswer = e.optionResultList.optionSubmitAnswer
|
||||||
// console.log(e.optionResultList, 'e.optionResultList')
|
}
|
||||||
if (e.optionResultList.optionSubmitAnswer) {
|
// this.$delete(this.obj, '0', '')
|
||||||
e.optionResultList.optionSubmitAnswer = e.optionResultList.optionSubmitAnswer
|
delete e.questionSubjectOptionList;
|
||||||
}
|
});
|
||||||
this.$delete(this.obj, '0', '')
|
// console.log(this.obj, 'obj')
|
||||||
// this.obj.splice(index, 1)
|
|
||||||
|
|
||||||
delete e.questionSubjectOptionList;
|
|
||||||
|
|
||||||
});
|
} else if (this.$route.query.taskType == 'ARTIFICIAL_FOLLOW_UP') {
|
||||||
console.log(this.obj, 'obj')
|
console.log(this.questiondata, 'questiondata')
|
||||||
// console.log(this.questiondata, 'questiondata')
|
// 对象.新名字=对象.原数组
|
||||||
this.$refs["questiondata"].validate(valid => {
|
this.$delete(this.questiondata, 'updateBy',)
|
||||||
if (valid) {
|
this.$delete(this.questiondata, 'updateTime',)
|
||||||
addPatientQuestionResult(this.obj).then(response => {
|
this.questiondata.subjectResultDTOList = this.questiondata.questionSubjectList
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.obj = JSON.parse(JSON.stringify(this.questiondata))
|
||||||
this.open = false;
|
delete this.obj.questionSubjectList;
|
||||||
this.getList();
|
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;
|
||||||
|
});
|
||||||
|
// this.$delete(this.obj, 'totalScore',)
|
||||||
|
|
||||||
}
|
|
||||||
});
|
}
|
||||||
|
// 问卷、随访
|
||||||
|
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 => {
|
||||||
|
if (valid) {
|
||||||
|
addPatientQuestionResult(this.obj).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("保存成功");
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else if (this.$route.query.taskType == 'PHONE_OUTBOUND') {
|
||||||
|
console.log(this.form, '话术')
|
||||||
|
// return
|
||||||
|
this.$refs["form"].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,
|
||||||
|
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",
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.$modal.msgSuccess("保存成功");
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 取消
|
// 取消
|
||||||
cencal() {
|
cencal() {
|
||||||
@ -412,7 +530,6 @@ export default {
|
|||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
console.log(tab, event);
|
console.log(tab, event);
|
||||||
},
|
},
|
||||||
@ -420,6 +537,14 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-input.is-disabled .el-input__inner {
|
||||||
|
background: #fff !important;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
::v-deep .el-textarea.is-disabled .el-textarea__inner {
|
||||||
|
color: #606266;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
.tk {
|
.tk {
|
||||||
::v-deep .el-textarea__inner {
|
::v-deep .el-textarea__inner {
|
||||||
margin: 20px 0 10px 30px;
|
margin: 20px 0 10px 30px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user