“linengliang”
2023-10-18 83830b509d3cce2dba0be3fdbc6f4db054b78d74
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderExeDrawer.vue
@@ -146,7 +146,7 @@
                    <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)"
@@ -248,67 +248,40 @@
        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",
      },
@@ -482,6 +455,9 @@
          }
        }
        if(column.dataIndex == 'actualValue'){
          target[column.dataIndex] = value;
        }
        //显示带过来的数据
        that.dataSource = temp;
      }
@@ -493,8 +469,8 @@
      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
        }