| | |
| | | return datajson; |
| | | }, |
| | | ws_both_from_object() { |
| | | console.log(this.$route.query.Type) |
| | | let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp); |
| | | let sql = ""; |
| | | if (this.$route.query.Type == "Kf_SellOutBillList") { |
| | |
| | | ) AS t |
| | | GROUP BY CEILING(CAST(t.row_num AS FLOAT) / 2) |
| | | ORDER BY orderid;`; |
| | | } else if (this.$route.query.Type == "Cg_ContractTransportBillMainList") { |
| | | sql = "exec h_p_Cg_ContractTransportBillMainList " + |
| | | this.handleMessage.linterid.toString(); |
| | | } else if (this.$route.query.Type == "WL_YayBill") { |
| | | |
| | | sql = "select * from h_v_WL_YayBilllist where hmainid in(" + |
| | | this.handleMessage.linterid.toString() + |
| | | ") order by hmainid desc"; |
| | | } |
| | | axios |
| | | .get(this.$baseUrl + "/CommonModel/searchMethod", { |
| | | this.$nextTick(() => { |
| | | axios.get(this.$baseUrl + "/CommonModel/searchMethod", { |
| | | params: { |
| | | sql: sql, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | // , "HSubID": data[i].hsubid |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | let result = response.data; |
| | | this.json_data.recordset = result.data; |
| | | //参数具体说明请参考帮助文档中的“WEB报表(B/S报表)->WEB报表客户端->启动参数说明”部分 |
| | | var args = { |
| | | type: "preview", //设置不同的属性可以执行不同的任务,如:preview print pdf xls csv txt rtf img grd |
| | | // report: this.json_report, //report: JSON.stringify(json_report), |
| | | report: urlAddRandomNo("./static/grf/" + OpenTmp + ".grf"), |
| | | data: this.json_data, //data: JSON.stringify(json_data) |
| | | }; |
| | | console.log(args, this.json_data); |
| | | webapp_ws_ajax_run(args); |
| | | // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/销售出库单.grf", this.json_data); |
| | | // reportViewer.start(); |
| | | }) |
| | | .catch((error) => { |
| | | console.log(22222, error); |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | .then((response) => { |
| | | console.log(111, OpenTmp, response) |
| | | let result = response.data; |
| | | this.json_data.recordset = result.data; |
| | | //参数具体说明请参考帮助文档中的“WEB报表(B/S报表)->WEB报表客户端->启动参数说明”部分 |
| | | var args = { |
| | | type: "preview", //设置不同的属性可以执行不同的任务,如:preview print pdf xls csv txt rtf img grd |
| | | // report: this.json_report, //report: JSON.stringify(json_report), |
| | | report: urlAddRandomNo("./static/grf/" + OpenTmp + ".grf"), |
| | | data: this.json_data, //data: JSON.stringify(json_data) |
| | | }; |
| | | console.log(args, this.json_data); |
| | | webapp_ws_ajax_run(args); |
| | | // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/销售出库单.grf", this.json_data); |
| | | // reportViewer.start(); |
| | | }) |
| | | .catch((error) => { |
| | | console.log(22222, error); |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }) |
| | | |
| | | }, |
| | | }, |
| | | }; |