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
6a4365e9
Commit
6a4365e9
authored
Oct 29, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情中的货物名称栏补充商品类型名称
parent
ca3b8c6a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
127 deletions
+57
-127
CheckDetailProd.vue
src/views/ecw/order/components/CheckDetailProd.vue
+18
-115
DetailProd.vue
src/views/ecw/order/components/DetailProd.vue
+27
-12
detail.vue
src/views/ecw/order/detail.vue
+12
-0
No files found.
src/views/ecw/order/components/CheckDetailProd.vue
View file @
6a4365e9
...
@@ -13,6 +13,10 @@ export default {
...
@@ -13,6 +13,10 @@ export default {
type
:
Array
,
type
:
Array
,
required
:
true
required
:
true
},
},
prodTypeList
:
{
type
:
Array
,
required
:
true
},
currencyMap
:
{
currencyMap
:
{
type
:
Object
,
type
:
Object
,
required
:
true
required
:
true
...
@@ -33,6 +37,16 @@ export default {
...
@@ -33,6 +37,16 @@ export default {
}
}
},
},
computed
:{
computed
:{
getProdTypeName
()
{
return
(
prodType
)
=>
{
for
(
let
index
in
this
.
prodTypeList
)
{
let
prodTypeItem
=
this
.
prodTypeList
[
index
];
if
(
prodTypeItem
.
id
==
prodType
)
{
return
this
.
$l
(
prodTypeItem
,
"
title
"
);
}
}
};
},
// 显示特性
// 显示特性
showAttrText
(){
showAttrText
(){
return
ids
=>
{
return
ids
=>
{
...
@@ -47,119 +61,7 @@ export default {
...
@@ -47,119 +61,7 @@ export default {
},
},
},
},
methods
:{
methods
:{
closeFeeDetail
(){
this
.
showFeeDetailDialog
=
null
},
showFeeDetail
(
row
,
type
){
console
.
log
(
"
showFeeDetail
"
,
row
,
type
)
this
.
showFeeDetailDialog
=
true
const
freight
=
[],
clearance
=
[]
let
freightFields
=
[]
let
clearanceFields
=
[]
const
brandType
=
row
.
warehouseInInfoVO
?
row
.
feeType
:
row
.
brandType
// 不是特价则显示其他字段
freightFields
=
[
// {field: 'oneSeaFreight', label: this.$t('成交单价')},
{
field
:
'
originalSeaFreight
'
,
label
:
this
.
$t
(
'
默认单价(无牌无液无电)
'
)},
// {field: 'brandFreightPrice', label: this.$t('品牌加价')},
{
field
:
'
liquidFreightPrice
'
,
label
:
this
.
$t
(
'
液体加价
'
)},
{
field
:
'
electrifiedFreightPrice
'
,
label
:
this
.
$t
(
'
带电加价
'
)},
{
field
:
'
discountFreightPrice
'
,
label
:
this
.
$t
(
'
优惠活动减免
'
)},
{
field
:
'
plainCommission
'
,
label
:
this
.
$t
(
'
明佣
'
)},
{
field
:
'
hiddenCommission
'
,
label
:
this
.
$t
(
'
暗佣
'
)}
]
// 批量加价
if
(
row
.
markupSeaFreight
){
freightFields
.
push
({
field
:
'
markupSeaFreight
'
,
label
:
this
.
$t
(
'
批量加价
'
)})
}
// 品牌加价
if
(
row
[
'
brandFreightPrice
'
]
&&
row
[
'
brandFreightPrice
'
]
>
0
){
freightFields
.
push
({
field
:
'
brandFreightPrice
'
,
label
:
brandType
==
1
?
this
.
$t
(
'
有品牌加价
'
)
:
this
.
$t
(
'
中性品牌加价
'
)})
}
// 有减免金额才显示优惠后单价
if
(
row
[
'
discountFreightPrice
'
]
&&
row
[
'
discountFreightPrice
'
]
>
0
){
freightFields
.
push
({
field
:
'
afterDiscountSeaFreight
'
,
label
:
this
.
$t
(
'
优惠后单价
'
)})
}
// 包装加价
if
(
row
[
'
packagingFreightPrice
'
]
&&
row
[
'
packagingFreightPrice
'
]
>
0
){
freightFields
.
push
({
field
:
'
packagingFreightPrice
'
,
label
:
this
.
$t
(
'
包装加价
'
)})
}
freightFields
.
push
({
field
:
'
oneSeaFreight
'
,
label
:
this
.
$t
(
'
成交单价
'
)})
console
.
log
({
freightFields
})
freightFields
.
forEach
(
item
=>
{
if
(
row
[
item
.
field
]){
freight
.
push
({
label
:
item
.
label
,
value
:
row
[
item
.
field
],
currency
:
row
.
seaFreightCurrency
,
volume
:
row
.
seaFreightVolume
,
// 特价通过四个字段标识,任一为true则为特价
remark
:
item
.
field
==
'
oneSeaFreight
'
&&
(
row
.
specialPriceType
||
row
.
splitCustomPriceType
||
row
.
channelManualPricing
)
?
this
.
$t
(
'
特价
'
)
:
null
})
}
})
clearanceFields
=
[
{
field
:
'
originalClearanceFreight
'
,
label
:
this
.
$t
(
'
默认单价(无牌无液无电)
'
)},
// {field: 'brandClearanceFeePrice', label: this.$t('品牌加价')},
{
field
:
'
liquidClearanceFeePrice
'
,
label
:
this
.
$t
(
'
液体加价
'
)},
{
field
:
'
electrifiedClearanceFeePrice
'
,
label
:
this
.
$t
(
'
带电加价
'
)},
{
field
:
'
discountClearanceFeePrice
'
,
label
:
this
.
$t
(
'
优惠活动减免
'
)}
]
// 批量加价
if
(
row
.
markupClearanceFreight
){
clearanceFields
.
push
({
field
:
'
markupClearanceFreight
'
,
label
:
this
.
$t
(
'
批量加价
'
)})
}
// 品牌加价
if
(
row
[
'
brandClearanceFeePrice
'
]
&&
row
[
'
brandClearanceFeePrice
'
]
>
0
){
clearanceFields
.
push
({
field
:
'
brandClearanceFeePrice
'
,
label
:
brandType
==
1
?
this
.
$t
(
'
有品牌加价
'
)
:
this
.
$t
(
'
中性品牌加价
'
)})
}
if
(
row
[
'
discountClearanceFeePrice
'
]
&&
row
[
'
discountClearanceFeePrice
'
]
>
0
){
clearanceFields
.
push
({
field
:
'
afterDiscountClearanceFreight
'
,
label
:
this
.
$t
(
'
优惠后单价
'
)})
}
// 包装加价
if
(
row
[
'
packagingClearanceFeePrice
'
]
&&
row
[
'
packagingClearanceFeePrice
'
]
>
0
){
clearanceFields
.
push
({
field
:
'
packagingClearanceFeePrice
'
,
label
:
this
.
$t
(
'
包装加价
'
)})
}
clearanceFields
.
push
({
field
:
'
oneClearanceFreight
'
,
label
:
this
.
$t
(
'
成交单价
'
)})
clearanceFields
.
forEach
(
item
=>
{
if
(
row
[
item
.
field
]){
clearance
.
push
({
label
:
item
.
label
,
value
:
row
[
item
.
field
],
currency
:
row
.
clearanceFreightCurrency
,
volume
:
row
.
clearanceFreightVolume
,
remark
:
(
row
.
specialPriceType
||
row
.
splitCustomPriceType
||
row
.
channelManualPricing
)
&&
item
.
field
==
'
oneClearanceFreight
'
?
this
.
$t
(
'
特价
'
)
:
null
})
}
})
freight
.
push
({
label
:
this
.
$t
(
'
价格更新时间
'
),
value
:
parseTime
(
row
.
updateTime
)
})
clearance
.
push
({
label
:
this
.
$t
(
'
价格更新时间
'
),
value
:
parseTime
(
row
.
updateTime
)
})
this
.
feeDetail
=
{
freight
,
clearance
,
charging
:
row
.
charging
,
coupons
:
row
.
couponInfoVOList
,
airClearanceSource
:
[,
this
.
$t
(
'
商品
'
),
this
.
$t
(
'
渠道
'
),
this
.
$t
(
'
商品线路价格
'
),
this
.
$t
(
'
线路渠道
'
)][
row
.
airClearanceSource
],
// 1 商品 2 渠道 3 商品线路价格 4 线路渠道
airClearanceInfo
:
JSON
.
parse
(
row
.
airClearanceInfo
),
//空运清关费来源数据详情,
sourceName
:
row
.
airClearanceSource
==
1
?
this
.
$l
(
row
,
'
prodTitle
'
)
:
this
.
order
?.
channelName
}
},
// 获取储位名称
// 获取储位名称
getLocationName
(
locationArr
){
getLocationName
(
locationArr
){
if
(
!
locationArr
||
!
locationArr
.
length
)
return
''
if
(
!
locationArr
||
!
locationArr
.
length
)
return
''
...
@@ -237,7 +139,8 @@ export default {
...
@@ -237,7 +139,8 @@ export default {
</el-table-column>
</el-table-column>
<el-table-column
prop=
"prodTitleZh"
:label=
"$t('品名')"
>
<el-table-column
prop=
"prodTitleZh"
:label=
"$t('品名')"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
prodTitleZh
}}
/
{{
row
.
prodTitleEn
}}
<span>
{{
getProdTypeName
(
row
.
prodType
)
}}
</span>
<span>
{{
row
.
prodTitleZh
}}
/
{{
row
.
prodTitleEn
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />-->
<!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />-->
...
...
src/views/ecw/order/components/DetailProd.vue
View file @
6a4365e9
...
@@ -12,6 +12,10 @@ export default {
...
@@ -12,6 +12,10 @@ export default {
type
:
Array
,
type
:
Array
,
required
:
true
required
:
true
},
},
prodTypeList
:
{
type
:
Array
,
required
:
true
},
currencyMap
:
{
currencyMap
:
{
type
:
Object
,
type
:
Object
,
required
:
true
required
:
true
...
@@ -32,6 +36,16 @@ export default {
...
@@ -32,6 +36,16 @@ export default {
}
}
},
},
computed
:{
computed
:{
getProdTypeName
()
{
return
(
prodType
)
=>
{
for
(
let
index
in
this
.
prodTypeList
)
{
let
prodTypeItem
=
this
.
prodTypeList
[
index
];
if
(
prodTypeItem
.
id
==
prodType
)
{
return
this
.
$l
(
prodTypeItem
,
"
title
"
);
}
}
};
},
// 显示特性
// 显示特性
showAttrText
(){
showAttrText
(){
return
ids
=>
{
return
ids
=>
{
...
@@ -236,7 +250,8 @@ export default {
...
@@ -236,7 +250,8 @@ export default {
</el-table-column>
</el-table-column>
<el-table-column
prop=
"prodTitleZh"
:label=
"$t('品名')"
>
<el-table-column
prop=
"prodTitleZh"
:label=
"$t('品名')"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
prodTitleZh
}}
/
{{
row
.
prodTitleEn
}}
<span>
{{
getProdTypeName
(
row
.
prodType
)
}}
</span>
<span>
{{
row
.
prodTitleZh
}}
/
{{
row
.
prodTitleEn
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />-->
<!--<el-table-column prop="prodTitleEn" :label="$t('品名')" />-->
...
...
src/views/ecw/order/detail.vue
View file @
6a4365e9
...
@@ -222,6 +222,7 @@
...
@@ -222,6 +222,7 @@
<el-tab-pane
:label=
"$t('货物详情')"
name=
"first"
>
<el-tab-pane
:label=
"$t('货物详情')"
name=
"first"
>
<detail-prod
:list=
"order.orderItemVOList"
<detail-prod
:list=
"order.orderItemVOList"
:attr-list=
"attrList"
:attr-list=
"attrList"
:prod-type-list=
"prodTypeList"
:currency-map=
"currencyMap"
:currency-map=
"currencyMap"
:unit-map=
"unitMap"
:unit-map=
"unitMap"
:transport-id=
"order.transportId"
:transport-id=
"order.transportId"
...
@@ -231,6 +232,7 @@
...
@@ -231,6 +232,7 @@
<el-tab-pane
:label=
"$t('退仓/已混箱品名')"
name=
"six"
>
<el-tab-pane
:label=
"$t('退仓/已混箱品名')"
name=
"six"
>
<detail-prod
:list=
"orderItemDeletedData"
<detail-prod
:list=
"orderItemDeletedData"
:attr-list=
"attrList"
:attr-list=
"attrList"
:prod-type-list=
"prodTypeList"
:currency-map=
"currencyMap"
:currency-map=
"currencyMap"
:unit-map=
"unitMap"
:unit-map=
"unitMap"
:transport-id=
"order.transportId"
:transport-id=
"order.transportId"
...
@@ -326,6 +328,7 @@
...
@@ -326,6 +328,7 @@
<el-tab-pane
:label=
"$t('到仓详情')"
name=
"seven"
>
<el-tab-pane
:label=
"$t('到仓详情')"
name=
"seven"
>
<check-detail-prod
:list=
"orderCheckInfoData"
<check-detail-prod
:list=
"orderCheckInfoData"
:attr-list=
"attrList"
:attr-list=
"attrList"
:prod-type-list=
"prodTypeList"
:currency-map=
"currencyMap"
:currency-map=
"currencyMap"
:unit-map=
"unitMap"
:unit-map=
"unitMap"
:transport-id=
"order.transportId"
:transport-id=
"order.transportId"
...
@@ -432,6 +435,7 @@ import {getProductAttrList} from "@/api/ecw/productAttr";
...
@@ -432,6 +435,7 @@ import {getProductAttrList} from "@/api/ecw/productAttr";
import
Decimal
from
'
decimal.js
'
import
Decimal
from
'
decimal.js
'
import
DetailProd
from
'
@/views/ecw/order/components/DetailProd.vue
'
import
DetailProd
from
'
@/views/ecw/order/components/DetailProd.vue
'
import
CheckDetailProd
from
'
@/views/ecw/order/components/CheckDetailProd.vue
'
import
CheckDetailProd
from
'
@/views/ecw/order/components/CheckDetailProd.vue
'
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
export
default
{
export
default
{
name
:
"
detail
"
,
name
:
"
detail
"
,
...
@@ -494,6 +498,7 @@ export default {
...
@@ -494,6 +498,7 @@ export default {
attrList
:
[],
attrList
:
[],
orderItemDeletedData
:[],
//退仓品名
orderItemDeletedData
:[],
//退仓品名
orderCheckInfoData
:[],
//到仓详情
orderCheckInfoData
:[],
//到仓详情
prodTypeList
:[],
//商品类型列表
type
:
1
type
:
1
}
}
}
,
}
,
...
@@ -575,6 +580,7 @@ export default {
...
@@ -575,6 +580,7 @@ export default {
this
.
getOfferNumber
()
this
.
getOfferNumber
()
this
.
getOrderItemDeleted
()
this
.
getOrderItemDeleted
()
this
.
getOrderCheckInfo
()
this
.
getOrderCheckInfo
()
this
.
getProdTypeList
();
}
}
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
...
@@ -629,6 +635,12 @@ export default {
...
@@ -629,6 +635,12 @@ export default {
that
.
orderCheckInfoData
=
response
.
data
;
that
.
orderCheckInfoData
=
response
.
data
;
}
);
}
);
}
,
}
,
/** 获取产品类型列表 */
getProdTypeList
()
{
getProductTypeList
().
then
((
response
)
=>
{
this
.
prodTypeList
=
response
.
data
;
}
);
}
,
/* loadBrands(){
/* loadBrands(){
let brandIds = []
let brandIds = []
this.form.orderItemVOList.forEach(item => {
this.form.orderItemVOList.forEach(item => {
...
...
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