| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button v-has="'eam:inspection:add'" @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="batchZf('ABOLISH')" v-has="'eam:inspection:abolish'"> |
| | | <a-icon type="snippets"/> |
| | | 作废 |
| | | </a-menu-item> |
| | | <a-menu-item key="2" @click="batchLq('UNDER_INSPECTION')" v-has="'eam:inspection:collect'"> |
| | | <a-icon type="form"/> |
| | | 领取 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 |
| | | <a-icon type="down"/> |
| | | </a-button> |
| | | </a-dropdown> |
| | | <!--<a-dropdown v-if="selectedRowKeys.length > 0">--> |
| | | <!--<a-menu slot="overlay">--> |
| | | <!--<a-menu-item key="1" @click="batchZf('ABOLISH')" v-has="'eam:inspection:abolish'">--> |
| | | <!--<a-icon type="snippets"/>--> |
| | | <!--作废--> |
| | | <!--</a-menu-item>--> |
| | | <!--<a-menu-item key="2" @click="batchLq('UNDER_INSPECTION')" v-has="'eam:inspection:collect'">--> |
| | | <!--<a-icon type="form"/>--> |
| | | <!--领取--> |
| | | <!--</a-menu-item>--> |
| | | <!--<a-menu-item key="3" @click="handleBatchPrint">--> |
| | | <!--<a-icon type="printer"/>--> |
| | | <!--打印--> |
| | | <!--</a-menu-item>--> |
| | | <!--</a-menu>--> |
| | | <!--<a-button style="margin-left: 8px"> 批量操作--> |
| | | <!--<a-icon type="down"/>--> |
| | | <!--</a-button>--> |
| | | <!--</a-dropdown>--> |
| | | |
| | | |
| | | <a-button type="primary" icon="form" @click="batchLq('UNDER_INSPECTION')" v-has="'eam:inspection:collect'" |
| | | :disabled="selectedRowKeys.length===0">批量领取 |
| | | </a-button> |
| | | <a-button type="primary" icon="monitor" @click="handleBatchPrint" :disabled="selectedRowKeys.length===0">批量预览 |
| | | </a-button> |
| | | <a-button type="danger" icon="delete" @click="batchZf('ABOLISH')" v-has="'eam:inspection:abolish'" |
| | | :disabled="selectedRowKeys.length===0">批量作废 |
| | | </a-button> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | </template> |
| | | |
| | | <template v-else> |
| | | <template v-if="record.inspectionStatus=='COMPLETE'"> |
| | | <a @click="handlePrint(record)">预览</a> |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详情</a> |
| | | |
| | | <template v-if="record.inspectionStatus=='COMPLETE'"> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handlePrint(record)">预览</a> |
| | | </template> |
| | | </template> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | <!--表单弹窗--> |
| | | <eam-inspection-order-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <!--审批弹窗--> |
| | | <inspection-order-handle ref="modalFormXq" :selectShenpiData="selectInspectionOrderXqData"/> |
| | | |
| | | <!--批量打印弹窗--> |
| | | <eam-inspection-order-batch-print-modal ref="batchPrintModal"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import InspectionOrderHandle from '../../flowable/workflow/InspectionOrder/InspectionOrderHandle' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import EamInspectionOrderBatchPrintModal from './modules/EamInspectionOrderBatchPrintModal' |
| | | |
| | | export default { |
| | | name: 'EamInspectionOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | EamInspectionOrderBatchPrintModal, |
| | | LxSearchEquipmentSelect, |
| | | InspectionOrderHandle, |
| | | EamInspectionOrderModal |
| | |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '点检状态', |
| | | align: 'center', |
| | | dataIndex: 'inspectionStatus_dictText', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '工单号', |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | |
| | | title: '创建方式', |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | }, |
| | | { |
| | | title: '点检状态', |
| | | align: 'center', |
| | | dataIndex: 'inspectionStatus_dictText' |
| | | }, |
| | | { |
| | | title: '点检人', |
| | |
| | | this.$refs.modalFormXq.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | | * 领取 |
| | | * @param id |
| | | */ |
| | | handleInspection(id) { |
| | | var that = this |
| | | this.loading = true |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 作废 |
| | | * @param id |
| | | */ |
| | | handleAbolish(id) { |
| | | var that = this |
| | | this.loading = true |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 批量作废 |
| | | * @param type |
| | | */ |
| | | batchZf(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 批量领取 |
| | | * @param type |
| | | */ |
| | | batchLq(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 预览 |
| | | * @param record |
| | | */ |
| | | handlePrint(record) { |
| | | let href = `${window._CONFIG['domianURL']}/jmreport/view/1105664887569121280?equipmentCode=` + record.equipmentCode |
| | | window.open(href, '_blank') |
| | | }, |
| | | |
| | | handleBatchPrint() { |
| | | this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join()) |
| | | }, |
| | | |
| | | onInspectionDateChange: function(value, dateString) { |
| | | this.queryParam.inspectionDateBegin = dateString[0] |
| | | this.queryParam.inspectionDateEnd = dateString[1] |