update
This commit is contained in:
parent
9e9afb302d
commit
61e6fb589f
@ -91,8 +91,8 @@ class SubcontractingContractNegotiationLogic extends BaseLogic
|
|||||||
'warranty_expire_date' => !empty($params['Warranty_expire_date']) ? strtotime($params['Warranty_expire_date']) : 0,
|
'warranty_expire_date' => !empty($params['Warranty_expire_date']) ? strtotime($params['Warranty_expire_date']) : 0,
|
||||||
'negotiation_content' => $params['negotiation_content'] ?? '',
|
'negotiation_content' => $params['negotiation_content'] ?? '',
|
||||||
'negotiation_detail' => $params['negotiation_detail'] ?? '',
|
'negotiation_detail' => $params['negotiation_detail'] ?? '',
|
||||||
'negotiation_quotation' => !empty($params['negotiation_quotation']) ? $params['negotiation_quotation'] : null,
|
'negotiation_quotation' => $params['negotiation_quotation'] ? json_encode($params['negotiation_quotation']) : null,
|
||||||
'negotiation_basis' => !empty($params['negotiation_basis']) ? $params['negotiation_basis'] : null,
|
'negotiation_basis' => $params['negotiation_basis'] ? json_encode($params['negotiation_basis']) : null,
|
||||||
'update_time' => time(),
|
'update_time' => time(),
|
||||||
]);
|
]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
|
@ -51,7 +51,7 @@ class SubcontractingContractNegotiation extends BaseModel
|
|||||||
|
|
||||||
public function getNegotiationTypeTextAttr($value,$data){
|
public function getNegotiationTypeTextAttr($value,$data){
|
||||||
$dict = DictData::where('type_value','negotiation_type')->column('name','value');
|
$dict = DictData::where('type_value','negotiation_type')->column('name','value');
|
||||||
return $dict[$data['negotiation_type']];
|
return !empty($data['negotiation_type']) ? $dict[$data['negotiation_type']] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user