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
6d2fc9c9
Commit
6d2fc9c9
authored
Aug 22, 2023
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运agent同步海运试试
parent
0c88c1e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
supplierOutSelect.vue
...ecw/box/shippingSea/nodePage/common/supplierOutSelect.vue
+70
-0
No files found.
src/views/ecw/box/shippingSea/nodePage/common/supplierOutSelect.vue
0 → 100644
View file @
6d2fc9c9
<
template
>
<div>
<el-select
filterable
:value=
"value === 0 ? undefined : value"
@
change=
"change"
v-bind=
"$attrs"
clearable
>
<el-option
v-for=
"supplier in getSuppliers"
:key=
"supplier.id"
:label=
"$t('公司名称:')+$l(supplier, 'company')+$t(',地址:')+supplier.externalBackVO.receiveAddress+$t(',邮箱:')+supplier.externalBackVO.receiveEmail+$t(',品名:')+supplier.externalBackVO.goodName+$t(',From M No:')+supplier.externalBackVO
.fromNo+$t(',BA No:')+supplier.externalBackVO
.baNo"
:value=
"supplier.id"
></el-option>
</el-select>
</div>
</
template
>
<
script
>
/**
* 供应商
*/
export
default
{
name
:
"
supplierSelect
"
,
props
:
{
companyType
:
String
,
value
:
Number
,
allSupplier
:
Array
,
areaType
:
{
type
:
Number
,
default
:
0
},
},
model
:
{
prop
:
"
value
"
,
event
:
"
change
"
,
},
data
()
{
return
{};
},
computed
:
{
getSuppliers
()
{
let
allSupplier
=
this
.
allSupplier
.
filter
(
(
item
)
=>
item
.
areaType
==
this
.
areaType
);
allSupplier
.
forEach
(
map
=>
{
map
.
externalBackVO
.
receiveAddress
=
map
.
externalBackVO
.
receiveAddress
?
map
.
externalBackVO
.
receiveAddress
:
''
map
.
externalBackVO
.
receiveEmail
=
map
.
externalBackVO
.
receiveEmail
?
map
.
externalBackVO
.
receiveEmail
:
''
map
.
externalBackVO
.
goodName
=
map
.
externalBackVO
.
goodName
?
map
.
externalBackVO
.
goodName
:
''
map
.
externalBackVO
.
fromNo
=
map
.
externalBackVO
.
fromNo
?
map
.
externalBackVO
.
fromNo
:
''
map
.
externalBackVO
.
baNo
=
map
.
externalBackVO
.
baNo
?
map
.
externalBackVO
.
baNo
:
''
})
if
(
this
.
areaType
==
1
||
!
this
.
companyType
)
return
allSupplier
;
return
allSupplier
.
filter
((
item
)
=>
item
.
companyTypes
.
includes
(
this
.
companyType
)
);
},
},
methods
:
{
change
(
val
)
{
this
.
$emit
(
"
change
"
,
val
);
},
},
};
</
script
>
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