Commit af850750 authored by wanglianghe's avatar wanglianghe

仓库新增展示一些字段

parent d26dac3e
......@@ -41,6 +41,20 @@
<el-table v-loading="loading" :data="list">
<el-table-column label="仓库编号" align="center" prop="number" />
<el-table-column label="仓库名称" align="center" prop="titleZh" />
<el-table-column label="英文名称" align="center" prop="titleEn" />
<el-table-column label="贸易属性" align="center" prop="tradeType" >
<template slot-scope="scope">
<div>{{tradeTypeName(scope.row.tradeType)}}</div>
</template>
</el-table-column>
<el-table-column label="运输方式" align="center" prop="freight" >
<template slot-scope="scope">
<div>{{transportNames(scope.row.freight)}}</div>
</template>
</el-table-column>
<el-table-column label="仓库容量(m)³" align="center" prop="volume" />
<el-table-column label="仓库地址" align="center" prop="addressZh" />
......@@ -483,6 +497,30 @@ export default {
}
}
},
transportNames() {
return freight => {
let transportTypes = freight.split(",");
let names = [];
for(let index in transportTypes) {
let transportType = transportTypes[index];
let name = this.transportName(transportType);
names.push(name);
}
return names.join(',');
}
},
tradeTypeName() {
return tradeType => {
for(let index in this.regionTypeDatas) {
let regionTypeItem = this.regionTypeDatas[index];
if(regionTypeItem.value == tradeType) {
return regionTypeItem.label;
}
}
}
},
},
watch: {
......
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