Преглед изворни кода

修改采购申请修改实际数量

caojunjie пре 3 година
родитељ
комит
ee32079973
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/views/purchaseRequest/index.vue

+ 3 - 0
src/views/purchaseRequest/index.vue

@@ -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))