dytyqx
2 天以前 9620ca5caed59bd206dce701a04a5a4e4cfb9dc5
src/views/component/printList/barcode.vue
@@ -58,6 +58,7 @@
      return datajson;
    },
    async getPrintData() {
       console.log(this.$route.query.Type)
      // 在大批量打印的时候 url长度可能超get允许的长度 后端需按需求 改成POST请求
      let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp);
      let sql = "";
@@ -84,6 +85,12 @@
        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", {
@@ -95,6 +102,8 @@
          },
        });
        // 将 渲染数据 和 模板加载到本地
        console.log(res)
        let result = res.data;
        this.json_data.recordset = result.data;
        this.grfPath = "./static/grf/" + OpenTmp + ".grf";