|
@@ -266,6 +266,10 @@ export default {
|
|
|
// 查询其他信息
|
|
|
async searchOther() {
|
|
|
let res;
|
|
|
+ // 商品分类
|
|
|
+ const data = {};
|
|
|
+ // 判断是否是个人店铺查询
|
|
|
+ if (this.user.role.code == 'shopAdmin') data.shop = this.user.shop._id || this.user.shop.id;
|
|
|
// 发行方
|
|
|
res = await this.dictQuery({ code: 'coupon_issue', value: '0' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `issueList`, res.data);
|
|
@@ -282,7 +286,7 @@ export default {
|
|
|
res = await this.dictQuery({ code: 'coupon_get_limit' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `get_limitList`, res.data);
|
|
|
// 商品类型
|
|
|
- res = await this.tree();
|
|
|
+ res = await this.tree(data);
|
|
|
if (this.$checkRes(res)) this.$set(this, `tagsList`, res.data);
|
|
|
// 使用状态
|
|
|
res = await this.dictQuery({ code: 'use' });
|