YY 2 年之前
父節點
當前提交
73706d504b
共有 2 個文件被更改,包括 0 次插入4 次删除
  1. 0 2
      src/views/zr/zrGoods/index.vue
  2. 0 2
      src/views/zr/zrOrder/parts/detail-1.vue

+ 0 - 2
src/views/zr/zrGoods/index.vue

@@ -110,8 +110,6 @@ export default {
     ...methodsUtil,
     ...methodsUtil,
     // 查询
     // 查询
     async search({ skip = 0, limit = this.$limit, ...others } = {}) {
     async search({ skip = 0, limit = this.$limit, ...others } = {}) {
-      if (this.user.role.code == 'sadmin') others.shop = '';
-      else others.shop = this.user.shop.id;
       let query = { skip, limit, ...others };
       let query = { skip, limit, ...others };
       if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
       if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
       const res = await this.query(query);
       const res = await this.query(query);

+ 0 - 2
src/views/zr/zrOrder/parts/detail-1.vue

@@ -83,8 +83,6 @@ export default {
         condition[`buy_time@end`] = _.last(condition.buy_time);
         condition[`buy_time@end`] = _.last(condition.buy_time);
         delete condition.buy_time;
         delete condition.buy_time;
       }
       }
-      if (this.user.role.code == 'sadmin') info.shop = '';
-      else info.shop = this.user.shop.id;
       let res = await this.query({ skip, limit, ...condition, ...info });
       let res = await this.query({ skip, limit, ...condition, ...info });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'list', res.data);