|
|
@@ -47,7 +47,11 @@ class RuleSetService extends Service
|
|
|
DB::beginTransaction();
|
|
|
|
|
|
$model = new RuleSet();
|
|
|
- $model->code = $data['code'] ?? '';
|
|
|
+ $model->code = $this->generateBillNo([
|
|
|
+ 'top_depart_id' => $user['top_depart_id'],
|
|
|
+ 'type' => RuleSet::Order_type,
|
|
|
+ 'period' => date("Ym", $data['month'])
|
|
|
+ ]);
|
|
|
$model->month = $data['month'] ?? 0;
|
|
|
$model->crt_id = $user['id'];
|
|
|
$model->top_depart_id = $data['top_depart_id'];
|