| | |
| | | <div :key="col.dataIndex"> |
| | | <a-input-number |
| | | :value="text" |
| | | v-if="col.dataIndex == 'calibrationItemResult'" |
| | | v-if="col.dataIndex == 'actualValue'" |
| | | :min="0" |
| | | :max="20000000" |
| | | @change="(e)=>handleChange(e, record.key, col, index,record)" |
| | |
| | | sm: { span: 16 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | width: 60, |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: '精度参数编码', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: '精度参数名称', |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | | dataIndex: 'unitName', |
| | | }, |
| | | { |
| | | title: '下限值', |
| | | align: 'center', |
| | | dataIndex: 'lowerLimit', |
| | | }, |
| | | { |
| | | title: '上限值', |
| | | align: 'center', |
| | | dataIndex: 'upperLimit', |
| | | }, |
| | | { |
| | | title: '测定值', |
| | | align: 'center', |
| | | dataIndex: 'actualValue', |
| | | }, |
| | | { |
| | | title: '实际测定值', |
| | | align: 'center', |
| | | dataIndex: 'calibrationItemResult', |
| | | scopedSlots: { customRender: 'calibrationItemResult' }, |
| | | width: 160, |
| | | }, |
| | | // { |
| | | // title: '判定结果', |
| | | // align: 'center', |
| | | // dataIndex: 'judgmentResultName', |
| | | // class: "notshow" |
| | | // }, |
| | | { |
| | | title: '判定结果', |
| | | align: 'center', |
| | | dataIndex: 'judgmentResult', |
| | | }, |
| | | { |
| | | title: '#', |
| | | dataIndex:'sort', |
| | | width:100, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title:'检验项目名称', |
| | | align:"center", |
| | | dataIndex: 'name', |
| | | width:300 |
| | | }, |
| | | { |
| | | title:'位置', |
| | | align:"center", |
| | | dataIndex: 'precisionParametersUda1', |
| | | width:300 |
| | | }, |
| | | { |
| | | title:'允差(mm)', |
| | | align:"center", |
| | | dataIndex: 'tolerance', |
| | | width:300 |
| | | }, |
| | | { |
| | | title:'实测值', |
| | | align:"center", |
| | | dataIndex: 'actualValue', |
| | | scopedSlots: { customRender: 'actualValue' }, |
| | | width:300 |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/calibrationOrderDetail/getCalibrationOrderDetailList", |
| | | list: "/eam/calibrationOrder/listByMainId", |
| | | report: "/eam/calibrationOrder/report", |
| | | save: "/eam/calibrationOrderDetail/save", |
| | | }, |
| | |
| | | } |
| | | |
| | | } |
| | | if(column.dataIndex == 'actualValue'){ |
| | | target[column.dataIndex] = value; |
| | | } |
| | | //显示带过来的数据 |
| | | that.dataSource = temp; |
| | | } |
| | |
| | | let formData = Object.assign(this.model); |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | if (o.calibrationItemResult == null || o.calibrationItemResult == '') { |
| | | that.$message.warning('请输入检定结果!') |
| | | if (o.actualValue == null || o.actualValue == '') { |
| | | that.$message.warning('请输入序号为'+o.sort+'检验项的实测值') |
| | | that.confirmLoading = false; |
| | | return |
| | | } |