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
779d33c6
Commit
779d33c6
authored
Jul 28, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
子 agent优化,增加详情跳转 / agent优化,增加详情跳转 -
parent
1c75f2ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
3 deletions
+81
-3
agent.vue
src/views/ecw/box/shippingAir/nodePage/agent.vue
+11
-3
supplierOutSelect.vue
...ecw/box/shippingAir/nodePage/common/supplierOutSelect.vue
+70
-0
No files found.
src/views/ecw/box/shippingAir/nodePage/agent.vue
View file @
779d33c6
...
...
@@ -2,7 +2,8 @@
<div>
<el-form
ref=
"agentForm"
:model=
"agentObj"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
:label=
"$t('代理商Agent')"
prop=
"agentId"
>
<supplierSelect
v-model=
"agentObj.agentId"
:companyType=
"'1'"
:areaType=
"1"
:placeholder=
"$t('请选择代理商')"
:allSupplier=
"this.$attrs.allSupplier"
/>
<supplierOutSelect
v-model=
"agentObj.agentId"
:companyType=
"'1'"
:areaType=
"1"
:placeholder=
"$t('请选择代理商')"
:allSupplier=
"this.$attrs.allSupplier"
@
change=
"changesupplier"
/>
<el-button
v-hasPermi=
"['ecw:supplier:query']"
type=
"text"
style=
"font-size: 13px; margin-left: 240px;"
@
click=
"SupplierDetail"
>
{{
$t
(
'
查看代理商详情
'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
...
...
@@ -14,7 +15,7 @@
<
script
>
import
{
agentSet
}
from
"
@/api/ecw/boxSea
"
;
import
supplier
Select
from
"
./common/supplier
Select.vue
"
;
import
supplier
OutSelect
from
"
./common/supplierOut
Select.vue
"
;
import
{
formatStringNumber
,
serviceMsg
}
from
"
../utils
"
;
/**
* agent
...
...
@@ -22,7 +23,7 @@ import { formatStringNumber, serviceMsg } from "../utils";
export
default
{
name
:
"
agent
"
,
inheritAttrs
:
false
,
components
:
{
supplierSelect
},
components
:
{
supplier
Out
Select
},
data
()
{
return
{
// agent对象
...
...
@@ -31,6 +32,7 @@ export default {
rules
:
{
agentId
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
change
"
}],
},
supplierId
:
0
};
},
created
()
{
...
...
@@ -60,6 +62,12 @@ export default {
cancel
(
type
)
{
this
.
$emit
(
"
closeDialog
"
,
type
);
},
SupplierDetail
(){
this
.
$router
.
push
(
'
/supplier/detail?id=
'
+
this
.
supplierId
)
},
changesupplier
(
val
){
this
.
supplierId
=
val
}
},
};
</
script
>
...
...
src/views/ecw/box/shippingAir/nodePage/common/supplierOutSelect.vue
0 → 100644
View file @
779d33c6
<
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