Commit 6666abf0 by zhangquan

合同优化需求

1 parent 01e416ae
<template>
<div>
<GLDialog bigTitle="选择合同"
mode="big"
:visible.sync="changeContractObj.visible"
......@@ -25,13 +26,17 @@
</span>
</GLTable>
</GLDialog>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import pdfDialog from '@/views/beforeSale/pdfDialog'
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'changeContract',
components: {
pdfDialog,
glsxCombiForm
},
props: {
......@@ -43,6 +48,8 @@
data() {
return {
size: 'small',
isPdfVisible: false,
pdfUrl: '',
curId: '',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
getListApi: this.$apis.contractManager.getContractListApi,
......@@ -98,6 +105,24 @@
mounted() {
},
methods: {
handlePdfClose() {
this.isPdfVisible = !this.isPdfVisible
},
// 打印
handlePdf(row) {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.contractManager.printContractApi({ packageCode : row.packageCode , merchantId: row.merchantId }).then(res => {
this.pdfUrl = res
this.handlePdfClose()
loading.close()
})
},
beforeSearchFn() {
return new Promise(resolve => {
resolve()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!