This commit is contained in:
2024-11-04 17:02:47 +08:00
parent 3165a1f8ee
commit 5713f38a93

View File

@ -93,21 +93,12 @@
active-text="全部" inactive-text="待办" @change="changeswitch" /> active-text="全部" inactive-text="待办" @change="changeswitch" />
</span> </span>
</el-form-item> </el-form-item>
<!-- <el-form-item <el-form-item label="" prop="phoneDialMethod">
label="" <el-radio v-model="queryParams.phoneDialMethod" label="COMMON">人工电话</el-radio>
prop="manageRouteName" <el-radio v-model="queryParams.phoneDialMethod" label="AI">智能外呼</el-radio>
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED' &&foldshow==true" </el-form-item>
> <!-- <el-form-item label="" prop="manageRouteName" v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED' &&foldshow==true">
<el-switch <el-switch style="width: 220px" class="switchStyle" v-model="timeSignshow" active-color="#1890ff" inactive-color="#5AC1A1" active-text="全部" inactive-text="待办" @change="changeswitch"/>
style="width: 220px"
class="switchStyle"
v-model="timeSignshow"
active-color="#1890ff"
inactive-color="#5AC1A1"
active-text="全部"
inactive-text="待办"
@change="changeswitch"
/>
</el-form-item> --> </el-form-item> -->
</SearchFilter> </SearchFilter>
</div> </div>
@ -159,7 +150,8 @@
:show-overflow-tooltip="true" /> :show-overflow-tooltip="true" />
<el-table-column label="就诊方式" align="center" prop="visitMethod"> <el-table-column label="就诊方式" align="center" prop="visitMethod">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.visitMethod == "OUTPATIENT_SERVICE" ? "门诊" : "" }} <span>
{{ scope.row.visitMethod == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
{{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? "住院" : "" }} {{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? "住院" : "" }}
</span> </span>
</template></el-table-column> </template></el-table-column>
@ -173,27 +165,15 @@
</template></el-table-column> --> </template></el-table-column> -->
<el-table-column label="入院时间" align="center" prop="admissionTime" width="100"> <el-table-column label="入院时间" align="center" prop="admissionTime" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? parseTime(scope.row.admissionTime, "{y}-{m}-{d}") : "" }}
scope.row.visitMethod == "BE_IN_HOSPITAL"
? parseTime(scope.row.admissionTime, "{y}-{m}-{d}")
: ""
}}
<!-- <span>{{ parseTime(scope.row.admissionTime, "{y}-{m}-{d}") }}</span> --> <!-- <span>{{ parseTime(scope.row.admissionTime, "{y}-{m}-{d}") }}</span> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="门诊/出院时间" align="center" prop="visitTime" width="105"> <el-table-column label="门诊/出院时间" align="center" prop="visitTime" width="105">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
{{ {{ scope.row.visitMethod == "OUTPATIENT_SERVICE" ? parseTime(scope.row.visitTime, "{y}-{m}-{d}") : "" }}
scope.row.visitMethod == "OUTPATIENT_SERVICE" {{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? parseTime(scope.row.dischargeTime, "{y}-{m}-{d}") : "" }}
? parseTime(scope.row.visitTime, "{y}-{m}-{d}")
: ""
}}
{{
scope.row.visitMethod == "BE_IN_HOSPITAL"
? parseTime(scope.row.dischargeTime, "{y}-{m}-{d}")
: ""
}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@ -201,45 +181,39 @@
</el-table-column> </el-table-column>
<el-table-column label="任务节点" align="center" prop="routeNodeName" width="110"> <el-table-column label="任务节点" align="center" prop="routeNodeName" width="110">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.routeNodeName == 'AFTER_DISCHARGE'">出院后<span v-if="scope.row.routeNodeDay">{{ <span v-if="scope.row.routeNodeName == 'AFTER_DISCHARGE'">出院后<span v-if="scope.row.routeNodeDay">
scope.row.routeNodeDay }}</span></span> {{ scope.row.routeNodeDay }}</span></span>
<span v-if="scope.row.routeNodeName == 'AFTER_ADMISSION'">入院后<span v-if="scope.row.routeNodeDay">{{ <span v-if="scope.row.routeNodeName == 'AFTER_ADMISSION'">入院后<span v-if="scope.row.routeNodeDay">
scope.row.routeNodeDay }}</span></span> {{ scope.row.routeNodeDay }}</span></span>
<span v-if="scope.row.routeNodeName == 'AFTER_CONSULTATION'">就诊后<span v-if="scope.row.routeNodeDay">{{ <span v-if="scope.row.routeNodeName == 'AFTER_CONSULTATION'">就诊后<span v-if="scope.row.routeNodeDay">
scope.row.routeNodeDay }}</span></span> {{ scope.row.routeNodeDay }}</span></span>
<span v-if="scope.row.routeNodeName == 'AFTER_VISIT_DISCHARGE'">就诊/出院后<span <span v-if="scope.row.routeNodeName == 'AFTER_VISIT_DISCHARGE'">就诊/出院后<span
v-if="scope.row.routeNodeDay">{{ scope.row.routeNodeDay }}</span></span> v-if="scope.row.routeNodeDay">{{ scope.row.routeNodeDay }}</span></span>
<span v-if="scope.row.routeNodeName == 'PREOPERATIVE'">术前<span v-if="scope.row.routeNodeDay">{{ <span v-if="scope.row.routeNodeName == 'PREOPERATIVE'">术前<span v-if="scope.row.routeNodeDay">
scope.row.routeNodeDay }}</span></span> {{ scope.row.routeNodeDay }}</span></span>
<span v-if="scope.row.routeNodeName == 'POSTOPERATIVE'">术后<span v-if="scope.row.routeNodeDay">{{ <span v-if="scope.row.routeNodeName == 'POSTOPERATIVE'">术后<span v-if="scope.row.routeNodeDay">
scope.row.routeNodeDay }}</span></span> {{ scope.row.routeNodeDay }}</span></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="任务内容" align="center" prop="taskNodeType" :show-overflow-tooltip="true"> <el-table-column label="任务内容" align="center" prop="taskNodeType" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
{{ scope.row.taskNodeType == "PHONE_OUTBOUND" ? "电话外呼" : "" }} {{ scope.row.taskNodeType == "PHONE_OUTBOUND" ? "电话外呼" : "" }}
{{ {{ scope.row.taskNodeType == "QUESTIONNAIRE_SCALE" ? "问卷量表" : "" }}
scope.row.taskNodeType == "QUESTIONNAIRE_SCALE" {{ scope.row.taskNodeType == "PROPAGANDA_ARTICLE" ? "宣教文章" : "" }}
? "问卷量表"
: ""
}}
{{
scope.row.taskNodeType == "PROPAGANDA_ARTICLE" ? "宣教文章" : ""
}}
{{ scope.row.taskNodeType == "TEXT_REMIND" ? "文字提醒" : "" }} {{ scope.row.taskNodeType == "TEXT_REMIND" ? "文字提醒" : "" }}
<!-- {{ scope.row.taskType == "ARTIFICIAL_FOLLOW_UP" ? "人工随访" : "" }} --> <!-- {{ scope.row.taskType == "ARTIFICIAL_FOLLOW_UP" ? "人工随访" : "" }} -->
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'" label="计划时间" align="center" prop="planTime" <el-table-column v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'" label="计划时间" align="center"
width="95"> prop="planTime" width="95">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.planTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.planTime, "{y}-{m}-{d}") }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="queryParams.nodeExecuteStatus == 'EXECUTED'" label="执行时间" align="center" prop="executeTime" <el-table-column v-if="queryParams.nodeExecuteStatus == 'EXECUTED'" label="执行时间" align="center"
width="95"> prop="executeTime" width="95">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span>
</template> </template>
@ -252,6 +226,7 @@
icon="el-icon-bank-card" @click="handleUpdate(scope.row)">处理</el-button> icon="el-icon-bank-card" @click="handleUpdate(scope.row)">处理</el-button>
<el-button v-if="queryParams.nodeExecuteStatus == 'EXECUTED'" size="mini" type="text" <el-button v-if="queryParams.nodeExecuteStatus == 'EXECUTED'" size="mini" type="text"
icon="el-icon-notebook-2" @click="handleadtail(scope.row)">详情</el-button> icon="el-icon-notebook-2" @click="handleadtail(scope.row)">详情</el-button>
<el-button v-if="czshow" size="mini" type="text" icon="el-icon-phone">外呼</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -276,6 +251,7 @@ export default {
data() { data() {
return { return {
czshow: null,
foldshow: null, foldshow: null,
maxTableHeight: undefined, maxTableHeight: undefined,
// 访 // 访
@ -337,6 +313,7 @@ export default {
patientName: null, patientName: null,
startDate: null, startDate: null,
endDate: null, endDate: null,
phoneDialMethod: 'COMMON',
manageRouteName: null, manageRouteName: null,
manageRouteNodeName: null, manageRouteNodeName: null,
taskContent: null, taskContent: null,
@ -547,6 +524,11 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
manualFollowUpList(this.queryParams).then((response) => { manualFollowUpList(this.queryParams).then((response) => {
if (this.queryParams.phoneDialMethod == 'AI' && this.queryParams.nodeExecuteStatus == 'EXECUTED') {
this.czshow = true
} else {
this.czshow = false
}
localStorage.setItem("followupquery", JSON.stringify(this.queryParams)); localStorage.setItem("followupquery", JSON.stringify(this.queryParams));
this.taskExecuteRecordList = response.rows; this.taskExecuteRecordList = response.rows;
this.total = response.total; this.total = response.total;
@ -599,11 +581,7 @@ export default {
this.queryParams.clinicalStartTime = null; this.queryParams.clinicalStartTime = null;
this.queryParams.clinicalEndTime = null; this.queryParams.clinicalEndTime = null;
} else { } else {
console.log(this.queryParams, "-----"); if (!this.queryParams.suitRange || this.queryParams.suitRange == "IN_THE_HOSPITAL") {
if (
!this.queryParams.suitRange ||
this.queryParams.suitRange == "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.dischargeStartTime =
@ -665,6 +643,7 @@ export default {
startDate: null, startDate: null,
endDate: null, endDate: null,
manageRouteName: null, manageRouteName: null,
phoneDialMethod: 'COMMON',
manageRouteNodeName: null, manageRouteNodeName: null,
taskContent: null, taskContent: null,
executeTime: null, executeTime: null,
@ -698,6 +677,7 @@ export default {
patientName: null, patientName: null,
startDate: null, startDate: null,
endDate: null, endDate: null,
phoneDialMethod: 'COMMON',
manageRouteName: null, manageRouteName: null,
manageRouteNodeName: null, manageRouteNodeName: null,
taskContent: null, taskContent: null,
@ -713,7 +693,6 @@ export default {
// this.timeSignshow=true // this.timeSignshow=true
// this.queryParams.nodeExecuteStatus = 'EXECUTED' // this.queryParams.nodeExecuteStatus = 'EXECUTED'
} }
this.handleQuery(); this.handleQuery();
this.intentionalTime = []; this.intentionalTime = [];
this.mzTime = []; this.mzTime = [];