Explorar o código

fix:修改企业准入审核校验逻辑

lazy hai 1 semana
pai
achega
3919baca1a

+ 2 - 2
src/views/enterpriseManage/enterpriseEntry/components/AuditContent.vue

@@ -343,7 +343,7 @@
           </template>
           </cy-info-title>
           <el-form-item label="红否结果" style="width: 100%;">
-            <el-input :value="ruleForm.redNo === 0 ? '非红否' : '红否'" disabled></el-input>
+            <el-input :value="ruleForm.redNo ? (ruleForm.redNo === 0 ? '非红否' : '红否') : ''" disabled></el-input>
           </el-form-item>
           <el-form-item v-if="ruleForm.redNo === 1" label="红否失败原因" style="width: 100%;">
             <el-input :value="ruleForm.failReason" disabled></el-input>
@@ -469,7 +469,7 @@ export default {
       ]
 
       for (let i = 0; i < beforeValideFeilds.length - 1; i++) {
-        if (!this.ruleForm[beforeValideFeilds[i]]) {
+        if (this.ruleForm[beforeValideFeilds[i]] === '' || this.ruleForm[beforeValideFeilds[i]] === null) {
           return false
         }
       }