yaozc
2023-10-18 605d63f34a510fa0f53c293da3802e86620397d2
Merge branch 'weicd_new' of http://192.168.1.110:5678/r/pms-upgrade into yaozc_new
1 files modified
14 ■■■■■ changed files
eladmin-web-master/src/views/salary/salary/index.vue 14 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/salary/salary/index.vue
@@ -846,6 +846,13 @@
      afterTaxAmountRandom: 0
    }
  },
  watch: {
    'crud.status.cu'(newValue) {
      if (newValue === 0) {
        this.individualIncomeTaxRandom = null
      }
    }
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
    [CRUD.HOOK.beforeRefresh]() {
@@ -928,7 +935,8 @@
      // 税前金额随机数
      this.preTaxAmountRandom = Math.random()
      // 个人所得税随机数
      this.individualIncomeTaxRandom = Math.random()
      // this.individualIncomeTaxRandom = Math.random()
      this.individualIncomeTaxRandom = 0
      // 税后金额随机数
      this.afterTaxAmountRandom = Math.random()
    },
@@ -1427,7 +1435,7 @@
          // 个人所得税
          this.form.individualIncomeTax = 0
          // 个人所得税随机数
          this.individualIncomeTaxRandom = Math.random()
          // this.individualIncomeTaxRandom = Math.random()
          // 税后金额
          this.form.afterTaxAmount = 0
          // 税后金额随机数
@@ -1818,7 +1826,7 @@
            // 个人所得税 = 税额
            this.form.individualIncomeTax = taxAmount
            // 个人所得税随机数
            this.individualIncomeTaxRandom = Math.random()
            // this.individualIncomeTaxRandom = Math.random()
            // 税后金额 = 计税金额 - 税额
            this.form.afterTaxAmount = (taxableAmount - taxAmount) < 0 ? 0 : taxableAmount - taxAmount
            // 税后金额随机数