zhangherong
2025-03-04 e1097d9e7c8470e6c8037a628da3b36d6577d8e3
src/views/eam/EquipmentListOfAll.vue
@@ -1,7 +1,7 @@
<template>
  <a-card
    :bordered="false"
    title="所有设备"
    title=""
  >
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
@@ -13,35 +13,42 @@
          :gutter="24"
          style="margin-bottom: 1%;"
        >
          <a-col :span="24">
          <a-col :xl='6'
                :lg='7'
                :md='8'
                :sm='24'>
            <a-form-item
              label="统一编号群"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <a-textarea
                placeholder="请输入所有统一编码,须用空格隔开,否则可能查询出错误信息"
                placeholder="请输入所有统一编码,每个统一编码占用一行,否则查询信息可能会出错"
                v-model="queryParam.nums"
                :auto-size="{ minRows: 2, maxRows:2 }"
              ></a-textarea>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="设备所属分类"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-dict-select-tag
                dictCode="mom_eam_equipment_category,name,id"
                dictCode="mom_eam_equipment_category,name,id,del_flag!='1'"
                placeholder="请输入搜索条件并选择"
                v-model="queryParam.equipmentCategoryId"
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -53,7 +60,10 @@
              ></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -65,7 +75,10 @@
              ></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="型号"
              :labelCol="labelCol"
@@ -77,9 +90,11 @@
              ></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="工区"
              :labelCol="labelCol"
@@ -109,7 +124,10 @@
              />
            </a-form-item>
          </a-col> -->
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="维护部门"
              :labelCol="labelCol"
@@ -130,7 +148,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="使用部门"
              :labelCol="labelCol"
@@ -151,7 +172,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="是否生产线设备"
              :labelCol="labelCol"
@@ -166,9 +190,10 @@
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="ABC标识"
              :labelCol="labelCol"
@@ -183,7 +208,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="技术状态"
              :labelCol="labelCol"
@@ -198,7 +226,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="设备状态"
              :labelCol="labelCol"
@@ -213,7 +244,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="关键设备标识"
              :labelCol="labelCol"
@@ -228,9 +262,10 @@
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-model-item
              label="质保开始日期"
              :labelCol="labelCol"
@@ -244,7 +279,10 @@
              ></j-date>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-model-item
              label="质保结束日期"
              :labelCol="labelCol"
@@ -259,7 +297,10 @@
            </a-form-model-item>
          </a-col>
          <!-- 按维修班组检索 -->
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="维修班组"
              :labelCol="labelCol"
@@ -756,16 +797,61 @@
            return parseInt(index) + 1
          },
          width: 50,
          fixed: 'left',
        },
        {
          title: '设备类型',
          title: '统一编码',
          align: "center",
          dataIndex: 'num',
          scopedSlots: { customRender: 'num' },
          fixed: 'left',
        },
        {
          title: '设备名称',
          align: "center",
          dataIndex: 'name',
          scopedSlots: { customRender: 'name' },
          fixed: 'left',
        },
        {
          title: '使用部门',
          align: "center",
          dataIndex: 'useId_dictText',
        },
        {
          title: '中心',
          align: "center",
          dataIndex: 'workCenterId_dictText',
        },
        {
          title: '工区',
          align: "center",
          dataIndex: 'factoryModelId_dictText',
        },
        {
          title: '工段',
          align: "center",
          dataIndex: 'areaId_dictText',
        },
        {
          title: '维护部门',
          align: "center",
          dataIndex: 'manageId_dictText',
        },
        {
          title: '维修班组',
          align: "center",
          dataIndex: 'teamId_dictText',
        },
        {
          title: '设备所属分类',
          align: "center",
          dataIndex: 'equipmentCategoryId_dictText',
        },
        {
          title: '是否生产线设备',
          title: 'ABC标识',
          align: "center",
          dataIndex: 'isLineEquip_dictText',
          dataIndex: 'equipmentImportanceId',
        },
        {
          title: '关键设备标识',
@@ -773,16 +859,110 @@
          dataIndex: 'specificEquipment_dictText',
        },
        {
          title: '统一编码',
          title: '安全配置',
          align: "center",
          dataIndex: 'num',
          scopedSlots: { customRender: 'num' },
          dataIndex: 'securityConfiguration',
        },
        {
          title: '设备名称',
          title: '冷却系统',
          align: "center",
          dataIndex: 'name',
          scopedSlots: { customRender: 'name' },
          dataIndex: 'coolingSystem',
        },
        {
          title: '灭火器',
          align: "center",
          dataIndex: 'fireExtinguisher',
        },
        {
          title: '灭火器有效期',
          align: "center",
          dataIndex: 'fireExtinguisherValidityPeriod',
        },
        {
          title: '操作系统',
          align: "center",
          dataIndex: 'operatingSystem',
        },
        {
          title: '系统',
          align: "center",
          dataIndex: 'system',
        },
        {
          title: '设备端口',
          align: "center",
          dataIndex: 'port',
        },
        {
          title: '坐标数量',
          align: "center",
          dataIndex: 'coordinateNum',
        },
        {
          title: '设备状态',
          align: "center",
          dataIndex: 'equipmentStatus_dictText',
        },
        {
          title: '技术状态',
          align: "center",
          dataIndex: 'technologyStatus_dictText',
          scopedSlots: { customRender: 'technologyStatus' },
        },
        {
          title: '重量',
          align: "center",
          dataIndex: 'equipmentUda3',
        },
        {
          title: '重量计量单位',
          align: "center",
          dataIndex: 'equipmentUda4_dictText',
        },
        {
          title: '功能位置',
          align: "center",
          dataIndex: 'equipmentUda5',
        },
        {
          title: '安装位置',
          align: "center",
          dataIndex: 'equipmentUda2',
        },
        {
          title: '出厂日期',
          align: "center",
          dataIndex: 'leaveFactoryDate',
        },
        {
          title: '立项卡号',
          align: "center",
          dataIndex: 'projectApprovalNo',
        },
        {
          title: '资金来源',
          align: "center",
          dataIndex: 'fundSource',
        },
        {
          title: '验收日期',
          align: "center",
          dataIndex: 'acceptanceCheckDate',
        },
        {
          title: '出厂编号',
          align: "center",
          dataIndex: 'factoryNo',
        },
        {
          title: '资产制造商',
          align: "center",
          dataIndex: 'constructorId_dictText',
        },
        {
          title: '资产的来源国家',
          align: "center",
          dataIndex: 'sourceCountry',
        },
        {
          title: '型号',
@@ -790,7 +970,7 @@
          dataIndex: 'model',
        },
        {
          title: '规格',
          title: '设备规格',
          align: "center",
          dataIndex: 'specification',
        },
@@ -800,31 +980,49 @@
          dataIndex: 'gpo',
        },
        {
          title: '使用部门',
          title: '创建人',
          align: "center",
          dataIndex: 'useId_dictText',
          dataIndex: 'createBy'
        },
        // {
        //   title: '维护部门',
        //   align: "center",
        //   dataIndex: 'manageId_dictText',
        // },
        // {
        //   title: '维修班组',
        //   align: "center",
        //   dataIndex: 'teamId_dictText',
        // },
        {
          title: 'ABC标识',
          title: '创建时间',
          align: "center",
          dataIndex: 'equipmentImportanceId',
          dataIndex: 'createTime',
        },
        {
          title: '技术状态',
          title: '更新人',
          align: "center",
          dataIndex: 'technologyStatus_dictText',
          scopedSlots: { customRender: 'technologyStatus' },
          dataIndex: 'updateBy'
        },
        {
          title: '更新时间',
          align: "center",
          dataIndex: 'updateTime',
        },
        {
          title: '质保开始日期',
          align: "center",
          dataIndex: 'warrantyStart'
        },
        {
          title: '质保结束日期',
          align: "center",
          dataIndex: 'warrantyEnd',
        },
        {
          title: '资产状态',
          align: "center",
          dataIndex: 'propertyStatus_dictText',
        },
        {
          title: '三保日期',
          align: "center",
          dataIndex: 'thirdMaintenanceTime',
        },
        {
          title: '技术鉴定日期',
          align: "center",
          dataIndex: 'technologyStatusQualificationTime',
        },
        {
          title: '技术状态鉴定类型',
@@ -837,6 +1035,11 @@
          dataIndex: 'nextTechnologyStatusQualificationTime',
        },
        {
          title: '是否生产线设备',
          align: "center",
          dataIndex: 'isLineEquip_dictText',
        },
        {
          title: '生产线编号',
          align: "center",
          dataIndex: 'lineId_dictText',
@@ -846,103 +1049,6 @@
          align: "center",
          dataIndex: 'isMeta_dictText',
        },
        // {
        //   title: '安全配置',
        //   align: "center",
        //   dataIndex: 'securityConfiguration',
        // },
        // {
        //   title: '冷却系统',
        //   align: "center",
        //   dataIndex: 'coolingSystem',
        // },
        // {
        //   title: '灭火器',
        //   align: "center",
        //   dataIndex: 'fireExtinguisher',
        // },
        // {
        //   title: '操作系统',
        //   align: "center",
        //   dataIndex: 'operatingSystem',
        // },
        // {
        //   title: '系统',
        //   align: "center",
        //   dataIndex: 'system',
        // },
        // {
        //   title: '设备端口',
        //   align: "center",
        //   dataIndex: 'port',
        // },
        // {
        //   title: '坐标数量',
        //   align: "center",
        //   dataIndex: 'coordinateNum',
        // },
        // {
        //   title: '设备状态',
        //   align: "center",
        //   dataIndex: 'equipmentStatus_dictText',
        // },
        // {
        //   title: '重量',
        //   align: "center",
        //   dataIndex: 'equipmentUda3',
        // },
        // {
        //   title: '重量计量单位',
        //   align: "center",
        //   dataIndex: 'equipmentUda4_dictText',
        // },
        // {
        //   title: '功能位置',
        //   align: "center",
        //   dataIndex: 'equipmentUda5',
        // },
        // {
        //   title: '安装位置',
        //   align: "center",
        //   dataIndex: 'equipmentUda2',
        // },
        // {
        //   title: '出厂日期',
        //   align: "center",
        //   dataIndex: 'leaveFactoryDate',
        // },
        // {
        //   title: '立项卡号',
        //   align: "center",
        //   dataIndex: 'projectApprovalNo',
        // },
        // {
        //   title: '资金来源',
        //   align: "center",
        //   dataIndex: 'fundSource',
        // },
        // {
        //   title: '验收日期',
        //   align: "center",
        //   dataIndex: 'acceptanceCheckDate',
        // },
        // {
        //   title: '出厂编号',
        //   align: "center",
        //   dataIndex: 'factoryNo',
        // },
        // {
        //   title: '资产制造商',
        //   align: "center",
        //   dataIndex: 'constructorId_dictText',
        // },
        // {
        //   title: '资产的来源国家',
        //   align: "center",
        //   dataIndex: 'sourceCountry',
        // },
        {
          title: '工艺参数管理',
          align: "center",
@@ -1194,6 +1300,7 @@
    },
    handleDownload() {
      debugger;
      var params = {}//查询条件
      params.type = "equipment"
      params.pageNo = 1