$excel->getActiveSheet()->setCellValue('B'.$i,' '.$val['patentNo']);或者
$excel->getActiveSheet()->setCellValue('B'.$i,"="".$v['patentNo'].""");