diff --git a/index.html b/index.html index b47ba07..89d5c65 100644 --- a/index.html +++ b/index.html @@ -10,5 +10,4 @@
- diff --git a/src/api/doctor/ca.js b/src/api/doctor/ca.js index b651fda..4353bf1 100644 --- a/src/api/doctor/ca.js +++ b/src/api/doctor/ca.js @@ -26,9 +26,10 @@ export function applyCA(id){//申请证书 }) } - export function applySign(id){//申请签章 + export function applySign(data){//申请签章 return request({ - url:'/admin/ca/cert/user/'+id, + url:'/admin/ca/sign', method: 'post', + data }) } \ No newline at end of file diff --git a/src/components/doctorModal.vue b/src/components/doctorModal.vue index f90c0e8..87327a3 100644 --- a/src/components/doctorModal.vue +++ b/src/components/doctorModal.vue @@ -245,12 +245,12 @@ -
+
医师证件
+ v-if="(modalForm.user_doctor_info.license_cert && modalForm.user_doctor_info.license_cert.length>0) || modalSatus!='detail'">
- + +
+
+
CA证书配置
+
+ + + +
证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}
+ + + 证书续期 + 证书注销 + + +
签章配置
+ + 签章申请 + + +
+
+
+
操作
@@ -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 { ossSign, ossUpload } from '@/api/oss'; import dayjs from 'dayjs' +import { parseTime } from '@/utils/parseTime'; const { proxy } = getCurrentInstance(); const props = defineProps({ // 是否显示 @@ -421,6 +445,8 @@ watch(()=>props.doctorVisible,(value)=>{ doctorVisible.value=value } }) +const okVisible=ref(false) +const okStatus=ref(1); //1保存 2证书续期 3//证书注销 //4申请签章 //5更新签章 watch(()=>props.doctor_id,(value)=>{ if(doctor_id){ doctor_id.value=value diff --git a/src/views/doctor/doctor-list/index.vue b/src/views/doctor/doctor-list/index.vue index d0743fb..76a4143 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -417,7 +417,7 @@ -
+
医师证件
@@ -557,15 +557,15 @@ - -
+ +
CA证书配置
- + -
证书有效期:2023.02.01-2023.08.01
+
证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}
证书续期 @@ -575,16 +575,14 @@
签章配置
- 签章申请 - 签章更新 - +
- +
操作
@@ -623,10 +621,11 @@