jiangping
2024-05-11 c0ba1a5cc234d127c59bfa56b759f6c960741b67
company/src/components/enterprise/additionSubtractionApplication.vue
@@ -148,7 +148,7 @@
                label="费用">
                <template slot-scope="{row}">
                    <span v-if="activeName === '0'">{{row.fee}}</span>
                    <span v-else>{{row.fee ? '-' + row.fee : ''}}</span>
                    <span v-else>{{row.reducePrice ?  row.reducePrice : '0'}}</span>
                </template>
            </el-table-column>
          <el-table-column
@@ -279,12 +279,12 @@
        validTime: e
      }).then(res => {
        this.price = res.cyclePrice
        this.reducePrice=res.reducePrice
        this.reducePrice= 0
        this.form.addDetailList.forEach(item => {
          item.fee = res.cyclePrice
        })
        this.form.delDetailList.forEach(item => {
          item.fee = res.reducePrice
          // item.fee = item.reducePrice
        })
      }).catch(e => {
        this.$tip.apiFailed(e)
@@ -350,9 +350,9 @@
            sums[index] = total.toFixed(2)
          } else {
            this.form.delDetailList.forEach(item => {
              total += item.fee
              total += item.reducePrice
            })
            sums[index] = '-' + total.toFixed(2)
            sums[index] =  total.toFixed(2)
          }
        }
      })