Bladeren bron

no message

linwenxin 5 maanden geleden
bovenliggende
commit
c378a55123
1 gewijzigde bestanden met toevoegingen van 16 en 3 verwijderingen
  1. 16 3
      src/views/setting/workContactLetter/workContactLetterPage/index.vue

+ 16 - 3
src/views/setting/workContactLetter/workContactLetterPage/index.vue

@@ -768,13 +768,26 @@ export default {
             label: '审核结果',
             prop: 'examineStatus',
             rules: [...required]
-          }
+          },
+          events: {
+            change: val => {
+              if (val == 'OK') {
+                this.formData2.examinePrice = 0
+                this.formData2.examineFration = 0
+              }else if (val == 'SUB') {
+                this.formData2.examinePrice = this.formData.price
+                this.formData2.examineFration = this.formData.fraction
+              }else if (val == 'SUB') {
+                this.formData2.examinePrice = ''
+                this.formData2.examineFration = ''
+              }
+            }
         },
         {
           md: 6,
           name: 'el-input',
           attributes: {
-            disabled: [-1].includes(this.openType)
+            disabled: [-1].includes(this.openType)||["OK","FAIL"].includes(this.formData2.examineStatus)
           },
           formItemAttributes: {
             label: '审批金额',
@@ -786,7 +799,7 @@ export default {
           md: 6,
           name: 'el-input',
           attributes: {
-            disabled: [-1].includes(this.openType)
+            disabled: [-1].includes(this.openType)||["OK","FAIL"].includes(this.formData2.examineStatus)
           },
           formItemAttributes: {
             label: '审批分数',