|
@@ -54,6 +54,16 @@
|
|
|
<el-button
|
|
|
size="small"
|
|
|
icon="el-icon-close"
|
|
|
+ v-if="row.goodsStatus == '2'"
|
|
|
+ @click="uALowerShelves(row,'upper')"
|
|
|
+ type="text">
|
|
|
+ 上架
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-close"
|
|
|
+ v-if="row.goodsStatus == '1'"
|
|
|
+ @click="uALowerShelves(row,'lower')"
|
|
|
type="text">
|
|
|
下架
|
|
|
</el-button>
|
|
@@ -246,8 +256,7 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
- ],
|
|
|
- slot: true
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
label: "排序",
|
|
@@ -259,8 +268,7 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
- ],
|
|
|
- slot: true
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
label: "商品名称",
|
|
@@ -272,8 +280,7 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
- ],
|
|
|
- slot: true
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
label: "推广词",
|
|
@@ -285,8 +292,7 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
- ],
|
|
|
- slot: true
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -323,6 +329,12 @@ export default {
|
|
|
this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
},
|
|
|
+ //上下架
|
|
|
+ uALowerShelves(row,type){
|
|
|
+ if (type === 'upper') row.goodsStatus = 1
|
|
|
+ if (type === 'lower') row.goodsStatus = 2
|
|
|
+ this.editProductInfo()
|
|
|
+ },
|
|
|
//费用查询
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
@@ -469,6 +481,7 @@ export default {
|
|
|
if (res.data.success) {
|
|
|
this.$message.success("操作成功!")
|
|
|
this.query(this.form.id)
|
|
|
+ console.log(this.option);
|
|
|
}
|
|
|
})
|
|
|
} else {
|