|
@@ -4,7 +4,12 @@
|
|
|
<el-header>
|
|
|
<div class="left-panel">
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="addfollowUp" />
|
|
|
- <!-- <el-button type="danger" plain icon="el-icon-delete" /> -->
|
|
|
+ <el-button type="primary" plain @click="previewfollowUpRecord"
|
|
|
+ >2014</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" plain @click="previewfollowUpRecord"
|
|
|
+ >2013</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</el-header>
|
|
|
<el-main class="nopadding">
|
|
@@ -63,15 +68,17 @@
|
|
|
<el-table-column label="操作" width="180" align="center">
|
|
|
<template #default="props">
|
|
|
<div>
|
|
|
- <el-button v-if="props.row.followUpState!='已作废'"
|
|
|
+ <!-- <el-button
|
|
|
+ v-if="props.row.followUpState != '已作废'"
|
|
|
link
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
@click="previewfollowUpRecord(props.row)"
|
|
|
>
|
|
|
预览
|
|
|
- </el-button>
|
|
|
- <el-button v-if="props.row.followUpState!='已作废'"
|
|
|
+ </el-button> -->
|
|
|
+ <el-button
|
|
|
+ v-if="props.row.followUpState != '已作废'"
|
|
|
link
|
|
|
type="primary"
|
|
|
size="small"
|
|
@@ -79,7 +86,8 @@
|
|
|
>
|
|
|
编辑
|
|
|
</el-button>
|
|
|
- <el-button v-if="props.row.followUpState!='已作废'"
|
|
|
+ <el-button
|
|
|
+ v-if="props.row.followUpState != '已作废'"
|
|
|
link
|
|
|
type="primary"
|
|
|
size="small"
|
|
@@ -87,14 +95,14 @@
|
|
|
>
|
|
|
作废
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
link
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
@click="removefollowUpRecord(props.row)"
|
|
|
>
|
|
|
删除
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column></scTable
|
|
@@ -288,11 +296,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
///预览
|
|
|
- async previewfollowUpRecord(row) {
|
|
|
- console.log("%c Line:234 🧀 row", "color:#e41a6a", row);
|
|
|
+ async previewfollowUpRecord(event) {
|
|
|
+ const buttonName = event.target.innerText;
|
|
|
+ console.log("%c Line:234 🧀 row", "color:#e41a6a", buttonName);
|
|
|
const getFollowUpRecordListByYearRequest =
|
|
|
new GetFollowUpRecordListByYearRequest({
|
|
|
- year: "2023",
|
|
|
+ year: buttonName,
|
|
|
keys: [this.patientInfo.key],
|
|
|
token: store.state.userInfo.token,
|
|
|
patientCode: this.patientInfo.patientCode,
|
|
@@ -301,6 +310,7 @@ export default {
|
|
|
await this.$rpc.followUp.getFollowUpRecordListByYearAsync(
|
|
|
getFollowUpRecordListByYearRequest
|
|
|
);
|
|
|
+ debugger;
|
|
|
console.log(
|
|
|
"%c Line:287 🎂 followUpTableData",
|
|
|
"color:#3f7cff",
|
|
@@ -308,24 +318,24 @@ export default {
|
|
|
);
|
|
|
|
|
|
let tableData = [];
|
|
|
- if(followUpTableData!=null && followUpTableData.length>0)
|
|
|
- {
|
|
|
- followUpTableData[0].followUpRecordDatas.forEach((item) => {
|
|
|
- tableData.push(
|
|
|
- Object.assign(
|
|
|
- {
|
|
|
- PatientName: this.patientInfo.patientName,
|
|
|
- Follow_Time: moment(item.followUpTime).format("YYYY年MM月DD日"),
|
|
|
- Follow_Type: item.followUpMode + 1,
|
|
|
- Next_Follow_Up_Time: moment(item.nextFollowUpTime).format(
|
|
|
- "YYYY年MM月DD日"
|
|
|
- ),
|
|
|
- },
|
|
|
- JSON.parse(item.followUpData)
|
|
|
- )
|
|
|
- );
|
|
|
- });
|
|
|
- }
|
|
|
+ if (followUpTableData != null && followUpTableData.length > 0) {
|
|
|
+ followUpTableData[0].followUpRecordDatas.forEach((item) => {
|
|
|
+ tableData.push(
|
|
|
+ Object.assign(
|
|
|
+ {
|
|
|
+ PatientName: this.patientInfo.patientName,
|
|
|
+ Follow_Time: moment(item.followUpTime).format("YYYY年MM月DD日"),
|
|
|
+ Follow_Type: item.followUpMode + 1,
|
|
|
+ Next_Follow_Up_Time: moment(item.nextFollowUpTime).format(
|
|
|
+ "YYYY年MM月DD日"
|
|
|
+ ),
|
|
|
+ },
|
|
|
+ JSON.parse(item.followUpData)
|
|
|
+ )
|
|
|
+ );
|
|
|
+ });
|
|
|
+ }
|
|
|
+ debugger;
|
|
|
window.tableData = tableData;
|
|
|
var fromConfig = await this.getTemplateDetail();
|
|
|
window.fromConfig = fromConfig;
|