|
@@ -33,7 +33,7 @@ export default {
|
|
const that = this;
|
|
const that = this;
|
|
return {
|
|
return {
|
|
// 列表
|
|
// 列表
|
|
- opera: [{ label: '选择规格', method: 'add' }],
|
|
|
|
|
|
+ opera: [{ label: '选择规格', method: 'add', display: (i) => i.status == '1' }],
|
|
fields: [
|
|
fields: [
|
|
{ label: '商品名称', model: 'name', showTip: false },
|
|
{ label: '商品名称', model: 'name', showTip: false },
|
|
// { label: '店铺名称', model: 'shop.name' },
|
|
// { label: '店铺名称', model: 'shop.name' },
|
|
@@ -76,7 +76,7 @@ export default {
|
|
},
|
|
},
|
|
// 新增
|
|
// 新增
|
|
async toAdd({ data }) {
|
|
async toAdd({ data }) {
|
|
- let query = { platform_act: this.id, shop: data.shop, goods: data._id, platform_act_type: this.type, status: '1'};
|
|
|
|
|
|
+ let query = { platform_act: this.id, shop: data.shop, goods: data._id, platform_act_type: this.type };
|
|
if (this.type == '4') query.goods_type = this.goods_type;
|
|
if (this.type == '4') query.goods_type = this.goods_type;
|
|
this.$router.push({ path: './goodsSpec', query: query });
|
|
this.$router.push({ path: './goodsSpec', query: query });
|
|
},
|
|
},
|