|
@@ -5,7 +5,9 @@
|
|
|
<el-col class="top-btn">
|
|
|
<el-button type="primary" size="mini" @click="toBack()">返回</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="one"> <span>平台活动商品规格添加</span> </el-col>
|
|
|
+ <el-col :span="24" class="one">
|
|
|
+ <p>平台活动商品规格添加<span>(没有库存的商品,需添加库存才可添加)</span></p>
|
|
|
+ </el-col>
|
|
|
<el-col :span="24" class="four">
|
|
|
<data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @add="toAdd"> </data-table>
|
|
|
</el-col>
|
|
@@ -52,7 +54,13 @@ export default {
|
|
|
info.goods = this.goods;
|
|
|
let res = await this.gQuery({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, 'list', res.data);
|
|
|
+ let list = [];
|
|
|
+ for (const p1 of res.data) {
|
|
|
+ if (p1.num > 0) {
|
|
|
+ list.push(p1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this, 'list', list);
|
|
|
this.$set(this, 'total', res.total);
|
|
|
}
|
|
|
},
|
|
@@ -119,10 +127,14 @@ export default {
|
|
|
.one {
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
|
- span:nth-child(1) {
|
|
|
+ p:nth-child(1) {
|
|
|
font-size: 20px;
|
|
|
font-weight: 700;
|
|
|
margin-right: 10px;
|
|
|
+ span {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.two {
|