更改医生详情
This commit is contained in:
parent
dc09f9b497
commit
2e2e622bc8
@ -10,5 +10,4 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -26,9 +26,10 @@ export function applyCA(id){//申请证书
|
|||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function applySign(id){//申请签章
|
export function applySign(data){//申请签章
|
||||||
return request({
|
return request({
|
||||||
url:'/admin/ca/cert/user/'+id,
|
url:'/admin/ca/sign',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -245,12 +245,12 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
<div class="titlebox">
|
<div class="titlebox" v-if="Object.keys(modalForm.user_doctor_info).length != 0">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">医师证件</div>
|
<div class="name">医师证件</div>
|
||||||
</div>
|
</div>
|
||||||
<a-row :gutter="24" style="margin-top: 35px;"
|
<a-row :gutter="24" style="margin-top: 35px;"
|
||||||
v-if="(modalForm.user_doctor_info.license_cert && modalForm.user_doctor_info.license_cert.length>0) || modalSatus!='detail'">
|
v-if="(modalForm.user_doctor_info.license_cert && modalForm.user_doctor_info.license_cert.length>0) || modalSatus!='detail'">
|
||||||
|
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="titletip"><span
|
<div class="titletip"><span
|
||||||
@ -372,8 +372,31 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-show="modalSatus!='detail'" />
|
<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="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-col :span="24">
|
||||||
|
<a-form-item field="" label="" no-style>
|
||||||
|
<div>证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||||
|
<a-space style="margin-top: 15px;">
|
||||||
|
<!-- <a-button type="primary" >证书申请</a-button> -->
|
||||||
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}">证书续期</a-button>
|
||||||
|
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=3;}">证书注销</a-button>
|
||||||
|
</a-space>
|
||||||
|
<a-divider />
|
||||||
|
<div class="title">签章配置</div>
|
||||||
|
<a-space style="margin-top: 15px;">
|
||||||
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=4;}">签章申请</a-button>
|
||||||
|
<!-- <a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=5;}">签章更新</a-button> -->
|
||||||
|
</a-space>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
<a-divider v-show="modalSatus!='detail' " 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="modalSatus!='detail'">
|
<div class="titlebox" v-if="modalSatus!='detail'">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">操作</div>
|
<div class="name">操作</div>
|
||||||
@ -399,6 +422,7 @@ import { reactive, ref, getCurrentInstance,watch,toRefs,onMounted } from 'vue';
|
|||||||
import { getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
import { getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
||||||
import { ossSign, ossUpload } from '@/api/oss';
|
import { ossSign, ossUpload } from '@/api/oss';
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
import { parseTime } from '@/utils/parseTime';
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 是否显示
|
// 是否显示
|
||||||
@ -421,6 +445,8 @@ watch(()=>props.doctorVisible,(value)=>{
|
|||||||
doctorVisible.value=value
|
doctorVisible.value=value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const okVisible=ref(false)
|
||||||
|
const okStatus=ref(1); //1保存 2证书续期 3//证书注销 //4申请签章 //5更新签章
|
||||||
watch(()=>props.doctor_id,(value)=>{
|
watch(()=>props.doctor_id,(value)=>{
|
||||||
if(doctor_id){
|
if(doctor_id){
|
||||||
doctor_id.value=value
|
doctor_id.value=value
|
||||||
|
|||||||
@ -417,7 +417,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.doctor_bank_card"/>
|
<a-divider v-if="modalForm.doctor_bank_card"/>
|
||||||
<div class="titlebox" v-if="(modalForm.user_doctor_info.license_cert && modalForm.user_doctor_info.license_cert.length>0) || modalSatus!='detail'">
|
<div class="titlebox" v-if="Object.keys(modalForm.user_doctor_info).length != 0">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">医师证件</div>
|
<div class="name">医师证件</div>
|
||||||
</div>
|
</div>
|
||||||
@ -557,15 +557,15 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="(modalForm.user_doctor_info.license_cert && modalForm.user_doctor_info.license_cert.length>0) || modalSatus!='detail'"/>
|
<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">
|
<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="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">CA证书配置</div>
|
<div class="name">CA证书配置</div>
|
||||||
</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">
|
<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-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item field="" label="" no-style>
|
<a-form-item field="" label="" no-style>
|
||||||
<div>证书有效期:2023.02.01-2023.08.01</div>
|
<div>证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||||
<a-space style="margin-top: 15px;">
|
<a-space style="margin-top: 15px;">
|
||||||
<!-- <a-button type="primary" >证书申请</a-button> -->
|
<!-- <a-button type="primary" >证书申请</a-button> -->
|
||||||
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}">证书续期</a-button>
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}">证书续期</a-button>
|
||||||
@ -575,16 +575,14 @@
|
|||||||
<a-divider />
|
<a-divider />
|
||||||
<div class="title">签章配置</div>
|
<div class="title">签章配置</div>
|
||||||
<a-space style="margin-top: 15px;">
|
<a-space style="margin-top: 15px;">
|
||||||
<!-- <a-button type="primary" >证书申请</a-button> -->
|
|
||||||
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=4;}">签章申请</a-button>
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=4;}">签章申请</a-button>
|
||||||
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=5;}">签章更新</a-button>
|
<!-- <a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=5;}">签章更新</a-button> -->
|
||||||
|
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
<a-divider v-show="modalSatus!='detail' " v-if="modalForm.department_custom_name && modalForm.iden_auth_status==1 && modalForm.user_doctor_info.sign_image"/>
|
<a-divider v-show="modalSatus!='detail' " 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="modalSatus!='detail'">
|
<div class="titlebox" v-if="modalSatus!='detail'">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">操作</div>
|
<div class="name">操作</div>
|
||||||
@ -623,10 +621,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
import { reactive, ref, getCurrentInstance, onMounted, watch } from 'vue';
|
||||||
import { getDoctorList, addDoctor, removeDoctor, updateDoctor, getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
import { getDoctorList, addDoctor, removeDoctor, updateDoctor, getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
||||||
import { updateCA,removeCA,updateSign,applySign } from '@/api/doctor/ca';
|
import { updateCA,removeCA,updateSign,applySign } from '@/api/doctor/ca';
|
||||||
import { ossSign, ossUpload } from '@/api/oss';
|
import { ossSign, ossUpload } from '@/api/oss';
|
||||||
|
import { parseTime } from '@/utils/parseTime';
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
// Akiraka 20230210 删除数据
|
// Akiraka 20230210 删除数据
|
||||||
const deleteData = ref([])
|
const deleteData = ref([])
|
||||||
@ -665,6 +664,9 @@
|
|||||||
},
|
},
|
||||||
user_doctor_info: {
|
user_doctor_info: {
|
||||||
card_num_mask:''
|
card_num_mask:''
|
||||||
|
},
|
||||||
|
user_ca_cert:{
|
||||||
|
|
||||||
},
|
},
|
||||||
doctor_bank_card: {
|
doctor_bank_card: {
|
||||||
province_id:'',
|
province_id:'',
|
||||||
@ -1161,7 +1163,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleApplySign=()=>{
|
const handleApplySign=()=>{
|
||||||
applySign(modalForm.user_doctor_info.user_id).then(data=>{
|
applySign({
|
||||||
|
type:2,
|
||||||
|
user_id:modalForm.user_doctor_info.user_id
|
||||||
|
}).then(data=>{
|
||||||
let result=data.data;
|
let result=data.data;
|
||||||
if(result.code==200){
|
if(result.code==200){
|
||||||
proxy.$message.success('签章申请成功');
|
proxy.$message.success('签章申请成功');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user