|
@@ -1808,14 +1808,14 @@
|
|
|
// 计算金额
|
|
|
this.$set(row,'amount',Number(row.price) * Number(row.quantity?row.quantity:0))
|
|
|
if (row.curCode == 'CNY') {
|
|
|
- this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmount','')
|
|
|
- this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
- this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
- this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
}
|
|
@@ -1856,14 +1856,14 @@
|
|
|
}
|
|
|
this.$set(row,'amount',Number(row.price?row.price:0) * Number(row.quantity?row.quantity:0))
|
|
|
if (row.curCode == 'CNY') {
|
|
|
- this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmount','')
|
|
|
- this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
- this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
- this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
} else if (name == 'elementsCnName') {
|
|
@@ -1904,14 +1904,14 @@
|
|
|
this.$set(row,'exrate',item.exrate)
|
|
|
this.$set(row,'amount',Number(row.price) * Number(row.quantity?row.quantity:0))
|
|
|
if (row.curCode == 'CNY') {
|
|
|
- this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmount','')
|
|
|
- this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
- this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
- this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
}
|
|
@@ -1936,14 +1936,14 @@
|
|
|
return;
|
|
|
}
|
|
|
if (row.curCode == 'CNY') {
|
|
|
- this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmount','')
|
|
|
- this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
- this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
- this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
},
|
|
@@ -1963,10 +1963,10 @@
|
|
|
return;
|
|
|
}
|
|
|
if (row.curCode == 'CNY') {
|
|
|
- this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'usdAmount','')
|
|
|
}else {
|
|
|
- this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount',row.amount.toFixed(2))
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
}
|
|
|
},
|