MrShi
2025-07-02 39ae52b3f65e2bba3b6570adb51e791cb3befff7
wx/pages/addition_subtraction/addition_subtraction.vue
@@ -138,6 +138,11 @@
         this.code = options.code
         this.startDate = options.startDate
         this.cyclePrice = options.cyclePrice
         if (options.title) {
            uni.setNavigationBarTitle({
               title: options.title
            });
         }
         this.getDetails()
         uni.$on('add', (res) => {
            if (JSON.stringify(this.add).indexOf(res.model.idCard) !== -1) {
@@ -157,7 +162,12 @@
         // 总金额
         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(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: {
@@ -193,7 +203,7 @@
                  memberName: item.name,
                  workTypeName: item.gzName,
                  worktypeId: item.gzId,
                  fee: this.cyclePrice
                  fee: item.fee
               }
            })
            this.$u.api.applyChangeCreate({