diff --git a/src/api/inspection.js b/src/api/inspection.js
new file mode 100644
index 0000000..b33a9ae
--- /dev/null
+++ b/src/api/inspection.js
@@ -0,0 +1,29 @@
+// 检查管理
+import request from '@/utils/request'
+
+// 检查->患者列表
+export function getPatientList(data) {
+ return request({
+ url: '/Patient/getPatientList',
+ method: 'post',
+ data
+ })
+}
+
+// 检查->患者可加入项目列表
+export function getPatientJoinTrialInitList(data) {
+ return request({
+ url: '/Patient/getPatientJoinTrialInitList',
+ method: 'post',
+ data
+ })
+}
+
+// 检查->患者已加入项目列表
+export function getPatientJoinedTrialList(data) {
+ return request({
+ url: '/Patient/getPatientJoinedTrialList',
+ method: 'post',
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/views/system/dicomAE/index.vue b/src/views/system/dicomAE/index.vue
index 5060276..7666572 100644
--- a/src/views/system/dicomAE/index.vue
+++ b/src/views/system/dicomAE/index.vue
@@ -174,7 +174,7 @@ export default {
this.searchData[key] = null;
});
this.searchData.PageIndex = 1;
- this.searchData.PageIndex = 10;
+ this.searchData.PageSize = 10;
this.getList();
},
// 打开弹框
diff --git a/src/views/system/hospital/index.vue b/src/views/system/hospital/index.vue
index 4cd8fb1..17cdbf1 100644
--- a/src/views/system/hospital/index.vue
+++ b/src/views/system/hospital/index.vue
@@ -9,27 +9,27 @@
>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- {{ item.VisitName }}
-
-
+
@@ -63,70 +73,78 @@
stripe
height="100"
@sort-change="handleSortByColumn"
- @selection-change="handleSelectionChange"
>
-
+ >
+
+ {{
+ index === scope.row.CalledAEList.length - 1 ? item : `${item},`
+ }}
+
+
- {{ scope.row.VisitName }}
+ {{
+ index === scope.row.TrialList.length - 1
+ ? `${item.experimentName}(${item.visitCount})`
+ : `${item.experimentName}(${item.visitCount}),`
+ }}
- {{ scope.row.VisitName }}
+ {{ scope.row.StudyCount }}
- {{ scope.row.VisitName }}
+ {{ scope.row.StudyCount }}
-
-
@@ -202,6 +214,8 @@ import researchTrialsList from "./components/research-trials-list";
import addTrialsList from "./components/add-trials-list";
import confirmVisitList from "./components/confirm-visit-list";
import viewStudyList from "./components/view-study-list";
+import { getPatientList } from "@/api/inspection.js";
+import { getDicomCalledAEList } from "@/api/dicomAE.js";
export default {
name: "inspection",
components: {
@@ -215,12 +229,23 @@ export default {
data() {
return {
// 查询
- searchData: {},
+ searchData: {
+ PatientIdStr: null,
+ PatientName: null,
+ CalledAEList: [],
+ ExperimentName: null,
+ Asc: true,
+ SortField: null,
+ PageIndex: 1,
+ PageSize: 10,
+ },
dicomAeList: [],
// 检查列表
total: 0,
loading: false,
list: [{ key: 1, VisitName: "123" }],
+ // 选中的患者
+ selectPatient: {},
// 研究项目列表
researchTrialsVisible: false,
// 可加入项目列表
@@ -231,22 +256,68 @@ export default {
studyTrialsVisible: false,
};
},
+ created() {
+ this.getDicomCalledAEList();
+ this.getList();
+ },
methods: {
+ // 获取dicomAE列表
+ async getDicomCalledAEList() {
+ try {
+ let res = await getDicomCalledAEList();
+ if (res.IsSuccess) {
+ this.dicomAeList = res.Result;
+ }
+ } catch (err) {
+ console.log(err);
+ }
+ },
// 获取列表数据
- getList() {},
+ async getList() {
+ let data = {};
+ Object.keys(this.searchData).forEach((key) => {
+ data[key] = this.searchData[key];
+ });
+ try {
+ this.loading = true;
+ let res = await getPatientList(data);
+ this.loading = false;
+ if (res.IsSuccess) {
+ this.list = res.Result.CurrentPageData;
+ this.total = res.Result.TotalCount;
+ }
+ } catch (err) {
+ console.log(err);
+ }
+ },
// 查询
- handleSearch() {},
+ handleSearch() {
+ this.getList();
+ },
// 重置
- handleReset() {},
- // 表格选择
- handleSelectionChange() {},
- // 表格单行选择
- handleSelectTable() {},
+ handleReset() {
+ Object.keys(this.searchData).forEach((key) => {
+ this.searchData[key] = null;
+ });
+ this.searchData.PageIndex = 1;
+ this.searchData.PageSize = 10;
+ this.searchData.CalledAEList = [];
+ this.searchData.Asc = true;
+ this.$refs.inspectionList.clearSort();
+ this.getList();
+ },
// 表格排序
- handleSortByColumn() {},
+ handleSortByColumn(sort) {
+ this.searchData.SortField = sort.prop;
+ if (sort.order === "ascending") this.searchData.Asc = true;
+ if (sort.order === "descending") this.searchData.Asc = false;
+ if (!sort.order) this.searchData.SortField = null;
+ this.getList();
+ },
// 打开弹框
handleOpenDialog(item, key) {
this[`${key}TrialsVisible`] = true;
+ this.selectPatient = item;
},
},
};