From a3589b208d418dea55673df33c7ded06553798a2 Mon Sep 17 00:00:00 2001 From: Zhao Date: Wed, 7 Jan 2026 11:34:07 +0800 Subject: [PATCH] =?UTF-8?q?E=E7=AD=BE=E5=AE=9Dv3=20=E6=B3=95=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contracted/fbf.js | 18 +++++ src/views/sunVillage_info/list_fbfsq.vue | 93 ++++++++++++++++++++---- 2 files changed, 97 insertions(+), 14 deletions(-) diff --git a/src/api/contracted/fbf.js b/src/api/contracted/fbf.js index 5a363ad6..f2ee0712 100644 --- a/src/api/contracted/fbf.js +++ b/src/api/contracted/fbf.js @@ -88,3 +88,21 @@ export function authorizeOrgSealFinished(id, redirectUrl) { params: {redirectUrl}, }); } + +// 发包方企业印章授权(法人) +export function authorizeLegalSeal(id, redirectUrl) { + return request({ + url: '/service/fbf/authorize/legalSeal/' + id, + method: 'post', + params: {redirectUrl}, + }); +} + +// 发包方企业印章授权完成(法人) +export function authorizeLegalSealFinished(id, redirectUrl) { + return request({ + url: '/service/fbf/authorizeFinished/legalSeal/' + id, + method: 'post', + params: {redirectUrl}, + }); +} diff --git a/src/views/sunVillage_info/list_fbfsq.vue b/src/views/sunVillage_info/list_fbfsq.vue index f942171e..51cbfe57 100644 --- a/src/views/sunVillage_info/list_fbfsq.vue +++ b/src/views/sunVillage_info/list_fbfsq.vue @@ -32,16 +32,24 @@ -
- - 个人授权 - - - 企业授权 - - +
+
+ + 个人授权 + + + 企业授权 + +
+ +
+ 企业印章授权 - + + + 法人印章授权 + +
@@ -52,13 +60,11 @@ // import { getList} from "@/api/sunVillage_info/sysCbf"; import { listFbf, - authorizeSignaturePerson, authorizeSignaturePsn, authorizeSignatureOrg, - authorizeOrgSeal + authorizeOrgSeal, + authorizeLegalSeal } from "@/api/contracted/fbf"; - import $ from "jquery"; - import router from "@/router"; export default { name: "certificateList", data() { @@ -88,6 +94,12 @@ this.callbackAuthorizationOrgSeal(id); }); break; + case 'legalSeal': + this.getFbfList().then((id) => { + console.log('法人印章授权回调'); + this.callbackAuthorizationLegalSeal(id); + }); + break; default: this.getFbfList(); break; @@ -227,6 +239,54 @@ back() { this.$router.push({path:'/sunVillage_info/index'}); }, + handleAuthorizationLegalSeal(id) { + authorizeLegalSeal(id, this.getUrl('legalSeal')).then(response => { + if (response.code === 200) { + if(response.data.realname) + { + this.$toast({ + icon: 'success', + message: '授权成功', + duration: '1000', + onClose: () => { + this.getFbfList(); + } + }) + } + else + { + console.log('打开E签宝法人印章授权页面: ' + response.data.authUrl); + this.$toast({ + icon: 'fail', + message: '将跳转至法人印章授权页面', + duration: '1000', + onClose: () => { + window.location.href = (response.data.authUrl); + } + }); + } + } + }); + }, + callbackAuthorizationLegalSeal(id) { + authorizeLegalSeal(id, this.getUrl(/*'legalSeal'*/)).then(response => { + if (response.code === 200) { + if(response.data.realname) + { + this.reload(); + } + else + { + console.log('E签宝法人印章授权失败'); + this.$toast({ + icon: 'fail', + message: '企业法人授权失败', + duration: '1000', + }); + } + } + }); + }, }, } @@ -289,9 +349,14 @@ border-radius: 15PX; box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1); - .auth-button { + .auth-container { + text-align: center; margin-bottom: .1rem; } + .auth-button { + max-width: 38%; + display: inline-block; + } } .titBox {