$path = 'd:\Users\chenjun\kyj-yanglao-web-new\src\views\elderly\apply\check-in\ContractForm.vue'
$content = Get-Content $path -Raw -Encoding UTF8
$badPattern1 = '(\{\{\s*contractForm\.\w+\s*\|\|\s*''[^'']*''\s*\}\})'
$goodReplace1 = '$1'
$matches1 = [regex]::Matches($content, $badPattern1)
Write-Host "Fixing nested pattern 1: $($matches1.Count) places"
$content = [regex]::Replace($content, $badPattern1, $goodReplace1)
Set-Content $path $content -Encoding UTF8 -NoNewline
Write-Host "Done"