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
e30dd923
Commit
e30dd923
authored
Jul 24, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单费用汇总bug
parent
7be276de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
27 deletions
+65
-27
FeeDetail.vue
src/views/ecw/order/components/FeeDetail.vue
+64
-22
detail.vue
src/views/ecw/order/detail.vue
+0
-1
edit.vue
src/views/ecw/order/edit.vue
+1
-4
No files found.
src/views/ecw/order/components/FeeDetail.vue
View file @
e30dd923
...
...
@@ -94,7 +94,7 @@
<el-card
class=
"mt-10"
v-if=
"orderDetailSummary"
>
<span
slot=
"header"
>
{{
$t
(
'
运费
'
)
}}
&
{{
$t
(
'
清关费
'
)
}}
</span>
<!--序号,中文品名,英文品名,品牌,入仓数据,是否重货,入仓数据,实收数据,应收单价,优惠单价金额,成交单价,应收运费&清关费,收款单优惠金额,总优惠金额,实收运费&清关费-->
<el-table
:data=
"order
DetailSummary.orderItemCostDtoList
"
>
<el-table
:data=
"order
ItemCostDtoList"
show-summary
:summary-method=
"getOrderItemSummary
"
>
<el-table-column
:label=
"$t('序号')"
width=
"80"
>
<template
slot-scope=
"scope"
>
{{
scope
.
$index
+
1
}}
</
template
>
</el-table-column>
...
...
@@ -103,15 +103,15 @@
<el-table-column
:label=
"$t('品牌')"
prop=
"brandName"
>
<
template
slot-scope=
"{row}"
>
<span
v-if=
"row.brandName"
>
{{
row
.
brandName
}}
</span>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"row.brandType"
></dict-tag>
<dict-tag
v-else
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"row.brandType"
></dict-tag>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓实测')"
>
<
template
slot-scope=
"{row}"
>
<
span>
{{
row
.
warehouseInNum
}}{{
$t
(
'
箱
'
)
}}
</span
>
<
span
class=
"ml-5"
>
{{
row
.
warehouseInVolume
}}
m³
</span
>
<
span
class=
"ml-5"
>
{{
row
.
warehouseInWeight
}}
kg
</span
>
<
span
class=
"ml-5"
v-if=
"row.warehouseInQuantity"
>
{{
row
.
warehouseInQuantity
}}{{
$t
(
'
个
'
)
}}
</span
>
<
div>
{{
row
.
warehouseInNum
}}{{
$t
(
'
箱
'
)
}}
</div
>
<
div>
{{
row
.
warehouseInVolume
}}
m³
</div
>
<
div>
{{
row
.
warehouseInWeight
}}
kg
</div
>
<
div
v-if=
"row.warehouseInQuantity"
>
{{
row
.
warehouseInQuantity
}}{{
$t
(
'
个
'
)
}}
</div
>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('是否重货/泡货')"
>
...
...
@@ -122,21 +122,21 @@
</el-table-column>
<el-table-column
:label=
"$t('应收数据')"
>
<
template
slot-scope=
"{row}"
>
<
span>
{{
row
.
orgChargeNum
}}{{
$t
(
'
箱
'
)
}}
</span
>
<
span
class=
"ml-5"
>
{{
row
.
orgChargeVolume
}}
m³
</span
>
<
span
class=
"ml-5"
>
{{
row
.
orgChargeWeight
}}
kg
</span
>
<
span
class=
"ml-5"
v-if=
"row.orgChargeQuantity"
>
{{
row
.
orgChargeQuantity
}}{{
$t
(
'
个
'
)
}}
</span
>
<
div>
{{
row
.
orgChargeNum
}}{{
$t
(
'
箱
'
)
}}
</div
>
<
div>
{{
row
.
orgChargeVolume
}}
m³
</div
>
<
div>
{{
row
.
orgChargeWeight
}}
kg
</div
>
<
div
v-if=
"row.orgChargeQuantity"
>
{{
row
.
orgChargeQuantity
}}{{
$t
(
'
个
'
)
}}
</div
>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('实收数据')"
>
<
template
slot-scope=
"{row}"
>
<
span>
{{
row
.
realityChargeNum
}}{{
$t
(
'
箱
'
)
}}
</span
>
<
span
class=
"ml-5"
>
{{
row
.
realityChargeVolume
}}
m³
</span
>
<
span
class=
"ml-5"
>
{{
row
.
realityChargeWeight
}}
kg
</span
>
<
span
class=
"ml-5"
v-if=
"row.realityChargeQuantity"
>
{{
row
.
realityChargeQuantity
}}{{
$t
(
'
个
'
)
}}
</span
>
<
div>
{{
row
.
realityChargeNum
}}{{
$t
(
'
箱
'
)
}}
</div
>
<
div>
{{
row
.
realityChargeVolume
}}
m³
</div
>
<
div>
{{
row
.
realityChargeWeight
}}
kg
</div
>
<
div
v-if=
"row.realityChargeQuantity"
>
{{
row
.
realityChargeQuantity
}}{{
$t
(
'
个
'
)
}}
</div
>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('应收单价')"
>
<el-table-column
:label=
"$t('应收单价')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<!--全包价-->
<!--
<template
v-if=
"row.charging"
>
...
...
@@ -156,7 +156,7 @@
></price>
</template>
</el-table-column>
<el-table-column
:label=
"$t('优惠单价金额')"
>
<el-table-column
:label=
"$t('优惠单价金额')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -168,7 +168,7 @@
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('成交单价')"
>
<el-table-column
:label=
"$t('成交单价')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -180,7 +180,7 @@
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('应收运费') + '&' + $t('清关费')"
>
<el-table-column
:label=
"$t('应收运费') + '&' + $t('清关费')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -192,7 +192,19 @@
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收款单优惠金额')"
width=
"120"
prop=
"discountFee"
>
<el-table-column
:label=
"$t('优惠运费') + '&' + $t('清关费')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
:freight=
"row.discountFreightTotalPrice"
:freight-currency=
"row.seaFreightCurrency"
:clearance=
"row.discountClearanceFeeTotalPrice"
:clearance-currency=
"row.clearanceFreightCurrency"
:currency-map=
"currencyMap"
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收款单优惠金额')"
width=
"180px"
prop=
"discountFee"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -204,7 +216,7 @@
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('总优惠金额')"
>
<el-table-column
:label=
"$t('总优惠金额')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -216,7 +228,7 @@
></price>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('实收运费') + '&' + $t('清关费')"
>
<el-table-column
:label=
"$t('实收运费') + '&' + $t('清关费')"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<price
:charging=
"row.charging == 1"
...
...
@@ -336,7 +348,7 @@
</el-card>
<el-card
class=
"mt-10"
>
<span
slot=
"header"
>
{{$t('优惠活动')}}
</span>
<el-table
:data=
"
[]
"
>
<el-table
:data=
"
couponInfoVOList
"
>
<el-table-column
:label=
"$t('优惠ID')"
width=
"100"
prop=
"couponId"
></el-table-column>
<el-table-column
:label=
"$t('优惠名称')"
width=
"120"
>
<
template
slot-scope=
"{row}"
>
{{
$l
(
row
,
'
title
'
)
}}
</
template
>
...
...
@@ -443,6 +455,14 @@ export default {
// 费用申请
feeApplicationList
(){
return
this
.
orderDetailSummary
?.
feeApplicationList
||
[]
},
// 运费清关费
orderItemCostDtoList
(){
return
this
.
orderDetailSummary
?.
orderItemCostDtoList
||
[]
},
// 优惠活动
couponInfoVOList
(){
return
this
.
orderDetailSummary
?.
couponInfoVOList
||
[]
}
},
mounted
()
{
...
...
@@ -490,6 +510,28 @@ export default {
arr
[
6
]
=
this
.
calcTotalByCurrency
(
this
.
feeApplicationList
,
'
realityTotalAmount
'
,
'
currencyId
'
)
return
arr
},
// 运费&清关费汇总
getOrderItemSummary
(){
let
arr
=
[]
arr
[
10
]
=
this
.
$t
(
'
合计
'
)
// 运费和清关费要合计起来
let
feeList
=
this
.
orderItemCostDtoList
.
map
(
item
=>
{
return
{
amount
:
item
.
receivableSeaFreight
,
currency
:
item
.
seaFreightCurrency
}
})
feeList
=
feeList
.
concat
(
this
.
orderItemCostDtoList
.
map
(
item
=>
{
return
{
amount
:
item
.
receivableClearanceFreight
,
currency
:
item
.
clearanceFreightCurrency
}
}))
// 应收金额
arr
[
11
]
=
this
.
calcTotalByCurrency
(
feeList
,
'
amount
'
,
'
currency
'
)
console
.
log
(
'
运费清关费汇总
'
,
feeList
,
arr
)
return
arr
},
close
(){
this
.
$emit
(
'
close
'
)
},
...
...
src/views/ecw/order/detail.vue
View file @
e30dd923
...
...
@@ -271,7 +271,6 @@
</el-table-column>
<el-table-column
:label=
"$t('目的地')"
>
{{$l(objective, 'title') || '-'}}
{{$l(objective, 'title') || '-'}}
</el-table-column>
<el-table-column
:label=
"$t('品名')"
prop=
"titleZh"
>
<
template
slot-scope=
"{row}"
>
...
...
src/views/ecw/order/edit.vue
View file @
e30dd923
...
...
@@ -324,9 +324,6 @@
/>
</el-form-item>
</div>
<div
class=
"form-section"
v-if=
"form.customsType==2"
>
<span
style=
"color:red;font-size:14px"
>
{{$t('报关退税,请备齐资料。')}}
</span>
</div>
<div
class=
"form-section"
v-if=
"collectionProxy"
>
<el-form-item
:label=
"$t('是否代收货款')"
prop=
"isCollection"
>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
formatter=
"bool"
v-model=
"form.isCollection"
form-type=
"radio"
:disabled=
"false"
/>
...
...
@@ -342,7 +339,7 @@
<el-form-item
:label=
"$t('单证报关')"
:span=
"2"
prop=
"customsType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model=
"form.customsType"
form-type=
"radio"
defaultable
:disabled=
"false"
/>
<!--自单代报显示提示-->
<div
v-if=
"+form.customsType === 2"
>
{{$t('报关退税,请备齐资料。')}}
</div>
<div
v-if=
"+form.customsType === 2"
style=
"color:red;font-size:14px"
>
{{$t('报关退税,请备齐资料。')}}
</div>
</el-form-item>
</div>
<div>
...
...
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