| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | |
| | | <a-dropdown :disabled="selectedRowKeys.length===0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="handleBatchPrint(1)"> |
| | | 验收单 |
| | | </a-menu-item> |
| | | <a-menu-item key="2" @click="handleBatchPrint(2)"> |
| | | 完工移交单 |
| | | </a-menu-item> |
| | | <a-menu-item key="3" @click="handleBatchPrint(3)"> |
| | | 以上同时展示 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px" type="primary"> 批量预览 |
| | | <a-icon type="down"/> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | | <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.maintenanceStatus === 'WAIT_MAINTENANCE'"> |
| | |
| | | <template v-if="record.maintenanceStatus === 'COMPLETE'"> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handlePrint(record)">打印</a> |
| | | <a @click="handlePrint(record)">预览</a> |
| | | </template> |
| | | </span> |
| | | </a-table> |
| | |
| | | |
| | | <!--工单变更弹窗--> |
| | | <eam-third-maintenance-change-modal ref="orderChangeModal" @ok="modalFormOk"/> |
| | | |
| | | <!--批量打印弹窗--> |
| | | <eam-third-maintenance-order-batch-print-modal ref="batchPrintModal"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import ThirdMaintenanceApprovalModal |
| | | from '@views/flowable/workflow/thirdMaintenance/ThirdMaintenanceApprovalModal.vue' |
| | | import EamThirdMaintenanceChangeModal from './modules/EamThirdMaintenanceChangeModal.vue' |
| | | import EamThirdMaintenanceOrderBatchPrintModal from './modules/EamThirdMaintenanceOrderBatchPrintModal' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | EamThirdMaintenanceOrderBatchPrintModal, |
| | | EamThirdMaintenanceChangeModal, |
| | | LxSearchEquipmentSelect, |
| | | EamThirdMaintenanceOrderModal, |
| | |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | // 批量打印 |
| | | handleBatchPrint(type) { |
| | | this.$refs.batchPrintModal.handlePreview(type,this.selectedRowKeys.join()) |
| | | }, |
| | | |
| | | onMaintenanceDateChange(dateString) { |
| | | this.queryParam.maintenanceDateBegin = dateString[0] |
| | | this.queryParam.maintenanceDateEnd = dateString[1] |
| | | }, |
| | | |
| | | /** |
| | | * 积木报表预览打印 |
| | | * @param record |
| | | */ |
| | | handlePrint(record) { |
| | | let href = `${window._CONFIG['domianURL']}/jmreport/view/1094880052100399104?id=` + record.id |
| | | // + `&orderId=` + record.id; //网站链接 |