|
@@ -51,6 +51,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
|
|
+ <mail-component ref="mailComponentRef"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -61,10 +62,12 @@ import { mapGetters } from "vuex";
|
|
import { billsDetail } from '@/api/iosBasicData/bills'
|
|
import { billsDetail } from '@/api/iosBasicData/bills'
|
|
import { bbusinesstypeList } from "@/api/iosBasicData/bbusinesstype";
|
|
import { bbusinesstypeList } from "@/api/iosBasicData/bbusinesstype";
|
|
import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
|
|
import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
|
|
|
|
+import mailComponent from "@/views/iosBasicData/SeafreightExportF/bills/assembly/mail-component.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- reportContainer
|
|
|
|
|
|
+ reportContainer,
|
|
|
|
+ mailComponent
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
id: {
|
|
id: {
|
|
@@ -74,10 +77,10 @@ export default {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false,
|
|
default: false,
|
|
},
|
|
},
|
|
- classifycode:{
|
|
|
|
- type: String,
|
|
|
|
- default: '',
|
|
|
|
- },
|
|
|
|
|
|
+ classifycode:{
|
|
|
|
+ type: String,
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -131,7 +134,7 @@ export default {
|
|
label: "业务类别",
|
|
label: "业务类别",
|
|
prop: "classifyCode",
|
|
prop: "classifyCode",
|
|
type: 'select',
|
|
type: 'select',
|
|
- search: false,
|
|
|
|
|
|
+ search: true,
|
|
dicData: [{
|
|
dicData: [{
|
|
label: '业务',
|
|
label: '业务',
|
|
value: '业务'
|
|
value: '业务'
|
|
@@ -730,6 +733,13 @@ export default {
|
|
dialogPreviewfunDCB(row){
|
|
dialogPreviewfunDCB(row){
|
|
console.log('row', row, 'this.printBill', this.printBill)
|
|
console.log('row', row, 'this.printBill', this.printBill)
|
|
},
|
|
},
|
|
|
|
+ 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, rptItem) {
|
|
handleReportPreview(url, row, rptItem) {
|
|
Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
|
|
Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
|
|
@@ -751,7 +761,10 @@ export default {
|
|
options.exports.showExportToDocument = false // 显示导出到文档
|
|
options.exports.showExportToDocument = false // 显示导出到文档
|
|
options.toolbar.showParametersButton = true // 显示参数按钮
|
|
options.toolbar.showParametersButton = true // 显示参数按钮
|
|
options.appearance.bookmarksPrint = true // 书签打印
|
|
options.appearance.bookmarksPrint = true // 书签打印
|
|
- // options.toolbar.showPrintButton = false // 打印按钮是否显示 下面直接自定义控制打印弹窗是否开启
|
|
|
|
|
|
+ options.toolbar.showSendEmailButton = true // 显示发送邮件按钮
|
|
|
|
+ options.email.showEmailDialog = false
|
|
|
|
+ options.email.showExportDialog = false
|
|
|
|
+ // options.toolbar.showPrintButton = false // 打印按钮是否显示 下面直接自定义控制打印弹窗是否开启
|
|
|
|
|
|
// printDestination 参数:用于指定报表打印的目标位置,可以是打印机、PDF 文件或者直接打印到浏览器等。
|
|
// printDestination 参数:用于指定报表打印的目标位置,可以是打印机、PDF 文件或者直接打印到浏览器等。
|
|
// Stimulsoft.Viewer.StiPrintDestination.Direct:表示直接打印到打印机,即将报表内容直接发送至打印机进行打印。
|
|
// Stimulsoft.Viewer.StiPrintDestination.Direct:表示直接打印到打印机,即将报表内容直接发送至打印机进行打印。
|
|
@@ -761,7 +774,8 @@ export default {
|
|
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
|
|
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
|
|
// 是创建一个 Stimulsoft 报表查看器的实例的代码
|
|
// 是创建一个 Stimulsoft 报表查看器的实例的代码
|
|
let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
|
|
let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
|
|
-
|
|
|
|
|
|
+ viewer.onEmailReport = this.testMail
|
|
|
|
+ console.info('viewer', viewer)
|
|
// 报表
|
|
// 报表
|
|
console.log("创建一个报表实例");
|
|
console.log("创建一个报表实例");
|
|
let report = new window.Stimulsoft.Report.StiReport();
|
|
let report = new window.Stimulsoft.Report.StiReport();
|