zss
2024-04-25 9e0a038387707684c2222d188528f9cecb8b4681
src/views/quality/teststandard/index.vue
@@ -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,12 +867,15 @@
    dataFormTestStandardParam() {
      this.isSubmit = true
      if (this.testStandardParams.length > 0) {
        this.testStandardParams.map(m=>{
          if(m.referenceValue !== undefined) {
              m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')')
            return m
          }
        })
        for(let standardParam in this.testStandardParams) {
            let value = this.testStandardParams[standardParam].referenceValue
            if( value !=null) {
                value = value.replace(',',',').replace('(','(').replace(')',')')
                if (!isNaN(value)) {
                  value='='+value
                }
            }
        }
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
            this.$message.success('检测标准参数保存成功')