ysy il y a 1 an
Parent
commit
a5b5c24e36

+ 1 - 0
src/views/material/BOMmanage/qualityTesting/inspectionClassify/components/edit.vue

@@ -154,6 +154,7 @@
             row.parameterType = row.parameterStandards[0]?.parameterType;
             row.parameterType = row.parameterStandards[0]?.parameterType;
           }
           }
           this.form = JSON.parse(JSON.stringify(row));
           this.form = JSON.parse(JSON.stringify(row));
+  
         }
         }
         this.visible = true;
         this.visible = true;
       },
       },

+ 97 - 10
src/views/material/BOMmanage/qualityTesting/term.vue

@@ -41,7 +41,92 @@
           >
           >
         </div>
         </div>
 
 
-
+        <el-form ref="form" style="width: 100%">
+          <el-table
+            style="margin-top: 15px"
+            :data="item.qualityStandard.parameterStandards"
+            border
+            
+          >
+            <el-table-column
+              :label="item.qualityStandard.singleWeightDivision"
+              align="center"
+            >
+              <el-table-column
+                label="参数上限"
+                align="center"
+                v-if="item.qualityStandard.parameterType == 3"
+              >
+                <template slot-scope="scope">
+                  <el-form-item label-width="0" prop="finalValue">
+                    <el-input
+                      clearable
+                      :disabled="type == 'detail'"
+                      v-model="scope.row.finalValue"
+                      placeholder="请输入"
+                    />
+                  </el-form-item>
+                </template>
+              </el-table-column>
+              <el-table-column
+                label="参数下限"
+                align="center"
+                v-if="item.qualityStandard.parameterType == 3"
+              >
+                <template slot-scope="scope">
+                  <el-form-item label-width="0" prop="initialValue">
+                    <el-input
+                      clearable
+                      v-model="scope.row.initialValue"
+                      placeholder="请输入"
+                    />
+                  </el-form-item>
+                </template>
+              </el-table-column>
+              <el-table-column
+                label="默认值"
+                align="center"
+                v-if="item.qualityStandard.parameterType != 3"
+              >
+                <template slot-scope="scope">
+                  <el-form-item label-width="0" prop="defaultValue">
+                    <el-input
+                      clearable
+                      v-model="scope.row.defaultValue"
+                      placeholder="请输入"
+                    />
+                  </el-form-item>
+                </template>
+              </el-table-column>
+            </el-table-column>
+
+            <el-table-column
+              :label="item.qualityStandard.tolerance"
+              align="center"
+            >
+              <el-table-column label="质检标准" align="center">
+                <template slot-scope="scope">
+                  <el-form-item label-width="0" prop="inspectionStandard">
+                    <el-input
+                      clearable
+                      v-model="scope.row.toleranceValue"
+                      placeholder="请输入"
+                    >
+                      <DictSelection
+                        style="width: 100px"
+                        slot="prepend"
+                        clearable
+                        dictName="数学字符"
+                        v-model="scope.row.symbol"
+                      ></DictSelection>
+                    </el-input>
+                    <!-- </el-form-item> -->
+                  </el-form-item>
+                </template>
+              </el-table-column>
+            </el-table-column>
+          </el-table>
+        </el-form>
       </div>
       </div>
     </div>
     </div>
 
 
@@ -62,7 +147,6 @@
 
 
     created() {
     created() {
       EventBus.$on('inspectionSelection', (data) => {
       EventBus.$on('inspectionSelection', (data) => {
-        console.log(data.message);
 
 
         let _arr = this.updateOrCreateObjectInArray(this.list, data.message);
         let _arr = this.updateOrCreateObjectInArray(this.list, data.message);
         this.list = JSON.parse(JSON.stringify(_arr));
         this.list = JSON.parse(JSON.stringify(_arr));
@@ -93,23 +177,26 @@
   .content_box {
   .content_box {
     width: 100%;
     width: 100%;
     margin-top: 12px;
     margin-top: 12px;
+    max-height: 42vh;
+    overflow-y: scroll;
   }
   }
 
 
-  .content_box_list{
- display: flex;
- flex-wrap: wrap;
+  .content_box_list {
+    display: flex;
+    flex-wrap: wrap;
+    margin-bottom: 30px;
   }
   }
 
 
-  .content_ll{
+  .content_ll {
     width: 50%;
     width: 50%;
     display: flex;
     display: flex;
     flex-direction: row;
     flex-direction: row;
     margin-top: 4px;
     margin-top: 4px;
 
 
-    .name{
-        width: 130px;
-        color: #000;
-        font-weight: 700;
+    .name {
+      width: 130px;
+      color: #000;
+      font-weight: 700;
     }
     }
   }
   }
 </style>
 </style>