|  | @@ -66,6 +66,7 @@
 | 
											
												
													
														|  |    import {getList, getDetail, add, update, remove} from "@/api/iosBasicData/reports";
 |  |    import {getList, getDetail, add, update, remove} from "@/api/iosBasicData/reports";
 | 
											
												
													
														|  |    import {getUserApprovalList} from "@/api/approval/processConfig";
 |  |    import {getUserApprovalList} from "@/api/approval/processConfig";
 | 
											
												
													
														|  |    import {mapGetters} from "vuex";
 |  |    import {mapGetters} from "vuex";
 | 
											
												
													
														|  | 
 |  | +  import {billsDetail} from '@/api/iosBasicData/bills'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
 |  |    import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -73,6 +74,11 @@
 | 
											
												
													
														|  |      components: {
 |  |      components: {
 | 
											
												
													
														|  |        reportContainer
 |  |        reportContainer
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    props: {
 | 
											
												
													
														|  | 
 |  | +      id: {
 | 
											
												
													
														|  | 
 |  | +        type: String
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      data() {
 |  |      data() {
 | 
											
												
													
														|  |        return {
 |  |        return {
 | 
											
												
													
														|  |          userList: [],
 |  |          userList: [],
 | 
											
										
											
												
													
														|  | @@ -350,131 +356,166 @@
 | 
											
												
													
														|  |      methods: {
 |  |      methods: {
 | 
											
												
													
														|  |        // 设计报表
 |  |        // 设计报表
 | 
											
												
													
														|  |        reportDesignButton(url) {
 |  |        reportDesignButton(url) {
 | 
											
												
													
														|  | -        Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
 |  | 
 | 
											
												
													
														|  | -        // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
 |  | 
 | 
											
												
													
														|  | -        Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
 |  | 
 | 
											
												
													
														|  | -        Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        var options = new Stimulsoft.Designer.StiDesignerOptions()
 |  | 
 | 
											
												
													
														|  | -        options.appearance.fullScreenMode = true
 |  | 
 | 
											
												
													
														|  | -        options.allowChangeWindowTitle = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showSaveDialog = false
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuSave = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuAbout = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuClose = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuExit = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuInfo = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuHelp = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFileMenuNew = false
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.appearance.showTooltips = false
 |  | 
 | 
											
												
													
														|  | -        options.appearance.showDialogsHelp = false
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showSetupToolboxButton = true
 |  | 
 | 
											
												
													
														|  | -        options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        let designer = new Stimulsoft.Designer.StiDesigner(
 |  | 
 | 
											
												
													
														|  | -          options,
 |  | 
 | 
											
												
													
														|  | -          'StiDesigner',
 |  | 
 | 
											
												
													
														|  | -          false
 |  | 
 | 
											
												
													
														|  | -        )
 |  | 
 | 
											
												
													
														|  | 
 |  | +        console.log(this.id)
 | 
											
												
													
														|  | 
 |  | +        var data = ''
 | 
											
												
													
														|  | 
 |  | +        if (this.id) {
 | 
											
												
													
														|  | 
 |  | +          billsDetail(this.id).then(res => {
 | 
											
												
													
														|  | 
 |  | +            data = res.data.data
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +            Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
 | 
											
												
													
														|  | 
 |  | +            // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
 | 
											
												
													
														|  | 
 |  | +            Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
 | 
											
												
													
														|  | 
 |  | +            Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            var options = new Stimulsoft.Designer.StiDesignerOptions()
 | 
											
												
													
														|  | 
 |  | +            options.appearance.fullScreenMode = true
 | 
											
												
													
														|  | 
 |  | +            options.allowChangeWindowTitle = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showSaveDialog = false
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuSave = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuAbout = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuClose = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuExit = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuInfo = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuHelp = false
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showFileMenuNew = false
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            options.appearance.showTooltips = false
 | 
											
												
													
														|  | 
 |  | +            options.appearance.showDialogsHelp = false
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            options.toolbar.showSetupToolboxButton = true
 | 
											
												
													
														|  | 
 |  | +            options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            let designer = new Stimulsoft.Designer.StiDesigner(
 | 
											
												
													
														|  | 
 |  | +              options,
 | 
											
												
													
														|  | 
 |  | +              'StiDesigner',
 | 
											
												
													
														|  | 
 |  | +              false
 | 
											
												
													
														|  | 
 |  | +            )
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        designer.onSaveReport = (e)=>{
 |  | 
 | 
											
												
													
														|  | -          console.log('onSaveReport')
 |  | 
 | 
											
												
													
														|  | -          // let jsObject = this.jsObject
 |  | 
 | 
											
												
													
														|  | 
 |  | +            designer.onSaveReport = (e)=>{
 | 
											
												
													
														|  | 
 |  | +              console.log('onSaveReport')
 | 
											
												
													
														|  | 
 |  | +              // let jsObject = this.jsObject
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -          if (!e.report.isModified)
 |  | 
 | 
											
												
													
														|  | -            return
 |  | 
 | 
											
												
													
														|  | -          var jsonString = e.report.saveToJsonString()
 |  | 
 | 
											
												
													
														|  | -          console.log(jsonString)
 |  | 
 | 
											
												
													
														|  | -          this.form.url = jsonString;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              if (!e.report.isModified)
 | 
											
												
													
														|  | 
 |  | +                return
 | 
											
												
													
														|  | 
 |  | +              var jsonString = e.report.saveToJsonString()
 | 
											
												
													
														|  | 
 |  | +              console.log(jsonString)
 | 
											
												
													
														|  | 
 |  | +              this.form.url = jsonString;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        let report = new window.Stimulsoft.Report.StiReport();
 |  | 
 | 
											
												
													
														|  | 
 |  | +            let report = new window.Stimulsoft.Report.StiReport();
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        report.styles.loadFile('static/Plugins/reports/css/Styles.sts')
 |  | 
 | 
											
												
													
														|  | -        report.applyStyles()
 |  | 
 | 
											
												
													
														|  | 
 |  | +            report.styles.loadFile('static/Plugins/reports/css/Styles.sts')
 | 
											
												
													
														|  | 
 |  | +            report.applyStyles()
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        // 加载文件
 |  | 
 | 
											
												
													
														|  | -        console.log("从 url 报表");
 |  | 
 | 
											
												
													
														|  | -        if (url) {
 |  | 
 | 
											
												
													
														|  | -          report.load(url)
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | -        // 从模版和数据加载报表
 |  | 
 | 
											
												
													
														|  | -        // loadReport(report, '', {})
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        designer.report = report
 |  | 
 | 
											
												
													
														|  | -        this.designer=designer
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        this.$refs.reportContainer.showContainer(
 |  | 
 | 
											
												
													
														|  | -          ()=> {
 |  | 
 | 
											
												
													
														|  | -            setTimeout(() => {
 |  | 
 | 
											
												
													
														|  | -              designer.renderHtml('reportContainer')
 |  | 
 | 
											
												
													
														|  | -              this.createDesignerButtons()
 |  | 
 | 
											
												
													
														|  | -            }, 50)
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -          ()=>{
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -        )
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            console.log("从 url 报表");
 | 
											
												
													
														|  | 
 |  | +            if (url) {
 | 
											
												
													
														|  | 
 |  | +              report.load(url)
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            // 加载文件
 | 
											
												
													
														|  | 
 |  | +            if (this.id) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +                  if (!!data) {
 | 
											
												
													
														|  | 
 |  | +                    var dataSet = new Stimulsoft.System.Data.DataSet(
 | 
											
												
													
														|  | 
 |  | +                      'reportData'
 | 
											
												
													
														|  | 
 |  | +                    )
 | 
											
												
													
														|  | 
 |  | +                    dataSet.readJson(data)
 | 
											
												
													
														|  | 
 |  | +                    report.regData('reportData', 'reportData', dataSet)
 | 
											
												
													
														|  | 
 |  | +                  }
 | 
											
												
													
														|  | 
 |  | +                // 从模版和数据加载报表
 | 
											
												
													
														|  | 
 |  | +                // loadReport(report, '', {})
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            designer.report = report
 | 
											
												
													
														|  | 
 |  | +            this.designer=designer
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +            this.$refs.reportContainer.showContainer(
 | 
											
												
													
														|  | 
 |  | +              ()=> {
 | 
											
												
													
														|  | 
 |  | +                setTimeout(() => {
 | 
											
												
													
														|  | 
 |  | +                  designer.renderHtml('reportContainer')
 | 
											
												
													
														|  | 
 |  | +                  this.createDesignerButtons()
 | 
											
												
													
														|  | 
 |  | +                }, 50)
 | 
											
												
													
														|  | 
 |  | +              },
 | 
											
												
													
														|  | 
 |  | +              ()=>{},
 | 
											
												
													
														|  | 
 |  | +          )
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        // 预览报表
 |  |        // 预览报表
 | 
											
												
													
														|  |        handleReportPreview(url){
 |  |        handleReportPreview(url){
 | 
											
												
													
														|  | -        Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
 |  | 
 | 
											
												
													
														|  | -        // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
 |  | 
 | 
											
												
													
														|  | -        Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
 |  | 
 | 
											
												
													
														|  | -        Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        // 工具栏
 |  | 
 | 
											
												
													
														|  | -        var options = new Stimulsoft.Viewer.StiViewerOptions()
 |  | 
 | 
											
												
													
														|  | -        options.height = '100%'
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.appearance.scrollbarsMode = true
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showDesignButton = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showAboutButton = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showResourcesButton = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showFullScreenButton = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showOpenButton = false
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.appearance.showTooltips = false
 |  | 
 | 
											
												
													
														|  | -        options.appearance.showDialogsHelp = false
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.exports.showExportToDocument = false
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.showParametersButton = true
 |  | 
 | 
											
												
													
														|  | -        options.appearance.bookmarksPrint = true
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        // 报表
 |  | 
 | 
											
												
													
														|  | -        console.log("创建一个报表实例");
 |  | 
 | 
											
												
													
														|  | -        let report = new window.Stimulsoft.Report.StiReport();
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        // 加载文件
 |  | 
 | 
											
												
													
														|  | -        console.log("从url加载报表");
 |  | 
 | 
											
												
													
														|  | -        // report.loadFile("/reports/stimulsoft/demos/SimpleList.mrt");
 |  | 
 | 
											
												
													
														|  | -        report.load(url)
 |  | 
 | 
											
												
													
														|  | -        // 从模版和数据加载报表
 |  | 
 | 
											
												
													
														|  | -        // loadReport(report, '', {})
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        viewer.report = report;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        this.$refs.reportContainer.showContainer(
 |  | 
 | 
											
												
													
														|  | -          ()=> {
 |  | 
 | 
											
												
													
														|  | -            setTimeout(() => {
 |  | 
 | 
											
												
													
														|  | -              viewer.renderHtml('reportContainer')
 |  | 
 | 
											
												
													
														|  | -              this.createViewerButtons(viewer)
 |  | 
 | 
											
												
													
														|  | -            }, 50)
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -          ()=>{
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -        )
 |  | 
 | 
											
												
													
														|  | 
 |  | +        var data = ''
 | 
											
												
													
														|  | 
 |  | +        if (this.id) {
 | 
											
												
													
														|  | 
 |  | +          billsDetail(this.id).then(res => {
 | 
											
												
													
														|  | 
 |  | +            data = res.data.data
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +          Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
 | 
											
												
													
														|  | 
 |  | +          // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
 | 
											
												
													
														|  | 
 |  | +          Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
 | 
											
												
													
														|  | 
 |  | +          Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          // 工具栏
 | 
											
												
													
														|  | 
 |  | +          var options = new Stimulsoft.Viewer.StiViewerOptions()
 | 
											
												
													
														|  | 
 |  | +          options.height = '100%'
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          options.appearance.scrollbarsMode = true
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showDesignButton = false
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showAboutButton = false
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showResourcesButton = false
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showFullScreenButton = false
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showOpenButton = false
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          options.appearance.showTooltips = false
 | 
											
												
													
														|  | 
 |  | +          options.appearance.showDialogsHelp = false
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          options.exports.showExportToDocument = false
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.showParametersButton = true
 | 
											
												
													
														|  | 
 |  | +          options.appearance.bookmarksPrint = true
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          // 报表
 | 
											
												
													
														|  | 
 |  | +          console.log("创建一个报表实例");
 | 
											
												
													
														|  | 
 |  | +          let report = new window.Stimulsoft.Report.StiReport();
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          // 加载文件
 | 
											
												
													
														|  | 
 |  | +          console.log("从url加载报表");
 | 
											
												
													
														|  | 
 |  | +          // report.loadFile("/reports/stimulsoft/demos/SimpleList.mrt");
 | 
											
												
													
														|  | 
 |  | +          report.load(url)
 | 
											
												
													
														|  | 
 |  | +          // 加载数据
 | 
											
												
													
														|  | 
 |  | +          if (this.id) {
 | 
											
												
													
														|  | 
 |  | +            if (!!data) {
 | 
											
												
													
														|  | 
 |  | +              var dataSet = new Stimulsoft.System.Data.DataSet(
 | 
											
												
													
														|  | 
 |  | +                'reportData'
 | 
											
												
													
														|  | 
 |  | +              )
 | 
											
												
													
														|  | 
 |  | +              dataSet.readJson(data)
 | 
											
												
													
														|  | 
 |  | +              report.regData('reportData', 'reportData', dataSet)
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +            // 从模版和数据加载报表
 | 
											
												
													
														|  | 
 |  | +            // loadReport(report, '', {})
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          viewer.report = report;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +          this.$refs.reportContainer.showContainer(
 | 
											
												
													
														|  | 
 |  | +            ()=> {
 | 
											
												
													
														|  | 
 |  | +              setTimeout(() => {
 | 
											
												
													
														|  | 
 |  | +                viewer.renderHtml('reportContainer')
 | 
											
												
													
														|  | 
 |  | +                this.createViewerButtons(viewer)
 | 
											
												
													
														|  | 
 |  | +              }, 50)
 | 
											
												
													
														|  | 
 |  | +            },
 | 
											
												
													
														|  | 
 |  | +            ()=>{
 | 
											
												
													
														|  | 
 |  | +            },
 | 
											
												
													
														|  | 
 |  | +          )
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        console.log("加载成功完成!");
 |  | 
 | 
											
												
													
														|  | 
 |  | +          console.log("加载成功完成!");
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        loadReport(report, content, data){
 |  |        loadReport(report, content, data){
 | 
											
												
													
														|  |          var mimeString = content
 |  |          var mimeString = content
 |