zs 1 yıl önce
ebeveyn
işleme
a6189b88ee
2 değiştirilmiş dosya ile 2276 ekleme ve 2275 silme
  1. 2273 2274
      config.js
  2. 3 1
      pagesMy/statistics/index.vue

Dosya farkı çok büyük olduğundan ihmal edildi
+ 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