|
@ -31,7 +31,7 @@ use yii\behaviors\TimestampBehavior; |
|
|
* @property int $receivables 应收款 |
|
|
* @property int $receivables 应收款 |
|
|
* @property string $remarks 备注 |
|
|
* @property string $remarks 备注 |
|
|
* @property int $discount_amount 折扣金额 |
|
|
* @property int $discount_amount 折扣金额 |
|
|
* @property string $discount_decription 折扣说明 |
|
|
|
|
|
|
|
|
* @property string $discount_description 折扣说明 |
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $updated_at 更新时间 |
|
|
* @property int $created_at 创建时间 |
|
|
* @property int $created_at 创建时间 |
|
|
* @property string $address 详细地址 |
|
|
* @property string $address 详细地址 |
|
@ -52,9 +52,9 @@ class Order extends \yii\db\ActiveRecord |
|
|
public function rules() |
|
|
public function rules() |
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
[['user_id', 'address'], 'required'], |
|
|
|
|
|
|
|
|
[['user_id'], 'required'], |
|
|
[['user_id', 'status', 'type', 'goods_count', 'goods_amount', 'shipping_amount', 'shipping_type', 'taking_site', 'pay_type', 'pay_at', 'payment_amount', 'receivables', 'discount_amount'], 'integer'], |
|
|
[['user_id', 'status', 'type', 'goods_count', 'goods_amount', 'shipping_amount', 'shipping_type', 'taking_site', 'pay_type', 'pay_at', 'payment_amount', 'receivables', 'discount_amount'], 'integer'], |
|
|
[['discount_decription', 'address'], 'string'], |
|
|
|
|
|
|
|
|
[['discount_description', 'address'], 'string'], |
|
|
[['order_sn', 'invoice_id'], 'string', 'max' => 64], |
|
|
[['order_sn', 'invoice_id'], 'string', 'max' => 64], |
|
|
[['consignee', 'phone'], 'string', 'max' => 20], |
|
|
[['consignee', 'phone'], 'string', 'max' => 20], |
|
|
[['province', 'city', 'area'], 'string', 'max' => 10], |
|
|
[['province', 'city', 'area'], 'string', 'max' => 10], |
|
@ -92,7 +92,7 @@ class Order extends \yii\db\ActiveRecord |
|
|
'receivables' => '应收款', |
|
|
'receivables' => '应收款', |
|
|
'remarks' => '备注', |
|
|
'remarks' => '备注', |
|
|
'discount_amount' => '折扣金额', |
|
|
'discount_amount' => '折扣金额', |
|
|
'discount_decription' => '折扣说明', |
|
|
|
|
|
|
|
|
'discount_description' => '折扣说明', |
|
|
'updated_at' => '更新时间', |
|
|
'updated_at' => '更新时间', |
|
|
'created_at' => '创建时间', |
|
|
'created_at' => '创建时间', |
|
|
'address' => '详细地址', |
|
|
'address' => '详细地址', |
|
|