采购单审批流程

This commit is contained in:
mzl
2025-09-23 17:26:01 +08:00
parent 658fd1d6cb
commit 368bfe44ee
8 changed files with 78 additions and 14 deletions
+2 -1
View File
@@ -73,7 +73,8 @@ class ApprovalInstances extends Model
// ====== ====== ====== 映射业务表 ====== ====== ======
protected const BIZ_CLASS = [
'stock_orders' => \app\common\model\StockOrders::class
'stock_orders' => \app\common\model\StockOrders::class,
'purchase_orders' => \app\common\model\PurchaseOrders::class,
];
public function getBizTypeAttribute($value)
+1 -1
View File
@@ -44,7 +44,7 @@ class PurchaseOrders extends Model
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'po_no', 'pi_no', 'buyer_id', 'buyer_name', 'contract_file', 'status', 'remark', 'created_at', 'updated_at'];
protected $fillable = ['id', 'order_no', 'pi_no', 'buyer_id', 'buyer_name', 'contract_file', 'status', 'remark', 'created_at', 'updated_at'];
/**
* 不允许自动填充模型字段