Commit f7107ee8 authored by dragondean@qq.com's avatar dragondean@qq.com

修复部分订单报错

parent 1313a511
...@@ -81,10 +81,10 @@ ...@@ -81,10 +81,10 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item v-if="getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, order.transportId).cssClass == 'channel'":label="$t('出货渠道')" >{{order.channelName}}</el-descriptions-item> <el-descriptions-item v-if="getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, order.transportId).cssClass == 'channel'":label="$t('出货渠道')" >{{order.channelName}}</el-descriptions-item>
<el-descriptions-item :label="$t('服务')" > <el-descriptions-item :label="$t('服务')" >
<el-tag v-if="order.type.indexOf('1') > -1"> <el-tag v-if="order.type && order.type.indexOf('1') > -1">
{{ $t('集运') }} {{ $t('集运') }}
</el-tag> </el-tag>
<el-tag v-if="order.type.indexOf('2') > -1"> <el-tag v-if="order.type && order.type.indexOf('2') > -1">
{{ $t('海外仓') }} {{ $t('海外仓') }}
</el-tag> </el-tag>
</el-descriptions-item> </el-descriptions-item>
......
...@@ -1739,6 +1739,7 @@ export default { ...@@ -1739,6 +1739,7 @@ export default {
// 增值服务文本 // 增值服务文本
getTypeText(){ getTypeText(){
return type => { return type => {
if(!type) return ""
const arr = [] const arr = []
if(type.indexOf('1') > -1){ if(type.indexOf('1') > -1){
arr.push(this.$t('集运')) arr.push(this.$t('集运'))
......
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