<!-- -->
|
<template>
|
<div class="app-container">
|
<el-form
|
:model="queryParams"
|
ref="queryForm"
|
:inline="true"
|
v-show="showSearch"
|
label-width="70px"
|
>
|
<el-row :gutter="8">
|
<el-col :span="6">
|
<el-form-item label="姓名" prop="name">
|
<el-input
|
v-model="queryParams.name"
|
placeholder="请输入姓名"
|
clearable
|
size="small"
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item
|
align="left"
|
label="医疗机构"
|
prop="treatmenthospitalno"
|
>
|
<org-selecter
|
ref="orgSelecter"
|
:org-type="'3'"
|
v-model="queryParams.treatmenthospitalno"
|
/>
|
</el-form-item>
|
</el-col>
|
|
<el-col :span="6">
|
<el-form-item label="捐献地市">
|
<el-select v-model="queryParams.city" placeholder="请选择地市">
|
<el-option
|
v-for="item in provinceData"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value"
|
>
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
|
<el-col :span="6">
|
<el-form-item label="捐献进度" prop="recordstate">
|
<el-select
|
v-model="queryParams.workflow"
|
placeholder="请选择捐献进度"
|
clearable
|
size="small"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_donornode"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
/>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row :gutter="8">
|
<el-col :span="6">
|
<el-form-item label="报告人">
|
<el-select
|
v-model="queryParams.reporterno"
|
placeholder="请选择报告人"
|
>
|
<el-option
|
v-for="item in reportlist"
|
:key="item.index"
|
:label="item.reportername"
|
:value="item.reporterno"
|
>
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
|
<el-col :span="12">
|
<el-form-item label="评估时间">
|
<el-date-picker
|
style="width: 100%"
|
v-model="selecttime"
|
type="monthrange"
|
range-separator="至"
|
start-placeholder="开始月份"
|
end-placeholder="结束月份"
|
value-format="yyyy-MM-dd"
|
@change="getTimeList"
|
>
|
</el-date-picker>
|
</el-form-item>
|
</el-col>
|
|
<el-col :span="6">
|
<el-form-item>
|
<el-button
|
type="primary"
|
icon="el-icon-search"
|
size="mini"
|
@click="handleQuery"
|
>搜索</el-button
|
>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
>重置</el-button
|
>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
</el-form>
|
|
<!--<el-table v-loading="loading" border :data="donatebaseinfoList"> -->
|
<el-table v-loading="loading" border :data="VMedicalevaluation">
|
<el-table-column
|
label="案例时间"
|
align="center"
|
prop="donatetime"
|
width="120"
|
>
|
<template slot-scope="scope">
|
<span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
label="评估时间"
|
align="center"
|
prop="reporttime"
|
width="120"
|
>
|
<template slot-scope="scope">
|
<span>{{ parseTime(scope.row.reporttime, "{y}-{m}-{d}") }}</span>
|
</template>
|
</el-table-column>
|
|
<el-table-column label="姓名" align="center" prop="name" width="120" />
|
|
<el-table-column label="性别" align="center" prop="sex" width="100">
|
<template slot-scope="scope">
|
<dict-tag
|
:options="dict.type.sys_user_sex"
|
:value="parseInt(scope.row.sex)"
|
/>
|
</template>
|
</el-table-column>
|
<el-table-column label="年龄" align="center" prop="age" width="100" />
|
|
<el-table-column
|
label="医疗机构"
|
align="center"
|
prop="treatmenthospitalname"
|
/>
|
|
<el-table-column
|
label="院级评估"
|
align="center"
|
prop="hospitalassessconclusion"
|
>
|
<template slot-scope="scope">
|
<dict-tag
|
:options="dict.type.sys_BaseAssessConclusion"
|
:value="scope.row.hospitalassessconclusion"
|
/>
|
</template>
|
</el-table-column>
|
<el-table-column
|
label="省级评估"
|
align="center"
|
prop="provincialassessconclusion"
|
>
|
<template slot-scope="scope">
|
<dict-tag
|
:options="dict.type.sys_BaseAssessConclusion"
|
:value="scope.row.provincialassessconclusion"
|
/>
|
</template>
|
</el-table-column>
|
<el-table-column
|
label="核心成员评估"
|
align="center"
|
prop="coreteamassessconclusion"
|
>
|
<template slot-scope="scope">
|
<dict-tag
|
:options="dict.type.sys_CoreAssessConclusion"
|
:value="scope.row.coreteamassessconclusion"
|
/>
|
</template>
|
</el-table-column>
|
|
<!-- <el-table-column label="身份证号" prop="idcardno" width="200" /> -->
|
<el-table-column
|
label="报告人"
|
align="center"
|
prop="reportername"
|
width="120"
|
/>
|
|
<el-table-column
|
label="捐献进度"
|
align="center"
|
prop="recordstate"
|
width="120"
|
>
|
<template slot-scope="scope">
|
<div v-if="!scope.row.terminationCase">
|
<dict-tag
|
:options="dict.type.sys_donornode"
|
:value="scope.row.workflow"
|
/>
|
</div>
|
<div v-else>任务终止</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="操作"
|
align="center"
|
class-name="small-padding fixed-width"
|
width="120"
|
fixed="right"
|
>
|
<template slot-scope="scope">
|
<!-- v-if="scope.row.recordstate==2"
|
-->
|
<el-button
|
size="mini"
|
type="text"
|
icon="el-icon-edit"
|
@click="handleAdd(scope.row)"
|
>医学评估</el-button
|
>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<pagination
|
v-show="total > 0"
|
:total="total"
|
:page.sync="queryParams.pageNum"
|
:limit.sync="queryParams.pageSize"
|
@pagination="getList"
|
/>
|
|
<!-- 添加或修改医学评估对话框 -->
|
<el-dialog
|
:close-on-click-modal="false"
|
:title="title"
|
style="font-size: 30px; font-weight: 800"
|
align="center"
|
:visible.sync="open"
|
width="1000px"
|
append-to-body
|
>
|
<el-form
|
ref="form"
|
:model="form"
|
:rules="rules"
|
label-width="120px"
|
v-loading="loading"
|
>
|
<div
|
style="
|
border-bottom: 1px solid #ddd;
|
padding-right: 60px;
|
margin-top: 20px;
|
margin-bottom: 20px;
|
"
|
>
|
<el-row>
|
<el-col :span="12">
|
<el-form-item label="捐献编号" prop="donorno">
|
<el-input
|
v-model="form.donorno"
|
placeholder="请输入捐献编号"
|
disabled
|
/>
|
</el-form-item> </el-col
|
><el-col :span="12">
|
<el-form-item
|
align="left"
|
label="所在医院"
|
prop="treatmenthospitalname"
|
>
|
<org-selecter
|
ref="hosSelect"
|
:org-type="'3'"
|
v-model="curCase.treatmenthospitalname"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
|
<el-row>
|
<el-col :span="12">
|
<el-form-item label="姓名" prop="name">
|
<el-input
|
v-model="curCase.name"
|
placeholder="请输入捐献者姓名"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="12">
|
<el-form-item label="所在科室" prop="treatmentdeptname">
|
<el-input
|
v-model="curCase.treatmentdeptname"
|
placeholder=""
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row
|
><el-col :span="12">
|
<el-form-item label="身份证号" align="left" prop="idcardno">
|
<el-input
|
v-model="curCase.idcardno"
|
placeholder="捐献者身份证号"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="12">
|
<el-form-item label="年龄" prop="idcardno">
|
<el-input v-model="curCase.age" placeholder="" disabled />
|
</el-form-item>
|
</el-col>
|
</el-row>
|
</div>
|
<!-- border-top:1px solid #bbb; -->
|
<div
|
style="
|
border-bottom: 1px solid #ddd;
|
padding-right: 60px;
|
margin-top: 20px;
|
margin-bottom: 20px;
|
"
|
>
|
<el-row
|
><el-col :span="24">
|
<el-form-item
|
label="病情概况"
|
prop="illnessoverview"
|
style="margin-top: 20px"
|
>
|
<el-input
|
v-model="form.illnessoverview"
|
type="textarea"
|
placeholder="请输入内容"
|
/> </el-form-item></el-col></el-row
|
><el-row
|
><el-col :span="24">
|
<el-form-item label="疾病诊断" prop="diagnosisname">
|
<el-input
|
v-model="form.diagnosisname"
|
type="textarea"
|
placeholder="请输入疾病诊断"
|
/> </el-form-item></el-col
|
></el-row>
|
</div>
|
<div
|
style="
|
border-bottom: 1px solid #ddd;
|
padding-right: 60px;
|
margin-top: 20px;
|
margin-bottom: 20px;
|
"
|
>
|
<el-row>
|
<el-col :span="7">
|
<el-form-item
|
align="left"
|
label="院级评估医生"
|
prop="hospitalassessdoctor"
|
>
|
<el-input
|
v-model="form.hospitalassessdoctor"
|
placeholder="请输入院级评估医生"
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="9">
|
<el-form-item
|
align="left"
|
label="评估时间"
|
prop="hospitalassesstime"
|
>
|
<el-date-picker
|
clearable
|
size="small"
|
v-model="form.hospitalassesstime"
|
type="date"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
placeholder="选择院级评估时间"
|
>
|
</el-date-picker> </el-form-item
|
></el-col>
|
<el-col :span="8">
|
<el-form-item
|
align="left"
|
label="评估结论"
|
prop="hospitalassessconclusion"
|
>
|
<el-select
|
v-model="form.hospitalassessconclusion"
|
placeholder="请选择院级评估结论"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_BaseAssessConclusion"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item> </el-col
|
></el-row>
|
|
<el-row
|
><el-col :span="24">
|
<el-form-item
|
label="院级评估内容"
|
prop="provincialassesscontent"
|
align="left"
|
>
|
<el-input
|
v-model="form.provincialassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
/>
|
</el-form-item> </el-col
|
></el-row>
|
<el-row
|
><el-col :span="7">
|
<el-form-item label="省级评估医生" prop="provincialassessdoctor">
|
<el-input
|
v-model="form.provincialassessdoctor"
|
placeholder="请输入省级评估医生"
|
/> </el-form-item></el-col
|
><el-col :span="9">
|
<el-form-item label="评估时间" prop="provincialassesstime">
|
<el-date-picker
|
clearable
|
size="small"
|
v-model="form.provincialassesstime"
|
type="date"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
placeholder="选择省级评估时间"
|
>
|
</el-date-picker> </el-form-item></el-col
|
><el-col :span="8">
|
<el-form-item
|
label="评估结论"
|
prop="provincialassessconclusion"
|
align="left"
|
>
|
<el-select
|
v-model="form.provincialassessconclusion"
|
placeholder="请选择省级评估结论"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_BaseAssessConclusion"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item> </el-col
|
></el-row>
|
<el-row>
|
<el-col :span="24">
|
<el-form-item
|
align="left"
|
label="省级评估内容"
|
prop="hospitalassesscontent"
|
>
|
<el-input
|
v-model="form.hospitalassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="7">
|
<el-form-item label="核心评估医生" prop="coreteamassessdoctor">
|
<el-input
|
v-model="form.coreteamassessdoctor"
|
placeholder="请输入核心成员评估医生"
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="9">
|
<el-form-item label="评估时间" prop="coreteamassesstime">
|
<el-date-picker
|
clearable
|
size="small"
|
v-model="form.coreteamassesstime"
|
type="date"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
placeholder="评估时间"
|
>
|
</el-date-picker>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item
|
label="评估结论"
|
prop="coreteamassessconclusion"
|
align="left"
|
>
|
<el-select
|
v-model="form.coreteamassessconclusion"
|
placeholder="请选择核心成员结论"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_CoreAssessConclusion"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row
|
><el-col :span="24">
|
<el-form-item
|
label="核心成员评估"
|
prop="coreteamassesscontent"
|
align="left"
|
>
|
<el-input
|
v-model="form.coreteamassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row style="width: 0px; display: none"
|
><el-col :span="24">
|
<el-form-item label="辅助" prop="" align="left">
|
<el-input type="textarea" />
|
</el-form-item> </el-col
|
></el-row>
|
</div>
|
<div style="margin-right: 60px">
|
<el-row style="margin-top: -120px">
|
<el-form-item label="附件" align="left" prop="annexfile">
|
<annex-upload
|
ref="evaluationannex"
|
:infoid="curCase.id"
|
:donorno="curCase.donorno"
|
:flowname="flowname"
|
:annexno="annexno"
|
/>
|
</el-form-item>
|
</el-row>
|
</div>
|
</el-form>
|
<div slot="footer" class="dialog-footer">
|
<el-button type="primary" @click="submitForm">保 存</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
</div>
|
</el-dialog>
|
|
<!-- 添加或修改家属确认对话框 -->
|
</div>
|
</template>
|
|
<script>
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
//例如:import 《组件名称》 from '《组件路径》';
|
|
import {
|
listDonatebaseinfo,
|
getDonatebaseinfo,
|
addDonatebaseinfo,
|
updateDonatebaseinfo
|
// exportProvincemessage,
|
} from "@/api/project/donatebaseinfo";
|
|
import { listVMedicalevaluation } from "@/api/project/VMedicalevaluation";
|
|
import {
|
listMedicalevaluation,
|
listnewMedicalevaluation, //通过VO获取
|
getMedicalevaluation,
|
delMedicalevaluation,
|
addMedicalevaluation,
|
updateMedicalevaluation,
|
exportMedicalevaluation
|
} from "@/api/project/medicalevaluation";
|
|
import { listRelativesconfirmation } from "@/api/project/relativesconfirmation";
|
import { listUser } from "@/api/project/organization";
|
|
import Li_area_select from "@/components/Address";
|
import OrgSelecter from "@/views/project/components/orgselect";
|
import AnnexUpload from "@/views/project/components/annexupload";
|
|
export default {
|
//import引入的组件需要注入到对象中才能使用
|
components: {
|
Li_area_select,
|
OrgSelecter,
|
AnnexUpload
|
},
|
name: "Medicalevaluation",
|
dicts: [
|
"sys_OrganizationType",
|
"sys_HospitalNature",
|
"sys_RegionalLevel",
|
"country",
|
"sys_user_sex",
|
"sys_IDType",
|
"sys_AgeUnit",
|
"sys_BloodType",
|
"sys_0_1",
|
"sys_patientstate",
|
"sys_DonationCategory",
|
"sys_Kinship",
|
"sys_Infectious",
|
"sys_InfoSources",
|
"sys_OtherCases",
|
"sys_DonationStatus",
|
"sys_DiseaseType",
|
"sys_SelfWill",
|
"sys_FamilyRelation",
|
"sys_Organ",
|
"sys_organstate",
|
"sys_CoreAssessConclusion",
|
"sys_BaseAssessConclusion",
|
"sys_OrganDecision",
|
"sys_donornode"
|
],
|
data() {
|
//这里存放数据
|
return {
|
starttime: "",
|
endtime: "",
|
countyname: "",
|
cuuntry: "",
|
|
selecttime: "",
|
reportervalue: "",
|
reportlist: [],
|
//省市区
|
//默认值设置,可为空
|
searchAddress: {
|
sheng: "",
|
shi: "",
|
qu: "",
|
organizationname: null
|
},
|
provinceData: [
|
{ label: "全部", value: "" },
|
{ label: "杭州市", value: "1" },
|
{ label: "宁波市", value: "2" },
|
{ label: "温州市", value: "3" },
|
{ label: "嘉兴市", value: "4" },
|
{ label: "湖州市", value: "5" },
|
{ label: "绍兴市", value: "6" },
|
{ label: "金华市", value: "7" },
|
{ label: "衢州市", value: "8" },
|
{ label: "舟山市", value: "9" },
|
{ label: "台州市", value: "A" },
|
{ label: "丽水市", value: "B" }
|
],
|
residenceAddresss: {
|
sheng: "浙江省",
|
shi: "",
|
qu: ""
|
},
|
registerAddresss: {
|
sheng: "浙江省",
|
shi: "",
|
qu: ""
|
},
|
defultAddresss: {
|
sheng: "浙江省",
|
shi: "",
|
qu: ""
|
},
|
// 遮罩层
|
loading: true,
|
// 导出遮罩层
|
exportLoading: false,
|
// 选中数组
|
ids: [],
|
// 非单个禁用
|
single: true,
|
// 非多个禁用
|
multiple: true,
|
// 显示搜索条件
|
showSearch: true,
|
// 总条数
|
total: 0,
|
// 捐献基础表格数据
|
donatebaseinfoList: [],
|
// 捐献基础表格数据
|
VMedicalevaluation: [],
|
// 弹出层标题
|
title: "",
|
// 是否显示弹出层
|
open: false,
|
// 获取组织名称时间范围
|
daterangeReporttime: [],
|
// 查询参数
|
queryParams: {
|
treatmentHospitalno: null,
|
treatmenthospitalname: null,
|
pageNum: 1,
|
pageSize: 10,
|
name: null,
|
idcardno: null,
|
residenceprovince: null,
|
residencecity: null,
|
residencetown: null,
|
// 2
|
recordstate: null,
|
donorno: null,
|
reportername: null,
|
reporttime: null,
|
city: null
|
},
|
// 表单参数
|
form: {},
|
// 表单校验
|
rules: {},
|
//当前选中捐献案例
|
curCase: {},
|
//流程名称
|
flowname: "捐献医学评估",
|
//流程名称-伦理审查
|
annexno: "",
|
confirmationform: {},
|
//是否显示确认登记表
|
isShowConfirmationDialog: false,
|
//确认登记表title
|
confirmationTitle: "",
|
//用户表
|
users: []
|
};
|
},
|
//监听属性 类似于data概念
|
computed: {},
|
activated() {
|
this.selecttime = "";
|
this.reportervalue = "";
|
this.reportlist = [];
|
this.queryParams.donorno = "";
|
this.queryParams.recordstate = "";
|
this.queryParams.name = "";
|
this.queryParams.treatmenthospitalno = "";
|
|
if (this.$route.params.starttime != null && this.$route.params.endtime) {
|
this.selecttime = [
|
this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
|
this.$moment(this.$route.params.endtime)
|
.format("YYYY-MM-DD")
|
];
|
}
|
if (this.$route.params.reporterno != "") {
|
this.reporterno = this.$route.params.reporterno;
|
}
|
if (this.$route.params.tempRecordState != "") {
|
this.queryParams.recordstate = this.$route.params.tempRecordState;
|
}
|
if (this.$route.params.reporterno != "") {
|
this.reportervalue = this.$route.params.reporterno;
|
}
|
if (!this.$route.params.shen != "") {
|
this.searchAddress.sheng = this.$route.params.shen;
|
if (!this.$route.params.shi != "") {
|
this.searchAddress.shi = this.$route.params.shi;
|
}
|
if (!this.$route.params.qu) {
|
this.searchAddress.qu = this.$route.params.qu;
|
}
|
}
|
if (this.$route.params.city != "") {
|
this.queryParams.city = this.$route.params.city;
|
}
|
this.getTimeList();
|
this.getList();
|
},
|
mounted() {
|
this.LoadReportList();
|
},
|
|
//监控data中的数据变化
|
watch: {},
|
//方法集合
|
methods: {
|
//获取用户列表
|
getuserlist() {
|
listUser().then(res => {
|
this.users = res.data;
|
});
|
},
|
getTimeList(e) {
|
if (this.selecttime != 0) {
|
this.endtime = this.selecttime[1];
|
this.starttime = this.selecttime[0];
|
// if (this.endtime == this.starttime) {
|
let num = Number(this.endtime.slice(5, 7));
|
if (num < 9) {
|
let mon = Number(this.endtime.slice(6, 7));
|
this.endtime =
|
this.endtime.slice(0, 5) +
|
"0" +
|
(mon + 1) +
|
"-" +
|
"01" +
|
" " +
|
"00" +
|
":" +
|
"00" +
|
":" +
|
"00";
|
}
|
// this.endtime=this.endtime.slice(0,5)年
|
else if (num >= 10) {
|
this.endtime =
|
this.endtime.slice(0, 5) +
|
(num + 1) +
|
"-" +
|
"01" +
|
" " +
|
"00" +
|
":" +
|
"00" +
|
":" +
|
"00";
|
} else {
|
this.endtime =
|
this.endtime.slice(0, 5) +
|
"10" +
|
"-" +
|
"01" +
|
" " +
|
"00" +
|
":" +
|
"00" +
|
":" +
|
"00";
|
}
|
this.starttime = this.starttime + " " + "00" + ":" + "00" + ":" + "00";
|
// }
|
} else {
|
// this.starttime = "1998-01-01 00:00:00";
|
// this.endtime = "2998-01-01 00:00:00";
|
}
|
},
|
LoadReportList() {
|
listDonatebaseinfo().then(res => {
|
let list = res.rows;
|
let reportlist = [];
|
list.forEach(element => {
|
reportlist.push({
|
reporterno: element.reporterno,
|
reportername: element.reportername
|
});
|
});
|
|
if (reportlist != 0) {
|
reportlist = this.resetArr(reportlist);
|
this.reportlist = reportlist;
|
}
|
});
|
},
|
resetArr(Arr) {
|
var hash = {};
|
Arr = Arr.reduce(function(arr, current) {
|
hash[current.reporterno]
|
? ""
|
: (hash[current.reporterno] = true && arr.push(current));
|
return arr;
|
}, []);
|
return Arr;
|
},
|
|
/** 查询捐献基础列表 */
|
getList(e) {
|
this.loading = true;
|
this.queryParams.params = {};
|
sessionStorage.removeItem("medicalevaluation");
|
sessionStorage.setItem(
|
"medicalevaluation",
|
JSON.stringify(this.queryParams)
|
);
|
|
// 跳转时的默认进度
|
if (e != null && e != undefined && !isNaN(e)) {
|
this.queryParams.recordstate = e;
|
}
|
|
if (this.starttime != "") {
|
this.queryParams.starttime = this.starttime;
|
}
|
if (this.endtime != "") {
|
this.queryParams.endtime = this.endtime;
|
}
|
this.queryParams.reportervalue = this.reportervalue;
|
this.$nextTick(() => {
|
listnewMedicalevaluation(this.queryParams).then(response => {
|
this.VMedicalevaluation = response.rows;
|
console.log("1111111");
|
this.total = response.total;
|
this.loading = false;
|
});
|
});
|
},
|
// 取消按钮
|
cancel() {
|
this.open = false;
|
this.isShowConfirmationDialog = false;
|
this.reset();
|
this.resetConfirmForm();
|
},
|
// 表单重置
|
reset() {
|
this.form = {
|
id: null,
|
infoid: null,
|
donorno: null,
|
illnessoverview: null,
|
diagnosisname: null,
|
hospitalassesscontent: null,
|
hospitalassessdoctor: null,
|
hospitalassesstime: null,
|
hospitalassessconclusion: null,
|
provincialassesscontent: null,
|
provincialassessdoctor: null,
|
provincialassesstime: null,
|
provincialassessconclusion: null,
|
coreteamassesscontent: null,
|
coreteamassessdoctor: null,
|
coreteamassesstime: null,
|
treatmenthospitalname: null,
|
coreteamassessconclusion: null,
|
assessannex: null
|
};
|
this.resetForm("form");
|
},
|
/** 搜索按钮操作 */
|
handleQuery() {
|
this.queryParams.pageNum = 1;
|
this.getList();
|
},
|
/** 重置按钮操作 */
|
resetQuery() {
|
this.daterangeReporttime = [];
|
|
this.reportervalue = "";
|
|
this.form.treatmenthospitalno = "";
|
|
this.queryParams = {
|
doname: null,
|
pageNum: 1,
|
pageSize: 10,
|
name: null,
|
idcardno: null,
|
residenceprovince: null,
|
residencecity: null,
|
residencetown: null,
|
// "2"
|
recordstate: null,
|
treatmenthospitalname: null,
|
donorno: null,
|
acquisitiontissueno: null,
|
reportername: null,
|
reporttime: null,
|
city: null
|
};
|
this.selecttime = [];
|
this.getTimeList();
|
this.searchAddress = {
|
sheng: "",
|
shi: "",
|
qu: "",
|
organizationname: null
|
};
|
|
this.resetForm("queryForm");
|
this.handleQuery();
|
},
|
inputChange() {
|
const idCard = this.props.form.getFieldValue("idCard");
|
let birthday = "";
|
let sex = 0;
|
if (idCard.length === 15) {
|
birthday = `19${idCard.substring(6, 8)}-${idCard.substring(
|
9,
|
10
|
)}-${idCard.substring(11, 12)}`;
|
sex = idCard[14] % 2 === 0 ? "0" : "1";
|
} else {
|
birthday = `${idCard.substring(6, 10)}-${idCard.substring(
|
11,
|
12
|
)}-${idCard.substring(13, 14)}`;
|
sex = idCard[16] % 2 === 0 ? "0" : "1";
|
}
|
this.setState({
|
birthday,
|
sex
|
});
|
},
|
|
/** 新增按钮操作 */
|
handleAdd(data) {
|
console.log("datadata", data);
|
|
this.$router.push({
|
path: "/organ/donationdetails/",
|
query: {
|
id: data.id,
|
organType: "edit"
|
}
|
});
|
// if(data.recordstate != 2 && data.recordstate != 4 && data.recordstate != 5 && data.recordstate != 13){
|
// this.$modal.msgError("当前捐献案例不能进行医学捐献评估");
|
// return
|
// }
|
|
// this.flowname = "捐献医学评估";
|
// this.annexno = "";
|
// this.reset();
|
// //this.curCase = data;
|
// this.curCase = {
|
// id: data.id,
|
// recordstate: null,
|
// donorno: data.donorno
|
// };
|
// //获取医学捐献评估记录
|
// this.loading = true;
|
// if (data.meid) {
|
// let searchParam = {
|
// id: data.meid
|
// };
|
// //listDonatebaseinfo(searchParam).then((response) => {
|
// listMedicalevaluation(searchParam).then(response => {
|
// if (response.code == 200 && response.rows.length == 1) {
|
// this.title = "修改捐献医学评估";
|
// this.form = response.rows[0];
|
// this.form.infoid = data.id;
|
// this.open = true;
|
// this.$nextTick(function() {
|
// this.$refs.evaluationannex.getAnnexList();
|
// });
|
// } else {
|
// this.$modal.msgError(
|
// "获取医学评估记录失败:" + JSON.stringify(response)
|
// );
|
// }
|
// });
|
// } else {
|
// this.title = "新增捐献医学评估";
|
// this.form.infoid = data.id;
|
// this.form.donorno = data.donorno;
|
|
// this.open = true;
|
// this.$nextTick(function() {
|
// this.$refs.evaluationannex.getAnnexList();
|
// });
|
// }
|
// this.loading = false;
|
},
|
/** 提交按钮 */
|
submitForm() {
|
this.loading = true;
|
this.$refs["form"].validate(valid => {
|
if (valid) {
|
console.log(this.form.id);
|
if (this.form.id != null) {
|
updateMedicalevaluation(this.form).then(response => {
|
this.loading = false;
|
this.$modal.msgSuccess("修改成功");
|
//查询是否存在确认登记记录
|
let searchConfirmParam = {
|
infoid: this.curCase.id.toString()
|
};
|
this.loading = true;
|
listRelativesconfirmation(searchConfirmParam).then(response => {
|
this.loading = false;
|
console.log(789);
|
if (response.code == 200) {
|
if (response.rows.length > 0) {
|
this.curCase.recordstate = 7;
|
} else {
|
this.curCase.recordstate = 4;
|
}
|
updateDonatebaseinfo(this.curCase).then(response1 => {
|
// this.getList();
|
console.log(456);
|
if (response1.code == 200) {
|
if (this.curCase.recordstate == 7) {
|
this.$modal.msgSuccess("捐献评估完成并上报伦理审查");
|
} else {
|
this.$modal.msgSuccess(
|
"捐献评估完成,请前往填写家属确认登记单"
|
);
|
}
|
} else {
|
this.$modal.msgError("修改捐献状态失败" + response1.msg);
|
}
|
});
|
}
|
});
|
console.log(123);
|
this.open = false;
|
this.getList();
|
});
|
} else {
|
addMedicalevaluation(this.form).then(response => {
|
this.loading = false;
|
this.$modal.msgSuccess("新增成功");
|
//查询是否存在确认登记记录
|
let searchConfirmParam = {
|
infoid: this.curCase.id.toString()
|
};
|
this.loading = true;
|
listRelativesconfirmation(searchConfirmParam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length > 0) {
|
this.curCase.recordstate = 7;
|
} else {
|
this.curCase.recordstate = 4;
|
}
|
updateDonatebaseinfo(this.curCase).then(response1 => {
|
this.getList();
|
if (response1.code == 200) {
|
if (this.curCase.recordstate == 7) {
|
this.$modal.msgSuccess("捐献评估完成并上报伦理审查");
|
} else {
|
this.$modal.msgSuccess(
|
"捐献评估完成,请前往填写家属确认登记单"
|
);
|
}
|
} else {
|
this.$modal.msgError("修改捐献状态失败" + response1.msg);
|
}
|
});
|
}
|
});
|
this.open = false;
|
this.getList();
|
});
|
}
|
}
|
});
|
},
|
|
//重置家属确认表单
|
resetConfirmForm() {
|
this.confirmationform = {
|
id: null,
|
infoid: null,
|
donorno: null,
|
name: null,
|
idcardtype: null,
|
idcardno: null,
|
phone: null,
|
residenceaddress: null,
|
residenceprovince: null,
|
residenceprovincename: null,
|
residencecity: null,
|
residencecityname: null,
|
residencetown: null,
|
residencetownname: null,
|
residencecommunity: null,
|
residencecommunityname: null,
|
residencecountycode: null,
|
residencecountyname: null,
|
kinship: [],
|
kinshipChildrennum: null,
|
signfamilyrelations: null,
|
kinshipconfirmationsign: null,
|
organdecision: [],
|
organdecisionOther: null,
|
relativeconfirmationsign: null,
|
familyrelations: null,
|
acquisitiontissueno: null,
|
acquisitiontissuename: null,
|
responsibleuserid: null,
|
responsibleusername: null,
|
coordinateduserido: null,
|
coordinatedusernameo: null,
|
coordinateduseridt: null,
|
coordinatedusernamet: null,
|
signdate: null,
|
delFlag: null,
|
createBy: null,
|
createTime: null,
|
updateBy: null,
|
updateTime: null
|
};
|
this.resetForm("confirmationform");
|
},
|
|
//判断是否存在家属确认单显示家属确认表单
|
handleConfirmationShow(row) {
|
if (row.recordstate != 3 && row.recordstate != 6) {
|
this.$modal.msgError(
|
"当前捐献案例不能进行家属确认登记,请先填写捐献医学评估或检查案例当前状态"
|
);
|
return;
|
}
|
this.flowname = "家属确认登记";
|
this.annexno = "";
|
//查询是否存在确认登记记录
|
let searchConfirmParam = {
|
infoid: row.id.toString()
|
};
|
this.curCase = row;
|
this.resetConfirmForm();
|
|
this.loading = true;
|
listRelativesconfirmation(searchConfirmParam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length == 0) {
|
this.confirmationform.infoid = row.id;
|
this.confirmationform.donorno = row.donorno;
|
this.confirmationform.doname = row.name;
|
this.confirmationform.dosex = row.sex;
|
this.confirmationform.dobirthday = row.birthday;
|
this.confirmationform.donationality = row.nationality;
|
this.confirmationform.doeducation = row.education;
|
this.confirmationform.dooccupation = row.occupation;
|
this.confirmationform.donativeplace = row.nativeplace;
|
this.confirmationform.donation = row.nation;
|
this.confirmationform.doidcardtype = row.idcardtype;
|
this.confirmationform.doidcardno = row.idcardno;
|
this.confirmationform.donativeplace =
|
row.residenceprovincename +
|
row.residencecityname +
|
row.residencetownname;
|
this.confirmationTitle = "新增人体器官捐献亲属确认登记表";
|
this.isShowConfirmationDialog = true;
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else if (response.rows.length == 1) {
|
this.confirmationform = response.rows[0];
|
this.confirmationform.donorno = row.donorno;
|
this.confirmationform.doname = row.name;
|
this.confirmationform.dosex = row.sex;
|
this.confirmationform.dobirthday = row.birthday;
|
this.confirmationform.donationality = row.nationality;
|
this.confirmationform.doeducation = row.education;
|
this.confirmationform.dooccupation = row.occupation;
|
this.confirmationform.donativeplace = row.nativeplace;
|
this.confirmationform.donation = row.nation;
|
this.confirmationform.doidcardtype = row.idcardtype;
|
this.confirmationform.doidcardno = row.idcardno;
|
this.confirmationform.donativeplace =
|
row.residenceprovincename +
|
row.residencecityname +
|
row.residencetownname;
|
this.defultAddresss.sheng = this.confirmationform.residenceprovincename;
|
this.defultAddresss.shi = this.confirmationform.residencecityname;
|
this.defultAddresss.qu = this.confirmationform.residencetownname;
|
//this.form.kinship = this.form.kinship.split(",");
|
this.confirmationform.organdecision = this.confirmationform.organdecision.split(
|
","
|
);
|
this.isShowConfirmationDialog = true;
|
this.title = "修改人体器官捐献亲属确认登记表";
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else {
|
this.$modal.msgError(
|
"查询是否存在确认登记记录失败" +
|
JSON.stringify(JSON.stringify(response))
|
);
|
}
|
}
|
});
|
// this.reset();
|
},
|
|
//保存家属确认表
|
saveConfirmationForm() {
|
this.$refs["confirmationform"].validate(valid => {
|
if (valid) {
|
// this.form.kinship = this.form.kinship.join(",");
|
|
this.confirmationform.organdecision = this.confirmationform.organdecision.join(
|
","
|
);
|
this.confirmationform.kinship = this.confirmationform.kinship.join(
|
","
|
);
|
this.confirmationform.residenceprovince = this.$refs.residenceaddresss.getSheng();
|
this.confirmationform.residenceprovincename = this.defultAddresss.sheng;
|
this.confirmationform.residencecity = this.$refs.residenceaddresss.getShi();
|
this.confirmationform.residencecityname = this.defultAddresss.shi;
|
this.confirmationform.residencetown = this.$refs.residenceaddresss.getQu();
|
this.confirmationform.residencetownname = this.defultAddresss.qu;
|
if (this.confirmationform.id != null) {
|
updateRelativesconfirmation(this.confirmationform).then(
|
response => {
|
this.$modal.msgSuccess("修改成功");
|
this.isShowConfirmationDialog = false;
|
this.getList();
|
}
|
);
|
} else {
|
addRelativesconfirmation(this.confirmationform).then(response => {
|
this.$modal.msgSuccess("新增成功");
|
this.isShowConfirmationDialog = false;
|
//上报伦理审查
|
this.curCase.recordstate = 7;
|
updateDonatebaseinfo(this.curCase).then(response1 => {
|
this.getList();
|
if (response1.code == 200) {
|
this.$modal.msgSuccess("上报伦理审查成功");
|
} else {
|
this.$modal.msgError("上报伦理审查失败" + response1.msg);
|
}
|
this.loading = false;
|
});
|
this.getList();
|
});
|
}
|
}
|
});
|
}
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
created() {
|
//获取用户列表
|
this.getuserlist();
|
//获取列表
|
if (sessionStorage.getItem("medicalevaluation")) {
|
this.queryParams = JSON.parse(sessionStorage.getItem("medicalevaluation"));
|
console.log(this.queryParams, "queryParams");
|
}
|
this.getList();
|
}
|
// //生命周期 - 挂载完成(可以访问DOM元素)
|
// mounted() {},
|
// beforeCreate() {}, //生命周期 - 创建之前
|
// beforeMount() {}, //生命周期 - 挂载之前
|
// beforeUpdate() {}, //生命周期 - 更新之前
|
// updated() {}, //生命周期 - 更新之后
|
// beforeDestroy() {}, //生命周期 - 销毁之前
|
// destroyed() {}, //生命周期 - 销毁完成
|
// activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
};
|
</script>
|