Commit 272fc8a3 by lichengming
parents 66f2c4a6 bce6c3be
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide" <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
@on-result-change="_btnClick" style="height: 30px;"></btn-list> style="height: 30px;" @on-result-change="_btnClick"></btn-list>
</Col> </Col>
<!--表格--> <!--表格-->
<Col span="24"> <Col span="24">
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
import { meterSample } from '../../../api' import { meterSample } from '../../../api'
import operationModal from '../../../components/operation/Operation' import operationModal from '../../../components/operation/Operation'
import CertificateMakeLook from '../../meter-certificate/CertificateMakeLook' import CertificateMakeLook from '../../meter-certificate/CertificateMakeLook'
import http from '../../../api/http'
export default { export default {
components: { operationModal, CertificateMakeLook }, components: { operationModal, CertificateMakeLook },
data() { data() {
...@@ -77,11 +78,11 @@ export default { ...@@ -77,11 +78,11 @@ export default {
formId: 'meterCertificatePrintIndexFormId', formId: 'meterCertificatePrintIndexFormId',
searchOpen: true, searchOpen: true,
btn: [ btn: [
// { {
// type: 'success', type: 'success',
// id: '', id: '',
// name: '打印' name: '导出证书记录'
// } }
], ],
iconMsg: [ iconMsg: [
// { // {
...@@ -164,8 +165,8 @@ export default { ...@@ -164,8 +165,8 @@ export default {
case '添加': case '添加':
this._editModal(false) this._editModal(false)
break break
case '打印': case '导出证书记录':
this._printExcel() this._exportCertificateInfo()
break break
case '退回': case '退回':
this._goBack() this._goBack()
...@@ -176,6 +177,26 @@ export default { ...@@ -176,6 +177,26 @@ export default {
} }
}) })
}, },
_exportCertificateInfo() {
if (this.selectIds.length === 0) {
this.$Message.warning('请选择要导出的数据!')
return false
}
const sampleIds = this.selectIds.join(',')
const data = this.formObj
data.idsStr = sampleIds
this.$Modal.confirm({
title: '提示',
content: '确定导出数据?',
onOk: () => {
http.open(
'/meter/v1/sample/export_certificate_info/?ids=' + sampleIds
)
}
})
},
_submitToReview() { _submitToReview() {
this._submitByContractIds() this._submitByContractIds()
}, },
......
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