增加提货数量+领取时间和提货时间

This commit is contained in:
2023-01-30 11:49:31 +08:00
parent ee394e1ac8
commit a0e9eac706
7 changed files with 29 additions and 16 deletions

View File

@@ -23,6 +23,10 @@ class AreaCode extends Model
self::STATUS_SIGN => '已核销',
];
public $dates=[
'get_at','pick_at'
];
/**
* Notes: 生成人-管理人
@@ -58,7 +62,8 @@ class AreaCode extends Model
{
$this->order->state = Order::STATUS_SIGNED;
$this->order->save();
$this->status = self::STATUS_SIGN;
$this->status = self::STATUS_SIGN;
$this->pick_at = now();
$this->save();
return true;
}