cuijian
2023-11-16 e0cd695c11734348e1e01304bdff0696768c1fda
src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue
@@ -26,7 +26,7 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="12">
          <!-- <a-col :span="12">
            <a-form-item
              label="开工条件"
              :labelCol="labelCol"
@@ -40,7 +40,7 @@
                @change="handle2Switch(model.startWorkCondition)"
              />
            </a-form-item>
          </a-col>
          </a-col> -->
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
@@ -386,28 +386,28 @@
        {
          title: '点检项目',
          align: 'center',
          dataIndex: 'inspectionProjectNum'
          dataIndex: 'inspectionProjectName'
        },
        {
          title: '检测标准',
          align: 'center',
          dataIndex: 'detectionStandard'
        },
        {
          title: '合格范围',
          align: 'center',
          dataIndex: 'acceptabilityLimit'
        },
        {
          title: '方法',
          align: 'center',
          dataIndex: 'inspectionMethodName'
        },
        {
          title: '工具',
          align: 'center',
          dataIndex: 'inspectionTool'
        },
        // {
        //   title: '合格范围',
        //   align: 'center',
        //   dataIndex: 'acceptabilityLimit'
        // },
        // {
        //   title: '方法',
        //   align: 'center',
        //   dataIndex: 'inspectionMethodName'
        // },
        // {
        //   title: '工具',
        //   align: 'center',
        //   dataIndex: 'inspectionTool'
        // },
        {
          title: '示意图',
          align: "center",
@@ -436,7 +436,7 @@
      validatorRules: {
        num: {
          rules: [
            { required: true, message: '请输入设备编码!' },
            { required: true, message: '请输入统一编码!' },
          ]
        },
        equipmentId: {
@@ -477,6 +477,7 @@
        getInspectionCycles: "/eam/inspectionOrder/getInspectionCycles",
        getInspectionProjectId: "/eam/inspectionOrder/getInspectionProjectId",
        // getEquipmentIdById: "/eam/equipment/list",
        getNum: '/eam/sysIdentity/getNumNew'
      },
      dataSource: [],
@@ -488,7 +489,9 @@
  methods: {
    add() {
      this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] })
      this.edit({ inspectionOrderDetails: [] })
      // this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] })
      this.getSeq()
    },
    edit(record) {
@@ -574,6 +577,15 @@
      })
    },
    getSeq() {
      getAction(this.url.getNum, { type: 'DailylnspectionOrder', length: 4 }).then(res => {
        if (res.success) {
          this.form.setFieldsValue({ "num": res.result })
        }
      })
    },
    // getEquipmentIdById(equipmentId) {
    //   if (equipmentId != null && equipmentId != "") {
    //     getAction(this.url.getEquipmentIdById, { id: equipmentId }).then((res) => {
@@ -591,13 +603,13 @@
    //   }
    // },
    handle2Switch(startWorkCondition) {
      if ('1' == startWorkCondition) {
        this.model.startWorkCondition = '0'
      } else {
        this.model.startWorkCondition = '1'
      }
    },
    // handle2Switch(startWorkCondition) {
    //   if ('1' == startWorkCondition) {
    //     this.model.startWorkCondition = '0'
    //   } else {
    //     this.model.startWorkCondition = '1'
    //   }
    // },
    // handle2Change(val) {
    //   this.inspectionCycles = [];