qushaowei
2023-10-24 98383b4460ed643d3a1dadd256f81aaa283aa71a
src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue
@@ -506,6 +506,7 @@
            un-checked-children="否"
            :checked="model.result_21 == '1'"
            @change="handle21Switch(model.result_21)"
            :disabled=this.disabled21Switch
          />
          <span
            class="ant-descriptions-title"
@@ -521,6 +522,7 @@
            v-model="model.sort"
            :min=0
            :max=20
            :disabled=this.disabled22Switch
          />
          <span
            class="ant-descriptions-title"
@@ -531,6 +533,7 @@
            un-checked-children="否"
            :checked="model.result_22 == '1'"
            @change="handle22Switch(model.result_22)"
            :disabled=this.disabled22Switch
          />
          <span
            class="ant-descriptions-title"
@@ -623,6 +626,8 @@
      dataSource: [],
      model: {},
      departs: [],
      disabled21Switch: false,
      disabled22Switch: false,
      labelCol: {
        xs: { span: 24 },
        sm: { span: 6 },
@@ -653,7 +658,8 @@
    edit(record) {
      let that = this;
      this.disabled21Switch = false
      this.disabled22Switch = false
      this.form.resetFields();
      this.model = Object.assign({}, record);
      this.getStoveCategory()
@@ -723,6 +729,7 @@
      } else {
        this.model.result_1 = '0'
      }
      this.model = Object.assign({}, this.model);
    },
@@ -909,8 +916,10 @@
    handle21Switch(result_21) {
      if ('0' == result_21) {
        this.model.result_21 = '1'
        this.disabled22Switch = true
      } else {
        this.model.result_21 = '0'
        this.disabled22Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
@@ -918,8 +927,10 @@
    handle22Switch(result_22) {
      if ('0' == result_22) {
        this.model.result_22 = '1'
        this.disabled21Switch = true
      } else {
        this.model.result_22 = '0'
        this.disabled21Switch = false
      }
      this.model = Object.assign({}, this.model);
    },