qushaowei
2024-04-07 f7c7b15972be097cdae91cecdea136fd1a60b2b3
src/views/eam/EquipmentListOfAll.vue
@@ -248,6 +248,22 @@
              ></j-date>
            </a-form-model-item>
          </a-col>
          <!-- 按维修班组检索 -->
          <a-col :span="6">
            <a-form-item
              label="维修班组"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-dict-select-tag
                allow-clear
                placeholder="请选择维修班组"
                :triggerChange="true"
                dictCode="mom_base_team,name,id,del_flag!='1'"
                v-model="queryParam.teamId"
              />
            </a-form-item>
          </a-col>
        </a-row>
      </a-form>
    </div>
@@ -338,7 +354,15 @@
        :customRow="clickThenSelect"
        @change="handleTableChange"
      >
<!-- 点击技术状态列,跳转到技术状态鉴定页面 -->
        <template
          slot="technologyStatus"
          slot-scope="text,record"
          >
          <a
            href="javascript:eam/EquipmentCalibrationOrder;"
            @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a>
        </template>
        <template
          slot="htmlSlot"
          slot-scope="text"
@@ -759,6 +783,7 @@
          title: '技术状态',
          align: "center",
          dataIndex: 'technologyStatus_dictText',
          scopedSlots: { customRender: 'technologyStatus' },
        },
        {
          title: '技术状态鉴定类型',
@@ -1112,6 +1137,18 @@
    handleUpdateKeyEquipment() {
      this.$refs.keyEquipmentUpdate.add();
    },
    //技术状态跳转
    handleTechnologyStatus(record) {
      //路由是eam/EquipmentCalibrationOrder
      this.$router.push({
        path: '/eam/EquipmentCalibrationOrder',
        query: {
          equipmentId: record.id,
          technologyStatus: record.technologyStatus,
          technologyStatusVerificationType: record.technologyStatusVerificationType,
        }
      })
    },
  }
}
</script>