From 605d63f34a510fa0f53c293da3802e86620397d2 Mon Sep 17 00:00:00 2001
From: yaozc <yaozc@yhzhg.cn>
Date: Wed, 18 Oct 2023 03:58:48 +0000
Subject: [PATCH] Merge branch 'weicd_new' of http://192.168.1.110:5678/r/pms-upgrade into yaozc_new

---
 eladmin-web-master/src/views/salary/salary/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/eladmin-web-master/src/views/salary/salary/index.vue b/eladmin-web-master/src/views/salary/salary/index.vue
index 93dbb2a..2eb52cf 100644
--- a/eladmin-web-master/src/views/salary/salary/index.vue
+++ b/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
             // 税后金额随机数

--
Gitblit v1.9.3