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

系统DVP计划 不开展试验增加校验

weibowen 8 місяців тому
батько
коміт
c917ff6cdd
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      src/views/systemDVP/dvpPlan/index.vue

+ 3 - 3
src/views/systemDVP/dvpPlan/index.vue

@@ -337,7 +337,7 @@
         <a-form>
           <a-col :xl='24' :lg='24' :md='24' :sm='24' :xs='24'>
             <a-form-item required :label="$t('base.info.reason-for-not-conducting-the-experiment')">
-              <a-textarea rows='6' v-model="editParam.notCarryOutCause" style="width: 100%;" :placeholder="$t('base.info.please-enter-reason-for-not-conducting-the-experiment')" :maxLength='50'></a-textarea>
+              <a-textarea rows='6' v-model.trim="editParam.notCarryOutCause" style="width: 100%;" :placeholder="$t('base.info.please-enter-reason-for-not-conducting-the-experiment')" :maxLength='50'></a-textarea>
             </a-form-item>
           </a-col>
         </a-form>
@@ -1005,8 +1005,8 @@ export default {
         }
       } else {
         // 不适用原因
-        if (!_that.editParam.notCarryOutCause) {
-          message.push(_that.$t('global-constant.please-select') + _that.$t('base.info.reason-for-not-conducting-the-experiment'));
+        if (!_that.editParam.notCarryOutCause || _that.editParam.notCarryOutCause.trim().length === 0) {
+          message.push(_that.$t('global-btn.please-enter') + _that.$t('base.info.reason-for-not-conducting-the-experiment'));
         }
       }
       if (message && message.length > 0) {