|
|
|
@ -39,12 +39,12 @@ |
|
|
|
<div v-html="mergeSummarys(scope.row.abnormalItemDetail,'itemName')"></div> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column prop="isSmsComplete" label="短信随访创建完成" width="200"> |
|
|
|
<el-table-column prop="isSmsComplete" label="短信随访创建完成" width="120"> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<el-checkbox v-model="scope.row.isSmsComplete" disabled true-label="Y" false-label="N"></el-checkbox> |
|
|
|
</template> --> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="isPhoneComplete" label="电话随访创建完成" width="200"> |
|
|
|
<el-table-column prop="isPhoneComplete" label="电话随访创建完成" width="120"> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<el-checkbox v-model="scope.row.isPhoneComplete" disabled true-label="Y" false-label="N"></el-checkbox> |
|
|
|
</template> --> |
|
|
|
@ -54,6 +54,11 @@ |
|
|
|
<div v-html="scope.row.criticalValueContents"></div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="diagnosisLevelNames" label="诊断级别" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-html="scope.row.diagnosisLevelNames"></div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="jobCardNo" label="工卡号" width="90" align="center" /> |
|
|
|
<el-table-column prop="medicalCardNo" label="体检卡号" width="90" align="center" /> |
|
|
|
<el-table-column prop="maritalStatusName" label="婚姻状况" width="90" align="center" /> |
|
|
|
@ -143,7 +148,7 @@ export default { |
|
|
|
FollowCritical, |
|
|
|
PhoneFollowUp, |
|
|
|
SmsSend, |
|
|
|
AsbitemCriticalValue |
|
|
|
AsbitemCriticalValue, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -308,7 +313,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
LocalConfigInit: {}, |
|
|
|
columnData:[] |
|
|
|
columnData: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -370,13 +375,14 @@ export default { |
|
|
|
checkPagePriv, |
|
|
|
setPrStatusColor, |
|
|
|
mergeSummarys(array, itemKey) { |
|
|
|
let ret = '' |
|
|
|
let ret = ""; |
|
|
|
array.forEach((e, i) => { |
|
|
|
let splitStr = "<br>" |
|
|
|
if (i == 0) splitStr = "" |
|
|
|
return ret += splitStr + e[itemKey]+' '+e.isCriticalValue+' '+e.isReview |
|
|
|
}) |
|
|
|
return ret |
|
|
|
let splitStr = "<br>"; |
|
|
|
if (i == 0) splitStr = ""; |
|
|
|
return (ret += |
|
|
|
splitStr + e[itemKey] + " " + e.isCriticalValue + " " + e.isReview); |
|
|
|
}); |
|
|
|
return ret; |
|
|
|
}, |
|
|
|
// 扩展定义表格行样式 |
|
|
|
handleRowClassName({ row, rowIndex }) { |
|
|
|
@ -747,7 +753,7 @@ export default { |
|
|
|
async Query() { |
|
|
|
// 查询时,清掉明细数据 (滚动时不清) |
|
|
|
this.dataTransOpts.tableS.patient_register.followUpId = ""; |
|
|
|
this.dataTransOpts.tableS.patient_register.patientRegisterId="" |
|
|
|
this.dataTransOpts.tableS.patient_register.patientRegisterId = ""; |
|
|
|
this.tableDataCurrentRow = {}; // 清除选择 |
|
|
|
this.tableData = []; |
|
|
|
|
|
|
|
@ -769,19 +775,16 @@ export default { |
|
|
|
async getPrList() { |
|
|
|
// console.log('getPrList', this.loadOpts) |
|
|
|
|
|
|
|
let body = { |
|
|
|
|
|
|
|
}, |
|
|
|
let body = {}, |
|
|
|
customerOrgs = []; |
|
|
|
if (this.report.dataCusOrgOCX.length > 0) { |
|
|
|
if (this.report.dataCusOrgOCX.length > 1) { |
|
|
|
return this.$message({ |
|
|
|
message: '只能选择一个单位', |
|
|
|
type: 'warning' |
|
|
|
message: "只能选择一个单位", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.report.dataCusOrgOCX.forEach((e) => { |
|
|
|
|
|
|
|
if (e.customerOrgId) { |
|
|
|
body.customerOrgId = e.customerOrgId; |
|
|
|
if (e.customerOrgId == this.dict.personOrgId) { |
|
|
|
@ -792,14 +795,14 @@ export default { |
|
|
|
body.customerOrgGroupId = e.customerOrgGroupIds; |
|
|
|
} |
|
|
|
} |
|
|
|
body.startDate=moment(e.startDate).format("yyyy-MM-DD"), |
|
|
|
body.endDate= moment(e.endDate).format("yyyy-MM-DD"), |
|
|
|
body.dateType= |
|
|
|
(body.startDate = moment(e.startDate).format("yyyy-MM-DD")), |
|
|
|
(body.endDate = moment(e.endDate).format("yyyy-MM-DD")), |
|
|
|
(body.dateType = |
|
|
|
e.dateType == "summaryDate" |
|
|
|
? "3" |
|
|
|
: e.dateType == "medicalStartDate" |
|
|
|
? "2" |
|
|
|
: "1" |
|
|
|
: "1"); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -831,6 +834,8 @@ export default { |
|
|
|
|
|
|
|
if (this.patientRegister.query.isPhoneComplete) |
|
|
|
body.isPhoneComplete = this.patientRegister.query.isPhoneComplete; |
|
|
|
if (this.patientRegister.query.diagnosisLevelId.length>0) |
|
|
|
body.diagnosisLevelIds = this.patientRegister.query.diagnosisLevelId; |
|
|
|
|
|
|
|
if (this.patientRegister.query.idCardNo) |
|
|
|
body = { |
|
|
|
@ -863,20 +868,38 @@ export default { |
|
|
|
let that = this; |
|
|
|
for (let i = 0; i < res.data.length; i++) { |
|
|
|
for (let k = 0; k < res.data[i].phoneFollowUpDetail.length; k++) { |
|
|
|
that.columnData.push("第"+[k+1]+"次"+"随访内容") |
|
|
|
that.columnData.push("第"+[k+1]+"次"+"回复内容") |
|
|
|
that.columnData.push("第"+[k+1]+"次"+"随访日期") |
|
|
|
that.columnData.push("第"+[k+1]+"次"+"随访完成") |
|
|
|
this.$set(res.data[i],"第"+[k+1]+"次"+"随访内容",res.data[i].phoneFollowUpDetail[k].followUpContent) |
|
|
|
this.$set(res.data[i],"第"+[k+1]+"次"+"回复内容",res.data[i].phoneFollowUpDetail[k].replyContent) |
|
|
|
this.$set(res.data[i],"第"+[k+1]+"次"+"随访日期",moment(res.data[i].phoneFollowUpDetail[k].planFollowDate).format("yyyy-MM-DD")) |
|
|
|
this.$set(res.data[i],"第"+[k+1]+"次"+"随访完成",res.data[i].phoneFollowUpDetail[k].isComplete) |
|
|
|
that.columnData.push("第" + [k + 1] + "次" + "随访内容"); |
|
|
|
that.columnData.push("第" + [k + 1] + "次" + "回复内容"); |
|
|
|
that.columnData.push("第" + [k + 1] + "次" + "随访日期"); |
|
|
|
that.columnData.push("第" + [k + 1] + "次" + "随访完成"); |
|
|
|
this.$set( |
|
|
|
res.data[i], |
|
|
|
"第" + [k + 1] + "次" + "随访内容", |
|
|
|
res.data[i].phoneFollowUpDetail[k].followUpContent |
|
|
|
); |
|
|
|
this.$set( |
|
|
|
res.data[i], |
|
|
|
"第" + [k + 1] + "次" + "回复内容", |
|
|
|
res.data[i].phoneFollowUpDetail[k].replyContent |
|
|
|
); |
|
|
|
this.$set( |
|
|
|
res.data[i], |
|
|
|
"第" + [k + 1] + "次" + "随访日期", |
|
|
|
moment( |
|
|
|
res.data[i].phoneFollowUpDetail[k].planFollowDate |
|
|
|
).format("yyyy-MM-DD") |
|
|
|
); |
|
|
|
this.$set( |
|
|
|
res.data[i], |
|
|
|
"第" + [k + 1] + "次" + "随访完成", |
|
|
|
res.data[i].phoneFollowUpDetail[k].isComplete |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
that.columnData = Array.from(new Set(that.columnData)); |
|
|
|
this.tableData=res.data |
|
|
|
this.tableData = res.data; |
|
|
|
//如果 有选中 记录,则刷新其对应的组合项目 |
|
|
|
if (this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
if (this.dataTransOpts.tableS.patient_register.patientRegisterId) { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1488,7 +1511,7 @@ export default { |
|
|
|
}, |
|
|
|
handleExport() { |
|
|
|
exportToExcel("#phoneFollowUp", "随访列表", false); |
|
|
|
this.window.export=false |
|
|
|
this.window.export = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1521,7 +1544,7 @@ export default { |
|
|
|
this.handleExport(); |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//新增后,触发赋值 |
|
|
|
// "patientRegister.patientRegisterRd.id"(newVal, oldVal) { |
|
|
|
|