fix(报销/拨款): 修复ossId精度丢失导致附件下载失败

Number() 会将超出 JS 安全整数范围的雪花ID末位截断,
改为直接保留后端返回的字符串,保持精度。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 18:32:09 +08:00
parent 5672b1c07a
commit 6055f06f83
2 changed files with 4 additions and 4 deletions

View File

@@ -360,7 +360,7 @@ export default {
items.forEach((item, i) => {
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
this.invoiceItems.push({
ossId: Number(ossId),
ossId: ossId,
itemName: item.itemName || '',
reason,
amount: item.amount || 0,
@@ -370,7 +370,7 @@ export default {
} else if (totalAmount) {
// 没有明细时用总金额创建一条,事由取发票头部信息
this.invoiceItems.push({
ossId: Number(ossId),
ossId: ossId,
itemName: sellerName || '',
reason: prefix || '',
amount: totalAmount,

View File

@@ -335,7 +335,7 @@ export default {
items.forEach((item, i) => {
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
this.invoiceItems.push({
ossId: Number(ossId),
ossId: ossId,
itemName: item.itemName || '',
reason,
amount: item.amount || 0,
@@ -345,7 +345,7 @@ export default {
} else if (totalAmount) {
// 没有明细时用总金额创建一条,事由取发票头部信息
this.invoiceItems.push({
ossId: Number(ossId),
ossId: ossId,
itemName: sellerName || '',
reason: prefix || '',
amount: totalAmount,