Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
af850750
Commit
af850750
authored
Aug 09, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓库新增展示一些字段
parent
d26dac3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
index.vue
src/views/ecw/warehouse/index.vue
+38
-0
No files found.
src/views/ecw/warehouse/index.vue
View file @
af850750
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment