Commit c653188d authored by 袁玲利's avatar 袁玲利

消费报告

parent 33fefed3
......@@ -406,7 +406,7 @@ export default {
},
params
);
if (data.code != 200) {
if (data.code != 10000) {
uni.showToast({
icon: "none",
title: data.message || "发生异常!",
......
......@@ -3191,11 +3191,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
sortCalculateType: function (a, b) {
......@@ -3253,6 +3253,16 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
if (data.code == 200) {
this.campusConsumerDetailObj = {}
this.campusConsumerDetailObj.campusConsumerDetailList = []
this.trendColorList = []
this.consumerDetailCalculateObj.canteenData = 0
this.consumerDetailCalculateObj.totalData = 0
this.consumerDetailCalculateObj.cateringNumber = 0
this.consumerDetailCalculateObj.notCateringNumber = 0
if(!data.obj){
return;
}
if (
data.obj &&
data.obj.campusConsumerDetailList &&
......@@ -3394,11 +3404,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 查询就餐情况
......@@ -3453,11 +3463,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 三对象排序
......@@ -3620,11 +3630,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
livingCostType: function (a, b) {
......@@ -3817,11 +3827,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 日消费趋势
......@@ -3921,11 +3931,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 饭友分析
......@@ -3945,11 +3955,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
return;
}
this.mealPalData = data.obj || [];
......@@ -3962,11 +3972,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 异常就餐日期
......@@ -4016,11 +4026,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
return;
}
if (data.obj) {
......@@ -4050,11 +4060,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 获取公话报告
......@@ -4074,11 +4084,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 0) {
uni.showToast({
icon: "none",
mask: true,
title: data.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
return;
}
this.pubTalkReport = data.data || {};
......@@ -4095,11 +4105,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 出入校报告
......@@ -4120,22 +4130,22 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
return;
}
this.attendanceReport = data.data || {};
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 出入情况明细
......@@ -4154,11 +4164,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
return;
}
var tempList = data.data;
......@@ -4183,11 +4193,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 是否开通会员功能
......@@ -4277,11 +4287,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 查询是否开通服务项(入口展示服务项)
......@@ -4297,11 +4307,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
);
if (data.code != 200) {
uni.showToast({
icon: "none",
mask: true,
title: data.msg,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.msg,
// });
return;
}
const tempList = data.obj || [];
......@@ -4313,11 +4323,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 查询会员消费金额
......@@ -4345,11 +4355,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
// 查询消费会员权益项
......@@ -4421,11 +4431,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message,
});
// uni.showToast({
// icon: "none",
// mask: true,
// title: e.message,
// });
}
},
equityPay: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment