调整ä功能

This commit is contained in:
mzl
2025-10-11 08:41:11 +00:00
parent 11b5a694ac
commit 009312ffa3
15 changed files with 155 additions and 48 deletions
+2 -1
View File
@@ -75,6 +75,7 @@ class ApprovalInstances extends Model
// ====== ====== ====== 映射业务表 ====== ====== ======
protected const BIZ_CLASS = [
'stock_orders' => \app\common\model\StockOrders::class,
'stock_orders_nullify' => \app\common\model\StockOrders::class,
'purchase_orders' => \app\common\model\PurchaseOrders::class,
];
@@ -85,7 +86,7 @@ class ApprovalInstances extends Model
public function bizInfo()
{
return $this->morphTo('bizInfo', 'biz_type', 'biz_id');
return $this->morphTo('bizInfo', 'biz_type', 'biz_id')->withTrashed();
}
// ====== ====== ====== 映射表业务 ====== ====== ======
+4
View File
@@ -4,9 +4,13 @@ namespace app\common\model;
use support\Model;
use app\common\traits\HasMoneyJournal;
use Illuminate\Database\Eloquent\SoftDeletes;
class StockOrders extends Model
{
use SoftDeletes;
/**
* The connection name for the model.
*
+1 -1
View File
@@ -40,7 +40,7 @@ class UserGroup extends Model
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'title', 'sort', 'status', 'created_at', 'updated_at'];
protected $fillable = ['id', 'title', 'scenario_code', 'sort', 'status', 'created_at', 'updated_at'];
/**
* 不允许自动填充模型字段