zs 1 年間 前
コミット
a6189b88ee
2 ファイル変更2276 行追加2275 行削除
  1. 2273 2274
      config.js
  2. 3 1
      pagesMy/statistics/index.vue

ファイルの差分が大きいため隠しています
+ 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