YY hace 2 años
padre
commit
319f5cb6ca
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      src/views/zr/zrOrder/parts/detail-1.vue

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

@@ -82,11 +82,8 @@ 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;
-      }
+      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);