This commit is contained in:
chenbo 2024-02-29 17:32:47 +08:00
parent d68f042298
commit 553026c7cb

View File

@ -28,6 +28,7 @@ class CostApprovedProjectLogic extends BaseLogic
CostApprovedProject::create([
'contract_name' => $params['contract_name'],
'contract_num' => date('Ymd',time()).'-'.mt_rand(100000, 999999),
'contract_type' => $params['contract_type'],
'part_a' => $params['part_a'],
'part_a_contract' => $params['part_a_contract'] ?? '',
'part_a_address' => $params['part_a_address'] ?? '',
@ -88,6 +89,7 @@ class CostApprovedProjectLogic extends BaseLogic
Db::startTrans();
try {
CostApprovedProject::where('id', $params['id'])->update([
'contract_type' => $params['contract_type'],
'contract_name' => $params['contract_name'],
'part_a' => $params['part_a'],
'part_a_contract' => $params['part_a_contract'] ?? '',