部分问题修复
parent
7a0a8bfa5c
commit
14203690de
|
@ -117,3 +117,12 @@ export function submitVisitStudyBinding(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 清除数据
|
||||||
|
export function DeletePatientStudyAllData(params) {
|
||||||
|
return request({
|
||||||
|
url: '/Patient/DeletePatientStudyAllData',
|
||||||
|
method: 'delete',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
|
@ -13,27 +13,30 @@
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
size="small"
|
size="small"
|
||||||
label-width="150px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<!--AE Title-->
|
<!--AE Title-->
|
||||||
<el-form-item label="AE Title" prop="CalledAE">
|
<el-form-item :label="$t('system:dicom:form:AETitle')" prop="CalledAE">
|
||||||
<el-input v-model="form.CalledAE" clearable />
|
<el-input v-model="form.CalledAE" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--IP-->
|
<!--IP-->
|
||||||
<el-form-item label="IP" prop="IP">
|
<el-form-item :label="$t('system:dicom:form:IP')" prop="IP">
|
||||||
<el-input v-model="form.IP" clearable />
|
<el-input v-model="form.IP" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--Port-->
|
<!--Port-->
|
||||||
<el-form-item label="Port" prop="Port">
|
<el-form-item :label="$t('system:dicom:form:Port')" prop="Port">
|
||||||
<el-input v-model="form.Port" type="number" clearable />
|
<el-input v-model="form.Port" type="number" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--Modality-->
|
<!--Modality-->
|
||||||
<el-form-item label="Modality" prop="Modality">
|
<el-form-item :label="$t('system:dicom:form:Modality')" prop="Modality">
|
||||||
<el-input v-model="form.Modality" clearable />
|
<el-input v-model="form.Modality" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--Description-->
|
<!--Description-->
|
||||||
<el-form-item label="Description" prop="Description">
|
<el-form-item
|
||||||
|
:label="$t('system:dicom:form:Description')"
|
||||||
|
prop="Description"
|
||||||
|
>
|
||||||
<el-input v-model="form.Description" clearable />
|
<el-input v-model="form.Description" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,10 +98,26 @@ export default {
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
CalledAE: [
|
CalledAE: [
|
||||||
{ required: true, message: "请输入AE Title", trigger: "blur" },
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("common:ruleMessage:specify"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
IP: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("common:ruleMessage:specify"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
Port: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("common:ruleMessage:specify"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
IP: [{ required: true, message: "请输入IP", trigger: "blur" }],
|
|
||||||
Port: [{ required: true, message: "请输入pORT", trigger: "blur" }],
|
|
||||||
},
|
},
|
||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,16 +22,18 @@
|
||||||
<el-input v-model="searchData.Port" style="width: 140px" clearable />
|
<el-input v-model="searchData.Port" style="width: 140px" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" size="mini" @click="getList"
|
<el-button type="primary" size="mini" @click="getList">{{
|
||||||
>搜索</el-button
|
$t("system:dicom:search:search")
|
||||||
>
|
}}</el-button>
|
||||||
<el-button type="primary" size="mini" @click="reset">重置</el-button>
|
<el-button type="primary" size="mini" @click="reset">{{
|
||||||
|
$t("system:dicom:search:reset")
|
||||||
|
}}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-hasPermi="['system:dicom:add']"
|
v-hasPermi="['system:dicom:add']"
|
||||||
@click="openDialog('add')"
|
@click="openDialog('add')"
|
||||||
>新增</el-button
|
>{{ $t("system:dicom:search:add") }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -77,6 +79,26 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
|
<!--测试状态-->
|
||||||
|
<el-table-column
|
||||||
|
:label="$t('system:dicom:table:IsTestOK')"
|
||||||
|
prop="IsTestOK"
|
||||||
|
min-width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag :type="scope.row.IsTestOK ? 'success' : 'danger'">{{
|
||||||
|
$fd("IsTestOK", String(scope.row.IsTestOK))
|
||||||
|
}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!--最后测试时间-->
|
||||||
|
<el-table-column
|
||||||
|
:label="$t('system:dicom:table:LatestTestTime')"
|
||||||
|
prop="LatestTestTime"
|
||||||
|
min-width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('system:dicom:table:action')"
|
:label="$t('system:dicom:table:action')"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
|
@ -89,18 +111,18 @@
|
||||||
type="text"
|
type="text"
|
||||||
v-hasPermi="['system:dicom:edit']"
|
v-hasPermi="['system:dicom:edit']"
|
||||||
@click="openDialog('edit', scope.row)"
|
@click="openDialog('edit', scope.row)"
|
||||||
>{{ $t("system:dicom:table:edit") }}</el-button
|
>{{ $t("system:dicom:action:edit") }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
v-hasPermi="['system:dicom:del']"
|
v-hasPermi="['system:dicom:del']"
|
||||||
@click="delAE(scope.row)"
|
@click="delAE(scope.row)"
|
||||||
>删除</el-button
|
>{{ $t("system:dicom:action:remove") }}</el-button
|
||||||
>
|
|
||||||
<el-button size="mini" type="text" @click="test(scope.row)"
|
|
||||||
>测试</el-button
|
|
||||||
>
|
>
|
||||||
|
<el-button size="mini" type="text" @click="test(scope.row)">{{
|
||||||
|
$t("system:dicom:action:test")
|
||||||
|
}}</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -144,7 +166,7 @@ export default {
|
||||||
list: [],
|
list: [],
|
||||||
// 弹窗
|
// 弹窗
|
||||||
editDicomVisible: false,
|
editDicomVisible: false,
|
||||||
editDicomTitle: "添加",
|
editDicomTitle: "",
|
||||||
DICOM: {},
|
DICOM: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -182,9 +204,9 @@ export default {
|
||||||
// 打开弹框
|
// 打开弹框
|
||||||
openDialog(key, item = {}) {
|
openDialog(key, item = {}) {
|
||||||
this.editDicomVisible = true;
|
this.editDicomVisible = true;
|
||||||
this.editDicomTitle = "编辑";
|
this.editDicomTitle = this.$t("system:dicom:action:edit");
|
||||||
if (key === "add") {
|
if (key === "add") {
|
||||||
this.editDicomTitle = "添加";
|
this.editDicomTitle = this.$t("system:dicom:search:add");
|
||||||
}
|
}
|
||||||
this.DICOM = JSON.parse(JSON.stringify(item));
|
this.DICOM = JSON.parse(JSON.stringify(item));
|
||||||
},
|
},
|
||||||
|
@ -222,6 +244,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(this.$t("system:dicomAE:connect:error"));
|
this.$message.error(this.$t("system:dicomAE:connect:error"));
|
||||||
}
|
}
|
||||||
|
this.getList();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,10 +53,10 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<!--受试者编号-->
|
<!--匹配受试者编号-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
:label="$t('trials:uploadMonitor:table:subjectId')"
|
:label="$t('trials:inspectionTrials:table:subjectId')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
min-width="140"
|
min-width="140"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ $fd("sex", Number(scope.row.Sex)) }}</span>
|
<span>{{ $fd("sex", scope.row.Sex) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--状态-->
|
<!--状态-->
|
||||||
|
|
|
@ -132,7 +132,11 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
></el-table-column>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ $fd("sex", scope.row.PatientSex) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!--Called AE-->
|
<!--Called AE-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="CalledAEList"
|
prop="CalledAEList"
|
||||||
|
@ -228,6 +232,12 @@
|
||||||
:title="$t('trials:inspection:button:addTrials')"
|
:title="$t('trials:inspection:button:addTrials')"
|
||||||
@click.stop="handleOpenDialog(scope.row, 'add')"
|
@click.stop="handleOpenDialog(scope.row, 'add')"
|
||||||
/>
|
/>
|
||||||
|
<el-button
|
||||||
|
circle
|
||||||
|
icon="el-icon-delete"
|
||||||
|
:title="$t('trials:inspection:button:delete')"
|
||||||
|
@click.stop="DeletePatientStudyAllData(scope.row)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -272,7 +282,7 @@ import Pagination from "@/components/Pagination";
|
||||||
import researchTrialsList from "./components/research-trials-list";
|
import researchTrialsList from "./components/research-trials-list";
|
||||||
import addTrialsList from "./components/add-trials-list";
|
import addTrialsList from "./components/add-trials-list";
|
||||||
import viewStudyList from "./components/view-study-list";
|
import viewStudyList from "./components/view-study-list";
|
||||||
import { getPatientList } from "@/api/inspection.js";
|
import { getPatientList, DeletePatientStudyAllData } from "@/api/inspection.js";
|
||||||
import { getDicomCalledAEList, getDicomCallingAEList } from "@/api/dicomAE.js";
|
import { getDicomCalledAEList, getDicomCallingAEList } from "@/api/dicomAE.js";
|
||||||
|
|
||||||
const defaultSearchData = () => {
|
const defaultSearchData = () => {
|
||||||
|
@ -326,6 +336,31 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 清除数据
|
||||||
|
async DeletePatientStudyAllData(item) {
|
||||||
|
try {
|
||||||
|
let confirm = await this.$confirm(
|
||||||
|
this.$t("trials:sitesList:message:removeSite"),
|
||||||
|
{
|
||||||
|
type: "warning",
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
|
confirmButtonText: this.$t("common:button:confirm"),
|
||||||
|
cancelButtonText: this.$t("recompose:button:cancel"),
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (confirm !== "confirm") return;
|
||||||
|
let params = {
|
||||||
|
PatientId: item.PatientId,
|
||||||
|
};
|
||||||
|
let res = await DeletePatientStudyAllData(params);
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.getList();
|
||||||
|
this.$message.success(this.$t("common:message:removedSuccessfully"));
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取calledAE列表
|
// 获取calledAE列表
|
||||||
async getDicomCalledAEList() {
|
async getDicomCalledAEList() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -242,12 +242,11 @@ export default {
|
||||||
if (["PM", "PI", "SR", "OA"].includes(name)) {
|
if (["PM", "PI", "SR", "OA"].includes(name)) {
|
||||||
this.form.IsZhiZhun = true;
|
this.form.IsZhiZhun = true;
|
||||||
this.form.OrganizationName = this.hospitalName;
|
this.form.OrganizationName = this.hospitalName;
|
||||||
return (this.IsZhiZhunDisabled = true);
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.form.IsZhiZhun = false;
|
this.form.IsZhiZhun = false;
|
||||||
this.form.OrganizationName = null;
|
this.form.OrganizationName = null;
|
||||||
this.IsZhiZhunDisabled = false;
|
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<div>
|
<div>
|
||||||
<!--受试者编号-->
|
<!--受试者编号-->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:crcQuestion:table:subjectId')"
|
:label="$t('trials:addSubject:search:subjectId')"
|
||||||
prop="SubjectId"
|
prop="SubjectId"
|
||||||
class="SubjectId"
|
class="SubjectId"
|
||||||
>
|
>
|
||||||
|
@ -52,9 +52,17 @@
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!--添加受试者-->
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
v-if="status === 'trial'"
|
||||||
|
@click="addSubject_model.visible = true"
|
||||||
|
>
|
||||||
|
{{ $t("trials:selectSubject:button:add") }}
|
||||||
|
</el-button>
|
||||||
<!--患者-->
|
<!--患者-->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('trials:subject:messge:patient')"
|
:label="$t('trials:addSubject:search:patient')"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -69,7 +77,7 @@
|
||||||
v-if="status === 'trial'"
|
v-if="status === 'trial'"
|
||||||
:disabled="!submitMessage.SubjectId"
|
:disabled="!submitMessage.SubjectId"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:add") }}
|
{{ $t("common:button:check") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="btnBox">
|
<div class="btnBox">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -118,6 +126,37 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
|
<base-model v-if="addSubject_model.visible" :config="addSubject_model">
|
||||||
|
<template slot="dialog-body">
|
||||||
|
<el-form
|
||||||
|
ref="addSubjectForm2"
|
||||||
|
:inline="true"
|
||||||
|
:model="addSubjectForm2"
|
||||||
|
class="demo-form-inline"
|
||||||
|
:rules="addSubjectrules"
|
||||||
|
>
|
||||||
|
<!--受试者编号-->
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:addSuject:form:subjectCode')"
|
||||||
|
prop="SubjectCode"
|
||||||
|
label-width="150px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="addSubjectForm2.SubjectCode"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<template slot="dialog-footer">
|
||||||
|
<el-button type="primary" @click="addSubject">
|
||||||
|
{{ $t("common:button:confirm") }}
|
||||||
|
</el-button>
|
||||||
|
<el-button @click="addSubject_model.visible = false">
|
||||||
|
{{ $t("common:button:cancel") }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</base-model>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -182,6 +221,25 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
// 新增受试者
|
||||||
|
addSubject_model: {
|
||||||
|
visible: false,
|
||||||
|
title: this.$t("trials:selectSubject:button:add"),
|
||||||
|
width: "500px",
|
||||||
|
appendToBody: true,
|
||||||
|
},
|
||||||
|
addSubjectForm2: {
|
||||||
|
SubjectCode: null,
|
||||||
|
},
|
||||||
|
addSubjectrules: {
|
||||||
|
SubjectCode: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("trials:subject:format:notSubject"),
|
||||||
|
trigger: ["blur", "change"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -206,6 +264,29 @@ export default {
|
||||||
this.getTrialSubejctSelectList(this.$route.query.trialId);
|
this.getTrialSubejctSelectList(this.$route.query.trialId);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 新增受试者(前端操作未同步后端)
|
||||||
|
async addSubject() {
|
||||||
|
try {
|
||||||
|
let validate = await this.$refs.addSubjectForm2.validate();
|
||||||
|
if (!validate) return;
|
||||||
|
let flag = this.subjectIdList.some(
|
||||||
|
(item) => item.SubjectCode === this.addSubjectForm2.SubjectCode
|
||||||
|
);
|
||||||
|
if (flag)
|
||||||
|
return this.$message.warning(
|
||||||
|
this.$t("trials:addSubject:format:hasSubject")
|
||||||
|
);
|
||||||
|
let subject = {
|
||||||
|
SubjectCode: this.addSubjectForm2.SubjectCode,
|
||||||
|
SubejctId: this.addSubjectForm2.SubjectCode,
|
||||||
|
};
|
||||||
|
this.subjectIdList.unshift(subject);
|
||||||
|
this.submitMessage.SubjectId = this.addSubjectForm2.SubjectCode;
|
||||||
|
this.addSubject_model.visible = false;
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 删除选中患者
|
// 删除选中患者
|
||||||
delPatient(index) {
|
delPatient(index) {
|
||||||
this.selectPatient.splice(index, 1);
|
this.selectPatient.splice(index, 1);
|
||||||
|
|
|
@ -45,7 +45,11 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
></el-table-column>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ $fd("sex", scope.row.PatientSex) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!--操作-->
|
<!--操作-->
|
||||||
<el-table-column :label="$t('common:action:action')" width="80">
|
<el-table-column :label="$t('common:action:action')" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ $fd("sex", Number(scope.row.Sex)) }}</span>
|
<span>{{ $fd("sex", scope.row.Sex) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 出生日期 -->
|
<!-- 出生日期 -->
|
||||||
|
|
Loading…
Reference in New Issue