浏览代码

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

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