修改文件:app/Http/Service/Approve/ApproveApplyService.php文件268-280行
修改内容:
foreach ($forms as $v) {
if (isset($v['content']['children'])) {
foreach ($v['content']['children'] as $value) {
if (is_string($value)){
$v['value'] = $form[$v['uniqued']];
$v['symbol'] = $v['content']['symbol'] ?? '';
}else{
$v['value'] = $form[$value['field']];
$v['types'] = $value['type'];
$v['uniqued'] = $value['field'];
$v['symbol'] = $value['symbol'] ?? '';
$v['content'] = $value;
}
$saveForm[] = $v;
}
} else {
$v['value'] = $form[$v['uniqued']];
$v['symbol'] = $v['content']['symbol'] ?? '';
$saveForm[] = $v;
}
}