Commit 9763ea54 by Sweet Zhang

新增流程注释代码解开

parent 4b9c18bc
...@@ -394,26 +394,12 @@ const handleSelectionChange = (rows) => { ...@@ -394,26 +394,12 @@ const handleSelectionChange = (rows) => {
// 下载模板 // 下载模板
const downloadTemplate = () => { const downloadTemplate = () => {
const templateData = [ // 下载地址
{ const templateUrl = 'https://yd-ali-oss.oss-cn-shanghai-finance-1-pub.aliyuncs.com/xlsx/2025/10/14/54ce715eabab4f1abd8652ba0fca0c51.xlsx'
policyNo: '示例保单号', // 修改下载文件名
reconciliationCompany: '对账公司代码', const fileName = '对账单导入模板.xlsx'
currentPeriod: '1', // 下载文件
totalPeriods: '12', window.open(templateUrl, '_blank', `download=${fileName}-${new Date().getTime()}`)
incomeItem: '入账项目',
incomeAmount: '1000',
currency: 'CNY',
incomeDate: '2024-01-01',
remark: '备注信息'
}
]
const worksheet = XLSX.utils.json_to_sheet(templateData)
const workbook = XLSX.utils.book_new()
XLSX.utils.book_append_sheet(workbook, worksheet, '对账单模板')
XLSX.writeFile(workbook, '对账单导入模板.xlsx')
ElMessage.success('模板下载成功')
} }
......
...@@ -375,7 +375,7 @@ const handleBack = () => { ...@@ -375,7 +375,7 @@ const handleBack = () => {
if (route.query.type == 'add') { if (route.query.type == 'add') {
console.log('add router', router) console.log('add router', router)
// getAddInfo() getAddInfo()
} else if (route.query.type == 'edit') { } else if (route.query.type == 'edit') {
setTimeout(() => { setTimeout(() => {
getProcessInfo(route.query.fnaBizId) getProcessInfo(route.query.fnaBizId)
......
...@@ -556,6 +556,11 @@ const handleImport = async () => { ...@@ -556,6 +556,11 @@ const handleImport = async () => {
// 下载模板 // 下载模板
const downloadTemplate = () => { const downloadTemplate = () => {
// 下载地址 // 下载地址
const templateUrl = 'https://yd-ali-oss.oss-cn-shanghai-finance-1-pub.aliyuncs.com/xlsx/2025/10/14/54ce715eabab4f1abd8652ba0fca0c51.xlsx'
// 修改下载文件名
const fileName = '保单导入模板.xlsx'
// 下载文件
window.open(templateUrl, '_blank', `download=${fileName}-${new Date().getTime()}`)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment