'采购合同',2=>'分包合同']; return $type[$data['contract_type']]; } public function getRefundDateAttr($value): string { return !empty($value) ? date('Y-m-d',$value) : ''; } public function getRefundTypeTextAttr($value,$data){ $dict = DictData::where('type_value','refund_type')->column('name','value'); return !empty($data['refund_type']) ? $dict[$data['refund_type']] : ''; } }