外呼记录新增列

This commit is contained in:
shidongli 2024-12-19 17:26:24 +08:00
parent aef0a89b45
commit 9716080532

View File

@ -170,6 +170,22 @@
</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="通话状态" prop="phoneNodeExecuteResultStatus">
<el-select
v-model="queryParams.phoneNodeExecuteResultStatus"
placeholder="请选择通话状态"
clearable
style="width: 220px"
>
<el-option
v-for="item in SUCCESSlist"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</SearchFilter> </SearchFilter>
</div> </div>
<div ref="table"> <div ref="table">
@ -219,7 +235,7 @@
/> />
<el-table-column <el-table-column
label="节点任务执行状态" label="执行状态"
align="center" align="center"
prop="nodeExecuteStatus" prop="nodeExecuteStatus"
width="150" width="150"
@ -237,6 +253,16 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="通话状态"
align="center"
prop="phoneNodeExecuteResultStatus"
width="150"
>
<template slot-scope="scope">
{{scope.row.phoneNodeExecuteResultStatus == "SUCCESS" ? "已接通" : "未接通"}}
</template>
</el-table-column>
<el-table-column <el-table-column
label="反馈意见" label="反馈意见"
align="center" align="center"
@ -244,6 +270,8 @@
width="150" width="150"
/> />
<el-table-column <el-table-column
label="就诊时间" label="就诊时间"
align="center" align="center"
@ -311,7 +339,7 @@
<el-dialog title="问卷查看" :visible.sync="questionshow" width="40%"> <el-dialog title="问卷查看" :visible.sync="questionshow" width="40%">
<div class="bottomheader"> <div class="bottomheader">
<div class="right"> <div class="right">
<div class="title" v-if="totalScoredata>0">总分{{ totalScoredata }}</div> <div class="title" v-if="questiondata.totalScore || questiondata.totalScore ==0">总分{{ questiondata.totalScore }}</div>
<div <div
class="words" class="words"
v-for="(item, index) in questiondata.subjectResultList" v-for="(item, index) in questiondata.subjectResultList"
@ -497,6 +525,18 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
//
SUCCESSlist:[
{
value: "SUCCESS",
label: "已接通",
},
{
value: "FAILURE",
label: "未接通",
},
],
// //
nodeExecutList: [ nodeExecutList: [
{ {
@ -600,6 +640,7 @@ export default {
nodeExecuteStatus: '', nodeExecuteStatus: '',
taskExcuteType: null, taskExcuteType: null,
contentedFlag: null, contentedFlag: null,
phoneNodeExecuteResultStatus:null,
sn: null, sn: null,
}, },
show: false, show: false,
@ -665,17 +706,18 @@ export default {
}, },
// //
async questionlook(row) { async questionlook(row) {
this.totalScoredata=0, // this.totalScoredata=0,
await selectPatientQuestionSubmit(row.taskExecuteRecordId).then((res) => { await selectPatientQuestionSubmit(row.taskExecuteRecordId).then((res) => {
this.questiondata = res.data; this.questiondata = res.data;
console.log( this.questiondata,' this.questiondata')
this.questiondata.subjectResultList.forEach((e) => { this.questiondata.subjectResultList.forEach((e) => {
if(e.whetherScore==1){ // if(e.whetherScore==1){
e.optionResults.forEach((el) => { // e.optionResults.forEach((el) => {
if(el.optionChooseSign=="0"){ // if(el.optionChooseSign=="0"){
this.totalScoredata += el.optionScore // this.totalScoredata += el.optionScore
} // }
}) // })
} // }
e.optionResults.forEach((el) => { e.optionResults.forEach((el) => {
if ( if (
(el.optionChooseSign == "0" && (el.optionChooseSign == "0" &&