| | |
| | | <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" |
| | |
| | | > |
| | | 布局 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | </el-col> --> |
| | | <el-col :span="14"> |
| | | <el-button |
| | | style="float: right; padding: 3px 0" |
| | | type="text" |
| | |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="参数项类型" |
| | | prop="paramType" |
| | | align="center" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="参数格式" |
| | | prop="parameterFormat" |
| | |
| | | </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> |
| | | |
| | |
| | | return this.getInspectionTypeOptionList() |
| | | } |
| | | }, |
| | | { |
| | | /* { |
| | | minWidth: '120', |
| | | prop: 'operationName', |
| | | label: '工序名称', |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | }, */ |
| | | { |
| | | minWidth: '120', |
| | | prop: 'state', |
| | |
| | | }, |
| | | 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' |
| | |
| | | dataFormTestStandardParam() { |
| | | this.isSubmit = true |
| | | if (this.testStandardParams.length > 0) { |
| | | 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('检测标准参数保存成功') |