From 660981cbcbaa6040b34456f6f16ebf5778b85dbf Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Fri, 21 Feb 2025 11:19:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(collectCode):=20=E6=B7=BB=E5=8A=A0=20PDF?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=9F=A5=E7=9C=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 pdfView 组件用于显示 PDF 文件 - 在协议页面中集成 pdfView 组件 - 实现拍卖笔录 PDF 的动态加载 - 优化协议列表数据结构和显示逻辑 --- .../collectCode/signature/protocol/index.vue | 130 +++++++++++++----- .../signature/protocol/pdfView/index.vue | 68 +++++++++ app/pages/signature/protocol/index.vue | 10 +- 3 files changed, 165 insertions(+), 43 deletions(-) create mode 100644 app/pages/collectCode/signature/protocol/pdfView/index.vue diff --git a/app/pages/collectCode/signature/protocol/index.vue b/app/pages/collectCode/signature/protocol/index.vue index 00f1e35..157e93a 100644 --- a/app/pages/collectCode/signature/protocol/index.vue +++ b/app/pages/collectCode/signature/protocol/index.vue @@ -1,13 +1,57 @@ +
+
+ 支付前需同意以下内容并签字 +
- \ No newline at end of file + + + + + + + +
+ + 同意并签字 + +
+
+ \ No newline at end of file diff --git a/app/pages/collectCode/signature/protocol/pdfView/index.vue b/app/pages/collectCode/signature/protocol/pdfView/index.vue new file mode 100644 index 0000000..fc4a87d --- /dev/null +++ b/app/pages/collectCode/signature/protocol/pdfView/index.vue @@ -0,0 +1,68 @@ + + + + + \ No newline at end of file diff --git a/app/pages/signature/protocol/index.vue b/app/pages/signature/protocol/index.vue index 3513d42..dbef00e 100644 --- a/app/pages/signature/protocol/index.vue +++ b/app/pages/signature/protocol/index.vue @@ -16,10 +16,10 @@ const pmblUrl = ref('') // 存储拍卖笔录的URL // 协议列表数据 const protocolList = computed(() => [ { id: '1', title: '《拍卖公告》', pdfName: 'pmgg', type: 'local' }, - { id: '2', title: '《竞买协议》', pdfName: 'jmxy', type: 'local' }, + { id: '2', title: '《拍卖规则》', pdfName: 'pmgz', type: 'local' }, { id: '3', title: '《竞买须知》', pdfName: 'jmxz', type: 'local' }, - { id: '4', title: '《拍卖笔录》', pdfName: pmblUrl.value, type: 'remote' }, - { id: '5', title: '《拍卖规则》', pdfName: 'pmgz', type: 'local' }, + { id: '4', title: '《竞买协议》', pdfName: 'jmxy', type: 'local' }, + { id: '5', title: '《拍卖笔录成交确认书》', pdfName: pmblUrl.value, type: 'remote' }, { id: '6', title: '《拍卖移交确认书》', pdfName: 'pmyjqrs', type: 'local' } ]) @@ -27,7 +27,7 @@ const protocolList = computed(() => [ const fetchPmblPdf = async () => { try { const res = await contractView({ - auctionArtworkUuid: "bb34b20a-3e5e-441a-9692-c26e08b2ffed", + auctionArtworkUuid: payment.value.auctionArtworkUuid, }) pmblUrl.value = res.data?.viewUrl // 假设接口返回的PDF URL在data字段中 } catch (error) { @@ -39,7 +39,7 @@ const fetchPmblPdf = async () => { const handleCollapseChange = (name) => { activeNames.value = name // 当打开拍卖笔录时获取PDF - if (name === '4' && !pmblUrl.value) { + if (name === '5' && !pmblUrl.value) { fetchPmblPdf() } }