采购单审批流程

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
@@ -594,8 +594,6 @@ class ApprovalFlowService
// 业务标题/内容
$approvalType = array_flip(\app\common\service\SysDictService::pluckKeyValueByCode('approval_type'));
// $title = $prefix.'审批通知';
// $content = "{$prefix}你有一条审批 {$text}:类型 {$instance->flow_type},业务ID {$instance->biz_id}";
switch ($instance->flow_type) {
case 'stock_orders':
@@ -610,6 +608,15 @@ class ApprovalFlowService
case 'stock_orders_nullify':
// 备货单作废
break;
case 'purchase_orders':
// 采购单
$purchaseOrder = \app\common\model\PurchaseOrders::find($instance->biz_id);
if ($purchaseOrder) {
$title = $prefix."采购单:{$purchaseOrder->order_no}";
$flowTxt = $approvalType[$instance->flow_type] ?? $instance->flow_type;
$content = "{$prefix}你有一条审批 {$text}:类型 {$flowTxt},业务单号 {$purchaseOrder->order_no}";
}
break;
case 'purchase_order':
// 采购单
break;