“linengliang”
2023-08-23 ee79f53fd9385b087ebd7a93af638d91a9825d10
lnl,设备台账导入功能+页面字段调整
已修改2个文件
349 ■■■■■ 文件已修改
src/views/eam/modules/equipment/EquipmentAccount2List.vue 345 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/equipment/ProcessParametersList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/equipment/EquipmentAccount2List.vue
@@ -64,6 +64,9 @@
        icon="plus"
        :hidden="disabled"
      >新增</a-button>
      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
        <a-button type="primary" icon="import">导入</a-button>
      </a-upload>
      <a-button
        type="primary"
        icon="download"
@@ -249,7 +252,7 @@
      type="card"
      defaultActiveKey="1"
    >
      <!-- <a-tab-pane key="1">
      <a-tab-pane key="1">
        <span slot="tab">
          <a-badge v-if="showTabsFlag">工艺参数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a-badge>
          <a-badge
@@ -265,7 +268,7 @@
        >
          <process-parameters-list ref="ProcessParametersList"></process-parameters-list>
        </div>
      </a-tab-pane> -->
      </a-tab-pane>
      <a-tab-pane
        key="2"
@@ -397,7 +400,7 @@
          width: 50,
        },
        {
          title: '设备编码',
          title: '统一编码',
          align: "center",
          dataIndex: 'num',
        },
@@ -407,80 +410,24 @@
          dataIndex: 'name',
        },
        {
          title: '设备型号',
          title: '型号',
          align: "center",
          dataIndex: 'model',
        },
        {
          title: '设备规格',
          title: '规格',
          align: "center",
          dataIndex: 'specification',
        },
        {
          title: '资产编码',
          align: "center",
          dataIndex: 'assetNumber',
        },
        {
          title: '设备状态',
          align: "center",
          dataIndex: 'equipmentStatus_dictText',
        },
        {
          title: '技术状态',
          align: "center",
          dataIndex: 'technologyStatus_dictText',
        },
        {
          title: '特种设备',
          align: "center",
          dataIndex: 'specificEquipment_dictText',
        },
        {
          title: '设备图片',
          align: "center",
          dataIndex: 'equipmentPhoto',
          scopedSlots: { customRender: 'equipmentPhoto' },
        },
        {
          title: '制造商',
          align: "center",
          dataIndex: 'constructorId_dictText',
        },
        {
          title: '供应商',
          align: "center",
          dataIndex: 'supplierId_dictText',
        },
        {
          title: '出厂编号',
          align: "center",
          dataIndex: 'factoryNumber',
        },
        {
          title: '出厂日期',
          align: "center",
          dataIndex: 'leaveFactoryDate',
        },
        {
          title: '验收日期',
          align: "center",
          dataIndex: 'acceptanceCheckDate',
        },
        // {
        //   title: '所有组织',
        //   title: '资产编码',
        //   align: "center",
        //   dataIndex: 'affiliationId_dictText',
        //   dataIndex: 'assetNumber',
        // },
        {
          title: '管理组织',
          title: '总功率',
          align: "center",
          dataIndex: 'manageId_dictText',
        },
        {
          title: '管理人员',
          align: "center",
          dataIndex: 'manager_dictText',
          dataIndex: 'gpo',
        },
        {
          title: '使用部门',
@@ -488,74 +435,242 @@
          dataIndex: 'useId_dictText',
        },
        {
          title: '责任人',
          title: '工区',
          align: "center",
          dataIndex: 'functionary_dictText',
          dataIndex: 'equipmentUda1',
        },
        {
          title: '责任班组',
          title: '维护部门',
          align: "center",
          dataIndex: 'manageId_dictText',
        },
        {
          title: '维修班组',
          align: "center",
          dataIndex: 'teamId_dictText',
        },
        {
          title: '位置',
          align: "center",
          dataIndex: 'location',
        },
        {
          title: '重要度',
          title: 'ABC标识',
          align: "center",
          dataIndex: 'equipmentImportanceId_dictText',
        },
        // {
        //   title: '工艺参数管理',
        //   align: "center",
        //   dataIndex: 'processParameters',
        //   scopedSlots: { customRender: 'processParameters' },
        // },
        // {
        //   title: '工艺参数模板',
        //   align: "center",
        //   dataIndex: 'processParametersTemplateName',
        // },
        {
          title: '设备精度管理',
          title: '关键设备标识',
          align: "center",
          dataIndex: 'precisionParameters',
          scopedSlots: { customRender: 'precisionParameters' },
          dataIndex: 'keyEquipmentIdentification',
        },
        {
          title: '精度参数模板',
          title: '安全配置',
          align: "center",
          dataIndex: 'precisionParametersTemplateName',
          dataIndex: 'securityConfiguration',
        },
        {
          title: '冷却系统',
          align: "center",
          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: '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",
        //   dataIndex: 'technologyStatus_dictText',
        // },
        // {
        //   title: '特种设备',
        //   align: "center",
        //   dataIndex: 'specificEquipment_dictText',
        // },
        // {
        //   title: '设备图片',
        //   align: "center",
        //   dataIndex: 'equipmentPhoto',
        //   scopedSlots: { customRender: 'equipmentPhoto' },
        // },
        // {
        //   title: '供应商',
        //   align: "center",
        //   dataIndex: 'supplierId_dictText',
        // },
        // {
        //   title: '出厂编号',
        //   align: "center",
        //   dataIndex: 'factoryNumber',
        // },
        // {
        //   title: '出厂日期',
        //   align: "center",
        //   dataIndex: 'leaveFactoryDate',
        // },
        // {
        //   title: '验收日期',
        //   align: "center",
        //   dataIndex: 'acceptanceCheckDate',
        // },
        // // {
        // //   title: '所有组织',
        // //   align: "center",
        // //   dataIndex: 'affiliationId_dictText',
        // // },
        // {
        //   title: '管理人员',
        //   align: "center",
        //   dataIndex: 'manager_dictText',
        // },
        // {
        //   title: '使用部门',
        //   align: "center",
        //   dataIndex: 'useId_dictText',
        // },
        // {
        //   title: '责任人',
        //   align: "center",
        //   dataIndex: 'functionary_dictText',
        // },
        // {
        //   title: '位置',
        //   align: "center",
        //   dataIndex: 'location',
        // },
        {
          title: '工艺参数管理',
          align: "center",
          dataIndex: 'processParameters',
          scopedSlots: { customRender: 'processParameters' },
        },
        {
          title: '工艺参数模板',
          align: "center",
          dataIndex: 'processParametersTemplateName',
        },
        // {
        //   title: '检定管理',
        //   title: '设备精度管理',
        //   align: "center",
        //   dataIndex: 'verification',
        //   scopedSlots: { customRender: 'verification' },
        //   dataIndex: 'precisionParameters',
        //   scopedSlots: { customRender: 'precisionParameters' },
        // },
        // {
        //   title: '检定周期/月',
        //   title: '精度参数模板',
        //   align: "center",
        //   dataIndex: 'verificationPeriod',
        //   dataIndex: 'precisionParametersTemplateName',
        // },
        // {
        //   title: '上次检定日期',
        //   align: "center",
        //   dataIndex: 'lastVerificationDate',
        // },
        // {
        //   title: '下次检定日期',
        //   align: "center",
        //   dataIndex: 'nextVerificationDate',
        // },
        // {
        //   title: '状态',
        //   align: 'center',
        //   dataIndex: 'status',
        //   width: 100,
        // },
        // // {
        // //   title: '检定管理',
        // //   align: "center",
        // //   dataIndex: 'verification',
        // //   scopedSlots: { customRender: 'verification' },
        // // },
        // // {
        // //   title: '检定周期/月',
        // //   align: "center",
        // //   dataIndex: 'verificationPeriod',
        // // },
        // // {
        // //   title: '上次检定日期',
        // //   align: "center",
        // //   dataIndex: 'lastVerificationDate',
        // // },
        // // {
        // //   title: '下次检定日期',
        // //   align: "center",
        // //   dataIndex: 'nextVerificationDate',
        // // },
        // // {
        // //   title: '状态',
        // //   align: 'center',
        // //   dataIndex: 'status',
        // //   width: 100,
        // // },
        {
          title: '备注',
          align: "center",
@@ -578,6 +693,7 @@
        deleteBatch: "/eam/equipment/deleteBatch",
        active: "/eam/equipment/active",
        exportXlsUrl: '/eam/equipment/exportXls',
        importExcelUrl: "/eam/equipment/importExcel",
        // importExcelUrl: 'base/site/importExcel',
      },
      //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性
@@ -606,6 +722,9 @@
        selectedRowKeys: this.selectedRowKeys,
      };
    },
    importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
  methods: {
@@ -621,11 +740,11 @@
    onSelectChange(selectedRowKeys, selectionRows) {
      if (selectedRowKeys.length == 1) {
        // this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0]
        this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0]
        this.$refs.EquipmentFileList.equipmentId = selectedRowKeys[0]
        this.$refs.PrecisionParametersList.equipmentId = selectedRowKeys[0]
      } else {
        // this.$refs.ProcessParametersList.equipmentId = '-1'
        this.$refs.ProcessParametersList.equipmentId = '-1'
        this.$refs.PrecisionParametersList.equipmentId = '-1'
        this.$refs.EquipmentFileList.equipmentId = '-1'
      }
src/views/eam/modules/equipment/ProcessParametersList.vue
@@ -1,11 +1,11 @@
<template>
  <a-card :bordered="false">
    <!-- <a-button
    <a-button
      v-if="equipmentSelectionRows.length == 1 && this.dataSource.length == 0"
      @click="handleAdd"
      type="primary"
      icon="plus"
    >新增</a-button> -->
    >新增</a-button>
    <div>
      <a-table
        ref="table"