Преглед на файлове

DVP关联FMEA措施部分逻辑修改

zhangzheng преди 2 месеца
родител
ревизия
c0920f3656
променени са 2 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 2 2
      src/views/systemDVP/dvpPlan/applyChange/applyForChange.vue
  2. 6 2
      src/views/systemDVP/dvpPlan/index.vue

+ 2 - 2
src/views/systemDVP/dvpPlan/applyChange/applyForChange.vue

@@ -31,14 +31,14 @@
             <!-- 开发目标要求 -->
             <a-input v-else-if="index === 1"
                      v-model.trim="record.changeDesc"
-                     :disabled="!causeShowFlag"
+                     :disabled="!causeShowFlag || record.testSource === 1"
                      :placeholder="$t('global-constant.please-enter') + $t('base.info.development-objective-requirements')"
                      :maxLength='1000'
             ></a-input>
             <!-- 试验标准 -->
             <a-input v-else-if="index === 2"
                      v-model.trim="record.changeDesc"
-                     :disabled="!causeShowFlag"
+                     :disabled="!causeShowFlag || record.testSource === 1"
                      :placeholder="$t('global-constant.please-enter') + $t('base.info.Test-standards')"
                      :maxLength='1000'
             ></a-input>

+ 6 - 2
src/views/systemDVP/dvpPlan/index.vue

@@ -252,6 +252,7 @@
                 allowClear
                 :maxLength='1000'
                 v-model="editParam.targetRequire"
+                :disabled="this.editParam.testSource === 1"
                 :placeholder="$t('global-btn.please-enter') + $t('base.info.development-objective-requirements')"
               />
             </a-form-item>
@@ -263,6 +264,7 @@
                 allowClear
                 :maxLength='1000'
                 v-model="editParam.testStandard"
+                :disabled="this.editParam.testSource === 1"
                 :placeholder="$t('global-btn.please-enter') + $t('base.info.Test-standards')"
               />
             </a-form-item>
@@ -1512,14 +1514,16 @@ export default {
           changeContent: this.$t("base.info.development-objective-requirements"),
           currentDesc: record.targetRequire,
           changeDesc: undefined,
-          changeReason: undefined
+          changeReason: undefined,
+          testSource: record.testSource
         },
         // 试验标准
         {
           changeContent: this.$t("base.info.Test-standards"),
           currentDesc: record.testStandard,
           changeDesc: undefined,
-          changeReason: undefined
+          changeReason: undefined,
+          testSource: record.testSource
         },
         // 备注
         {