Explorar o código

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

caojunjie %!s(int64=3) %!d(string=hai) anos
pai
achega
ee32079973
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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))