diff --git a/src/views/report/report.vue b/src/views/report/report.vue
index 6fc36f5..f3b1e1c 100644
--- a/src/views/report/report.vue
+++ b/src/views/report/report.vue
@@ -125,13 +125,14 @@
- 导出
+ 导出/推送
人员信息导出
导出Zip
导出Jpg
导出 pdf 报告
+ 推送检后信息
@@ -288,8 +289,8 @@ export default {
medicalConclusionId: [],
personnelTypeIds: [],
isRecoverGuide: '',
- personnelTypeId:'',
- completeFlag:'',
+ personnelTypeId: '',
+ completeFlag: '',
},
@@ -1079,6 +1080,9 @@ export default {
case 'pdf':
this.btnReportExport(false)
break;
+ case 'tsjh': // 推送检后--健康评估
+ this.upTsjh()
+ break;
default: //lis
this.btnExport()
break;
@@ -1262,6 +1266,46 @@ export default {
}
},
+
+ //推送检后信息--健康评估
+ async upTsjh() {
+
+ if (
+ this.checkedRows &&
+ this.checkedRows.length > 0
+ ) {
+ this.elProgress.display = true;
+ this.elProgress.percentage = 0;
+
+ for (
+ let i = 0;
+ i < this.checkedRows.length;
+ i++
+ ) {
+ let e = this.checkedRows[i];
+ this.elProgress.percentage = Math.floor(
+ ((i + 1) * 100) / this.checkedRows.length
+ );
+
+ // 调上传接口
+ try {
+ let res = await postapi('/api/app/ThirdResultPush/PushHtyResultByPatientRegisterId',{patientRegisterId:e.patientRegisterId})
+ if(res.code > -1){
+ // 推送检后成功,更新状态
+ e.isUploadAppoint = "Y";
+ }
+ } catch (error) {
+ console.log("error", error);
+ this.$message.warning({ showClose: true, message: error });
+ }
+ }
+ this.elProgress.display = false;
+ } else {
+ this.$message.warning({ showClose: true, message: "请勾选择记录!" });
+ return;
+ }
+ },
+
//体检报告打印(预览)
async btnReport(isPreview) {
if (!this.$peisAPI) {