|
|
|
@ -59,13 +59,13 @@ |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-form> |
|
|
|
|
</a-row> |
|
|
|
|
<a-modal v-model:visible="batchVisible" width="300px" :title="setupIndex==1?'设置是否大牌正品':setupIndex==2?'设置是否新品首发':setupIndex==3?'设置是否店内':'设置所属分类排行'" @ok="handleUpdateSetup(selectedRowKeys,setupValue,setupIndex)"> |
|
|
|
|
<a-select v-model="setupValue" style="width: 250px;margin:10px 0" placeholder="请选择"> |
|
|
|
|
<a-modal v-model:visible="batchVisible" width="300px" :title="setupIndex==1?'设置是否大牌正品':setupIndex==2?'设置是否新品首发':setupIndex==3?'设置是否店内':'设置所属分类排行'" @ok="handleUpdateSetup(selectedRowKeys,setupIndex!=4?setupValue:paihang,setupIndex)"> |
|
|
|
|
<a-select v-model="setupValue" v-if="setupIndex!=4" style="width: 250px;margin:10px 0" placeholder="请选择"> |
|
|
|
|
<a-select-option :value="item.val" v-for="item in isYesNo" :key="item.val"> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<!-- <a-input v-model="paihang" v-else placeholder="请输入所属分类排行值" style="width: 250px;margin:10px 0" /> --> |
|
|
|
|
<a-input v-model="paihang" v-else type="number" placeholder="请输入所属分类排行值" style="width: 250px;margin:10px 0" /> |
|
|
|
|
</a-modal> |
|
|
|
|
<!-- 操作板块 --> |
|
|
|
|
<a-modal v-model:visible="categoryVisible" width="450px" title="商品分类" @ok="handleUpdateClassify(selectedRowKeys, categoryIds)"> |
|
|
|
@ -293,6 +293,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
setupIndex: 0, |
|
|
|
|
setupValue: 1, |
|
|
|
|
paihang: '', |
|
|
|
|
// 正在加载 |
|
|
|
|
isLoading: false, |
|
|
|
|
// 表头 |
|
|
|
@ -394,8 +395,9 @@ export default { |
|
|
|
|
}, |
|
|
|
|
handleSetup(type) { |
|
|
|
|
this.setupValue = 1; |
|
|
|
|
this.setupIndex = type |
|
|
|
|
this.batchVisible = true |
|
|
|
|
this.paihang=''; |
|
|
|
|
this.setupIndex = type; |
|
|
|
|
this.batchVisible = true; |
|
|
|
|
}, |
|
|
|
|
// 停售 |
|
|
|
|
handleUpdateSetup(goodsIds, val, type) { |
|
|
|
@ -411,7 +413,7 @@ export default { |
|
|
|
|
url = GoodsApi.setInstore({ goodsIds, is_in_store: val }) |
|
|
|
|
} |
|
|
|
|
if (type == 4) { |
|
|
|
|
url = GoodsApi.setRank({ goodsIds, is_paihang: val }) |
|
|
|
|
url = GoodsApi.setRank({ goodsIds, paihang: Number(val) }) |
|
|
|
|
} |
|
|
|
|
url.then((result) => { |
|
|
|
|
this.batchVisible = false |
|
|
|
|