licp
2024-04-24 3f6cd5f8b39c8fdae604090e0db3995123f28cc8
src/views/quality/teststandard/index.vue
@@ -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"
@@ -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',
@@ -497,10 +497,11 @@
  },
  computed: {
    ...mapGetters(['permissions']),
    editable: function() {
    editable : function() {
      if (!this.currentTestStandard) {
        return true
      }
      console.log('99999999999', this.currentTestStandard)
      if (
        this.currentTestStandard.id &&
        this.currentTestStandard.state === '01draft'
@@ -866,6 +867,16 @@
    dataFormTestStandardParam() {
      this.isSubmit = true
      if (this.testStandardParams.length > 0) {
        for(let standardParam in this.testStandardParams) {
            let value = this.testStandardParams[standardParam].referenceValue
            if( value !== undefined) {
                value = value.replace(',',',').replace('(','(').replace(')',')')
          } else{
            this.$message.warning('要求范围没有填写!')
            this.isSubmit = false
            return;
          }
        }
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
            this.$message.success('检测标准参数保存成功')