futian.liu
2023-12-09 b749000c83f80914b60b8e48a7097942dae70513
部门分发只能查看本机构下的
2个文件已修改
11 ■■■■ 已修改文件
admin-web/src/views/departmentitem/itemdis/distribution/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/controller/BaseGoodsTemplateController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/departmentitem/itemdis/distribution/index.vue
@@ -158,11 +158,15 @@
          defaultValue: '',
        },
      ],
      filterFrom: {},
      // 树数据
      treeDataList: []
    };
  },
  created() {
    this.filterFrom = {
      outAgencyId: this.userInfo.tenantId,
    };
    this.fetchData()
  },
  methods: {
consum-base/src/main/java/com/consum/base/controller/BaseGoodsTemplateController.java
@@ -220,8 +220,9 @@
    @GetMapping("/query/goodsTemplate")
    public ResponseValue queryGoodsTemplateByCategoryId(Long agencyId, Long categoryId) {
        // TODO 不限制机构
        List<BaseGoodsTemplate> list =
            this.baseGoodsTemplateService.queryGoodsTemplateByCategoryId(agencyId, categoryId, null, null);
            this.baseGoodsTemplateService.queryGoodsTemplateByCategoryId(null, categoryId, null, null);
        if (list == null) {
            return ResponseValue.error("查询失败!");
        }
@@ -250,7 +251,9 @@
        String sql =
            "SELECT DISTINCT bgt.id,bgt.GOODS_NAME, CLASSIFICATION type FROM l_wh_goods g LEFT JOIN base_goods_template bgt ON g.BASE_GOODS_TEMPLATE_ID = bgt.id "
                + "WHERE WAREHOUSE_TYPE = 0 " + "AND WAREHOUSE_ID = :warehouseId " + "AND CATEGORY_ID = :categoryId "
                + "WHERE WAREHOUSE_TYPE = 0 " + "AND WAREHOUSE_ID = :warehouseId "
                // TODO 临时解决
                /*+ "AND CATEGORY_ID = :categoryId "*/
                // 1:集采,2:自采
                + "AND BUY_TYPE =1";