|
@@ -1027,6 +1027,9 @@ export default {
|
|
|
},
|
|
|
//计算金额
|
|
|
totalAmount(scope, item) {
|
|
|
+ if (item.label === 'fPurchase') {
|
|
|
+ this.$set(scope.row,'fQty',scope.row.fPurchase)
|
|
|
+ }
|
|
|
if (item.label === 'fAmount') {
|
|
|
if (scope.row.fAmount && scope.row.fQty) {
|
|
|
this.$set(scope.row, 'fUnitprice', (scope.row.fAmount / scope.row.fQty).toFixed(2))
|