zs 1 năm trước cách đây
mục cha
commit
a6189b88ee
2 tập tin đã thay đổi với 2276 bổ sung2275 xóa
  1. 2273 2274
      config.js
  2. 3 1
      pagesMy/statistics/index.vue

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2273 - 2274
config.js


+ 3 - 1
pagesMy/statistics/index.vue

@@ -72,8 +72,10 @@
 				let user = that.user;
 				let info = {
 					time: that.years[that.yearsIndex],
-					supplier: user._id,
 				};
+				if (user.role == 'cs') info.supplier = user._id;
+				else if (user.role == 'ld') info.c_leader = user._id;
+				else info.c_accounting = user._id;
 				let res;
 				res = await that.$api(`/Statistics/orderDetail`, 'GET', {
 					...info