This commit is contained in:
Your Name
2026-04-30 09:27:42 +08:00
parent dc899e4af4
commit eb782305e6
460 changed files with 10785 additions and 928 deletions
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace app\adminapi\validate\finance;
use app\common\validate\BaseValidate;
class DeptPerformanceTargetValidate extends BaseValidate
{
protected $rule = [
'year_month' => 'require|regex:/^\d{4}-\d{2}$/',
'items' => 'require|array',
];
protected $message = [
'year_month.require' => '请选择月份',
'year_month.regex' => '月份格式须为 YYYY-MM',
'items.require' => '请提交目标数据',
'items.array' => '目标数据格式错误',
];
public function sceneMonthMatrix(): DeptPerformanceTargetValidate
{
return $this->only(['year_month']);
}
public function sceneBatchSave(): DeptPerformanceTargetValidate
{
return $this->only(['year_month', 'items']);
}
}
@@ -22,6 +22,7 @@ class PrescriptionOrderValidate extends BaseValidate
'service_package' => 'max:100',
'tracking_number' => 'max:80',
'express_company' => 'max:20',
'ship_mode' => 'in:gancao,direct',
'fee_type' => 'require|in:1,2,3,4,5,6,7',
'amount' => 'require|float',
'order_type' => 'require|in:1,2,3,4,5,6,7',
@@ -60,7 +61,7 @@ class PrescriptionOrderValidate extends BaseValidate
'auditPrescription' => ['id', 'action', 'remark'],
'auditPayment' => ['id', 'action', 'remark'],
'withdraw' => ['id'],
'ship' => ['id', 'tracking_number', 'express_company'],
'ship' => ['id', 'tracking_number', 'express_company', 'ship_mode'],
'logs' => ['id'],
'paidPayOrders' => ['diagnosis_id'],
'addPayOrder' => ['id', 'order_type', 'pay_amount', 'pay_remark'],