更新ca
This commit is contained in:
parent
3a7f2f2372
commit
4e64ee71ed
@ -373,11 +373,11 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider v-if="Object.keys(modalForm.user_doctor_info).length != 0" />
|
||||
<div class="titlebox" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && modalForm.multi_point_status==1">
|
||||
<div class="titlebox" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && !modalForm.user_ca_cert">
|
||||
<div class="bar"></div>
|
||||
<div class="name">CA证书配置</div>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && modalForm.multi_point_status==1">
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && !modalForm.user_ca_cert">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||
|
||||
@ -367,7 +367,22 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider />
|
||||
|
||||
</a-form>
|
||||
<div class="titlebox" v-if="!modalForm.user_ca_cert">
|
||||
<div class="bar"></div>
|
||||
<div class="name">CA证书配置</div>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="!modalForm.user_ca_cert">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space style="margin-top: 15px;">
|
||||
<a-button type="primary" @click="()=>{checkokVisible=true;checkokStatus=2;}" v-has="'admin:sysDoctorList:applyCA'" v-if="!modalForm.user_ca_cert">证书申请</a-button>
|
||||
</a-space>
|
||||
<a-divider />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div class="titlebox" >
|
||||
<div class="bar"></div>
|
||||
<div class="name">操作</div>
|
||||
@ -376,7 +391,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space >
|
||||
<a-button type="primary" v-has="'admin:sysDoctorExamine:ok'" @click="handleCheck('ok')">审核通过</a-button>
|
||||
<a-button type="primary" v-has="'admin:sysDoctorExamine:ok'" @click="handleCheck('ok')" v-if="modalForm.user_ca_cert">审核通过</a-button>
|
||||
<a-button type="primary" status="danger" v-has="'admin:sysDoctorExamine:deny'" @click="handleCheck(deny)">审核拒绝</a-button>
|
||||
</a-space>
|
||||
<!-- <a-space v-if="modalSatus=='edit'">
|
||||
@ -403,12 +418,23 @@
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-modal>
|
||||
<!-- 审核通过弹框 -->
|
||||
<a-modal v-model:visible="checkokVisible" :modal-style="{width:'320px'}" body-class="okmodal" @ok="checkokhandleSubmit"
|
||||
@cancel="()=>checkokokVisible=false">
|
||||
<template #title>
|
||||
提示
|
||||
</template>
|
||||
<div v-if="checkokStatus==1">必须先在[四川省互联网医疗服务监管平台] 对医师备案通过后,才可点击[医师身份审核通过] 按钮</div>
|
||||
<div v-if="checkokStatus==2">确定申请CA证书?</div>
|
||||
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||
import { getDoctorList,getDoctorDetail,checkDoctor} from '@/api/doctor/examine';
|
||||
import {departmentList, decryptCard, hospitalList, expertiseList } from '@/api/doctor/list';
|
||||
import { applyCA} from '@/api/doctor/ca';
|
||||
import dayjs from 'dayjs'
|
||||
import { parseTime } from '@/utils/parseTime';
|
||||
// Akiraka 20230210 删除数据
|
||||
@ -416,6 +442,9 @@
|
||||
// Akiraka 20230210 删除对话框
|
||||
const deleteVisible = ref(false)
|
||||
const modalCheckVisible = ref(false)
|
||||
|
||||
const checkokVisible=ref(false);
|
||||
const checkokStatus=ref(1); // 1 ca审核 //2 申请证书
|
||||
// Akiraka 20230210 监听删除事件
|
||||
watch(() => deleteVisible.value, (value) => {
|
||||
if (value == false) {
|
||||
@ -680,7 +709,15 @@
|
||||
};
|
||||
|
||||
|
||||
|
||||
//申请证书
|
||||
|
||||
const handleApplyCA=()=>{
|
||||
applyCA(modalForm.user_doctor_info.user_id).then(data=>{
|
||||
if(data.code==200){
|
||||
Message.success('证书申请成功');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查询医生信息
|
||||
const handleQuery = async () => {
|
||||
@ -770,6 +807,16 @@
|
||||
|
||||
return elemTop;
|
||||
}
|
||||
|
||||
|
||||
|
||||
const checkokhandleSubmit=()=>{
|
||||
if(checkokStatus.value==1){
|
||||
checkok();
|
||||
}else if(checkokStatus.value==2){
|
||||
handleApplyCA();
|
||||
}
|
||||
};
|
||||
//审核
|
||||
const handleCheck= async(type)=>{
|
||||
if(type=="ok"){
|
||||
@ -780,10 +827,20 @@
|
||||
document.querySelector(".myModal").scrollTo(0,top)
|
||||
return false
|
||||
}
|
||||
checkokVisible.value=true;
|
||||
checkokStatus.value=1;
|
||||
}else{
|
||||
modalCheckForm.iden_auth_status=3;
|
||||
modalCheckVisible.value=true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const checkok=async()=>{
|
||||
proxy.$loading.show();
|
||||
const {code,message,data}= await checkDoctor({
|
||||
iden_auth_status:1,
|
||||
qualification_cert_num:id
|
||||
qualification_cert_num:modalForm.user_doctor_info.qualification_cert_num
|
||||
},modalForm.doctor_id);
|
||||
if (code == 200) {
|
||||
proxy.$notification.success("审核通过");
|
||||
@ -791,13 +848,7 @@
|
||||
proxy.$loading.hide();
|
||||
modalVisible.value=false;
|
||||
}
|
||||
|
||||
}else{
|
||||
modalCheckForm.iden_auth_status=3;
|
||||
modalCheckVisible.value=true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
// 重置搜索
|
||||
const handleResetQuery = () => {
|
||||
proxy.$refs.queryFormRef.resetFields();
|
||||
|
||||
@ -282,7 +282,7 @@
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="doctor_title" label="职 称 :">
|
||||
<a-select placeholder="请选择所在职称" v-model="modalForm.doctor_title">
|
||||
<a-select placeholder="请选择所在职称" v-model="modalForm.doctor_title" >
|
||||
<a-option v-for="item in doctor_title_data" :key="item.doctor_title" :value="item.doctor_title"
|
||||
:label="item.doctor_title_name">{{item.doctor_title_name}}</a-option>
|
||||
</a-select>
|
||||
@ -566,11 +566,11 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider v-if="Object.keys(modalForm.user_doctor_info).length != 0"/>
|
||||
<div class="titlebox" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && modalForm.multi_point_status==1">
|
||||
<div class="titlebox" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && !modalForm.user_ca_cert">
|
||||
<div class="bar"></div>
|
||||
<div class="name">CA证书配置</div>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && modalForm.multi_point_status==1">
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image && !modalForm.user_ca_cert">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||
@ -599,7 +599,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space v-if="modalSatus!='detail'" style="margin-right: 8px;">
|
||||
<a-button type="primary" @click="()=>{okVisible=true,okStatus=1}" v-has="'admin:sysDoctorList:save'">保存</a-button>
|
||||
<a-button type="primary" @click="saveBefore" v-has="'admin:sysDoctorList:save'">保存</a-button>
|
||||
</a-space>
|
||||
<!-- <a-space v-if="modalSatus=='edit'">
|
||||
<a-button type="primary" status="warning">拉黑</a-button>
|
||||
@ -612,7 +612,7 @@
|
||||
|
||||
<!-- Akiraka 20230223 删除与批量删除 开始 -->
|
||||
<DeleteModal :data="deleteData" :visible="deleteVisible" :apiDelete="removeDoctor"
|
||||
@deleteVisibleChange="() => deleteVisible = false" />
|
||||
@deleteVisibleChange="() => deleteVisible = false" :cancelText="okStatus==7?'未修改备案':'取消'"/>
|
||||
<!-- Akiraka 20230223 删除与批量删除 结束 -->
|
||||
<a-modal v-model:visible="okVisible" :modal-style="{width:'320px'}" body-class="okmodal" @ok="handleSubmit"
|
||||
@cancel="()=>okVisible=false">
|
||||
@ -625,6 +625,7 @@
|
||||
<div v-else-if="okStatus==4">确定申请签章?</div>
|
||||
<div v-else-if="okStatus==5">确定更新签章?</div>
|
||||
<div v-else-if="okStatus==6">确定申请CA证书?</div>
|
||||
<div v-else-if="okStatus==7">修改职称或者执业证/资格证,需要先在【四川省互联网医疗服务监管平台】修改备案信息成功后,才可保存 (谨慎操作) 。</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
@ -644,12 +645,15 @@
|
||||
const deleteVisible = ref(false)
|
||||
// Akiraka 20230210 监听删除事件
|
||||
const okVisible = ref(false);
|
||||
const okStatus=ref(1); //1保存 2证书续期 3//证书注销 //4申请签章 //5更新签章
|
||||
const okStatus=ref(1); //1保isChange_license存 2证书续期 3//证书注销 //4申请签章 //5更新签章 //7 更改科室职称执业证/资格证
|
||||
watch(() => deleteVisible.value, (value) => {
|
||||
if (value == false) {
|
||||
getDoctorInfo(pager);
|
||||
}
|
||||
})
|
||||
const oldTitle=ref('');//旧职称
|
||||
const isChange_license=ref(false);
|
||||
const isChange_qualification=ref(false);
|
||||
const tableRef=ref();
|
||||
const showCheckedAll=ref(true);
|
||||
const file = ref();
|
||||
@ -733,7 +737,10 @@ const showCheckedAll=ref(true);
|
||||
if (value.dealType == "add") {
|
||||
license_cert_list.value.push({
|
||||
url: value.url
|
||||
})
|
||||
});
|
||||
if(modalForm.doctor_id){
|
||||
isChange_license.value=true;
|
||||
}
|
||||
} else {
|
||||
license_cert_list.value.splice(license_cert_list.value.findIndex(item => item.url === value.url), 1)
|
||||
}
|
||||
@ -743,6 +750,9 @@ const showCheckedAll=ref(true);
|
||||
qualification_cert_list.value.push({
|
||||
url: value.url
|
||||
})
|
||||
if(modalForm.doctor_id){
|
||||
isChange_qualification.value=true;
|
||||
}
|
||||
} else {
|
||||
qualification_cert_list.value.splice(qualification_cert_list.value.findIndex(item => item.url === value.url), 1)
|
||||
}
|
||||
@ -1057,6 +1067,7 @@ const showCheckedAll=ref(true);
|
||||
if(data.doctor_title==0){
|
||||
modalForm.doctor_title='';
|
||||
}
|
||||
oldTitle.value=data.doctor_title;
|
||||
if(data.hospital_id==0){
|
||||
modalForm.hospital_id='';
|
||||
}
|
||||
@ -1210,6 +1221,8 @@ const showCheckedAll=ref(true);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//开启服务处理
|
||||
// const filterService = (record) => {
|
||||
// let arr = [];
|
||||
@ -1237,8 +1250,18 @@ const showCheckedAll=ref(true);
|
||||
// }
|
||||
// Modal ok
|
||||
// 异步关闭Modal需要调用 done()
|
||||
|
||||
const saveBefore=()=>{
|
||||
if(oldTitle.value!=modalForm.doctor_title || isChange_license.value || isChange_qualification.value){
|
||||
okStatus=7
|
||||
}else{
|
||||
okStatus=1
|
||||
}
|
||||
okVisible.value=true;
|
||||
|
||||
}
|
||||
const handleSubmit = (done) => {
|
||||
if(okStatus.value==1){
|
||||
if(okStatus.value==1 || okStatus==7){
|
||||
proxy.$refs.modalFormRef.validate(async (valid) => {
|
||||
if (!valid) {
|
||||
let res;
|
||||
@ -1348,6 +1371,8 @@ const showCheckedAll=ref(true);
|
||||
if (code == 200) {
|
||||
proxy.$notification.success('更新成功');
|
||||
modalVisible.value = false;
|
||||
isChange_license.value=false;
|
||||
isChange_qualification.value=false;
|
||||
}
|
||||
proxy.$loading.hide();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user