¶Ô±ÈÐÂÎļþ |
| | |
| | | <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="14" style="border: none"> |
| | | <div style="text-align: right">{{dataItem.hfCode}}</div> |
| | | </td> |
| | | </tr> |
| | | </thead> |
| | | |
| | | <tbody> |
| | | <tr style="height: 55px;"> |
| | | <td colspan="14">ç空çå¤ççæ´ä½æ§è½æ£æµè¡¨</td> |
| | | </tr> |
| | | |
| | | <tr style="height: 40px"> |
| | | <td colspan="4" style="border-right:none"> |
| | | <div style="text-align: left">ç产åä½ï¼{{dataItem.zxfactoryOrgCode_dictText}}</div> |
| | | </td> |
| | | <td colspan="4" style="border:none"> |
| | | <div style="text-align: left">设å¤åç§°ï¼{{dataItem.equipmentName}}</div> |
| | | </td> |
| | | <td colspan="3" style="border:none"> |
| | | <div style="text-align: left">设å¤åå·ï¼{{dataItem.equipmentModel}}</div> |
| | | </td> |
| | | <td colspan="3" style="border-left:none"> |
| | | <div style="text-align: left">ç»ä¸ç¼ç ï¼{{dataItem.equipmentCode}}</div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr style="height: 80px"> |
| | | <td colspan="3">å缩空æ°ååï¼MPaï¼</td> |
| | | <td colspan="2">æéç空ï¼Paï¼</td> |
| | | <td colspan="2">æ³æ¼çï¼Pa/hï¼</td> |
| | | <td colspan="2">ååå¤ç</td> |
| | | <td colspan="3">çæ¸©ååæ§æ£æµ</td> |
| | | <td colspan="2">å çåçæµè¯</td> |
| | | </tr> |
| | | |
| | | <tr style="height: 100px"> |
| | | <td colspan="3">{{dataItem.compressedAirPressureValue}}</td> |
| | | <td colspan="2">{{dataItem.ultimateVacuumValue}}</td> |
| | | <td colspan="2">{{dataItem.leakRate}}</td> |
| | | <td colspan="2">{{dataItem.purificationTreatment}}</td> |
| | | <td colspan="3">{{dataItem.furnaceTemperatureUniformityTesting}}</td> |
| | | <td colspan="2">{{dataItem.heatingPowerTest}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="14" style="padding: 20px 100px;border: none"> |
| | | <div style="text-align: right"> |
| | | è½å¦æ»¡è¶³å 工鿱ï¼{{dataItem.processingRequirementsFlag==='1'?'è½ï¼âï¼å¦ï¼ï¼':'è½ï¼ï¼å¦ï¼âï¼'}} |
| | | </div> |
| | | <br/><br/> |
| | | <div style="text-align: right">æ§è¡äººï¼<i>ç¬¬ä¸æ¹ç»´æ¤äººåç¾å</i> {{dataItem.operator_dictText}} |
| | | </div> |
| | | <br/><br/> |
| | | <div style="text-align: right">确认人ï¼<i>ç¬¬ä¸æ¹ç»´æ¤ç»é¿ç¾å</i> {{dataItem.confirmUser_dictText}} |
| | | </div> |
| | | <br/><br/> |
| | | <div style="text-align: right">确认æ¶é´ï¼{{dataItem.confirmTime}}</div> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </a-spin> |
| | | |
| | | <template slot="footer"> |
| | | <a-button @click="handleCancel">å
³é</a-button> |
| | | <a-button type="primary" @click="handleExportToExcel">导åº</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: 'EamThirdMaintenanceFurnaceBatchPrintModal', |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | spinning: false, |
| | | dataSource: [], |
| | | url: { |
| | | list: '/eam/eamThirdMaintenanceFurnace/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 |
| | | handleExportToExcel() { |
| | | document.querySelectorAll('table.import-table').forEach(element => { |
| | | console.log('element', element.id) |
| | | $(element).table2excel({ |
| | | exclude: '.noExl', |
| | | name: 'Excel Document Name', |
| | | filename: 'ç空çå¤ççæ´ä½æ§è½æ£æµè¡¨-' + element.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 { |
| | | writing-mode: vertical-lr; |
| | | letter-spacing: 5px; |
| | | padding: 5px 0; |
| | | } |
| | | } |
| | | </style> |