jiangping
2024-05-15 f5ea01314df6f552e8b15b1af283a7b278610ab6
wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
@@ -374,7 +374,12 @@
    // 总金额
    totalPrice: function totalPrice() {
      // return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
      return (this.cyclePrice * this.add.length - this.cyclePrice * this.del.length).toFixed(2);
      var totalReductPrice = 0;
      this.del.forEach(function (item) {
        totalReductPrice = totalReductPrice + item.fee;
      });
      // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
      return (this.cyclePrice * this.add.length + totalReductPrice).toFixed(2);
    }
  },
  methods: {
@@ -411,7 +416,7 @@
          memberName: item.name,
          workTypeName: item.gzName,
          worktypeId: item.gzId,
          fee: _this2.cyclePrice
          fee: item.fee
        };
      });
      this.$u.api.applyChangeCreate({