解决单据关联跳转的时候优化金额计算精度的问题(解决单据跳转时计算的bug)
This commit is contained in:
@@ -405,7 +405,10 @@
|
|||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
let discount = 0
|
||||||
|
if(allTaxLastMoney!==0) {
|
||||||
|
discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
||||||
|
}
|
||||||
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({
|
this.form.setFieldsValue({
|
||||||
|
|||||||
@@ -449,7 +449,10 @@
|
|||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
let discount = 0
|
||||||
|
if(allTaxLastMoney!==0) {
|
||||||
|
discount = (discountMoney / allTaxLastMoney * 100).toFixed(2) - 0
|
||||||
|
}
|
||||||
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
||||||
let changeAmount = discountLastMoney
|
let changeAmount = discountLastMoney
|
||||||
if(deposit) {
|
if(deposit) {
|
||||||
|
|||||||
@@ -416,7 +416,10 @@
|
|||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
let discount = 0
|
||||||
|
if(allTaxLastMoney!==0) {
|
||||||
|
discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
||||||
|
}
|
||||||
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({
|
this.form.setFieldsValue({
|
||||||
|
|||||||
@@ -467,7 +467,10 @@
|
|||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
let discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
let discount = 0
|
||||||
|
if(allTaxLastMoney!==0) {
|
||||||
|
discount = (discountMoney/allTaxLastMoney*100).toFixed(2)-0
|
||||||
|
}
|
||||||
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
let discountLastMoney = (allTaxLastMoney - discountMoney).toFixed(2)-0
|
||||||
let changeAmount = discountLastMoney
|
let changeAmount = discountLastMoney
|
||||||
if(deposit) {
|
if(deposit) {
|
||||||
|
|||||||
Reference in New Issue
Block a user