src/views/eam/repair/EamReportProductHazardsList.vue
@@ -35,38 +35,22 @@
    <!-- 操作按钮区域 -->
    <div class="table-operator">
<!--      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<!--      <a-button type="primary" icon="download" @click="handleExportXls('产品安全隐患确认')">导出</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-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
      </a-dropdown>
      <a-button @click="handleBatchPrint" type="primary" icon="monitor" :disabled="selectedRowKeys.length===0">批量预览
      </a-button>
      <a-button icon="delete" type="danger" @click="batchDel" :disabled="selectedRowKeys.length===0">批量删除</a-button>
    </div>
    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
        selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>
      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :scroll="{x:'max-content'}"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange">
      <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource"
               :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}"
               :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange">
      <span slot="action" slot-scope="text, record">
          <template v-if="record.confirmStatus==='PENDING_SUBMIT'">
@@ -94,7 +78,10 @@
    <!--审批窗口-->
    <report-product-hazards-approval-modal ref="reportProductHazardsApprovalModal"
                                              :selectShenpiData="selectedRowData"/>
                                           :selectShenpiData="selectedRowData"/>
    <!--批量打印弹窗-->
    <eam-product-hazards-batch-print-modal ref="batchPrintModal"/>
  </a-card>
</template>
@@ -102,15 +89,17 @@
  import '@/assets/less/TableExpand.less'
  import EamReportProductHazardsModal from './modules/EamReportProductHazardsModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import {getAction} from "@api/manage";
  import { getAction } from '@api/manage'
  import ReportProductHazardsApprovalModal
    from "@views/flowable/workflow/repairOrder/ReportProductHazardsApprovalModal.vue";
  import LxSearchEquipmentSelect from "@views/eam/equipment/modules/LxSearchEquipmentSelect.vue";
    from '@views/flowable/workflow/repairOrder/ReportProductHazardsApprovalModal.vue'
  import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue'
  import EamProductHazardsBatchPrintModal from './modules/EamProductHazardsBatchPrintModal'
  export default {
    name: "EamReportProductHazardsList",
    mixins:[JeecgListMixin],
    name: 'EamReportProductHazardsList',
    mixins: [JeecgListMixin],
    components: {
      EamProductHazardsBatchPrintModal,
      LxSearchEquipmentSelect,
      ReportProductHazardsApprovalModal,
      EamReportProductHazardsModal
@@ -124,7 +113,7 @@
        type: Object
      }
    },
    data () {
    data() {
      return {
        description: '产品安全隐患确认管理页面',
        disableMixinCreated: true,
@@ -181,74 +170,74 @@
            align: 'center',
            dataIndex: 'quantity'
          },
             {
          {
            title: '操作工',
            align:"center",
            align: 'center',
            dataIndex: 'confirmer_dictText'
           },
             {
          },
          {
            title: '操作工确认时间',
            align:"center",
            align: 'center',
            dataIndex: 'confirmTime'
           },
             {
          },
          {
            title: '产品损失情况',
            align:"center",
            align: 'center',
            dataIndex: 'productLoss_dictText'
           },
             {
          },
          {
            title: '产品损失质量影响分析',
            align:"center",
            align: 'center',
            dataIndex: 'qualityAnalysis',
            scopedSlots: { customRender: 'qualityAnalysis' }
           },
             {
          },
          {
            title: '主管工艺',
            align:"center",
            align: 'center',
            dataIndex: 'technologist_dictText'
           },
             {
          },
          {
            title: '主管工艺确认时间',
            align:"center",
            align: 'center',
            dataIndex: 'technologistTime'
           },
             {
          },
          {
            title: '主管工艺确认意见',
            align:"center",
            align: 'center',
            dataIndex: 'technologistComment'
           },
             {
          },
          {
            title: '部级领导',
            align:"center",
            align: 'center',
            dataIndex: 'deputyDepartment_dictText'
           },
             {
          },
          {
            title: '部级领导确认时间',
            align:"center",
            align: 'center',
            dataIndex: 'deputyDepartmentTime'
           },
             {
          },
          {
            title: '部级领导确认意见',
            align:"center",
            align: 'center',
            dataIndex: 'deputyDepartmentComment'
           },
           {
          },
          {
            title: 'HF编码',
            align: 'center',
            dataIndex: 'hfCode'
           },
          }
        ],
        selectedRowData: {},
          url: {
          list: "/eam/eamReportProductHazards/list",
          delete: "/eam/eamReportProductHazards/delete",
          deleteBatch: "/eam/eamReportProductHazards/deleteBatch",
          exportXlsUrl: "eam/eamReportProductHazards/exportXls",
          importExcelUrl: "eam/eamReportProductHazards/importExcel",
          submit:"/eam/eamReportProductHazards/submit",
       },
    }
  },
        url: {
          list: '/eam/eamReportProductHazards/list',
          delete: '/eam/eamReportProductHazards/delete',
          deleteBatch: '/eam/eamReportProductHazards/deleteBatch',
          exportXlsUrl: 'eam/eamReportProductHazards/exportXls',
          importExcelUrl: 'eam/eamReportProductHazards/importExcel',
          submit: '/eam/eamReportProductHazards/submit'
        }
      }
    },
    created() {
      if (!this.isDisplayOperation) this.queryParam = Object.assign({}, this.propsQueryParam)
      else {
@@ -289,6 +278,11 @@
          })
      },
      // 批量打印
      handleBatchPrint() {
        this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join())
      },
      /**
       * 点击详情时触发时触发
       * @param record