From 5f40cb7d41080119a1e690f38373459a02a78cfb Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Fri, 27 Oct 2023 17:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/doctor/ca.js | 16 +- src/views/dictionary/sign-list/index.vue | 210 +++++++++++++++++++++++ src/views/doctor/doctor-list/index.vue | 19 +- 3 files changed, 235 insertions(+), 10 deletions(-) create mode 100644 src/views/dictionary/sign-list/index.vue diff --git a/src/api/doctor/ca.js b/src/api/doctor/ca.js index 4353bf1..4f8d492 100644 --- a/src/api/doctor/ca.js +++ b/src/api/doctor/ca.js @@ -32,4 +32,18 @@ export function applyCA(id){//申请证书 method: 'post', data }) - } \ No newline at end of file + } + export function getCA(){//获取云证书数据 + return request({ + url:'/admin/ca/cert/hospital', + method: 'get' + }) + } + export function updateHospitalCA(){//更新证书 + return request({ + url:'/admin/ca/cert/hospital/renew', + method: 'put', + + }) + } + \ No newline at end of file diff --git a/src/views/dictionary/sign-list/index.vue b/src/views/dictionary/sign-list/index.vue new file mode 100644 index 0000000..2bacd7d --- /dev/null +++ b/src/views/dictionary/sign-list/index.vue @@ -0,0 +1,210 @@ + + + + + {deleteData = selection;console.log(selection)}" + @page-change="handlePageChange" @page-size-change="handlepage_sizeChange"> + + {{(rowIndex+1)+(pager.page-1)*10}} + + + {{ parseTime(record.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(record.cert_expire_time,'{y}-{m}-{d}')}} + + + + 肝胆相照互联网医院签章 + + + + + 证书续期 + + + + + + okVisible=false"> + + 提示 + + 确定保存当前信息? + + + + + + + \ No newline at end of file diff --git a/src/views/doctor/doctor-list/index.vue b/src/views/doctor/doctor-list/index.vue index 90a238d..77fe057 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -626,6 +626,7 @@ import { updateCA,removeCA,updateSign,applySign } from '@/api/doctor/ca'; import { ossSign, ossUpload } from '@/api/oss'; import { parseTime } from '@/utils/parseTime'; + import { Message } from '@arco-design/web-vue'; import dayjs from 'dayjs' // Akiraka 20230210 删除数据 const deleteData = ref([]) @@ -1133,7 +1134,7 @@ oldBackImg.value = id_card_back; oldSignImg.value = sign_image; if (modalForm.iden_auth_status == 2) { - proxy.$message.warning('正在审核中,暂时不能修改'); + Message.warning('正在审核中,暂时不能修改'); } if (data.doctor_expertise && data.doctor_expertise.length > 0) { let arr = []; @@ -1150,7 +1151,7 @@ updateCA(modalForm.user_doctor_info.user_id).then(data=>{ let result=data.data; if(result.code==200){ - proxy.$message.success('证书更新成功'); + Message.success('证书更新成功'); } }) } @@ -1158,7 +1159,7 @@ removeCA(modalForm.user_doctor_info.user_id).then(data=>{ let result=data.data; if(result.code==200){ - proxy.$message.success('证书注销成功'); + Message.success('证书注销成功'); } }) } @@ -1169,7 +1170,7 @@ }).then(data=>{ let result=data.data; if(result.code==200){ - proxy.$message.success('签章申请成功'); + Message.success('签章申请成功'); } }) } @@ -1177,7 +1178,7 @@ updateSign(modalForm.user_doctor_info.user_id).then(data=>{ let result=data.data; if(result.code==200){ - proxy.$message.success('签章更新成功'); + Message.success('签章更新成功'); } }) } @@ -1327,7 +1328,7 @@ } else { console.log(valid) - proxy.$message.error('表单校验失败'); + Message.error('表单校验失败'); //done(false); } }); @@ -1357,15 +1358,15 @@ hideCancel: false, onOk: async () => { const res = await removeDoctor({ ids: batchList }); - proxy.$message.success(res.message); + Message.success(res.message); getDoctorInfo(pager); }, onCancel: () => { - proxy.$message.info('已取消批量删除数据'); + Message.info('已取消批量删除数据'); }, }); } else { - proxy.$message.error('请勾选需要删除的数据!'); + Message.error('请勾选需要删除的数据!'); } };