zhaowei
10 小时以前 b99765f7cba95796975ea26f5d8a079d09b29660
src/views/eam/maintenance/EamThirdMaintenanceFurnaceList.vue
@@ -40,21 +40,12 @@
    <!-- 操作按钮区域 -->
    <div class="table-operator">
      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="handleBatchCollect">
            <a-icon type="form"/>
            领取
          </a-menu-item>
          <a-menu-item key="1" @click="handleBatchAbolish">
            <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="handleBatchCollect" type="primary" icon="form" :disabled="selectedRowKeys.length===0">批量领取
      </a-button>
      <a-button @click="handleBatchPrint" type="primary" icon="monitor" :disabled="selectedRowKeys.length===0">批量预览
      </a-button>
      <a-button @click="handleBatchAbolish" type="primary" icon="delete" :disabled="selectedRowKeys.length===0">批量作废
      </a-button>
    </div>
    <!-- table区域-begin -->
@@ -76,7 +67,7 @@
        <!--使用部门-->
        <template slot="factoryOrgCode" slot-scope="text,record">
          {{[record.zxfactoryOrgCode_dictText,record.gqfactoryOrgCode_dictText,record.factoryOrgCode_dictText].filter(item=>item).join('/')}}
          {{[record.zxfactoryOrgCode_dictText].filter(item=>item).join('/')}}
        </template>
        <span slot="action" slot-scope="text, record">
@@ -109,6 +100,9 @@
    <!--审批窗口-->
    <third-maintenance-furnace-approval-modal ref="thirdMaintenanceFurnaceApprovalModal"
                                              :selectShenpiData="selectedRowData"/>
    <!--批量打印窗口-->
    <eam-third-maintenance-furnace-batch-print-modal ref="batchPrintModal"/>
  </a-card>
</template>
@@ -119,11 +113,13 @@
  import { getAction, deleteAction } from '@/api/manage'
  import ThirdMaintenanceFurnaceApprovalModal
    from '../../flowable/workflow/thirdMaintenance/ThirdMaintenanceFurnaceApprovalModal'
  import EamThirdMaintenanceFurnaceBatchPrintModal from './modules/EamThirdMaintenanceFurnaceBatchPrintModal'
  export default {
    name: 'EamThirdMaintenanceFurnaceList',
    mixins: [JeecgListMixin],
    components: {
      EamThirdMaintenanceFurnaceBatchPrintModal,
      ThirdMaintenanceFurnaceApprovalModal,
      LxSearchEquipmentSelect,
      EamThirdMaintenanceFurnaceModal
@@ -165,7 +161,7 @@
          },
          {
            title: '使用部门',
            dataIndex: 'factoryOrgCode',
            align: 'center',
            scopedSlots: { customRender: 'factoryOrgCode' },
            fixed: 'left'
          },
@@ -333,6 +329,11 @@
        })
      },
      // 批量打印
      handleBatchPrint() {
        this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join())
      },
      /**
       * 点击作废时触发
       * @param id 行记录id