<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="listnewRelativesconfirm">
|
<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="100" />
|
|
<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="身份证号" prop="idcardno" width="200" /> -->
|
<el-table-column
|
label="报告人"
|
align="center"
|
prop="reportername"
|
width="100"
|
/>
|
|
<el-table-column label="捐献进度" align="center" prop="recordstate">
|
<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="200"
|
fixed="right"
|
>
|
<template slot-scope="scope">
|
<el-button
|
size="mini"
|
type="text"
|
icon="el-icon-edit"
|
@click="handleAdd(scope.row)"
|
>捐献确认</el-button
|
>
|
<el-button
|
size="mini"
|
type="text"
|
icon="el-icon-refrigerator"
|
@click="handledownload(scope.row)"
|
v-if="scope.row.workflow == '6'"
|
>下载</el-button
|
>
|
<!-- <el-button
|
size="mini"
|
type="text"
|
icon="el-icon-edit"
|
@click="handleEvaluationShow(scope.row)"
|
>医学评估</el-button
|
> -->
|
<!-- <el-button
|
v-if="scope.row.recordstate==2 || scope.row.recordstate==3"
|
size="mini"
|
type="text"
|
icon="el-icon-edit"
|
@click="submitRecord(scope.row)"
|
v-hasPermi="['project:donatebaseinfo:edit']"
|
>上报伦理审查</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
|
align="center"
|
:title="title"
|
:visible.sync="open"
|
width="1100px"
|
append-to-body
|
:close-on-click-modal="false"
|
>
|
<el-form ref="form" :model="form" :rules="rules" label-width="96px">
|
<div
|
style="
|
border-bottom: 1px solid #ddd;
|
padding-right: 60px;
|
margin-top: 20px;
|
"
|
>
|
<el-row>
|
<el-col :span="12">
|
<el-form-item label="捐献编号" prop="donorno">
|
<el-input
|
v-model="form.donorno"
|
disabled
|
placeholder="请输入捐献编号"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="姓名" prop="doname">
|
<el-input
|
v-model="form.doname"
|
disabled
|
placeholder="请输入姓名"
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="证件类型" prop="doidcardtype">
|
<el-select
|
v-model="form.doidcardtype"
|
disabled
|
placeholder="请选择证件类型"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_IDType"
|
:key="dict.value"
|
:label="dict.label"
|
:value="parseInt(dict.value)"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="12">
|
<el-form-item label="证件号码" prop="doidcardno">
|
<el-input
|
ref="updateBSvalue"
|
class="sfzcode"
|
v-model="form.doidcardno"
|
placeholder="请输入证件号码"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="性别" prop="dosex">
|
<el-select
|
v-model="form.dosex"
|
disabled
|
placeholder="请选择性别"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_user_sex"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="出生日期" prop="dobirthday">
|
<el-date-picker
|
style="width: 95%"
|
clearable
|
v-model="form.dobirthday"
|
type="date"
|
value-format="yyyy:MM:dd"
|
placeholder="选择出生日期"
|
disabled
|
>
|
</el-date-picker>
|
</el-form-item>
|
</el-col>
|
<el-col :span="12">
|
<el-form-item label="籍贯" prop="donativeplace">
|
<el-input
|
v-model="form.donativeplace"
|
disabled
|
placeholder="请输入籍贯"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="民族" prop="donation">
|
<el-select
|
v-model="form.donation"
|
disabled
|
placeholder="请选择民族"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_nation"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="国籍" prop="donationality">
|
<el-input
|
v-model="form.donationality"
|
placeholder="请输入国籍"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="职业" prop="dooccupation">
|
<el-select
|
v-model="form.dooccupation"
|
disabled
|
placeholder="请选择职业"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_occupation"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="学历" prop="doeducation">
|
<el-select
|
v-model="form.doeducation"
|
disabled
|
placeholder="请选择学历"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_education"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
</div>
|
<div
|
style="
|
border-bottom: 1px solid #ddd;
|
padding-right: 60px;
|
margin-top: 20px;
|
"
|
>
|
<el-row>
|
<el-col :span="12">
|
<el-form-item
|
label="亲属关系"
|
prop="kinship"
|
class="relation"
|
align="left"
|
>
|
<el-checkbox-group v-model="form.kinship">
|
<el-checkbox
|
v-for="dict in dict.type.sys_Kinship"
|
:key="dict.value"
|
:label="dict.value"
|
>
|
{{ dict.label }}
|
</el-checkbox>
|
</el-checkbox-group>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="子女数量" prop="kinshipChildrennum">
|
<el-input
|
v-model="form.kinshipChildrennum"
|
placeholder="请输入数量"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="亲属姓名" prop="name">
|
<el-input v-model="form.name" placeholder="请输入姓名" />
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item
|
align="left"
|
label="与捐赠者关系"
|
prop="familyrelations"
|
>
|
<el-select
|
v-model="form.familyrelations"
|
placeholder="请选择与捐赠者关系"
|
>
|
<el-option
|
v-for="dict in dict.type.sys_FamilyRelation"
|
:key="dict.value"
|
:label="dict.label"
|
:value="dict.value"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
|
<el-col :span="12">
|
<el-form-item label="身份证号" prop="idcardno">
|
<el-input
|
ref="updateBSvalue"
|
class="sfzcode"
|
v-model="form.idcardno"
|
placeholder="请输入证件号码"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="12">
|
<el-form-item label="亲属籍贯" prop="residenceaddresss">
|
<div>
|
<li_area_select
|
v-model="defultAddresss"
|
ref="residenceaddresss"
|
></li_area_select>
|
<!-- <div>{{defultAddress}}</div> -->
|
</div>
|
</el-form-item>
|
</el-col>
|
<el-col :span="12">
|
<el-form-item label="现住地址" prop="residenceaddress">
|
<el-input
|
v-model="form.residenceaddress"
|
placeholder="请输入内容"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row> </el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="联系电话" prop="phone">
|
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="18">
|
<el-form-item align="left" label="捐献决定">
|
<el-checkbox-group v-model="form.organdecision">
|
<el-checkbox
|
v-for="dict in dict.type.sys_OrganDecision"
|
:key="dict.label"
|
:label="dict.label"
|
>
|
{{ dict.label }}
|
</el-checkbox>
|
</el-checkbox-group>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="其他" prop="organdecisionOther">
|
<el-input
|
v-model="form.organdecisionOther"
|
placeholder="请输入其他"
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="6">
|
<el-form-item label="负责人" prop="responsibleuserid">
|
<el-select
|
v-model="form.responsibleuserid"
|
placeholder="请选择"
|
>
|
<el-option
|
v-for="item in leaderlist"
|
:key="item.reportNo"
|
:label="item.reportName"
|
:value="item.reportNo"
|
>
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="协调员1" prop="coordinateduserido">
|
<el-select
|
v-model="form.coordinateduserido"
|
placeholder="请选择"
|
>
|
<el-option
|
v-for="item in coordinatorlist1"
|
:key="item.reportNo"
|
:label="item.reportName"
|
:value="item.reportNo"
|
>
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="6">
|
<el-form-item label="协调员2" prop="coordinateduseridt">
|
<el-select
|
v-model="form.coordinateduseridt"
|
placeholder="请选择"
|
>
|
<el-option
|
v-for="item in coordinatorlist1"
|
:key="item.reportNo"
|
:label="item.reportName"
|
:value="item.reportNo"
|
>
|
</el-option>
|
</el-select>
|
</el-form-item> </el-col
|
><el-col :span="6">
|
<el-form-item
|
align="left"
|
label="签字日期"
|
prop="signdate"
|
style="over-flow: hidden"
|
>
|
<el-date-picker
|
clearable
|
size="small"
|
v-model="form.signdate"
|
type="date"
|
value-format="yyyy-MM-dd hh:mm:ss"
|
placeholder="选择签字日期"
|
>
|
</el-date-picker>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
|
<el-row>
|
<el-form-item label="附件" align="left" prop="annexfile">
|
<annex-upload
|
ref="confirmannex"
|
: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>
|
|
<!-- 添加或修改医学评估对话框 -->
|
<el-dialog
|
:close-on-click-modal="false"
|
:title="evaluationTitle"
|
:visible.sync="isShowEvaluation"
|
width="900px"
|
append-to-body
|
>
|
<el-form
|
ref="evaluationForm"
|
:model="evaluationForm"
|
:rules="evaluationRules"
|
label-width="120px"
|
v-loading="loading"
|
>
|
<el-row>
|
<el-col :span="8">
|
<el-form-item label="捐献编号" prop="donorno">
|
<el-input
|
v-model="evaluationForm.donorno"
|
placeholder="请输入捐献编号"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="所在医院" prop="province">
|
<org-selecter
|
ref="hosSelect"
|
:org-type="'3'"
|
v-model="curCase.treatmenthospitalno"
|
disabled
|
/>
|
<!-- <el-input v-model="curCase.treatmenthospitalname" placeholder="请输入捐献者所在医院" disabled /> -->
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<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="6">
|
<el-form-item label="姓名" prop="province">
|
<el-input
|
v-model="curCase.name"
|
placeholder="请输入捐献者姓名"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
<el-col :span="5" :pull="1">
|
<el-form-item label="性别" prop="donorno">
|
<el-select v-model="curCase.sex" placeholder="" disabled>
|
<el-option
|
v-for="dict in dict.type.sys_user_sex"
|
:key="dict.label"
|
:label="dict.label"
|
:value="parseInt(dict.value)"
|
></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="5" :pull="1">
|
<el-form-item label="年龄" prop="idcardno">
|
<el-input v-model="curCase.age" placeholder="" disabled />
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<el-form-item label="身份证号" align="left" prop="idcardno">
|
<el-input
|
v-model="curCase.idcardno"
|
placeholder="捐献者身份证号"
|
disabled
|
/>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
|
<el-form-item label="病情概况" prop="illnessoverview">
|
<el-input
|
v-model="evaluationForm.illnessoverview"
|
type="textarea"
|
placeholder="请输入内容"
|
/>
|
</el-form-item>
|
<el-form-item label="疾病诊断" prop="diagnosisname">
|
<el-input
|
v-model="evaluationForm.diagnosisname"
|
type="textarea"
|
placeholder="请输入疾病诊断"
|
/>
|
</el-form-item>
|
|
<div style="display: flex; height: 300px">
|
<div style="display: inline-block; width: 50%; margin-top: 0px">
|
<el-form-item
|
label="院级评估内容"
|
style="height: 300px"
|
prop="hospitalassesscontent"
|
>
|
<el-input
|
v-model="evaluationForm.hospitalassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
:rows="6"
|
/>
|
</el-form-item>
|
</div>
|
<div style="display: inline-block; width: 50%">
|
<el-form-item label="评估医生" prop="hospitalassessdoctor">
|
<el-input
|
v-model="evaluationForm.hospitalassessdoctor"
|
placeholder="请输入院级评估医生"
|
/>
|
</el-form-item>
|
<el-form-item label="评估时间" prop="hospitalassesstime">
|
<el-date-picker
|
clearable
|
size="small"
|
style="width: 310px"
|
v-model="evaluationForm.hospitalassesstime"
|
type="date"
|
value-format="yyyy-MM-dd hh:mm:ss"
|
placeholder="选择院级评估时间"
|
>
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="评估结论" prop="hospitalassessconclusion">
|
<el-select
|
style="width: 310px"
|
v-model="evaluationForm.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>
|
</div>
|
</div>
|
|
<div style="display: flex; height: 300px; margin-top: -120px">
|
<div style="display: inline-block; width: 50%; margin-top: 0px">
|
<el-form-item label="省级评估内容" prop="provincialassesscontent">
|
<el-input
|
v-model="evaluationForm.provincialassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
:rows="6"
|
/>
|
</el-form-item>
|
</div>
|
<div style="display: inline-block; width: 50%">
|
<el-form-item label="评估医生" prop="provincialassessdoctor">
|
<el-input
|
v-model="evaluationForm.provincialassessdoctor"
|
placeholder="请输入省级评估医生"
|
/>
|
</el-form-item>
|
<el-form-item label="评估时间" prop="provincialassesstime">
|
<el-date-picker
|
clearable
|
size="small"
|
style="width: 310px"
|
v-model="evaluationForm.provincialassesstime"
|
type="date"
|
value-format="yyyy-MM-dd hh:mm:ss"
|
placeholder="选择省级评估时间"
|
>
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="评估结论" prop="provincialassessconclusion">
|
<el-select
|
style="width: 310px"
|
v-model="evaluationForm.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>
|
</div>
|
</div>
|
|
<div style="display: flex; height: 300px; margin-top: -120px">
|
<div style="display: inline-block; width: 50%; margin-top: 0px">
|
<el-form-item label="核心成员评估" prop="coreteamassesscontent">
|
<el-input
|
v-model="evaluationForm.coreteamassesscontent"
|
type="textarea"
|
placeholder="请输入内容"
|
:rows="6"
|
/>
|
</el-form-item>
|
</div>
|
<div style="display: inline-block; width: 50%">
|
<el-form-item label="评估医生" prop="coreteamassessdoctor">
|
<el-input
|
style="width: 310px"
|
v-model="evaluationForm.coreteamassessdoctor"
|
placeholder="请输入省级评估组核心成员评估医生"
|
/>
|
</el-form-item>
|
<el-form-item label="评估时间" prop="coreteamassesstime">
|
<el-date-picker
|
clearable
|
size="small"
|
style="width: 310px"
|
v-model="evaluationForm.coreteamassesstime"
|
type="date"
|
value-format="yyyy-MM-dd hh:mm:ss"
|
placeholder="评估时间"
|
>
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="评估结论" prop="coreteamassessconclusion">
|
<el-select
|
v-model="evaluationForm.coreteamassessconclusion"
|
placeholder="请选择省级评估组核心成员结论"
|
style="width: 310px"
|
>
|
<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>
|
</div>
|
</div>
|
<!-- <el-form-item label="评估附件" style="margin-top:-120px">
|
<fileUpload v-model="form.assessannex" />
|
</el-form-item> -->
|
<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>
|
</el-form>
|
<div slot="footer" class="dialog-footer">
|
<el-button type="primary" @click="saveEvaluation">确 定</el-button>
|
<el-button v-show="showSaveBtn" type="primary" @click="submitForm"
|
>终止案例</el-button
|
>
|
<el-button @click="cancel">取 消</el-button>
|
</div>
|
</el-dialog>
|
</div>
|
</template>
|
|
<script>
|
import {
|
listDonatebaseinfo,
|
getDonatebaseinfo,
|
delDonatebaseinfo,
|
// addDonatebaseinfo,
|
updateDonatebaseinfo
|
// exportDonatebaseinfo,
|
// exportProvincemessage,
|
} from "@/api/project/donatebaseinfo";
|
import {
|
listRelativesconfirmation,
|
getRelativesconfirmation,
|
delRelativesconfirmation,
|
addRelativesconfirmation,
|
updateRelativesconfirmation,
|
listnewRelativesconfirmation,
|
// exportRelativesconfirmation,
|
updatedonatorno,
|
updateDonateNumber,
|
downloadconfirmationinfo
|
} from "@/api/project/relativesconfirmation";
|
import {
|
listMedicalevaluation,
|
getMedicalevaluation,
|
delMedicalevaluation,
|
addMedicalevaluation,
|
updateMedicalevaluation,
|
exportMedicalevaluation
|
} from "@/api/project/medicalevaluation";
|
import Li_area_select from "@/components/Address";
|
import OrgSelecter from "@/views/project/components/orgselect";
|
import AnnexUpload from "@/views/project/components/annexupload";
|
import { getToken } from "@/utils/auth";
|
import {
|
listOrganization,
|
listReportname,
|
listUser
|
} from "@/api/project/organization";
|
|
export default {
|
components: {
|
Li_area_select,
|
OrgSelecter,
|
AnnexUpload
|
},
|
name: "Relativesconfirmation",
|
dicts: [
|
"sys_Kinship",
|
"sys_OrganizationType",
|
"sys_education",
|
"sys_OrganizationType",
|
"sys_nation",
|
"country",
|
"sys_OrganDecision",
|
"sys_IDType",
|
"sys_FamilyRelation",
|
"sys_KinshipConfirm",
|
"sys_FamilyRelation",
|
"country",
|
"sys_user_sex",
|
"sys_DonationStatus",
|
"sys_FamilyRelation",
|
"sys_CoreAssessConclusion",
|
"sys_BaseAssessConclusion",
|
"sys_donornode"
|
],
|
data() {
|
return {
|
tempRecordState: null,
|
|
selecttime: "",
|
reportervalue: "",
|
reportlist: [],
|
|
defultAddresss: {
|
sheng: "浙江省",
|
shi: "",
|
qu: ""
|
},
|
//默认值设置,可为空
|
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" }
|
],
|
showSaveBtn: false,
|
showTerminationBtn: false,
|
dosex: "",
|
dobirthday: "",
|
donation: "",
|
doname: "",
|
doeducation: "",
|
dooccupation: "",
|
donativeplace: "",
|
doidcardtype: "",
|
donationality: "",
|
doidcardno: "",
|
countyname: "",
|
cuuntry: "",
|
rename: "",
|
reidcardno: "",
|
//性别
|
sex: "",
|
//出生日期
|
birthday: "",
|
//民族
|
nation: "",
|
//学历
|
education: "",
|
//职业
|
occupation: "",
|
//户籍
|
registeraddress: "",
|
// 遮罩层
|
loading: true,
|
// 导出遮罩层
|
exportLoading: false,
|
// 选中数组
|
ids: [],
|
// 非单个禁用
|
single: true,
|
// 非多个禁用
|
multiple: true,
|
// 显示搜索条件
|
showSearch: true,
|
// 总条数
|
total: 0,
|
// 捐献亲属确认表格数据
|
relativesconfirmationList: [],
|
// 遮罩层
|
loading: true,
|
// 导出遮罩层
|
exportLoading: false,
|
users: [],
|
leaderlist: [],
|
coordinatorlist1: [],
|
coordinatorlist2: [],
|
// 选中数组
|
ids: [],
|
// 非单个禁用
|
single: true,
|
// 非多个禁用
|
multiple: true,
|
// 显示搜索条件
|
showSearch: true,
|
// 总条数
|
total: 0,
|
// 捐献基础表格数据
|
donatebaseinfoList: [],
|
listnewRelativesconfirm: [],
|
// 弹出层标题
|
title: "",
|
// 是否显示弹出层
|
open: false,
|
// 获取组织名称时间范围
|
daterangeReporttime: [],
|
// 查询参数
|
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,
|
treatmenthospitalno: null
|
},
|
headers: {
|
Authorization: "Bearer " + getToken()
|
},
|
// 表单参数
|
form: {},
|
// 表单校验
|
rules: {
|
name: [
|
{ required: true, message: "亲属姓名不能为空", trigger: "blur" }
|
],
|
phone: [
|
{ required: true, message: "家属联系电话不为空", trigger: "blur" }
|
],
|
signfamilyrelations: [
|
{ required: true, message: "与捐献者关系", trigger: "blur" }
|
],
|
idcardno: [
|
{ required: true, message: "证件号不能为空", trigger: "blur" }
|
],
|
organdecision: [
|
{ required: true, message: "捐献决定不能为空", trigger: "blur" }
|
],
|
responsibleuserid: [
|
{ required: true, message: "负责人不能为空", trigger: "blur" }
|
],
|
coordinateduserido: [
|
{ required: true, message: "协调员1不能为空", trigger: "blur" }
|
],
|
coordinateduseridt: [
|
{ required: true, message: "协调员2不能为空", trigger: "blur" }
|
]
|
// esidenceaddresss:[{ required: true, message: "请选择户籍地", trigger: "blur" }],
|
// residenceaddress:[{ required: true, message: "现住地址不能为空", trigger: "blur" }],
|
},
|
//流程名称
|
flowname: "捐献确认",
|
annexno: "",
|
curCase: {},
|
|
//医学评估表单
|
evaluationForm: {},
|
//是否显示捐献评估弹窗
|
isShowEvaluation: false,
|
//捐献评估title
|
evaluationTitle: "",
|
evaluationRules: {},
|
starttime: "",
|
endtime: ""
|
};
|
},
|
created() {
|
// this.getDicts('country').then(res=>{
|
// this.nationality =res.data
|
// })
|
if (sessionStorage.getItem("relativesconfirmation")) {
|
this.queryParams = JSON.parse(
|
sessionStorage.getItem("relativesconfirmation")
|
);
|
console.log(this.queryParams, "queryParams");
|
}
|
this.getuserlist();
|
this.getLeaderList();
|
this.getCoordinatorList1();
|
this.getCoordinatorList2();
|
},
|
activated() {},
|
mounted() {
|
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")
|
];
|
this.endtime = this.selecttime[1];
|
this.starttime = this.selecttime[0];
|
console.log(this.selecttime);
|
}
|
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.getList();
|
this.getTimeList();
|
this.LoadReportList();
|
|
// if(this.tempRecordState != undefined && this.tempRecordState != null){
|
|
// this.getList(this.tempRecordState.toString());
|
// }
|
// else{
|
// this.getList();
|
// }
|
},
|
methods: {
|
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";
|
console.log("1212121", this.endtime);
|
}
|
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 = [];
|
reportlist.push({ reporterno: "", reportername: "全部" });
|
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;
|
},
|
|
handletermination(row) {
|
this.showSaveBtn = true;
|
this.flowname = "家属确认登记";
|
this.annexno = "";
|
//查询是否存在确认登记记录
|
let searchparam = {
|
infoid: row.id
|
};
|
this.loading = true;
|
this.curCase = row;
|
listRelativesconfirmation(searchparam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length == 0) {
|
this.form.infoid = row.id;
|
this.form.donorno = row.donorno;
|
this.form.doname = row.name;
|
this.form.dosex = row.sex;
|
this.form.recordstate = 99;
|
this.form.dobirthday = row.birthday;
|
this.form.donationality = row.nationality;
|
this.form.doeducation = row.education;
|
this.form.dooccupation = row.occupation;
|
this.form.donation = row.nation;
|
this.form.doidcardtype = row.idcardtype;
|
this.form.doidcardno = row.idcardno;
|
this.form.donativeplace = row.nativeplace;
|
this.open = true;
|
this.title = "新增人体器官捐献亲属确认登记表";
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else if (response.rows.length == 1) {
|
this.form = response.rows[0];
|
console.log("2222222", this.form);
|
console.log("编辑家属确认form", this.form);
|
this.form.donorno = row.donorno;
|
this.form.recordstate = 99;
|
this.form.doname = row.name;
|
this.form.dosex = row.sex;
|
// 出生日期
|
this.form.dobirthday = row.birthday;
|
// 民族
|
this.form.donationality = row.nationality;
|
// 学历
|
this.form.doeducation = row.education;
|
// 职业
|
this.form.dooccupation = row.occupation;
|
this.form.donation = row.nation;
|
this.form.doidcardtype = row.idcardtype;
|
this.form.doidcardno = row.idcardno;
|
this.form.donativeplace = row.nativeplace;
|
// this.form.donativeplace =
|
// row.residenceProvinceName +
|
// row.residenceCityName +
|
// row.residenceTownName;
|
this.defultAddresss.sheng = this.form.residenceprovincename;
|
this.defultAddresss.shi = this.form.residencecityname;
|
this.defultAddresss.qu = this.form.residencetownname;
|
console.log("9999999", this.form.organdecision);
|
if (this.form.kinship) {
|
this.form.kinship = this.form.kinship.split(",");
|
}
|
if (this.form.organdecision) {
|
this.form.organdecision = this.form.organdecision.split(",");
|
}
|
this.open = true;
|
this.title = "修改人体器官捐献亲属确认登记表";
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else {
|
this.$modal.msgError(
|
"查询是否存在确认登记记录失败" +
|
JSON.stringify(JSON.stringify(response))
|
);
|
}
|
}
|
});
|
this.reset();
|
},
|
// handletermination(row){
|
// console.log(row.id)
|
// },
|
updatedonorno(row) {
|
updateDonateNumber(row.infoid).then(res => {
|
//console.log('更新捐献者编号亲属表',res)
|
console.log("dwdawdwadwad", res);
|
this.getList();
|
});
|
},
|
getuserlist() {
|
//用户列表
|
listUser().then(res => {
|
this.users = res.data;
|
});
|
},
|
getLeaderList() {
|
//负责人
|
// let userType = {"userType":"fzr"};
|
listReportname("fzr").then(res => {
|
this.leaderlist = res.data;
|
});
|
},
|
|
//协调员一
|
getCoordinatorList1() {
|
listReportname("xty1").then(res => {
|
this.coordinatorlist1 = res.data;
|
});
|
},
|
getCoordinatorList2() {
|
//协调员二
|
listReportname("xty2").then(res => {
|
this.coordinatorlist2 = res.data;
|
});
|
},
|
updateMessage() {
|
const reg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
if (reg.test(this.form.idcardno)) {
|
// 身份证号码是否合法
|
var org_birthday = this.form.idcardno.substring(6, 14);
|
var org_gender = this.form.idcardno.substring(16, 17);
|
var sex = org_gender % 2 == 1 ? "男" : "女";
|
var birthday =
|
org_birthday.substring(0, 4) +
|
"-" +
|
org_birthday.substring(4, 6) +
|
"-" +
|
org_birthday.substring(6, 8);
|
var birthdays = new Date(birthday.replace(/-/g, "/"));
|
let d = new Date();
|
// let age = d.getFullYear() - birthdays.getFullYear() - (d.getMonth() < birthdays.getMonth() || (d.getMonth() == birthdays.getMonth() && d.getDate() < birthdays.getDate()) ? 1 : 0);
|
|
// 赋值给表格
|
this.form.sex = sex;
|
this.form.birthday = birthday;
|
// this.form.age = age
|
} else {
|
this.dataList.sex = "未填写";
|
return false;
|
}
|
},
|
// sheng: '浙江省',
|
// shi: '',
|
// qu: '',
|
|
// 身份证验证
|
//根据身份证号自动生成性别、出生日期和年龄
|
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
|
});
|
},
|
changeAddress(data) {},
|
/** 查询捐献基础列表 */
|
getList(e) {
|
this.loading = true;
|
sessionStorage.removeItem("relativesconfirmation");
|
sessionStorage.setItem(
|
"relativesconfirmation",
|
JSON.stringify(this.queryParams)
|
);
|
if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
|
this.queryParams.params[
|
"beginReporttime"
|
] = this.daterangeReporttime[0];
|
this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
|
}
|
|
this.queryParams.reportervalue = this.reportervalue;
|
if (this.starttime != "") {
|
this.queryParams.starttime = this.starttime;
|
} else {
|
}
|
if (this.endtime != "") {
|
this.queryParams.endtime = this.endtime;
|
}
|
console.log(this.queryParams, "cans");
|
this.$nextTick(() => {
|
listnewRelativesconfirmation(this.queryParams).then(response => {
|
// console.log('带有city的接口',response)
|
this.listnewRelativesconfirm = response.rows;
|
console.log("response.rows", response.rows);
|
this.total = response.total;
|
this.loading = false;
|
});
|
});
|
// this.queryParams.city="015"
|
},
|
// 取消按钮
|
cancel() {
|
this.open = false;
|
this.isShowEvaluation = false;
|
this.reset();
|
},
|
// 表单重置
|
reset() {
|
this.form = {
|
dosex: null,
|
dobirthday: null,
|
donation: null,
|
doname: null,
|
doeducation: null,
|
dooccupation: null,
|
donativeplace: null, //baseinfo表:nativeplace
|
doidcardtype: null,
|
donationality: null,
|
doidcardno: null,
|
id: null,
|
infoid: null,
|
donorno: null,
|
name: null,
|
idcardtype: null,
|
idcardno: null,
|
reidcardno: null,
|
rename: null,
|
phone: null,
|
residenceaddress: null,
|
residenceaddresss: null,
|
residenceaddressss: 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: "ZJOPO",
|
acquisitiontissuename: "浙江省人体器官获取组织",
|
responsibleuserid: null,
|
responsibleusername: null,
|
coordinateduserido: null,
|
coordinatedusernameo: null,
|
coordinateduseridt: null,
|
coordinatedusernamet: null,
|
signdate: null,
|
isrestoreremains: [],
|
delFlag: null,
|
createBy: null,
|
createTime: null,
|
updateBy: null,
|
updateTime: null
|
};
|
this.resetForm("form");
|
},
|
/** 搜索按钮操作 */
|
handleQuery() {
|
this.queryParams.pageNum = 1;
|
this.getList();
|
},
|
/** 重置按钮操作 */
|
resetQuery() {
|
this.daterangeReporttime = [];
|
this.selecttime = [];
|
this.reportervalue = "";
|
|
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,
|
treatmenthospitalno: null
|
};
|
this.selecttime = [];
|
this.getTimeList();
|
this.searchAddress = {
|
sheng: "",
|
shi: "",
|
qu: "",
|
organizationname: null
|
};
|
|
this.resetForm("queryForm");
|
this.handleQuery();
|
},
|
// 详情announce操作
|
// handleDetails(row){
|
// const
|
// },
|
// 多选框选中数据
|
handleSelectionChange(selection) {
|
this.ids = selection.map(item => item.id);
|
this.single = selection.length !== 1;
|
this.multiple = !selection.length;
|
},
|
/** 家属确认操作 */
|
handleAdd(row) {
|
this.$router.push({
|
path: "/organ/donationdetails/",
|
query: {
|
id: row.id,
|
organType: "edit"
|
}
|
});
|
return;
|
console.log("ppppppp", row);
|
this.showSaveBtn = false;
|
this.flowname = "家属确认登记";
|
this.annexno = "";
|
//查询是否存在确认登记记录
|
let searchparam = {
|
infoid: row.id
|
};
|
this.loading = true;
|
this.curCase = {
|
id: row.id,
|
recordstate: null,
|
donorno: row.donorno
|
};
|
console.log("32323232323", searchparam);
|
listRelativesconfirmation(searchparam).then(response => {
|
console.log("wdadwadawdawd", response);
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length == 0) {
|
this.form.infoid = row.id;
|
this.form.donorno = row.donorno;
|
this.form.doname = row.name;
|
this.form.dosex = row.sex;
|
this.form.dobirthday = row.birthday;
|
this.form.donationality = row.nationality;
|
this.form.doeducation = row.education;
|
this.form.dooccupation = row.occupation;
|
this.form.donation = row.nation;
|
this.form.doidcardtype = row.idcardtype;
|
this.form.doidcardno = row.idcardno;
|
this.form.donativeplace = row.nativeplace;
|
this.open = true;
|
this.title = "新增人体器官捐献亲属确认登记表";
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else if (response.rows.length == 1) {
|
this.form = response.rows[0];
|
console.log("2222222", this.form);
|
console.log("编辑家属确认form", this.form);
|
this.form.donorno = row.donorno;
|
this.form.doname = row.name;
|
this.form.dosex = row.sex;
|
// 出生日期
|
this.form.dobirthday = row.birthday;
|
// 民族
|
this.form.donationality = row.nationality;
|
// 学历
|
this.form.doeducation = row.education;
|
// 职业
|
this.form.dooccupation = row.occupation;
|
this.form.donation = row.nation;
|
this.form.doidcardtype = row.idcardtype;
|
this.form.doidcardno = row.idcardno;
|
this.form.donativeplace = row.nativeplace;
|
// this.form.donativeplace =
|
// row.residenceProvinceName +
|
// row.residenceCityName +
|
// row.residenceTownName;
|
this.defultAddresss.sheng = this.form.residenceprovincename;
|
this.defultAddresss.shi = this.form.residencecityname;
|
this.defultAddresss.qu = this.form.residencetownname;
|
console.log("9999999", this.form.organdecision);
|
if (this.form.kinship) {
|
this.form.kinship = this.form.kinship.split(",");
|
}
|
if (this.form.organdecision) {
|
this.form.organdecision = this.form.organdecision.split(",");
|
}
|
this.open = true;
|
this.title = "修改人体器官捐献亲属确认登记表";
|
this.$nextTick(function() {
|
this.$refs.confirmannex.getAnnexList();
|
});
|
} else {
|
this.$modal.msgError(
|
"查询是否存在确认登记记录失败" +
|
JSON.stringify(JSON.stringify(response))
|
);
|
}
|
}
|
});
|
this.reset();
|
},
|
/** 提交按钮 */
|
submitForm() {
|
this.$refs["form"].validate(valid => {
|
if (valid) {
|
console.log("提交的form", this.form);
|
if (this.form.kinship.length > 0) {
|
this.form.kinship = this.form.kinship.join(",");
|
}
|
if (this.form.organdecision.length > 0) {
|
this.form.organdecision = this.form.organdecision.join(",");
|
}
|
this.form.residenceprovince = this.$refs.residenceaddresss.getSheng();
|
this.form.residenceprovincename = this.defultAddresss.sheng;
|
this.form.residencecity = this.$refs.residenceaddresss.getShi();
|
this.form.residencecityname = this.defultAddresss.shi;
|
this.form.residencetown = this.$refs.residenceaddresss.getQu();
|
this.form.residencetownname = this.defultAddresss.qu;
|
//负责人 //leaderlist
|
let responsibleuseridIndex = this.leaderlist.findIndex(
|
item => this.form.responsibleuserid == item.reportNo
|
);
|
if (responsibleuseridIndex > -1) {
|
this.form.responsibleusername = this.leaderlist[
|
responsibleuseridIndex
|
].reportName;
|
}
|
//协调员1
|
let coordinatedusernameIndex = this.coordinatorlist1.findIndex(
|
item => this.form.coordinateduserido == item.reportNo
|
);
|
if (coordinatedusernameIndex > -1) {
|
this.form.coordinatedusernameo = this.coordinatorlist1[
|
coordinatedusernameIndex
|
].reportName;
|
}
|
//协调员2
|
let coordinatedusernametIndex = this.coordinatorlist1.findIndex(
|
item => this.form.coordinateduseridt == item.reportNo
|
);
|
if (coordinatedusernametIndex > -1) {
|
this.form.coordinatedusernamet = this.coordinatorlist1[
|
coordinatedusernametIndex
|
].reportName;
|
}
|
//console.log("协调员2:"+ this.form.coordinatedusernamet);
|
|
if (this.form.id != null) {
|
updateRelativesconfirmation(this.form).then(response => {
|
console.log("1s212198989898", this.form.infoid);
|
let donornoobj = {
|
id: this.form.infoid
|
};
|
let donornoobj1 = {
|
infoid: this.form.infoid
|
};
|
console.log("infoid:", this.form.infoid);
|
// 更新捐献者编号接口
|
// updatedonatorno(this.form.infoid).then((res)=>{
|
// console.log('更新后捐献者编号base表',res);
|
// });
|
|
this.$modal.msgSuccess("修改成功");
|
this.open = false;
|
this.getList();
|
//查询是否存在医学评估记录
|
let searchevaluationParam = {
|
donorno: this.curCase.donorno
|
};
|
this.loading = true;
|
listMedicalevaluation(searchevaluationParam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length > 0) {
|
//上报伦理审查
|
//更新捐献状态为已上报伦理审查
|
this.curCase.recordstate = 7;
|
} else {
|
this.curCase.recordstate = 6;
|
}
|
} else {
|
this.$modal.msgError("获取医学评估记录失败:" + response.msg);
|
}
|
console.log("btnbtnbtn", this.showSaveBtn);
|
if (this.showSaveBtn === true) {
|
this.curCase.recordstate = 99;
|
}
|
console.log("curCase", this.curCase);
|
updateDonatebaseinfo(this.curCase).then(response1 => {
|
this.getList();
|
if (response1.code == 200) {
|
if (this.curCase.recordstate == 7) {
|
this.$modal.msgSuccess("家属确认成功并上报伦理审查成功");
|
} else if (this.curCase.recordstate === 99) {
|
this.$modal.msgSuccess("已终止当前案例");
|
} else {
|
this.$modal.msgSuccess(
|
"家属确认成功,请前往填写医学捐献评估"
|
);
|
}
|
} else {
|
this.$modal.msgError("上报伦理审查失败" + response1.msg);
|
}
|
});
|
});
|
});
|
} else {
|
addRelativesconfirmation(this.form).then(response => {
|
this.$modal.msgSuccess("新增成功");
|
this.getList();
|
//查询是否存在医学评估记录
|
let searchevaluationParam = {
|
donorno: this.curCase.donorno
|
};
|
this.loading = true;
|
listMedicalevaluation(searchevaluationParam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length > 0) {
|
//更新捐献状态为已上报伦理审查
|
this.curCase.recordstate = 7;
|
} else {
|
this.curCase.recordstate = 6;
|
}
|
} else {
|
this.$modal.msgError("获取医学评估记录失败:" + response.msg);
|
}
|
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();
|
});
|
}
|
updateDonateNumber(this.form.infoid).then(res => {
|
//console.log('更新捐献者编号亲属表',res)
|
this.getList();
|
});
|
}
|
});
|
},
|
/** 删除按钮操作 */
|
handleDelete(row) {
|
const ids = row.id || this.ids;
|
this.$modal
|
.confirm('是否确认删除捐献基础编号为"' + ids + '"的数据项?')
|
.then(function() {
|
return delDonatebaseinfo(ids);
|
})
|
.then(() => {
|
this.getList();
|
this.$modal.msgSuccess("删除成功");
|
})
|
.catch(() => {});
|
},
|
//上报伦理审查
|
submitRecord(row) {
|
this.$modal
|
.confirm("是否确认上报伦理审查")
|
.then(function() {})
|
.then(() => {
|
this.loading = true;
|
row.recordstate = 7;
|
updateDonatebaseinfo(row).then(response1 => {
|
if (response1.code == 200) {
|
this.$modal.msgSuccess("上报伦理审查成功");
|
} else {
|
this.$modal.msgError("上报伦理审查失败" + response1.msg);
|
}
|
this.loading = false;
|
});
|
})
|
.catch(() => {});
|
},
|
//重置医学评估界面
|
resetEvaluationForm() {
|
this.evaluationForm = {
|
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,
|
coreteamassessconclusion: null,
|
assessannex: null
|
};
|
this.resetForm("evaluationForm");
|
},
|
//判断是否存在医学评估记录
|
handleEvaluationShow(data) {
|
this.curCase = data;
|
if (data.recordstate != 5) {
|
this.$modal.msgError(
|
"当前捐献案例不能进行捐献医学评估,请先填写家属确认登记或检查案例当前状态"
|
);
|
return;
|
}
|
this.flowname = "捐献医学评估";
|
this.annexno = "";
|
//获取医学捐献评估记录
|
let searchParam = {
|
donorno: data.donorno
|
};
|
this.loading = true;
|
listMedicalevaluation(searchParam).then(response => {
|
this.loading = false;
|
if (response.code == 200) {
|
if (response.rows.length == 0) {
|
this.evaluationTitle = "新增捐献医学评估";
|
this.evaluationForm.infoid = data.id;
|
this.evaluationForm.donorno = data.donorno;
|
this.isShowEvaluation = true;
|
this.$nextTick(function() {
|
this.$refs.evaluationannex.getAnnexList();
|
});
|
} else if (response.rows.length == 1) {
|
this.evaluationTitle = "修改捐献医学评估";
|
this.evaluationForm = response.rows[0];
|
this.evaluationForm.infoid = data.id;
|
this.evaluationForm.donorno = data.donorno;
|
this.isShowEvaluation = true;
|
this.$nextTick(function() {
|
this.$refs.evaluationannex.getAnnexList();
|
});
|
} else {
|
this.$modal.msgError(
|
"获取医学评估记录失败:" + JSON.stringify(response)
|
);
|
}
|
} else {
|
this.$modal.msgError("获取医学评估记录失败:" + response.msg);
|
}
|
});
|
},
|
//下载捐献确认登记表
|
handledownload(row) {
|
const id = row.id || this.ids;
|
|
downloadconfirmationinfo(id).then(res => {
|
var fileUrl = res;
|
//获取当前网址
|
var urlBase = process.env.VUE_APP_BASE_API;
|
var curWWWPath = window.document.location.href;
|
var pos = curWWWPath.indexOf(window.document.location.pathname);
|
// 创建a标签
|
var aEle = document.createElement("a");
|
aEle.href =
|
curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"];
|
console.log(aEle.href);
|
// 添加Authorization头部
|
fetch(aEle.href, {
|
headers: this.headers
|
})
|
.then(response => {
|
// 将文件下载链接作为blob对象进行下载
|
return response.blob();
|
})
|
.then(blob => {
|
const url = window.URL.createObjectURL(new Blob([blob]));
|
console.log(url);
|
const link = document.createElement("a");
|
link.href = url;
|
const name = fileUrl["downloadName"];
|
link.setAttribute("download", name); // 替换file.pdf为实际的文件名
|
document.body.appendChild(link);
|
link.click();
|
link.parentNode.removeChild(link);
|
});
|
});
|
},
|
|
//保存或更新捐献评估
|
saveEvaluation() {
|
this.loading = true;
|
this.$refs["evaluationForm"].validate(valid => {
|
if (valid) {
|
if (this.evaluationForm.id != null) {
|
updateMedicalevaluation(this.evaluationForm).then(response => {
|
this.loading = false;
|
this.$modal.msgSuccess("修改成功");
|
this.isShowEvaluation = false;
|
this.getList();
|
});
|
} else {
|
addMedicalevaluation(this.evaluationForm).then(response => {
|
this.loading = false;
|
this.$modal.msgSuccess("新增成功");
|
//更新捐献状态为已上报伦理审查
|
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.isShowEvaluation = false;
|
});
|
}
|
}
|
});
|
}
|
}
|
};
|
</script>
|