新增检查未绑定列表

main
wangxiaoshuang 2024-04-08 17:52:20 +08:00
parent e6ec3d3550
commit 49e22d55cd
7 changed files with 404 additions and 32 deletions

View File

@ -18,3 +18,12 @@ export function getTrialPatientStudyList(data) {
data
})
}
// 检查列表->未绑定
export function getTrialUnbindSubjectVisitStudyList(data) {
return request({
url: '/Patient/getTrialUnbindSubjectVisitStudyList',
method: 'post',
data
})
}

View File

@ -17,14 +17,14 @@
<div class="topTable">
<div class="title">
<span>{{ $t("trials:hirVisit:titleMessage:currentStudy") }}</span>
<div class="btnBox">
<!-- <div class="btnBox">
<el-button type="primary" @click="submit">
{{ $t("trials:seletctedReviews:button:confirm") }}
</el-button>
<el-button @click="preview">
{{ $t("trials:readingPeriod:verify:title:preview") }}
</el-button>
</div>
</div> -->
</div>
<!--当前检查列表 @selection-change="handleSelectChange"--->
<el-table
@ -52,10 +52,17 @@
<!--序列数量-->
<el-table-column
align="center"
prop="InstanceCount"
prop="SeriesCount"
:label="$t('trials:audit:table:seriesCount')"
show-overflow-tooltip
></el-table-column>
<!--图像数量-->
<el-table-column
align="center"
prop="InstanceCount"
:label="$t('trials:audit:table:instanceCount')"
show-overflow-tooltip
></el-table-column>
<!--检查日期-->
<el-table-column
align="center"
@ -159,10 +166,17 @@
<!--序列数量-->
<el-table-column
align="center"
prop="InstanceCount"
prop="SeriesCount"
:label="$t('trials:audit:table:seriesCount')"
show-overflow-tooltip
></el-table-column>
<!--图像数量-->
<el-table-column
align="center"
prop="InstanceCount"
:label="$t('trials:audit:table:instanceCount')"
show-overflow-tooltip
></el-table-column>
<!--检查日期-->
<el-table-column
align="center"

View File

@ -311,11 +311,7 @@ export default {
searchData: defaultSearchData(),
visitOptions: [],
//
list: [
{
StudyCode: 1,
},
],
list: [],
loading: false,
total: 0,
//

View File

@ -263,7 +263,7 @@ import {
getPatientStudyBeforeConfirmList,
getTrialPatientStudyList,
} from "@/api/trials/study.js";
let defaultSearchData = () => {
const defaultSearchData = () => {
return {
SubjectCode: null,
PatientIdStr: null,
@ -295,7 +295,7 @@ export default {
searchData: defaultSearchData(),
dateValue: [],
//
list: [{ SubmitTime: 1 }],
list: [],
loading: false,
total: 0,

View File

@ -0,0 +1,352 @@
<template>
<BaseContainer>
<!-- 搜索框 -->
<template slot="search-container">
<el-form :inline="true">
<!-- 受试者编号 -->
<el-form-item :label="$t('trials:subject:table:subjectId')">
<el-input v-model="searchData.SubjectCode" style="width: 140px" />
</el-form-item>
<!-- 患者编号 -->
<el-form-item :label="$t('trials:uploadDicomList:table:pId')">
<el-input v-model="searchData.PatientIdStr" style="width: 140px" />
</el-form-item>
<!-- 性别 -->
<el-form-item :label="$t('trials:subject:table:gender')">
<el-select v-model="searchData.PatientSex" clearable>
<el-option
v-for="item of $d.sex"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<!-- 申请号 -->
<!-- <el-form-item :label="$t('trials:study:form:accessionNumber')">
<el-input v-model="searchData.SubjectInfo" style="width: 140px" />
</el-form-item> -->
<!-- 检查设备 -->
<!-- <el-form-item :label="$t('trials:studyList:table:modality')">
<el-select v-model="searchData.VisitPlanArray" clearable>
<el-option
v-for="item of $d.sex"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
<!-- 检查类型 -->
<!-- <el-form-item :label="$t('trials:seletctedReviews:form:modality')">
<el-select v-model="searchData.Modalities" clearable>
<el-option
v-for="item of $d.modalType"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
<!-- 检查日期 -->
<el-form-item :label="$t('trials:audit:table:studyDate')">
<el-date-picker
v-model="dateValue"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
<!-- 状态 -->
<!-- <el-form-item :label="$t('trials:seletctedReviews:table:status')">
<el-select v-model="searchData.VisitPlanArray" clearable>
<el-option
v-for="item of $d.sex"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
<el-form-item>
<!-- 查询 -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t("common:button:search") }}
</el-button>
<!-- 重置 -->
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t("common:button:reset") }}
</el-button>
</el-form-item>
</el-form>
</template>
<!-- 检查列表 -->
<template slot="main-container">
<el-table
v-loading="loading"
v-adaptive="{ bottomOffset: 80 }"
:data="list"
stripe
height="100"
@sort-change="handleSortByColumn"
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
>
<el-table-column type="index" width="40" />
<!-- 受试者编号 -->
<el-table-column
prop="SubjectCode"
:label="$t('trials:subject:table:subjectId')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/>
<!-- 姓名 -->
<el-table-column
prop="SubjectShortName"
:label="$t('trials:researchStaff:table:Name')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/>
<!-- 性别 -->
<el-table-column
prop="SubjectSex"
:label="$t('trials:subject:table:gender')"
show-overflow-tooltip
sortable="custom"
min-width="100"
>
<template slot-scope="scope">
<span>{{ $fd("sex", Number(scope.row.SubjectSex)) }}</span>
</template>
</el-table-column>
<!-- 患者编号 -->
<el-table-column
prop="PatientIdStr"
:label="$t('trials:uploadDicomList:table:pId')"
show-overflow-tooltip
min-width="100"
>
</el-table-column>
<!-- 检查类型 -->
<el-table-column
prop="Modalities"
:label="$t('trials:audit:table:modality')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/>
<!--序列数量-->
<el-table-column
align="center"
prop="SeriesCount"
:label="$t('trials:audit:table:seriesCount')"
show-overflow-tooltip
></el-table-column>
<!--图像数量-->
<el-table-column
align="center"
prop="InstanceCount"
:label="$t('trials:audit:table:instanceCount')"
show-overflow-tooltip
></el-table-column>
<!-- 检查日期 -->
<el-table-column
prop="StudyTime"
:label="$t('trials:audit:table:studyDate')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/>
<!-- 访视 -->
<!-- <el-table-column
prop="VisitName"
:label="$t('trials:auditRecord:table:visit')"
show-overflow-tooltip
sortable="custom"
min-width="100"
/> -->
<!-- 状态 -->
<!-- <el-table-column
prop="SubmitState"
:label="$t('trials:trials-list:table:status')"
show-overflow-tooltip
sortable="custom"
min-width="100"
>
<template slot-scope="scope">
<el-tag v-if="scope.row.SubmitState * 1 === 0" type="warning">{{
$fd("SubmitState", scope.row.SubmitState * 1)
}}</el-tag>
<el-tag v-else-if="scope.row.SubmitState * 1 === 1" type="danger">{{
$fd("SubmitState", scope.row.SubmitState * 1)
}}</el-tag>
<el-tag v-else-if="scope.row.SubmitState * 1 === 2">{{
$fd("SubmitState", scope.row.SubmitState * 1)
}}</el-tag>
</template>
</el-table-column> -->
<el-table-column
:label="$t('common:action:action')"
min-width="100"
fixed="right"
>
<template slot-scope="scope">
<!-- 查看 -->
<el-button
type="text"
@click="handleViewStudy(scope.row)"
v-hasPermi="['trials:trials-panel:study:view']"
disabled
>{{ $t("trials:studyList:button:view") }}</el-button
>
<!-- 修改访视 -->
<el-button
type="text"
@click="editVisitFn(scope.row)"
v-hasPermi="['trials:trials-panel:study:editVisit']"
>{{ $t("trials:study:button:bindVisit") }}</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
class="page"
:total="total"
:page.sync="searchData.PageIndex"
:limit.sync="searchData.PageSize"
@pagination="getList"
/>
</template>
<editVisit
v-if="editVisitVisible"
:visible.sync="editVisitVisible"
:data="editVisitMessage"
@getList="getList"
/>
</BaseContainer>
</template>
<script>
import BaseContainer from "@/components/BaseContainer";
import Pagination from "@/components/Pagination";
import editVisit from "./edit-visit";
import { getTrialUnbindSubjectVisitStudyList } from "@/api/trials/study.js";
const defaultSearchData = () => {
return {
SubjectCode: null,
PatientIdStr: null,
PatientSex: null,
BeginStudyTime: null,
EndStudyTime: null,
Asc: false,
SortField: "StudyTime",
PageIndex: 1,
PageSize: 20,
};
};
export default {
name: "notBindStudyList",
components: {
BaseContainer,
Pagination,
editVisit,
},
props: {
activeName: {
required: true,
default: "notSubmit",
},
},
data() {
return {
//
searchData: defaultSearchData(),
dateValue: [],
//
list: [],
loading: false,
total: 0,
// 访
editVisitVisible: false,
editVisitMessage: {},
};
},
created() {
this.getList();
},
methods: {
// 访
editVisitFn(item) {
this.editVisitVisible = true;
this.editVisitMessage = item;
this.editVisitMessage.TrialId = this.$route.query.trialId;
},
//
async getList() {
let data = {};
Object.keys(this.searchData).forEach((key) => {
data[key] = this.searchData[key];
});
data.TrialId = this.$route.query.trialId;
if (this.dateValue[0] && this.dateValue[1]) {
data.BeginStudyTime = this.dateValue[0].toISOString();
data.EndStudyTime = this.dateValue[1].toISOString();
} else {
data.BeginStudyTime = null;
data.EndStudyTime = null;
}
try {
let res = await getTrialUnbindSubjectVisitStudyList(data);
this.loading = false;
if (res.IsSuccess) {
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
}
} catch (err) {
this.loading = false;
console.log(err);
}
},
//
handleSearch() {
this.searchData.PageIndex = 1;
this.getList();
},
//
handleReset() {
this.reset();
this.getList();
},
//
reset() {
this.searchData = defaultSearchData();
this.dateValue = [];
},
//
handleSortByColumn(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
} else {
this.searchData.Asc = false;
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
},
},
};
</script>

View File

@ -1,6 +1,12 @@
<template>
<div>
<el-tabs type="border-card" v-model="activeName">
<el-tab-pane :label="$t('trials:study:tabpane:notBind')" name="notBind">
<notBindStudyList
activeName="notBind"
v-if="activeName === 'notBind'"
/>
</el-tab-pane>
<el-tab-pane
:label="$t('trials:study:tabpane:notSubmit')"
name="notSubmit"
@ -70,12 +76,14 @@ import NonDicomPreview from "./components/nonDicomPreview";
import moment from "moment";
import { getToken } from "@/utils/auth";
import studyList from "./components/list.vue";
import notBindStudyList from "./components/not-bind-study.vue";
export default {
name: "StudyList",
components: {
BaseModel,
NonDicomPreview,
studyList,
notBindStudyList,
},
data() {
return {
@ -101,7 +109,7 @@ export default {
tokenKey: getToken(),
openWindow: null,
activeName: "notSubmit", // notSubmit submit
activeName: "notBind", // notSubmit submit notBind
};
},
mounted() {

View File

@ -19,6 +19,7 @@
class="demo-form-inline topForm"
:rules="rules"
ref="addSubjectForm"
label-width="100px"
>
<div class="selectAndBtn">
<!--受试者编号-->
@ -54,27 +55,19 @@
</div>
<!--患者-->
<el-form-item :label="$t('trials:subject:messge:patient')">
<div class="patientBox">
<p style="margin-right: 10px">
<span v-for="(item, index) in selectPatient" :key="item.PatientId"
>{{ item.PatientIdStr }}
<i
class="el-icon-delete-solid"
style="cursor: pointer"
@click.stop="delPatient(index)"
v-if="status === 'trial'"
></i>
</span>
</p>
<el-button
type="primary"
@click="patient_model.visible = true"
v-if="status === 'trial'"
>
{{ $t("common:button:add") }}
</el-button>
</div>
<el-input
:value="selectPatient.map((item) => item.PatientIdStr)"
disabled
:title="selectPatient.map((item) => item.PatientIdStr)"
/>
</el-form-item>
<el-button
type="primary"
@click="patient_model.visible = true"
v-if="status === 'trial'"
>
{{ $t("common:button:add") }}
</el-button>
</el-form>
</div>
<confirmVistList