Commit 13134eea by zhangquan

禁用按钮

1 parent 462736ed
......@@ -38,7 +38,7 @@
</li>
</ul>
<div class="operate-btn">
<el-button type="primary" v-if="goodsInfo.goodsPosition==1" @click="handleSale">上架销售</el-button>
<el-button type="primary" :disabled="goodsInfo.shelvesStatus == 1002" v-if="goodsInfo.goodsPosition==1" @click="handleSale">上架销售</el-button>
<el-button type="primary" v-if="goodsInfo.goodsPosition==2" plain @click="handleOff">下架至仓库</el-button>
<el-button type="primary" v-if="goodsInfo.goodsPosition==1" plain @click="handleRemove">移出仓库</el-button>
</div>
......
......@@ -172,7 +172,10 @@ export default {
name: '上架销售',
attrs: {
type: 'text',
fn: '上架销售'
fn: '上架销售',
disabled: row => {
return row.scope.shelvesStatus == 1002
}
},
listeners: {
click: row => this.batchSale(row.scope)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!