licp
2024-03-29 41cad2434411b2eac1b9814d47d06e34c291f285
src/views/quality/teststandard/index.vue
@@ -24,7 +24,7 @@
                <el-col :span="8">
                  <span>标准参数</span>
                </el-col>
                <el-col :span="8" :offset="4">
                <!-- <el-col :span="8" :offset="4">
                  <el-button
                    v-if="permissions.quality_teststandard_layout"
                    style="float: right; padding: 3px 0"
@@ -33,8 +33,8 @@
                  >
                    布局
                  </el-button>
                </el-col>
                <el-col :span="2">
                </el-col> -->
                <el-col :span="14">
                  <el-button
                    style="float: right; padding: 3px 0"
                    type="text"
@@ -160,7 +160,7 @@
                  ></el-input>
                </template>
              </el-table-column>
              <el-table-column
              <!-- <el-table-column
                label="参数项类型"
                prop="paramType"
                align="center"
@@ -180,7 +180,7 @@
                    </el-option>
                  </el-select>
                </template>
              </el-table-column>
              </el-table-column> -->
              <el-table-column
                label="参数格式"
                prop="parameterFormat"
@@ -192,22 +192,22 @@
                </template>
              </el-table-column><el-table-column
                label="测试方法"
                prop="purpose"
                align="center"
                width="80"
              >
                <template slot-scope="scope">
                  <el-input v-model="scope.row.purpose"></el-input>
                </template>
              </el-table-column>
              <el-table-column
                label="测试目的"
                prop="method"
                align="center"
                width="80"
              >
                <template slot-scope="scope">
                  <el-input v-model="scope.row.method"></el-input>
                </template>
              </el-table-column>
              <el-table-column
                label="测试目的"
                prop="purpose"
                align="center"
                width="80"
              >
                <template slot-scope="scope">
                  <el-input v-model="scope.row.purpose"></el-input>
                </template>
              </el-table-column>
@@ -382,7 +382,7 @@
              return this.getInspectionTypeOptionList()
            }
          },
          {
          /* {
            minWidth: '120',
            prop: 'operationName',
            label: '工序名称',
@@ -390,7 +390,7 @@
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          }, */
          {
            minWidth: '120',
            prop: 'state',
@@ -866,6 +866,10 @@
    dataFormTestStandardParam() {
      this.isSubmit = true
      if (this.testStandardParams.length > 0) {
        this.testStandardParams.map(m=>{
            m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')')
            return m
        })
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
            this.$message.success('检测标准参数保存成功')