Commit aec7d0bc authored by 我在何方's avatar 我在何方

报价单详情国际化

parent 31ead725
......@@ -434,14 +434,14 @@
currentcyMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = item.titleZh
map[item.id] = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
})
return map
},
unitMap(){
let map = {}
this.unitList.forEach(item => {
map[item.id] = item.titleZh
map[item.id] = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
})
return map
},
......@@ -591,7 +591,7 @@
sourceLabel(data){
let label=''
var source = this.customerSource.find(item=>item.value==data)
if(source) label = source.label
if(source) label = this.$i18n.locale=='zh_CN'?source.label:source.labelEn
return label
},
checkCode(data){
......@@ -690,7 +690,7 @@
arr.forEach((itemValue)=>{
var prodAttrCenter = this.productAttrList.filter(items=>items.id==itemValue)
if(prodAttrCenter.length>0){
prodAttrName.push(prodAttrCenter[0].attrName)
prodAttrName.push(this.$i18n.locale=='zh_CN'?prodAttrCenter[0].attrName:prodAttrCenter[0].attrNameEn)
}
})
if(prodAttrName.length>1){
......@@ -711,7 +711,7 @@
var city = ''
this.tradeCityList.forEach((item)=>{
if(item.id == id){
city = item.titleZh
city = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
}
})
return city
......@@ -736,7 +736,7 @@
getRouterNameById(routerId){
let router = this.routerList.find(item => item.id == routerId)
if(router){
return router.startTitleZh + ' >>>' + router.destTitleZh
return this.$i18n.locale=='zh_CN'?router.startTitleZh:router.startTitleEn + ' >>>' + this.$i18n.locale=='zh_CN'?router.destTitleZh:router.destTitleEn
}
return '-'
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment