浏览代码

奇瑞-DFMEA 问题清单275 “试验频次”和“样本数量”变成可必填的数字模式

dongfeng 3 月之前
父节点
当前提交
bdd49bd3dc
共有 1 个文件被更改,包括 26 次插入10 次删除
  1. 26 10
      src/views/systemDVP/dvpPlan/index.vue

+ 26 - 10
src/views/systemDVP/dvpPlan/index.vue

@@ -307,21 +307,29 @@
           <!-- 试验频次 -->
           <a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
             <a-form-item required :label="$t('plan.dvp.test-frequency')">
-              <a-select allowClear v-model="editParam.testFrequency" :placeholder="$t('global-btn.please-enter') + $t('plan.dvp.test-frequency')">
-              <a-select-option v-for='(item, index) in 10' :key='index + 1'>
-                {{ index + 1 }}
-              </a-select-option>
-              </a-select>
+              <a-input-number
+                  v-model.number="editParam.testFrequency"
+                  :defaultValue="0"
+                  :min="1"
+                  :max="999999999"
+                  @change="handleTestFrequency"
+                  :placeholder="$t('global-btn.please-enter') + $t('plan.dvp.test-frequency')"
+                  style="width: 100%">
+              </a-input-number>
             </a-form-item>
           </a-col>
           <!-- 样本数量 -->
           <a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
             <a-form-item required :label="$t('plan.dvp.number-of-samples')">
-              <a-select allowClear v-model="editParam.count" :placeholder="$t('plan.dvp.please_select-number-of-vehicles')">
-                <a-select-option v-for='(item, index) in 20' :key='index + 1'>
-                  {{ index + 1 }}
-                </a-select-option>
-              </a-select>
+              <a-input-number
+                  v-model.number="editParam.count"
+                  :defaultValue="0"
+                  :min="1"
+                  :max="999999999"
+                  @change="handleCount"
+                  :placeholder="$t('plan.dvp.please_select-number-of-vehicles')"
+                  style="width: 100%">
+              </a-input-number>
             </a-form-item>
           </a-col>
           <!-- 样件类型 -->
@@ -1260,6 +1268,14 @@ export default {
       this.editParam.count = val;
     },
 
+    /**
+     * 样本数量下拉改变 编辑
+     * @param val
+     */
+    handleTestFrequency(val) {
+      this.editParam.testFrequency = val;
+    },
+
     /**
      * 是否开展实验项目 编辑
      * @param val