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

报价单详情国际化

parent 31ead725
...@@ -434,14 +434,14 @@ ...@@ -434,14 +434,14 @@
currentcyMap(){ currentcyMap(){
let map = {} let map = {}
this.currencyList.forEach(item => { this.currencyList.forEach(item => {
map[item.id] = item.titleZh map[item.id] = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
}) })
return map return map
}, },
unitMap(){ unitMap(){
let map = {} let map = {}
this.unitList.forEach(item => { this.unitList.forEach(item => {
map[item.id] = item.titleZh map[item.id] = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
}) })
return map return map
}, },
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
sourceLabel(data){ sourceLabel(data){
let label='' let label=''
var source = this.customerSource.find(item=>item.value==data) 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 return label
}, },
checkCode(data){ checkCode(data){
...@@ -690,7 +690,7 @@ ...@@ -690,7 +690,7 @@
arr.forEach((itemValue)=>{ arr.forEach((itemValue)=>{
var prodAttrCenter = this.productAttrList.filter(items=>items.id==itemValue) var prodAttrCenter = this.productAttrList.filter(items=>items.id==itemValue)
if(prodAttrCenter.length>0){ 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){ if(prodAttrName.length>1){
...@@ -711,7 +711,7 @@ ...@@ -711,7 +711,7 @@
var city = '' var city = ''
this.tradeCityList.forEach((item)=>{ this.tradeCityList.forEach((item)=>{
if(item.id == id){ if(item.id == id){
city = item.titleZh city = this.$i18n.locale=='zh_CN'?item.titleZh:item.titleEn
} }
}) })
return city return city
...@@ -736,7 +736,7 @@ ...@@ -736,7 +736,7 @@
getRouterNameById(routerId){ getRouterNameById(routerId){
let router = this.routerList.find(item => item.id == routerId) let router = this.routerList.find(item => item.id == routerId)
if(router){ 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 '-' 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