Commit 757cd5dc by lichengming

修改了证书管理证书打印

parent 301a4552
...@@ -220,6 +220,7 @@ export default { ...@@ -220,6 +220,7 @@ export default {
}) })
} }
}, },
_resultRecord() {},
_record(id) { _record(id) {
this.$refs.operationModal._open(id) this.$refs.operationModal._open(id)
}, },
......
...@@ -80,6 +80,11 @@ export default { ...@@ -80,6 +80,11 @@ export default {
type: 'success', type: 'success',
id: '', id: '',
name: '打印' name: '打印'
},
{
type: 'success',
id: '',
name: '打印完成'
} }
], ],
iconMsg: [ iconMsg: [
...@@ -145,6 +150,9 @@ export default { ...@@ -145,6 +150,9 @@ export default {
case '打印': case '打印':
this._printExcel() this._printExcel()
break break
case '打印完成':
this._printOverExcel()
break
case '退回': case '退回':
this._goBack() this._goBack()
break break
...@@ -165,6 +173,15 @@ export default { ...@@ -165,6 +173,15 @@ export default {
this.$pageofficePrint({ ids: ids, type: 'xlsx' }) this.$pageofficePrint({ ids: ids, type: 'xlsx' })
} }
}, },
_printOverExcel() {
const ids = this.selectIds
if (ids.length === 0) {
this.$Message.warning('请至少选择一条数据!')
} else {
console.log(ids)
// this.$pageofficePrint({ ids: ids, type: 'xlsx' })
}
},
_submitEnd: async function(data) { _submitEnd: async function(data) {
const result = await meterSample.endReport(data) const result = await meterSample.endReport(data)
...@@ -321,6 +338,7 @@ export default { ...@@ -321,6 +338,7 @@ export default {
) )
} }
}, },
_resultRecord() {},
_getById: async function(id) { _getById: async function(id) {
const result = await meterSample.getById(id) const result = await meterSample.getById(id)
if (result) { if (result) {
......
<template>
<div>
<div class="layout-content-padding">
<div class="layout-content-main">
<el-tabs v-model="activeName" @tab-click="_changeTabs">
<el-tab-pane label="待完成" name="wait">
<MeterGoOutEntrust ref="waitTabs"></MeterGoOutEntrust>
</el-tab-pane>
<el-tab-pane label="历史记录" name="his">
<MeterGoOutEntrustHis ref="hisTabs"></MeterGoOutEntrustHis>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</template>
<script>
import MeterGoOutEntrust from './MeterCertificatePrintIndex'
import MeterGoOutEntrustHis from './MeterCertificatePrintIndexHis'
export default {
name: 'MeterGoOutEntrustIndex',
components: {
MeterGoOutEntrust,
MeterGoOutEntrustHis
},
data() {
return {
activeName: 'wait'
}
},
mounted() {
this.activeName = 'wait'
this._page()
},
methods: {
_changeTabs(tab, event) {
if (tab.name === 'wait') {
this._page()
} else {
this.$refs.hisTabs._page()
}
},
_page() {
this.$refs.waitTabs._page()
}
}
}
</script>
<style scoped>
</style>
...@@ -39,7 +39,7 @@ import MeterEntrustProgress from '../pages/meter-progress/progress-entrust/Meter ...@@ -39,7 +39,7 @@ import MeterEntrustProgress from '../pages/meter-progress/progress-entrust/Meter
import MeterClientOnlineEntrustIndex from '../pages/meter-entrust/client-online/MeterClientOnlineEntrustIndex' import MeterClientOnlineEntrustIndex from '../pages/meter-entrust/client-online/MeterClientOnlineEntrustIndex'
import MeterMeterWarehouseInIndex from '../pages/meter-warehouse/warehouse-in/MeterMeterWarehouseInIndex' import MeterMeterWarehouseInIndex from '../pages/meter-warehouse/warehouse-in/MeterMeterWarehouseInIndex'
import MeterMeterWarehouseOutIndex from '../pages/meter-warehouse/warehouse-out/MeterMeterWarehouseOutIndex' import MeterMeterWarehouseOutIndex from '../pages/meter-warehouse/warehouse-out/MeterMeterWarehouseOutIndex'
import MeterCertificatePrintIndex from '../pages/meter-certificate/print/MeterCertificatePrintIndex' import MeterCertificatePrintIndex from '../pages/meter-certificate/print/MeterCertificatePrintTabIndex'
import MeterCannotSubIndex from '../pages/meter-subcontract/cannot-sub/MeterCannotSubIndex' import MeterCannotSubIndex from '../pages/meter-subcontract/cannot-sub/MeterCannotSubIndex'
import MeterPersonalTask from '../pages/meter-statistics/personal-task/MeterPersonalTask' import MeterPersonalTask from '../pages/meter-statistics/personal-task/MeterPersonalTask'
import MeterAnnualEntrust from '../pages/meter-statistics/annual-entrust/MeterAnnualEntrust' import MeterAnnualEntrust from '../pages/meter-statistics/annual-entrust/MeterAnnualEntrust'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment