|
@@ -331,15 +331,8 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <!-- v-if="scope.row.rebateRate" -->
|
|
|
|
- <template >
|
|
|
|
|
|
+ {{(scope.row.price -(scope.row.qty * scope.row.discAmount) -(((scope.row.price - scope.row.discAmount) * scope.row.qty * ((scope.row.rebateRate || 0) * 100)) / 100))*scope.row.qty | numToFixed }}
|
|
<!-- {{ (((scope.row.price * scope.row.qty) * 100 - ((scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100) * 100 - ((scope.row.qty * (scope.row.discAmount * 100)) / 100) * 100) / 100) | numToFixed }} -->
|
|
<!-- {{ (((scope.row.price * scope.row.qty) * 100 - ((scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100) * 100 - ((scope.row.qty * (scope.row.discAmount * 100)) / 100) * 100) / 100) | numToFixed }} -->
|
|
- {{((scope.row.price * scope.row.qty) * 100 - ((scope.row.price * scope.row.qty * ((scope.row.rebateRate||0) * 100)) / 100) * 100 - ((scope.row.qty * (scope.row.discAmount * 100)) / 100) * 100) / 100}}
|
|
|
|
-
|
|
|
|
- </template>
|
|
|
|
- <!-- <template v-else>
|
|
|
|
- {{ (scope.row.price*scope.row.qty ) | numToFixed }}
|
|
|
|
- </template> -->
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -946,6 +939,15 @@ export default {
|
|
// };
|
|
// };
|
|
// },
|
|
// },
|
|
},
|
|
},
|
|
|
|
+ watch: {
|
|
|
|
+ goodsList: {
|
|
|
|
+ handler(newValue, oldValue) {
|
|
|
|
+ this.goodsList = newValue
|
|
|
|
+ },
|
|
|
|
+ immediate: true,
|
|
|
|
+ deep: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
|
|
created() {
|
|
created() {
|
|
this.getDictList()
|
|
this.getDictList()
|
|
@@ -1369,7 +1371,7 @@ export default {
|
|
this.$set(this.multipleData[i], 'customerWalletId', this.multipleData[i].wallets[0].customerWalletId)
|
|
this.$set(this.multipleData[i], 'customerWalletId', this.multipleData[i].wallets[0].customerWalletId)
|
|
this.$set(this.multipleData[i], 'serviceName', this.multipleData[i].wallets[0].serviceName)
|
|
this.$set(this.multipleData[i], 'serviceName', this.multipleData[i].wallets[0].serviceName)
|
|
this.$set(this.multipleData[i], 'serviceId', this.multipleData[i].wallets[0].serviceId)
|
|
this.$set(this.multipleData[i], 'serviceId', this.multipleData[i].wallets[0].serviceId)
|
|
- this.$set(this.multipleData[i],'amount', 0.00)
|
|
|
|
|
|
+ this.$set(this.multipleData[i],'amount', 0)
|
|
}
|
|
}
|
|
arrData = [...arrData, ...this.multipleData[i]]
|
|
arrData = [...arrData, ...this.multipleData[i]]
|
|
}
|
|
}
|
|
@@ -1424,7 +1426,7 @@ export default {
|
|
this.$set(this.multipleSelections[i][j], 'customerWalletId', this.multipleSelections[i][j].wallets[0].customerWalletId)
|
|
this.$set(this.multipleSelections[i][j], 'customerWalletId', this.multipleSelections[i][j].wallets[0].customerWalletId)
|
|
this.$set(this.multipleSelections[i][j], 'serviceName', this.multipleSelections[i][j].wallets[0].serviceName)
|
|
this.$set(this.multipleSelections[i][j], 'serviceName', this.multipleSelections[i][j].wallets[0].serviceName)
|
|
this.$set(this.multipleSelections[i][j], 'serviceId', this.multipleSelections[i][j].wallets[0].serviceId)
|
|
this.$set(this.multipleSelections[i][j], 'serviceId', this.multipleSelections[i][j].wallets[0].serviceId)
|
|
- this.$set(this.multipleSelections[i][j],'amount',0.00)
|
|
|
|
|
|
+ this.$set(this.multipleSelections[i][j],'amount',0)
|
|
}
|
|
}
|
|
arrData = [...arrData, this.multipleSelections[i][j]]
|
|
arrData = [...arrData, this.multipleSelections[i][j]]
|
|
}
|
|
}
|
|
@@ -1495,7 +1497,7 @@ export default {
|
|
this.$set(item, 'userList', this.userList)
|
|
this.$set(item, 'userList', this.userList)
|
|
item.rebateWallets.forEach(j=>{
|
|
item.rebateWallets.forEach(j=>{
|
|
if (j.customerWalletId2 === data.customerWalletId2) {
|
|
if (j.customerWalletId2 === data.customerWalletId2) {
|
|
- this.$set(item, 'amount', j.amount||0.00)
|
|
|
|
|
|
+ this.$set(item, 'amount', j.amount||0)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
item.wallets.forEach((k) => {
|
|
item.wallets.forEach((k) => {
|
|
@@ -1780,10 +1782,10 @@ export default {
|
|
return e === k.customerWalletId
|
|
return e === k.customerWalletId
|
|
})[0]
|
|
})[0]
|
|
this.$set(row, 'rebateRate', (obj.rebateRate || 0))
|
|
this.$set(row, 'rebateRate', (obj.rebateRate || 0))
|
|
- this.$set(row,'amount',obj.amount || 0.00)
|
|
|
|
|
|
+ this.$set(row,'amount',obj.amount || 0)
|
|
} else {
|
|
} else {
|
|
this.$set(row, 'rebateRate', 0)
|
|
this.$set(row, 'rebateRate', 0)
|
|
- this.$set(row,'amount',0.00)
|
|
|
|
|
|
+ this.$set(row,'amount',0)
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|