|  | @@ -66,6 +66,8 @@
 | 
											
												
													
														|  |          </el-button>
 |  |          </el-button>
 | 
											
												
													
														|  |        </template> -->
 |  |        </template> -->
 | 
											
												
													
														|  |        <template slot-scope="scope" slot="menu">
 |  |        <template slot-scope="scope" slot="menu">
 | 
											
												
													
														|  | 
 |  | +<!--        <el-button type="text" size="small" :disabled="scope.row.operate" @click.stop="jumpPage(scope.row)">查看-->
 | 
											
												
													
														|  | 
 |  | +<!--        </el-button>-->
 | 
											
												
													
														|  |          <el-button type="text" size="small" :disabled="scope.row.operate" @click.stop="jumpPage(scope.row)">查看
 |  |          <el-button type="text" size="small" :disabled="scope.row.operate" @click.stop="jumpPage(scope.row)">查看
 | 
											
												
													
														|  |          </el-button>
 |  |          </el-button>
 | 
											
												
													
														|  |          <el-button type="text" size="small" :disabled="scope.row.auditStatus != 'S'" @click.stop="openCheck(scope.row)">
 |  |          <el-button type="text" size="small" :disabled="scope.row.auditStatus != 'S'" @click.stop="openCheck(scope.row)">
 | 
											
										
											
												
													
														|  | @@ -86,6 +88,7 @@
 | 
											
												
													
														|  |          @choceCheckFun="choceCheckFun">
 |  |          @choceCheckFun="choceCheckFun">
 | 
											
												
													
														|  |        </check>
 |  |        </check>
 | 
											
												
													
														|  |      </el-dialog>
 |  |      </el-dialog>
 | 
											
												
													
														|  | 
 |  | +    <reportContainer style="width: 100%; height: 80%" ref="reportContainer"></reportContainer>
 | 
											
												
													
														|  |    </basic-container>
 |  |    </basic-container>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -100,12 +103,17 @@ import check from "./check";
 | 
											
												
													
														|  |  import { getUserInfo } from "@/api/system/user";
 |  |  import { getUserInfo } from "@/api/system/user";
 | 
											
												
													
														|  |  import { gainUser } from "@/api/basicData/customerInquiry";
 |  |  import { gainUser } from "@/api/basicData/customerInquiry";
 | 
											
												
													
														|  |  import {corpsDescListAll} from "../../api/tirePartsMall/salesManagement/saleOrder";
 |  |  import {corpsDescListAll} from "../../api/tirePartsMall/salesManagement/saleOrder";
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +import reportContainer from "@/views/iosBasicData/report-container/report-container.vue"
 | 
											
												
													
														|  | 
 |  | +import {finstlbillsDetail} from "../../api/iosBasicData/finstlbills";
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  let previousRouterName = "";
 |  |  let previousRouterName = "";
 | 
											
												
													
														|  |  let checkRefresh = "";
 |  |  let checkRefresh = "";
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
												
													
														|  |      check,
 |  |      check,
 | 
											
												
													
														|  | -    checkSchedule
 |  | 
 | 
											
												
													
														|  | 
 |  | +    checkSchedule,
 | 
											
												
													
														|  | 
 |  | +    reportContainer
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  |      return {
 |  |      return {
 | 
											
										
											
												
													
														|  | @@ -186,6 +194,79 @@ export default {
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  | 
 |  | +    // 预览报表
 | 
											
												
													
														|  | 
 |  | +    handleReportPreview(row){
 | 
											
												
													
														|  | 
 |  | +      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(row.url)
 | 
											
												
													
														|  | 
 |  | +      row
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      // 加载数据
 | 
											
												
													
														|  | 
 |  | +      if (this.id) {
 | 
											
												
													
														|  | 
 |  | +        finstlbillsDetail(this.id).then(res => {
 | 
											
												
													
														|  | 
 |  | +          var data = res.data.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("加载成功完成!");
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      batchCheck() {
 |  |      batchCheck() {
 | 
											
												
													
														|  |        for (let i = 0; i < this.selectionList.length; i++) {
 |  |        for (let i = 0; i < this.selectionList.length; i++) {
 | 
											
												
													
														|  |          if (this.selectionList[i].auditStatus != "S") {
 |  |          if (this.selectionList[i].auditStatus != "S") {
 |