¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal title="é¢è§ï¼ä»
å¯é¢è§å·²å®æå·¥åï¼" :width="948" :visible="visible" switchFullscreen centered |
| | | :mask-closable="false" @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="spinning" style="height: 100%"> |
| | | <div id="dataTable"> |
| | | <div v-for="dataItem in dataSource" class="table-container"> |
| | | <div style="page-break-before:always"></div> |
| | | |
| | | <table class="import-table" :id="dataItem.equipmentCode"> |
| | | <thead> |
| | | <tr> |
| | | <td colspan="12" style="border: none"> |
| | | <div style="text-align: right">{{dataItem.hfCode}}</div> |
| | | </td> |
| | | </tr> |
| | | </thead> |
| | | |
| | | <tbody> |
| | | <tr style="height: 48px;"> |
| | | <th colspan="12" style="border: none;font-size: 20px">å 工设å¤ä¿å
»è®¡ååæ´ç³è¯·å</th> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="6" style="border: none;padding-left: 20px"> |
| | | <div style="text-align: left">ç³è¯·åä½ï¼{{dataItem.zxfactoryOrgCode_dictText}}</div> |
| | | </td> |
| | | <td colspan="6" style="border: none;padding-right: 20px"> |
| | | <div style="text-align: right"> |
| | | {{dataItem.applyDate.split('-')[0]}} å¹´ {{dataItem.applyDate.split('-')[1]}} æ |
| | | {{dataItem.applyDate.split('-')[2]}} æ¥ |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr style="height: 40px;"> |
| | | <td colspan="2">设å¤åç§°</td> |
| | | <td colspan="2">{{dataItem.equipmentName}}</td> |
| | | <td colspan="2">åå·</td> |
| | | <td colspan="2">{{dataItem.equipmentModel}}</td> |
| | | <td colspan="2">ç»ä¸ç¼å·</td> |
| | | <td colspan="2">{{dataItem.equipmentCode}}</td> |
| | | </tr> |
| | | |
| | | <tr style="height: 40px;"> |
| | | <td colspan="2">åè®¡åæ¶é´</td> |
| | | <td colspan="2">{{dataItem.oldPlanDate}}</td> |
| | | <td colspan="2">ç³è¯·å»¶ä¿æ¶é´</td> |
| | | <td colspan="2">{{dataItem.deferredMaintenanceDate}}</td> |
| | | <td colspan="2">设å¤ç®¡ç主管</td> |
| | | <td colspan="2">{{dataItem.applicant_dictText}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="2" style="padding: 5px">å»¶ä¿ï¼æåæ´ï¼åå </td> |
| | | <td colspan="10" style="text-align: left;padding: 5px"> |
| | | <div style="text-align: left" v-html="dataItem.equipmentManagerComment"></div> |
| | | <br/><br/><br/><br/> |
| | | <div style="text-align: right;padding-right: 20px"> |
| | | 主管室级é¢å¯¼ç¾åï¼{{dataItem.equipmentManagerSignature_dictText}} |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="2" style="padding: 5px">确认é¨é¨</td> |
| | | <td colspan="10" style="padding: 5px"> |
| | | <div style="text-align: left" v-html="dataItem.departManagerComment"></div> |
| | | <br/><br/><br/><br/> |
| | | <div style="text-align: right;padding-right: 20px"> |
| | | 主管室级é¢å¯¼ç¾åï¼{{dataItem.departManagerSignature_dictText}} |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="2" style="padding: 5px">ç产ä¿éé¨</td> |
| | | <td colspan="10" style="padding: 5px"> |
| | | <div style="text-align: left" v-html="dataItem.productionSupportComment"></div> |
| | | <br/><br/><br/><br/> |
| | | <div style="text-align: right;padding-right: 20px"> |
| | | 主管室级é¢å¯¼ç¾åï¼{{dataItem.productionSupportSignature_dictText}} |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="12" style="padding: 5px 40px;border: none;"> |
| | | <div style="text-align: left"> |
| | | 夿³¨ï¼ç¡®è®¤é¨é¨ä¸ºçäº§ææ¥é¨ã设å¤ç»´ä¿®é¨é¨ã项ç®å®æ½é¨é¨ãå
¶ä¸å ç产任å¡ç´§æ¥æ æ³åæºçæ
åµé¡»ç»çäº§ææ¥é¨ç¾å |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </a-spin> |
| | | |
| | | <template slot="footer"> |
| | | <a-button @click="handleCancel">å
³é</a-button> |
| | | <a-button type="primary" @click="handleImport">导åº</a-button> |
| | | <a-button type="primary" v-print="'#dataTable'">æå°</a-button> |
| | | </template> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import $ from 'jquery' |
| | | import '@/components/table2excel/table2excel' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceChangeBatchPrintModal', |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | spinning: false, |
| | | dataSource: [], |
| | | url: { |
| | | list: '/eam/eamThirdMaintenanceChange/batchExport' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * æ¹éé¢è§ |
| | | * @param ids String 主页é¢å表å¾éids |
| | | */ |
| | | handlePreview(ids) { |
| | | this.visible = true |
| | | this.spinning = true |
| | | this.dataSource = [] |
| | | const that = this |
| | | getAction(this.url.list, { ids }) |
| | | .then(res => { |
| | | if (res.success) that.dataSource = res.result |
| | | }) |
| | | .finally(() => { |
| | | that.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | // 导åºå°Excel |
| | | handleImport() { |
| | | document.querySelectorAll('table.import-table').forEach(item => { |
| | | $(item).table2excel({ |
| | | exclude: '.noExl', |
| | | name: 'Excel Document Name', |
| | | filename: 'å 工设å¤ä¿å
»è®¡ååæ´ç³è¯·å-' + item.id, |
| | | exclude_img: true, |
| | | fileext: '.xls', |
| | | exclude_links: true, |
| | | exclude_inputs: false |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-modal { |
| | | height: 90%; |
| | | overflow: hidden; |
| | | |
| | | .ant-modal-content { |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | overflow: hidden; |
| | | |
| | | ::-webkit-scrollbar { |
| | | width: 8px; |
| | | height: 8px; |
| | | } |
| | | |
| | | .ant-modal-body { |
| | | flex: 1; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .table-container:not(:last-child) { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | table { |
| | | width: 100%; |
| | | text-align: center; |
| | | table-layout: fixed; |
| | | |
| | | td, th { |
| | | border: 1px solid #000; |
| | | } |
| | | |
| | | td.vertical-display { |
| | | transform: rotate(360deg); |
| | | writing-mode: vertical-lr; |
| | | letter-spacing: 5px; |
| | | padding: 10px 0; |
| | | } |
| | | } |
| | | </style> |