qushaowei
2024-01-11 240c74ffb2b98faddf76648116ca9eeb61ee2cde
src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue
@@ -187,6 +187,21 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="24/2">
            <a-form-item
              label="报修类型"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-dict-select-tag
                allow-clear
                :placeholder="disableSubmit?'':'请选择报修类型'"
                :triggerChange="true"
                dictCode="report_repair_type"
                v-decorator="['type', validatorRules.type]"
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="24/2">
@@ -237,7 +252,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="24/2"  v-if="workingStatus">
          <a-col
            :span="24/2"
            v-if="workingStatus"
          >
            <a-form-item
              label="加工零件号"
              :labelCol="labelCol"
@@ -252,7 +270,10 @@
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="24/2" v-if="workingStatus">
          <a-col
            :span="24/2"
            v-if="workingStatus"
          >
            <a-form-item
              label="批次号"
              :labelCol="labelCol"
@@ -265,7 +286,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="24/2"  v-if="workingStatus">
          <a-col
            :span="24/2"
            v-if="workingStatus"
          >
            <a-form-item
              label="件数"
              :labelCol="labelCol"
@@ -399,7 +423,12 @@
          rules: [
            { required: true, message: '请输入件数!' },
          ]
        }
        },
        type: {
          rules: [
            { required: true, message: '请选择报修类型!' },
          ]
        },
      },
      url: {
        add: "/eam/equipmentReportRepair/add",
@@ -419,6 +448,7 @@
  methods: {
    add() {
      let that = this;
      let param = {
          type: 'EquipmentReportRepair',
          length: 4
@@ -432,6 +462,8 @@
             that.edit(modelDefault);
          }
      })
    },
    edit(record) {
      let that = this;
@@ -441,6 +473,7 @@
      that.visible = true;
      that.$nextTick(() => {
        that.form.setFieldsValue(pick(that.model,'errUda1' ,'num', 'isStop', 'equipmentId', 'equipmentNum', 'equipmentName', 'equipmentModel', 'equipmentSpecification', 'urgency', 'useDepartId', 'departName', 'faultDescription', 'faultTime', 'remark', "photo"));
        that.form.setFieldsValue({ type: "1" });
      });
      if (record.id) {
        this.codeDisable = true;