zhuzhuanzhuan
2023-09-18 70b734a3a3641f7a10f59ee4669d1cd44200f59d
src/views/mdc/base/modules/deviceRepair/DeviceRepairModel.vue
@@ -25,6 +25,22 @@
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24" >
          <a-col :span="24">
            <a-form-item label="维修类型" :labelCol="labelColLong" :wrapperCol="wrapperColLong">
              <a-radio-group v-decorator="['mdcRepairType', validatorRules.mdcRepairType]">
                <a-radio :value="1">
                  维修
                </a-radio>
                <a-radio :value="2">
                 休班
                </a-radio>
              </a-radio-group>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
            <a-form-item label="开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
@@ -39,15 +55,15 @@
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
            <a-form-item v-show="this.mesag == 1" label="维修类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <a-input :disabled="disableSubmit" :readOnly="readOnly" placeholder="请选择设备类型"
                                 :triggerChange="true"
                                 v-decorator="['mdcRepairType', validatorRules.mdcRepairType]"/>
            </a-form-item>
          </a-col>
        </a-row>
        <!--<a-row :gutter="24">-->
          <!--<a-col :span="12">-->
            <!--<a-form-item v-show="this.mesag == 1" label="维修类型" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
              <!--<a-input :disabled="disableSubmit" :readOnly="readOnly" placeholder="请选择设备类型"-->
                                 <!--:triggerChange="true"-->
                                 <!--v-decorator="['mdcRepairType', validatorRules.mdcRepairType]"/>-->
            <!--</a-form-item>-->
          <!--</a-col>-->
        <!--</a-row>-->
      </a-form>
    </a-spin>
    <device-repair-list-model ref="deviceRepairListModel" @sendSelectionRows="getDeviceRows"></device-repair-list-model>
@@ -68,10 +84,11 @@
  import {
    duplicateCheck
  } from '@/api/api'
  import AFormItem from 'ant-design-vue/es/form/FormItem'
  export default {
    name: 'DeviceRepairModel',
    components: {DeviceRepairListModel,JDate},
    components: { AFormItem, DeviceRepairListModel,JDate},
    props: {},
    data() {
      return {
@@ -153,8 +170,9 @@
        disableSubmit: true,
        partCategoryCascade: [],
        cascadeDefaultValue: []
        cascadeDefaultValue: [],
      }
    },
    created() {
    },
@@ -288,7 +306,7 @@
                obj.then((res) => {
                  if (res.success) {
                    // that.$message.success("添加成功")
                    that.$notification.warning({
                    that.$notification.success({
                      message:'消息',
                      description:"添加成功"
                    });
@@ -347,7 +365,7 @@
      },
      checkboxChange(e) {
        this.checked = e.target.checked
      }
      },
    }
  }
</script>