qushaowei
2023-10-24 9d3b355061393f9dd031c1d8aaf124564d9c0d19
src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue
@@ -477,6 +477,7 @@
        getInspectionCycles: "/eam/inspectionOrder/getInspectionCycles",
        getInspectionProjectId: "/eam/inspectionOrder/getInspectionProjectId",
        // getEquipmentIdById: "/eam/equipment/list",
        getNum: '/eam/sysIdentity/getNumNew'
      },
      dataSource: [],
@@ -489,6 +490,7 @@
  methods: {
    add() {
      this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] })
      this.getSeq()
    },
    edit(record) {
@@ -574,6 +576,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) => {