|
|
@@ -36,7 +36,9 @@ class OrderIssue extends Model
|
|
|
'logistic_indemnity_money', 'logistic_express_remission',
|
|
|
'baoshi_indemnity_money', 'baoshi_express_remission', 'user_workgroup_id',
|
|
|
'custom_code','imported_status','finance_confirm',
|
|
|
- 'hidden_tag','archive_at'];
|
|
|
+ 'hidden_tag','archive_at',
|
|
|
+ 'is_intercept'
|
|
|
+ ];
|
|
|
/*
|
|
|
* second_client_no 二次客户订单号
|
|
|
* second_logistic_number 二次运单号 【二次运单号可以单独存在,当二次客户订单号有对应的订单信息时,显示的是二次客户订单号对应的运单号,没有的话显示二次原单号】
|
|
|
@@ -50,6 +52,7 @@ class OrderIssue extends Model
|
|
|
* finance_confirm 财务确认
|
|
|
* hidden_tag 隐藏标识
|
|
|
* archive_at 归档时间
|
|
|
+ * is_intercept 是否拦截
|
|
|
*/
|
|
|
protected $appends = [];
|
|
|
|
|
|
@@ -312,4 +315,10 @@ class OrderIssue extends Model
|
|
|
{
|
|
|
return $this->belongsToMany(UserWorkgroup::class);
|
|
|
}
|
|
|
+
|
|
|
+ // 库内拦截
|
|
|
+ public function intercept(): bool
|
|
|
+ {
|
|
|
+ return $this->update(['is_intercept' => 1]);
|
|
|
+ }
|
|
|
}
|