二手车交易,直辖市的显示问题

This commit is contained in:
2025-03-17 15:18:31 +08:00
parent 301babc54e
commit b5f01b70b7
2 changed files with 6 additions and 2 deletions

View File

@ -212,7 +212,9 @@ export default {
this.form.emissionStandard=res.data.emissionStandard?.code
this.auditRemark=res.data?.auditRemark
this.status=res.data?.status?.code
this.areaName=res.data?.areaName
const municipalities = ['北京市', '天津市', '上海市', '重庆市'];
const isMunicipality = municipalities.some(city => res.data.areaName.includes(city));
this.areaName= isMunicipality ? res.data.areaName?.substring(0, 3) : res.data.areaName;
this.supplierName=res.data?.supplierName
this.supplierCode=res.data?.supplierCode
if(res.data?.otherPhoto){