-
+
-
+
-
+
{{ item.name }}
- 搜索
+ 搜索
新增
diff --git a/src/config/api.js b/src/config/api.js
index a277502..c53a3cf 100644
--- a/src/config/api.js
+++ b/src/config/api.js
@@ -3,14 +3,14 @@
* @email: 18603454788@163.com
* @Date: 2021-01-29 11:16:27
* @LastEditors: wally
- * @LastEditTime: 2021-05-08 19:25:11
+ * @LastEditTime: 2021-05-11 18:33:24
*/
import axios from 'axios';
let { proxyUrl } = require('@/config/setting');
const tcm = `${proxyUrl}/tcm`;
const question = `${proxyUrl}/question`;
-const patient = `${tcm}/patient`; // 患者相关接口
+const patient = `${tcm}/patient`; // 病例相关接口
const imp = `${tcm}/import`; // 试题相关接口
const inpatient = `${tcm}/inpatient`; // 组别接口
const statistics = `${tcm}/statistics`; // 数据统计相关接口
@@ -28,19 +28,19 @@ export const getHId = params => axios.get(`${hospatil}/byProjectId?projectId=${p
// 查询医院列表
export const getHList = params => axios.get(`${hospatil}/selHospatil`);
-// 保存患者病例信息
+// 保存病例病例信息
export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params);
-// 添加患者基本信息
+// 添加病例基本信息
export const savePatientMes = params => axios.post(`${patient}/savePatientMes`, params);
-// 修改患者录入状态
+// 修改病例录入状态
export const upPatientMes = params => axios.post(`${patient}/upPatientMes`, params);
-// 查询患者基本信息
+// 查询病例基本信息
export const selPatientMes = params => axios.post(`${patient}/selPatientMes`, params);
-// 通过搜索条件查询患者病例的信息
+// 通过搜索条件查询病例病例的信息
export const selPatientMesList = params => axios.post(`${patient}/selPatientMesList`, params);
// 通过查询搜索条件
@@ -70,7 +70,7 @@ export const countCase = params => axios.post(`${statistics}/countCase`, params)
// 统计生物样本数量
export const selAllYBS = params => axios.get(`${biologicalSamples}/selAllYBS`);
-// 获取某个患者的生物样本
+// 获取某个病例的生物样本
export const queryByPatient = params => axios.post(`${biologicalSamples}/queryByPatient`, params);
// 添加会议记录
@@ -91,14 +91,14 @@ export const selBiologicalSamples = params => axios.post(`${biologicalSamples}/s
// 搜索某个医院的病例完成情况
export const selByHosAllYBS = params => axios.post(`${biologicalSamples}/selByHosAllYBS`, params);
-// 进行中的患者进度
+// 进行中的病例进度
export const patientProgress = params => axios.post(`${statistics}/selPatientProgress`, params);
// 临近任务统计
export const adjacentTasks = params => axios.post(`${statistics}/adjacentTasks`, params);
// 生成报告单
-export const generatePatientReport = params => axios.post(`${question}/generatePatientReport`, params);
+export const checkPatientComplete = params => axios.post(`${question}/checkPatientComplete`, params);
// 查询认知量表的搜索条件
export const searchParam = params => axios.post(`${question}/patientReport/searchParam`, params);
diff --git a/src/router/index.js b/src/router/index.js
index c4df7ad..6e491a5 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -23,13 +23,13 @@ const routes = [
name: 'MeetingPreview',
component: () => import('@/views/Meeting/MeetingPreview.vue'),
},
- // 选择患者信息
+ // 选择病例信息
{
path: '/selectPatient',
name: 'SelectPatient',
component: () => import('@/views/SelectPatient/SelectPatient.vue'),
},
- // 患者信息录入
+ // 病例信息录入
{
path: '/patientInfo',
name: 'PatientInfo',
diff --git a/src/store/modules/home/mutations.js b/src/store/modules/home/mutations.js
index 611c433..978ce90 100644
--- a/src/store/modules/home/mutations.js
+++ b/src/store/modules/home/mutations.js
@@ -98,7 +98,7 @@ const mutations = {
},
/**
- * 设置选择患者信息界面是否显示列表
+ * 设置选择病例信息界面是否显示列表
* @param {object} state
* @param {object} data
*/
diff --git a/src/store/modules/home/state.js b/src/store/modules/home/state.js
index 1e15a46..27af6c3 100644
--- a/src/store/modules/home/state.js
+++ b/src/store/modules/home/state.js
@@ -1,17 +1,10 @@
-/*
- * @Author: wally
- * @email: 18603454788@163.com
- * @Date: 2021-02-22 09:20:03
- * @LastEditors: wally
- * @LastEditTime: 2021-05-09 21:10:40
- */
const state = {
anyringToken: '',
user: { id: '', phone: '', account: '' },
controlGroups: [], // 组别
patientId: '', // 病患id
hospitalization: '', // 病患住院号
- recordCode: '', // 患者研究编号
+ recordCode: '', // 病例研究编号
previewInfo: { host: '', place: '', startTime: '', endTime: '', participants: '', meetingMinutes: '', discussionContent: '' }, // 预览信息
ptProps: { userId: '1' }, // 接受PT传过来的 pluginId,projectId,roleId,taskId,userId
hospitalId: '', // 医院Id
diff --git a/src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue b/src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue
index afddc10..d9def86 100644
--- a/src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue
+++ b/src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue
@@ -26,7 +26,7 @@ export default {
lists: { pageNum: 1, pageSize: 10, total: 1, list: [] },
collectTime: '', // 采集时间
hospitalId: '', // 医院id
- hospitalization: '', // 患者住院号
+ hospitalization: '', // 病例住院号
pageNum: 1, // 当前页
sampleType: '', // 样本类型
codes: '',
@@ -62,7 +62,7 @@ export default {
param: {
collectTime, // 采集时间
hospitalId, // 医院id
- hospitalization, // 患者住院号
+ hospitalization, // 病例住院号
pageNum, // 当前页
pageSize: 10, // 每页数量
sampleTypes, // 样本类型
diff --git a/src/views/BiologicalSamples/BiologicalSamples.vue b/src/views/BiologicalSamples/BiologicalSamples.vue
index 4725721..c72add0 100644
--- a/src/views/BiologicalSamples/BiologicalSamples.vue
+++ b/src/views/BiologicalSamples/BiologicalSamples.vue
@@ -4,10 +4,10 @@
-
-
-
+
+
+ {{ recordCode }}
@@ -32,13 +33,13 @@
-
-
-
+
+
+
+ {{ t.title }}
+
@@ -121,15 +122,12 @@ export default {
this.$message.error('请填写完整信息');
return;
}
- if (!values.acquisitionTime && values.acquisitionTime !== 0) {
- this.$message.error('请填写完整信息');
- return;
- }
try {
+ const { sampleType, recordCode } = this;
const param = {
- sampleTypes: this.sampleType,
- code: values.inpatientNumber,
- collectTime: values.acquisitionTime,
+ sampleTypes: sampleType,
+ code: recordCode,
+ collectTime: values.acquisitionTime ? values.acquisitionTime : 0,
};
const params = { param };
const res = await addBiologicalSamples(params);
diff --git a/src/views/CaseAnalysis/CaseAnalysis.vue b/src/views/CaseAnalysis/CaseAnalysis.vue
index 35cdb12..4f440fa 100644
--- a/src/views/CaseAnalysis/CaseAnalysis.vue
+++ b/src/views/CaseAnalysis/CaseAnalysis.vue
@@ -15,7 +15,7 @@
-
+
@@ -64,6 +64,7 @@
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, a.id)"
+ :before-upload="beforeUpload1"
list-type="picture"
name="files"
v-else-if="a.type === 7"
@@ -191,6 +192,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -453,6 +455,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -726,6 +729,7 @@
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, e.id, e.recordId)"
+ :before-upload="beforeUpload1"
list-type="picture"
name="files"
v-else-if="e.type === 7"
@@ -856,6 +860,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -1117,6 +1122,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -1396,6 +1402,12 @@ export default {
tailItemLayout,
form: this.$form.createForm(this, { name: 'page-add' }),
form1: this.$form.createForm(this, { name: 'search' }),
+ beforeUpload1: file => {
+ if (file.size > 10 * 1024 * 1024) {
+ this.$message.error('图片最大不得大于10M');
+ return false;
+ }
+ },
hospitals: [],
value: 1,
radioStyle: {
@@ -1409,7 +1421,7 @@ export default {
numList: [1, 2, 3, 4, 5],
setObj: {
hospitalId: '', // 选择的医院Id
- hospitalization: '', // 输入的患者编号
+ hospitalization: '', // 输入的病例编号
inpatientId: '', // 选择的组别Id
inputStatus: '', // 选择的录入状态
},
@@ -1943,7 +1955,7 @@ export default {
const objList = list[indexA].subReportCodes[indexB];
const params = {
param: {
- hospitalId: this.hospitalId,
+ patientId: this.patientId,
code: title,
url: info.file.response.data[0].visitUrl,
},
@@ -2093,7 +2105,7 @@ export default {
conditionList: this.contentList,
conditionListDate: this.conditionListDate,
hospitalId: this.setObj.hospitalId, // 医院id
- hospitalization: this.setObj.hospitalization, // 患者编号
+ hospitalization: this.setObj.hospitalization, // 病例编号
inpatientId: this.inpatientList, // 组别id
inputStatus: this.setObj.inputStatus, // 录入状态
reportParams: this.caseAnswer, // 认知量表答题情况
diff --git a/src/views/CaseSearch/CaseSearch.vue b/src/views/CaseSearch/CaseSearch.vue
index fb70998..8a73682 100644
--- a/src/views/CaseSearch/CaseSearch.vue
+++ b/src/views/CaseSearch/CaseSearch.vue
@@ -8,7 +8,7 @@
-
+
@@ -61,6 +61,7 @@
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, a.id)"
+ :before-upload="beforeUpload1"
list-type="picture"
name="files"
v-else-if="a.type === 7"
@@ -188,6 +189,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -450,6 +452,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -724,6 +727,7 @@
:headers="headers"
@change="fileChange($event, e.id, e.recordId)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="e.type === 7"
>
@@ -853,6 +857,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -1114,6 +1119,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-else-if="h.type === 7"
>
@@ -1375,6 +1381,12 @@ export default {
tailItemLayout,
form: this.$form.createForm(this, { name: 'page-add' }),
form1: this.$form.createForm(this, { name: 'search' }),
+ beforeUpload1: file => {
+ if (file.size > 10 * 1024 * 1024) {
+ this.$message.error('图片最大不得大于10M');
+ return false;
+ }
+ },
hospitals: [],
value: 1,
radioStyle: {
@@ -1889,7 +1901,7 @@ export default {
const objList = list[indexA].subReportCodes[indexB];
const params = {
param: {
- hospitalId: this.hospitalId,
+ patientId: this.patientId,
code: title,
url: info.file.response.data[0].visitUrl,
},
diff --git a/src/views/PatientInfo/PatientInfo.vue b/src/views/PatientInfo/PatientInfo.vue
index 707f35a..dafc132 100644
--- a/src/views/PatientInfo/PatientInfo.vue
+++ b/src/views/PatientInfo/PatientInfo.vue
@@ -42,6 +42,7 @@
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, a.id)"
+ :before-upload="beforeUpload1"
list-type="picture"
name="files"
v-if="code || showrzlb"
@@ -167,6 +168,7 @@
:headers="headers"
@change="fileChange($event, h.id)"
list-type="picture"
+ :before-upload="beforeUpload1"
name="files"
v-if="code || showrzlb"
>
@@ -428,6 +430,7 @@
:default-file-list="fileList"
:headers="headers"
@change="fileChange($event, h.id)"
+ :before-upload="beforeUpload1"
list-type="picture"
name="files"
v-if="code || showrzlb"
@@ -644,6 +647,7 @@
-->
- 当前选择患者的住院号为:
+ 当前选择病例的住院号为:
{{ hospitalization }}
,研究编号为:
{{ recordCode }}
- 重新选择患者
+ 重新选择病例
- 是否提交患者编号为:
- {{ hospitalization }} 的患者的信息
+ 是否提交病例编号为:
+ {{ hospitalization }}
+ ,研究编号为:
+ {{ recordCode }}
+ 的病例的信息
@@ -1395,6 +1405,33 @@ export default {
formItemLayout1,
tailItemLayout,
form: this.$form.createForm(this, { name: 'page-add' }),
+ beforeUpload: file => {
+ let reader = new FileReader();
+ reader.readAsDataURL(file);
+ reader.onload = () => {
+ const image = new Image();
+ image.src = reader.result;
+ image.onload = () => {
+ let w = image.width;
+ let h = image.height;
+ // if (w < 15 || h < 15) {
+ // this.$message.error('图片最短边不得小于15px');
+ // return false;
+ // }
+ // if (w > 4096 || h > 4096) {
+ // this.$message.error('图片最长边不得大于4096px');
+ // return false;
+ // }
+ // console.log('宽高:', w, h);
+ };
+ };
+ },
+ beforeUpload1: file => {
+ if (file.size > 10 * 1024 * 1024) {
+ this.$message.error('图片最大不得大于10M');
+ return false;
+ }
+ },
value: 1,
checked: true,
radioStyle: {
@@ -1468,7 +1505,7 @@ export default {
methods: {
...mapMutations('home', ['setCallback']),
/**
- * 重新选择患者
+ * 重新选择病例
*/
choosePatient() {
this.$router.push('/selectPatient');
@@ -1867,7 +1904,7 @@ export default {
param: {
patientId: this.patientId,
code: title,
- url: info.file.response.data[0].visitUrl,
+ fileId: info.file.response.data[0].id,
},
};
const res = await basic(params);
diff --git a/src/views/ProjectAssistant/Examine.vue b/src/views/ProjectAssistant/Examine.vue
index df35f64..42a5622 100644
--- a/src/views/ProjectAssistant/Examine.vue
+++ b/src/views/ProjectAssistant/Examine.vue
@@ -1,32 +1,38 @@
-
-
-
- {{ item.name }}
-
-
-
-
-
-
- {{ current.date() }}
-
-
-
-
-
-
- {{ item }}
-
-
-
-
- {{ item.name }}
-
-
- 搜索
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ {{ current.date() }}
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
搜索
+
-
-
- 是否确定通过该患者记录
-
- 审核通过
-
+
+
+
+ 是否确定通过该病例记录
+
+ 审核通过
+
-
- 查看详情
-
+
+ 查看详情
+
+
@@ -83,13 +91,6 @@
import { mapState, mapActions, mapMutations } from 'vuex';
import { selPatientMes, upPatientMes } from 'config/api';
const columns = [
- {
- title: '序号',
- align: 'center',
- dataIndex: 'id',
- key: 'id',
- scopedSlots: { customRender: 'id' },
- },
{
title: '研究编号',
align: 'center',
@@ -126,7 +127,7 @@ const columns = [
align: 'center',
dataIndex: 'edit',
key: 'edit',
- width: 250,
+ width: 80,
scopedSlots: { customRender: 'edit' },
},
];
@@ -201,7 +202,7 @@ export default {
throw new Error(error);
}
},
- // 查看患者的详情
+ // 查看病例的详情
details(Id, hospitalization, code) {
this.setPatientId(Id);
this.setHospitalization(hospitalization);
diff --git a/src/views/ProjectAssistant/General.vue b/src/views/ProjectAssistant/General.vue
index c44d3a7..351a818 100644
--- a/src/views/ProjectAssistant/General.vue
+++ b/src/views/ProjectAssistant/General.vue
@@ -1,37 +1,41 @@
-
-
-
- {{ item.name }}
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
- {{ current.date() }}
-
-
-
-
-
-
- {{ item }}
-
-
-
-
- {{ item.name }}
-
-
- 搜索
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ current.date() }}
+
+
+
+
+
+
+ {{ item }}
+
+
+
搜索
+
-
-
- 是否确定通过该患者记录
-
- 审核通过
-
+
+
+
+ 是否确定通过该病例记录
+
+ 审核通过
+
-
- 查看详情
-
+
+ 查看详情
+
+
@@ -88,13 +94,6 @@
import { mapState, mapActions, mapMutations } from 'vuex';
import { selPatientMes, upPatientMes, getHList } from 'config/api';
const columns = [
- {
- title: '序号',
- align: 'center',
- dataIndex: 'id',
- key: 'id',
- scopedSlots: { customRender: 'id' },
- },
{
title: '研究编号',
align: 'center',
@@ -131,7 +130,7 @@ const columns = [
align: 'center',
dataIndex: 'edit',
key: 'edit',
- width: 250,
+ width: 80,
scopedSlots: { customRender: 'edit' },
},
];
@@ -234,7 +233,7 @@ export default {
throw new Error(error);
}
},
- // 查看患者的详情
+ // 查看病例的详情
details(Id, hospitalization, code) {
this.setPatientId(Id);
this.setHospitalization(hospitalization);
diff --git a/src/views/SelectPatient/SelectPatient.vue b/src/views/SelectPatient/SelectPatient.vue
index 7340f97..9a33378 100644
--- a/src/views/SelectPatient/SelectPatient.vue
+++ b/src/views/SelectPatient/SelectPatient.vue
@@ -32,7 +32,7 @@
-->
- 重新选择患者
+ 重新选择病例
@@ -127,7 +127,7 @@ export default {
},
/**
- * 重新选择患者
+ * 重新选择病例
*/
choosePatient() {
this.setPatientId('');