|
|
@@ -55,7 +55,7 @@ class ShopGoodsForm extends Model
|
|
|
{
|
|
|
return [
|
|
|
[['id','sellDiscount','giftType','sellType','goodsNo', 'goodsName', 'unit', 'pricePv', 'storeNums', 'content', 'sort','status','cover'], 'trim'],
|
|
|
- [['goodsName','sellDiscount','giftType','goodsNo', 'storeNums','pricePv', 'sort','status', 'categoryType', 'sellPriceStandard', 'nature', 'autoMaintenance'], 'required'],
|
|
|
+ [['goodsName','sellDiscount','giftType','goodsNo', 'storeNums','pricePv', 'sort','status', 'categoryType', 'sellPriceStandard', 'nature'], 'required'],
|
|
|
[['id'], 'required', 'on'=>'edit'],
|
|
|
[['id'], 'exist', 'targetClass'=>ShopGoods::class, 'targetAttribute'=>'ID'],
|
|
|
[['sellPrice','marketPrice','pricePv', 'sellPriceStandard'], 'price'],
|