1
chenhaozhe
2025-12-18 f1e5c1e91476a1e7b28509be7742ea22d1d029f5
1
2个文件已修改
20 ■■■■ 已修改文件
.env.production 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/component/printList/barcode.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production
@@ -4,8 +4,8 @@
# 生产环境配置
ENV = 'production'
# VUE_APP_BASE_API = http://192.168.0.236:9010/API/
VUE_APP_BASE_API = http://220.189.218.155:9010/API/
VUE_APP_BASE_API = http://192.168.0.236:9010/API/
# VUE_APP_BASE_API = http://220.189.218.155:9010/API/
# VUE_APP_BASE_API = http://47.96.97.237/API/ # 智云迈思L-MOM管理系统/生产环境
# 路由懒加载 
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/views/component/printList/barcode.vue
@@ -82,20 +82,8 @@
          " order by hmainid";
      } else if (this.$route.query.Type == "HGyStockPlaceBarCode") {
        let condition = decodeURI(this.handleMessage.linterid.toString());
        sql = `SELECT
                CEILING(CAST(t.row_num AS FLOAT) / 2) AS orderid,
                MAX(CASE WHEN t.row_num % 2 = 1 THEN t.条码编号 END) AS 条码编号1,
                MAX(CASE WHEN t.row_num % 2 = 1 THEN t.仓位名称 END) AS 仓位名称1,
                MAX(CASE WHEN t.row_num % 2 = 0 THEN t.条码编号 END) AS 条码编号2,
                MAX(CASE WHEN t.row_num % 2 = 0 THEN t.仓位名称 END) AS 仓位名称2
              FROM (
                SELECT
                  条码编号, 仓位名称,
                  ROW_NUMBER() OVER (ORDER BY t1.HItemID) AS row_num
                FROM h_v_IF_StockPlaceList t1 where 条码编号 in (${condition})
              ) AS t
              GROUP BY CEILING(CAST(t.row_num AS FLOAT) / 2)
              ORDER BY orderid;`;
        condition = condition.split(',').map(e => `'${e}'`).join(',')
        sql = `exec h_p_GetSPBarCode_Swell N'${condition}'`;
      }
      try{
        let res =  await axios.get(this.baseUrl + "/CommonModel/searchMethod", {