qushaowei
2023-11-21 e9ad171baa8ae05e47fb3698d2f2bc6fd9fc3124
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderModal.vue
@@ -1,7 +1,7 @@
<template>
  <a-modal
    :title='title'
    :width='1250'
    :width='650'
    :visible='visible'
    :maskClosable='false'
    @ok='handleOk'
@@ -12,7 +12,7 @@
    <a-spin :spinning='confirmLoading'>
      <a-form :form='form'>
        <a-row :gutter='24'>
          <a-col :span='12'>
          <a-col :span='24'>
            <a-form-item
              label='工单号'
              :labelCol='labelCol'
@@ -26,25 +26,7 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span='12'>
            <a-form-item
              label='检定方式'
              :labelCol='labelCol'
              :wrapperCol='wrapperCol'
            >
              <j-dict-select-tag
                allow-clear
                :disabled='disableSubmit'
                :placeholder="disableSubmit?'':'请选择检定方式'"
                :triggerChange='true'
                dictCode='calibration_type'
                v-decorator="['calibrationType', validatorRules.calibrationType]"
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter='24'>
          <a-col :span='12'>
          <a-col :span='24'>
            <a-form-item
              label='设备'
              :labelCol='labelCol'
@@ -60,8 +42,24 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span='24'>
            <a-form-item
              label='检定方式'
              :labelCol='labelCol'
              :wrapperCol='wrapperCol'
            >
              <j-dict-select-tag
                allow-clear
                :disabled='disableSubmit'
                :placeholder="disableSubmit?'':'请选择检定方式'"
                :triggerChange='true'
                dictCode='calibration_type'
                v-decorator="['calibrationType', validatorRules.calibrationType]"
              />
            </a-form-item>
          </a-col>
          <a-col :span='12'>
          <a-col :span='24'>
            <a-form-item
              label='判断依据'
              :labelCol='labelCol'
@@ -83,7 +81,7 @@
          hidden
          :gutter='24'
        >
          <a-col :span='12'>
          <a-col :span='24'>
            <a-form-item
              label='设备Id'
              :labelCol='labelCol'
@@ -99,7 +97,7 @@
          </a-col>
        </a-row>
        <a-row :gutter='24'>
          <a-col :span='24'>
          <!-- <a-col :span='24'>
            <a-form-item
              :labelCol='{span:3}'
              :wrapperCol='{span:21}'
@@ -112,7 +110,7 @@
                v-decorator="['remark', validatorRules.remark]"
              />
            </a-form-item>
          </a-col>
          </a-col> -->
          <a-col :span='24'>
            <a-form-item
              :labelCol='{span:3}'
@@ -131,7 +129,8 @@
        </a-row>
      </a-form>
    </a-spin>
    <a-table v-show='false'
    <a-table
      v-show='false'
             ref='table'
             bordered
             size='middle'
@@ -281,7 +280,8 @@
      this.precisionParametersTemplateId = '-1'
      getAction(this.url.getNum, { type: 'CalibrationOrder', length: '4' }).then((res) => {
        if (res.success) {
          this.num = res.message
          // this.num = res.message
          this.form.setFieldsValue({ "num": res.message })
        }
      })
      // 新增时候设置鉴定类型为自检、 判定依据为报告