Переглянути джерело

fix:
- 核查整改对应各自的得分

梦辉 5 місяців тому
батько
коміт
085a38290e

+ 7 - 1
src/subPages/pages/commitment/components/commitmentConfirmForm/index.vue

@@ -61,17 +61,22 @@ export default {
       //如果选择的不是符合,核查得分选择去掉符合
       //先清空核查得分
       this.formStates.auditScore = ''
-      if (this.formStates.auditResult !== '符合') {
+      if (this.formStates.auditResult === '整改') {
         this.checkGoalColumns = [
           {
             text: '整改 0分',
             value: 0
           },
+        ]
+        this.formStates.auditScore = '整改 0分'
+      } else if (this.formStates.auditResult === '整改扣分') {
+        this.checkGoalColumns = [
           {
             text: '整改扣分 -10分',
             value: -10
           }
         ]
+        this.formStates.auditScore = '整改扣分 -10分'
       } else {
         this.checkGoalColumns = [
           {
@@ -79,6 +84,7 @@ export default {
             value: 0
           }
         ]
+        this.formStates.auditScore = '符合'
       }
     },
     handleCheckGoalConfirm(value) {