|
|
@@ -4,7 +4,7 @@
|
|
|
:close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
|
|
|
<avue-crud :option="selecList.length || type ? optionBack : optionPrinting" :table-loading="loading" :data="data"
|
|
|
:page.sync="page" :permission="permissionList" v-model="form" ref="crud" id="out-table"
|
|
|
- :header-cell-class-name="headerClassName" :search.sync="query" @search-change="searchChange"
|
|
|
+ :header-cell-class-name="headerClassName" :search.sync="query" @search-change="searchChange"
|
|
|
@search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
|
|
|
@size-change="sizeChange" @refresh-change="refreshChange">
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
@@ -12,17 +12,18 @@
|
|
|
@click="reportsGetReportDatafun(scope.row.url, scope.row)">预览报表</el-link>
|
|
|
</template>
|
|
|
<template slot="curCode" slot-scope="{ row }">
|
|
|
- <dic-select v-model="row.curCode" placeholder="币别" key="id" keyValue="key" label="code" :mockData="curCodeList"
|
|
|
- :filterable="true" :activateCreated="false"></dic-select>
|
|
|
+ <dic-select v-model="row.curCode" placeholder="币别" key="id" keyValue="key" label="code"
|
|
|
+ :mockData="curCodeList" :filterable="true" :activateCreated="false"></dic-select>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-dialog>
|
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
|
+ <mail-component ref="mailComponentRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList, getDetail, add, update, remove,printingUpdate } from "@/api/boxManagement/reports";
|
|
|
+import { getList, getDetail, add, update, remove, printingUpdate } from "@/api/boxManagement/reports";
|
|
|
import { reportsGetReportData } from "@/api/boxManagement/reports";
|
|
|
import { getUserApprovalList } from "@/api/approval/processConfig";
|
|
|
import { mapGetters } from "vuex";
|
|
|
@@ -31,10 +32,12 @@ import { bbusinesstypeList } from "@/api/iosBasicData/bbusinesstype";
|
|
|
import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
|
|
|
import { getFeeCenterCorpIds } from "@/api/iosBasicData/feecenter";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
+import mailComponent from "@/components/iosbasic-data/mail-component.vue";
|
|
|
export default {
|
|
|
components: {
|
|
|
dicSelect,
|
|
|
- reportContainer
|
|
|
+ reportContainer,
|
|
|
+ mailComponent
|
|
|
},
|
|
|
props: {
|
|
|
id: {
|
|
|
@@ -119,14 +122,14 @@ export default {
|
|
|
delBtn: false,
|
|
|
editBtn: false,
|
|
|
menuWidth: '100',
|
|
|
- header:false,
|
|
|
+ header: false,
|
|
|
// menu:false,
|
|
|
column: [
|
|
|
- // {
|
|
|
- // label: "币别",
|
|
|
- // prop: "curCode",
|
|
|
- // overHidden: true,
|
|
|
- // },
|
|
|
+ // {
|
|
|
+ // label: "币别",
|
|
|
+ // prop: "curCode",
|
|
|
+ // overHidden: true,
|
|
|
+ // },
|
|
|
{
|
|
|
label: "客户名称",
|
|
|
prop: "cnName",
|
|
|
@@ -600,7 +603,7 @@ export default {
|
|
|
},
|
|
|
// 打印报表获取数据
|
|
|
reportsGetReportDatafun(url, row) {
|
|
|
- printingUpdate({id:this.id})
|
|
|
+ printingUpdate({ id: this.id })
|
|
|
let obj = {}
|
|
|
if (this.selecList.length || this.type) {
|
|
|
obj = {
|
|
|
@@ -627,6 +630,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ testMail(e) {
|
|
|
+ console.info('eeeeeeeeeeeeeeeeeeee----', e)
|
|
|
+ this.$refs.mailComponentRef.dialogVisible = true
|
|
|
+ this.$refs.mailComponentRef.formData.attachments = e.fileName
|
|
|
+ this.$refs.mailComponentRef.formData.fileType = e.formatName
|
|
|
+ this.$refs.mailComponentRef.formData.fileContent = e.data
|
|
|
+ },
|
|
|
// 预览报表
|
|
|
handleReportPreview(url, row) {
|
|
|
Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
|
|
|
@@ -649,7 +659,9 @@ export default {
|
|
|
options.toolbar.showParametersButton = true // 显示参数按钮
|
|
|
options.appearance.bookmarksPrint = true // 书签打印
|
|
|
// options.toolbar.showPrintButton = false // 打印按钮是否显示 下面直接自定义控制打印弹窗是否开启
|
|
|
-
|
|
|
+ options.toolbar.showSendEmailButton = true // 显示发送邮件按钮
|
|
|
+ options.email.showEmailDialog = false
|
|
|
+ options.email.showExportDialog = false
|
|
|
// printDestination 参数:用于指定报表打印的目标位置,可以是打印机、PDF 文件或者直接打印到浏览器等。
|
|
|
// Stimulsoft.Viewer.StiPrintDestination.Direct:表示直接打印到打印机,即将报表内容直接发送至打印机进行打印。
|
|
|
// 通过设置不同的 printDestination 参数,你可以控制报表打印的行为,例如是直接打印到打印机,还是生成 PDF 文件,或者直接在浏览器中预览打印内容等。
|
|
|
@@ -658,7 +670,7 @@ export default {
|
|
|
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
|
|
|
// 是创建一个 Stimulsoft 报表查看器的实例的代码
|
|
|
let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
|
|
|
-
|
|
|
+ viewer.onEmailReport = this.testMail
|
|
|
// 报表
|
|
|
console.log("创建一个报表实例");
|
|
|
let report = new window.Stimulsoft.Report.StiReport();
|