|
@@ -317,13 +317,16 @@ export default {
|
|
// 查询其他信息
|
|
// 查询其他信息
|
|
async searchOthers() {
|
|
async searchOthers() {
|
|
// 商品分类
|
|
// 商品分类
|
|
- let res = await this.tree();
|
|
|
|
|
|
+ const data = {};
|
|
|
|
+ // 判断是否是个人店铺查询
|
|
|
|
+ if (this.user.role.code == 'shopAdmin') data.shop = this.user.shop._id || this.user.shop.id;
|
|
|
|
+ let res = await this.tree(data);
|
|
if (this.$checkRes(res)) this.$set(this, `tagsList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `tagsList`, res.data);
|
|
// 商品状态
|
|
// 商品状态
|
|
res = await this.getDict({ code: 'goods_status' });
|
|
res = await this.getDict({ code: 'goods_status' });
|
|
if (this.$checkRes(res)) this.$set(this, `goodsStatusList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `goodsStatusList`, res.data);
|
|
// 活动标签
|
|
// 活动标签
|
|
- res = await this.actQuery();
|
|
|
|
|
|
+ res = await this.actQuery(data);
|
|
if (this.$checkRes(res)) this.$set(this, `act_tagsList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `act_tagsList`, res.data);
|
|
// 是否返现
|
|
// 是否返现
|
|
res = await this.getDict({ code: 'use' });
|
|
res = await this.getDict({ code: 'use' });
|