Merge: fix ossId精度丢失
This commit is contained in:
@@ -360,7 +360,7 @@ export default {
|
|||||||
items.forEach((item, i) => {
|
items.forEach((item, i) => {
|
||||||
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
|
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
|
||||||
this.invoiceItems.push({
|
this.invoiceItems.push({
|
||||||
ossId: Number(ossId),
|
ossId: ossId,
|
||||||
itemName: item.itemName || '',
|
itemName: item.itemName || '',
|
||||||
reason,
|
reason,
|
||||||
amount: item.amount || 0,
|
amount: item.amount || 0,
|
||||||
@@ -370,7 +370,7 @@ export default {
|
|||||||
} else if (totalAmount) {
|
} else if (totalAmount) {
|
||||||
// 没有明细时用总金额创建一条,事由取发票头部信息
|
// 没有明细时用总金额创建一条,事由取发票头部信息
|
||||||
this.invoiceItems.push({
|
this.invoiceItems.push({
|
||||||
ossId: Number(ossId),
|
ossId: ossId,
|
||||||
itemName: sellerName || '',
|
itemName: sellerName || '',
|
||||||
reason: prefix || '',
|
reason: prefix || '',
|
||||||
amount: totalAmount,
|
amount: totalAmount,
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ export default {
|
|||||||
items.forEach((item, i) => {
|
items.forEach((item, i) => {
|
||||||
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
|
const reason = [prefix, item.itemName].filter(Boolean).join(' / ')
|
||||||
this.invoiceItems.push({
|
this.invoiceItems.push({
|
||||||
ossId: Number(ossId),
|
ossId: ossId,
|
||||||
itemName: item.itemName || '',
|
itemName: item.itemName || '',
|
||||||
reason,
|
reason,
|
||||||
amount: item.amount || 0,
|
amount: item.amount || 0,
|
||||||
@@ -345,7 +345,7 @@ export default {
|
|||||||
} else if (totalAmount) {
|
} else if (totalAmount) {
|
||||||
// 没有明细时用总金额创建一条,事由取发票头部信息
|
// 没有明细时用总金额创建一条,事由取发票头部信息
|
||||||
this.invoiceItems.push({
|
this.invoiceItems.push({
|
||||||
ossId: Number(ossId),
|
ossId: ossId,
|
||||||
itemName: sellerName || '',
|
itemName: sellerName || '',
|
||||||
reason: prefix || '',
|
reason: prefix || '',
|
||||||
amount: totalAmount,
|
amount: totalAmount,
|
||||||
|
|||||||
Reference in New Issue
Block a user