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
80831dd3
Commit
80831dd3
authored
Sep 25, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
e32b9b84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
36 deletions
+59
-36
detail.vue
src/views/ecw/offer/detail.vue
+59
-36
No files found.
src/views/ecw/offer/detail.vue
View file @
80831dd3
...
...
@@ -22,50 +22,50 @@
</div>
<el-descriptions
:column=
"3"
border
class=
"card"
>
<el-descriptions-item
:label=
"$t('发货人:')"
>
{{
consign
eeData
.
length
>
0
?
consigneeData
[
0
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consign
orData
.
contactsName
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('手机号:')"
>
{{
consign
eeData
.
length
>
0
?(
checkCode
(
consigneeData
[
0
].
areaCode
)
+
consigneeData
[
0
]
.
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consign
orData
?(
checkCode
(
consignorData
.
areaCode
)
+
consignorData
.
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
{{
consign
eeData
.
length
>
0
?
consigneeData
[
0
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consign
orData
.
address
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('客户来源:')"
>
{{
consigneeData
.
length
>
0
?
consigneeData
[
0
].
source
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consignorData
.
source
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('发货人公司名称:')"
>
{{
consign
eeData
.
length
>
0
?
consigneeData
[
0
].
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consign
orData
.
company
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('社交软件:')"
>
{{
consign
eeData
.
length
>
0
?
consigneeData
[
0
].
social
||
$t
(
'
无
'
):
$t
(
'
无
'
)
+
'
'
+
consigneeData
.
length
>
0
?
consigneeData
[
0
].
socialNumber
||
''
:
''
}}
{{
consign
orData
.
social
||
$t
(
'
无
'
)
+
'
'
+
consignorData
.
socialNumber
||
''
}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions
:column=
"3"
border
class=
"card"
>
<el-descriptions-item
:label=
"$t('收货人:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
customerName
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
contactsName
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('手机号:')"
>
{{
consigneeData
.
length
>
1
?(
checkCode
(
consigneeData
[
1
].
areaCode
)
+
consigneeData
[
1
]
.
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
?(
checkCode
(
consigneeData
.
areaCode
)
+
consigneeData
.
phoneNew
)
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('联系地址:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
address
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
address
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('客户来源:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
source
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
{{
consigneeData
.
source
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('收
货人公司名称:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
company
||
$t
(
'
无
'
):
$t
(
'
无
'
)
}}
<el-descriptions-item
:label=
"$t('发
货人公司名称:')"
>
{{
consigneeData
.
company
||
$t
(
'
无
'
)
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('社交软件:')"
>
{{
consigneeData
.
length
>
1
?
consigneeData
[
1
].
social
||
$t
(
'
无
'
):
$t
(
'
无
'
)
+
'
'
+
consigneeData
.
length
>
1
?
consigneeData
[
1
].
socialNumber
||
''
:
''
}}
{{
consigneeData
.
social
||
$t
(
'
无
'
)
+
'
'
+
consigneeData
.
socialNumber
||
''
}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions
:column=
"4"
class=
"card"
>
<el-descriptions-item
:label=
"$t('运输方式')"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"list.transportId"
/>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('出货渠道')"
>
<el-descriptions-item
:label=
"$t('出货渠道')"
v-if=
"[3,4].indexOf(list.transportId) > -1"
>
{{
channelName
}}
</el-descriptions-item>
</el-descriptions>
...
...
@@ -339,7 +339,7 @@
</template>
<
script
>
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
,
getDictDatas
}
from
'
@/utils/dict
'
import
{
getOffer
,
deleteOffer
}
from
'
@/api/ecw/offer
'
import
{
getProductAttrList
}
from
'
@/api/ecw/productAttr
'
import
{
getCustomerList
,
getCustomer
}
from
'
@/api/ecw/customer
'
...
...
@@ -364,7 +364,7 @@
productAttrList
:[],
offerId
:
0
,
//发货/收货人信息
consigneeData
:
[]
,
consigneeData
:
{}
,
routerList
:[],
channelName
:
'
/
'
,
tradeCityList
:[],
...
...
@@ -372,6 +372,8 @@
currencyList
:[],
unitList
:[],
orderData
:[],
consignorData
:{},
customerSource
:
getDictDatas
(
DICT_TYPE
.
CUSTOMER_SOURCE
),
couponAvailableGroupDtoList
:
[],
// 可用优惠
couponTotalAmountList
:
[],
// 优惠总额
};
...
...
@@ -391,7 +393,6 @@
})
return
map
},
// 总有优惠金额
couponList
(){
let
arr
=
[]
...
...
@@ -414,7 +415,11 @@
},
// 计算返回的费用清单
feeDtoList
(){
if
(
this
.
list
&&
this
.
list
.
estCostVO
){
return
this
.
list
.
estCostVO
.
feeDtoList
||
[]
}
else
{
return
[]
}
},
// 清关费
clearanceFeeList
(){
...
...
@@ -466,7 +471,16 @@
}
},
methods
:
{
sourceLabel
(
data
){
let
label
=
''
var
source
=
this
.
customerSource
.
find
(
item
=>
item
.
value
==
data
)
if
(
source
)
label
=
source
.
label
return
label
},
checkCode
(
data
){
if
(
!
data
){
return
''
}
if
(
data
.
indexOf
(
'
+
'
)
==-
1
){
return
'
+
'
+
data
}
...
...
@@ -524,9 +538,11 @@
if
(
that
.
list
.
orderId
){
that
.
getOrderData
(
that
.
list
.
orderId
)
}
getCustomerContactsSelect
({
ids
:
[
that
.
list
.
consigneeId
,
that
.
list
.
consignorId
].
join
(
'
,
'
)}).
then
((
res
)
=>
{
that
.
consigneeData
.
push
(
res
.
data
.
list
.
find
(
item
=>
item
.
customerContactsId
==
that
.
list
.
consignorId
))
that
.
consigneeData
.
push
(
res
.
data
.
list
.
find
(
item
=>
item
.
customerContactsId
==
that
.
list
.
consigneeId
))
getCustomerContactsSelect
({
ids
:
[
that
.
list
.
consignorId
,
that
.
list
.
consigneeId
].
join
(
'
,
'
)}).
then
((
res
)
=>
{
let
consignor
=
res
.
data
.
list
.
find
(
item
=>
item
.
customerContactsId
==
that
.
list
.
consignorId
)
if
(
consignor
)
that
.
consignorData
=
consignor
let
consignee
=
res
.
data
.
list
.
find
(
item
=>
item
.
customerContactsId
==
that
.
list
.
consigneeId
)
if
(
consignee
)
that
.
consigneeData
=
consignee
that
.
getCnsigneeData
()
})
that
.
list
.
offerProdRespVOList
.
forEach
((
item
)
=>
{
...
...
@@ -588,12 +604,19 @@
// 获取发货/收货人
getCnsigneeData
(){
let
that
=
this
if
(
that
.
consigneeData
.
length
>
0
){
getCustomer
(
that
.
consigneeData
[
0
].
customerId
).
then
(
result
=>
{
that
.
consigneeData
[
0
]
=
Object
.
assign
(
that
.
consigneeData
[
0
],
result
.
data
)
if
(
that
.
consigneeData
&&
that
.
consigneeData
.
customerId
){
getCustomer
(
that
.
consigneeData
.
customerId
).
then
(
result
=>
{
result
.
data
.
source
=
this
.
sourceLabel
(
result
.
data
.
source
)
that
.
$set
(
that
.
consigneeData
,
'
source
'
,
result
.
data
.
source
)
that
.
$set
(
that
.
consigneeData
,
'
address
'
,
result
.
data
.
address
)
})
getCustomer
(
that
.
consigneeData
[
1
].
customerId
).
then
(
ress
=>
{
that
.
consigneeData
[
1
]
=
Object
.
assign
(
that
.
consigneeData
[
1
],
ress
.
data
)
}
if
(
that
.
consignorData
&&
that
.
consignorData
.
customerId
){
getCustomer
(
that
.
consignorData
.
customerId
).
then
(
ress
=>
{
ress
.
data
.
source
=
this
.
sourceLabel
(
ress
.
data
.
source
)
that
.
$set
(
that
.
consignorData
,
'
source
'
,
ress
.
data
.
source
)
that
.
$set
(
that
.
consignorData
,
'
address
'
,
ress
.
data
.
address
)
})
}
},
...
...
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