|
@@ -99,7 +99,7 @@
|
|
|
size="small"
|
|
|
type="link"
|
|
|
:class="record.enableFlag==1?'button-error':'button-primary'"
|
|
|
- v-if="record.shelfProductApiEntity&&!(record.shelfProductApiEntity.qty)&&record.shelfProductApiEntity.productSn"
|
|
|
+ v-if="record.shelfProductApiEntity&&(!record.shelfProductApiEntity.qty||(record.enableFlag==0&&record.shelfProductApiEntity.qty))&&record.shelfProductApiEntity.productSn"
|
|
|
@click="handleEnable(record)"
|
|
|
>{{record.enableFlag==1?'禁用':'启用'}}</a-button>
|
|
|
<a-button
|