下载记录、接收记录、接收影像检查列表增加导出功能
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-10-11 10:47:12 +08:00
parent 705585da38
commit d114690114
4 changed files with 125 additions and 52 deletions

View File

@ -187,3 +187,30 @@ export function qCVisitList_Export(data) {
data
})
}
// 导出下载记录
export function getTrialDownloadList_Export(data) {
return requestDownload({
url: `/ExcelExport/getTrialDownloadList_Export`,
responseType: 'blob',
method: 'post',
data
})
}
// 导出接收记录
export function getSCPImageUploadList_Export(data) {
return requestDownload({
url: `/ExcelExport/getSCPImageUploadList_Export`,
responseType: 'blob',
method: 'post',
data
})
}
// 导出接收检查影像记录
export function getPatientList_Export(data) {
return requestDownload({
url: `/ExcelExport/getPatientList_Export`,
responseType: 'blob',
method: 'post',
data
})
}

View File

@ -82,13 +82,14 @@
{{ $t('common:button:reset') }}
</el-button>
<!--导出-->
<!-- <el-button
<el-button
type="primary"
icon="el-icon-download"
:disabled="list.length <= 0"
@click="handleExport"
>
{{ $t('common:button:export') }}
</el-button> -->
</el-button>
</el-form-item>
</el-form>
</template>
@ -263,6 +264,7 @@
import { getTrialDownloadList } from '@/api/load'
import Pagination from '@/components/Pagination'
import BaseContainer from '@/components/BaseContainer'
import { getTrialDownloadList_Export } from '@/api/export'
const searchDataDefault = () => {
return {
SortField: 'DownloadStartTime',
@ -352,6 +354,14 @@ export default {
this.searchData.DownloadEndTime = ''
}
},
//
async handleExport() {
try {
return getTrialDownloadList_Export(this.searchData)
} catch (err) {
consol.log(err)
}
},
},
}
</script>

View File

@ -92,7 +92,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t("common:button:search") }}
{{ $t('common:button:search') }}
</el-button>
<!-- 重置 -->
<el-button
@ -100,7 +100,16 @@
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t("common:button:reset") }}
{{ $t('common:button:reset') }}
</el-button>
<!--导出-->
<el-button
type="primary"
icon="el-icon-download"
:disabled="list.length <= 0"
@click="handleExport"
>
{{ $t('common:button:export') }}
</el-button>
</el-form-item>
</el-form>
@ -155,7 +164,7 @@
min-width="90"
show-overflow-tooltip
><template slot-scope="scope">
{{ scope.row.CalledAEList.join(", ") }}
{{ scope.row.CalledAEList.join(', ') }}
</template>
</el-table-column>
<!--发送端AE-->
@ -166,7 +175,7 @@
show-overflow-tooltip
>
<template slot-scope="scope">
{{ scope.row.CallingAEList.join(", ") }}
{{ scope.row.CallingAEList.join(', ') }}
</template>
</el-table-column>
<!--检查-->
@ -240,11 +249,12 @@ import {
getPatientList,
getDicomCalledAEList,
getDicomCallingAEList,
} from "@/api/trials";
import BaseContainer from "@/components/BaseContainer";
import Pagination from "@/components/Pagination";
import moment from "moment";
import viewStudy from "./components/view-study";
} from '@/api/trials'
import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination'
import moment from 'moment'
import viewStudy from './components/view-study'
import { getPatientList_Export } from '@/api/export'
const searchDataDefault = () => {
return {
PatientIdStr: null,
@ -258,9 +268,9 @@ const searchDataDefault = () => {
PageIndex: 1,
PageSize: 20,
Asc: false,
SortField: "LatestPushTime",
};
};
SortField: 'LatestPushTime',
}
}
export default {
components: { BaseContainer, Pagination, viewStudy },
data() {
@ -275,33 +285,33 @@ export default {
callingAEList: [],
visible: false,
selectPatient: {},
};
}
},
created() {
this.getCalledAEList();
this.getCallingAEList();
this.getCalledAEList()
this.getCallingAEList()
},
mounted() {
this.getList();
this.getList()
},
methods: {
//
handleOpenDialog(item) {
this.visible = true;
this.selectPatient = item;
this.visible = true
this.selectPatient = item
},
// AE
async getCalledAEList() {
try {
let params = {
TrialId: this.$route.query.trialId,
};
let res = await getDicomCalledAEList(params);
}
let res = await getDicomCalledAEList(params)
if (res.IsSuccess) {
this.calledAEList = res.Result;
this.calledAEList = res.Result
}
} catch (err) {
console.log(err);
console.log(err)
}
},
// AE
@ -309,60 +319,68 @@ export default {
try {
let params = {
TrialId: this.$route.query.trialId,
};
let res = await getDicomCallingAEList(params);
}
let res = await getDicomCallingAEList(params)
if (res.IsSuccess) {
this.callingAEList = res.Result;
this.callingAEList = res.Result
}
} catch (err) {
console.log(err);
console.log(err)
}
},
getList() {
this.loading = true;
this.searchData.TrialId = this.$route.query.trialId;
this.loading = true
this.searchData.TrialId = this.$route.query.trialId
getPatientList(this.searchData)
.then((res) => {
this.loading = false;
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
this.loading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
handleDatetimeChange(val) {
if (val) {
this.searchData.BeginPushTime = val[0];
this.searchData.EndPushTime = val[1];
this.searchData.BeginPushTime = val[0]
this.searchData.EndPushTime = val[1]
} else {
this.searchData.BeginPushTime = "";
this.searchData.EndPushTime = "";
this.searchData.BeginPushTime = ''
this.searchData.EndPushTime = ''
}
},
handleSearch() {
this.searchData.PageIndex = 1;
this.getList();
this.searchData.PageIndex = 1
this.getList()
},
//
handleReset() {
this.datetimerange = null;
this.handleDatetimeChange();
this.searchData = searchDataDefault();
this.getList();
this.datetimerange = null
this.handleDatetimeChange()
this.searchData = searchDataDefault()
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false;
this.searchData.Asc = false
}
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
//
async handleExport() {
try {
return getPatientList_Export(this.searchData)
} catch (err) {
consol.log(err)
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
},
},
};
}
</script>

View File

@ -75,6 +75,15 @@
>
{{ $t('common:button:reset') }}
</el-button>
<!--导出-->
<el-button
type="primary"
icon="el-icon-download"
:disabled="list.length <= 0"
@click="handleExport"
>
{{ $t('common:button:export') }}
</el-button>
</el-form-item>
</el-form>
</template>
@ -208,6 +217,7 @@ import {
import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination'
import moment from 'moment'
import { getSCPImageUploadList_Export } from '@/api/export'
const searchDataDefault = () => {
return {
CallingAE: null,
@ -315,6 +325,14 @@ export default {
this.searchData.PageIndex = 1
this.getList()
},
//
async handleExport() {
try {
return getSCPImageUploadList_Export(this.searchData)
} catch (err) {
consol.log(err)
}
},
},
}
</script>