zhangherong
2025-04-02 cf2df31488ea5aff454a89e227704c7cd87e05a4
art: 设备管理-保养标准-周保标准
已修改2个文件
30 ■■■■ 文件已修改
src/views/eam/base/EamMaintenanceStandardList.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/base/EamMaintenanceStandardList.vue
@@ -50,7 +50,12 @@
                  @change="inspectionImportExcel">
          <a-button type="primary" icon="import">点检导入</a-button>
        </a-upload>
        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload">点检模板下载</a-button>
        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.inspectionXlsDownloadUrl)">点检模板下载</a-button>
        <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" :action="weekMaintenanceImportExcel"
                  @change="weekMaintenanceImportExcel">
          <a-button type="primary" icon="import">周保导入</a-button>
        </a-upload>
        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.weekMaintenanceXlsDownloadUrl)">周保模板下载</a-button>
        <a-dropdown v-if="selectedRowKeys.length > 0">
          <a-menu slot="overlay">
            <a-menu-item key="1" @click="batchDel">
@@ -210,7 +215,10 @@
        deleteBatch: '/eam/maintenanceStandard/deleteBatch',
        exportXlsUrl: 'eam/maintenanceStandard/exportXls',
        inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel',
        inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx'
        weekMaintenanceImportExcel: 'eam/maintenanceStandard/weekMaintenanceImportExcel',
        inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx',
        weekMaintenanceXlsDownloadUrl: '导入模板/周保标准导入模板_v1.0.xlsx',
      },
      fileUrl: '',
      standardId: '-1'
@@ -219,6 +227,9 @@
  computed: {
    inspectionImportExcel: function() {
      return `${window._CONFIG['domianURL']}/${this.url.inspectionImportExcel}`
    },
    weekMaintenanceImportExcel: function() {
      return `${window._CONFIG['domianURL']}/${this.url.weekMaintenanceImportExcel}`
    }
  },
  created() {
@@ -279,8 +290,8 @@
      this.queryParam = {}
      this.loadData(1)
    },
    handleTemplateXlsDownload() {
      templateXlsDownload(this.url.inspectionXlsDownloadUrl)
    handleTemplateXlsDownload(url) {
      templateXlsDownload(url)
    },
  }
}
src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue
@@ -49,17 +49,22 @@
        {
          title: '保养项',
          align: 'center',
          dataIndex: 'itemName'
          dataIndex: 'itemName',
          width: 200,
          ellipsis: true,
        },
        {
          title: '子项目',
          align: 'center',
          dataIndex: 'subItemName'
          dataIndex: 'subItemName',
          width: 200,
          ellipsis: true,
        },
        {
          title: '保养要求',
          align: 'center',
          dataIndex: 'itemDemand'
          dataIndex: 'itemDemand',
          ellipsis: true,
        }
      ],
      url: {