diff --git a/app/components/HjcEnterpriseForm.vue b/app/components/HjcEnterpriseForm.vue index 10fdb9e..c3b9eab 100644 --- a/app/components/HjcEnterpriseForm.vue +++ b/app/components/HjcEnterpriseForm.vue @@ -106,6 +106,20 @@

证件上传(单张不超过 5M)

+ + +
+ 还没有授权委托书?先下载模板,填写并加盖公章后再上传: + + {{ AUTHORIZE_TEMPLATE.filename }} + + (Word 文档) +
+
{{ m.label }}
@@ -180,6 +194,21 @@ const INVOICE_TYPES = [ /** 基本户账号:与后端 validateRegister 一致,仅做长度与字符校验(纯数字 8-32 位) */ const BANK_ACCOUNT_NO_RE = /^[0-9]{8,32}$/ +/** + * 授权委托书模板(供用户下载后填写盖章再上传)。 + * + * 文件是**官网自身的静态资源**(`public/files/`),不走后端文件服务器:它是固定的空白模板, + * 没有按租户/按订单区分的内容,放进静态目录由 Nuxt 直接下发即可;H5 端同一份文件另存于 + * `hjc-h5/public/files/`(两个前端各自独立部署,不共享 public 目录)。 + * + * 路径**在构建期就百分号编码好**:文件名是中文,直接写进 `href` 虽然浏览器多能容错, + * 但 `download` 属性给出的中文文件名与 URL 之间会因编码不一致而在部分浏览器上失效。 + */ +const AUTHORIZE_TEMPLATE = { + url: '/files/%E6%8E%88%E6%9D%83%E5%A7%94%E6%89%98%E4%B9%A6%E6%A8%A1%E6%9D%BF.docx', + filename: '授权委托书模板.docx' +} + async function onPick(m: any, e: Event) { const input = e.target as HTMLInputElement const file = input.files?.[0] diff --git a/public/files/授权委托书模板.docx b/public/files/授权委托书模板.docx new file mode 100644 index 0000000..40053df Binary files /dev/null and b/public/files/授权委托书模板.docx differ