@@ -148,7 +148,11 @@ class Goods extends Backend
'amount_cost|成本价'=>['require','float','egt:0'],
'num_stock|库存'=>['require','float','egt:0'],
'num_stock_kill|秒杀库存'=>['require','float','egt:0'],
+ 'is_down|规格上下架'=>['require','in:0,1'],
]);
+ if($item['is_down']){
+ continue;
+ }
if(empty($item['amount_ladder'])){
$this->error('请填写售价区间');
}
@@ -538,6 +538,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
makeDown(sku){
let val=sku.is_down?0:1
this.$set(sku,'is_down',val)
+ this.$message.success(`${val?'下架':'上架'}成功`)
})