|
@@ -90,6 +90,7 @@ export default {
|
|
|
// 查询
|
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
|
let condition = _.cloneDeep(this.searchForm);
|
|
|
+ // 店铺管理员查询
|
|
|
if (this.user.role.code == 'shopAdmin') {
|
|
|
if (condition.buy_time) {
|
|
|
condition[`start`] = _.head(condition.buy_time);
|
|
@@ -105,6 +106,7 @@ export default {
|
|
|
}
|
|
|
} else this.$message({ type: `warning`, message: `请选择查询信息` });
|
|
|
} else {
|
|
|
+ // 系统管理员查询
|
|
|
if (condition.buy_time && condition.shop) {
|
|
|
condition[`start`] = _.head(condition.buy_time);
|
|
|
condition[`end`] = _.last(condition.buy_time);
|