@@ -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