| | |
| | | return datajson; |
| | | }, |
| | | async getPrintData() { |
| | | console.log(this.$route.query.Type) |
| | | // 在大批量打印的时候 url长度可能超get允许的长度 后端需按需求 改成POST请求 |
| | | let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp); |
| | | let sql = ""; |
| | |
| | | let condition = decodeURI(this.handleMessage.linterid.toString()); |
| | | condition = condition.split(',').map(e => `'${e}'`).join(',') |
| | | sql = `exec h_p_GetSPBarCode_Swell N'${condition}'`; |
| | | } 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"; |
| | | console.log(sql) |
| | | |
| | | } |
| | | try{ |
| | | let res = await axios.get(this.$baseUrl + "/CommonModel/searchMethod", { |
| | |
| | | }, |
| | | }); |
| | | // 将 渲染数据 和 模板加载到本地 |
| | | console.log(res) |
| | | |
| | | let result = res.data; |
| | | this.json_data.recordset = result.data; |
| | | this.grfPath = "./static/grf/" + OpenTmp + ".grf"; |