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
e13f3da6
Commit
e13f3da6
authored
Dec 19, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单超限异常优化
parent
e8dbf1e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
42 deletions
+93
-42
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+93
-42
No files found.
src/views/ecw/order/prepayDeal.vue
View file @
e13f3da6
...
...
@@ -482,10 +482,15 @@
<
div
class
=
"
channel
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0&&handlerParams.orderExceptionHandlerResult=='allow_over'
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
<
/div
>
<
/div
>
<
div
v
-
else
class
=
"
channel
"
>
<
span
v
-
if
=
"
!scope.row.oneSeaFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span
>
...
...
@@ -497,7 +502,10 @@
<!--
<
span
v
-
if
=
"
!scope.row.oneSeaFreight
"
>
{{
$t
(
'
运费
'
)
}}
:{{
$t
(
'
未报价
'
)
}}
<
/span> --
>
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0&&handlerParams.orderExceptionHandlerResult=='allow_over'
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
运费
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
...
...
@@ -516,10 +524,15 @@
<
div
class
=
"
channel
"
>
<!--
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span> --
>
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0&&handlerParams.orderExceptionHandlerResult=='allow_over'
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.clearanceFreightCurrency||!scope.row.clearanceFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
<
/div
>
<
/div
>
<
div
v
-
else
>
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span
>
...
...
@@ -537,11 +550,16 @@
<
div
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
class
=
"
price_list
"
>
<
div
class
=
"
price_label
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
inputor
default2
=
"
0
"
style
=
"
width:100px
"
v
-
model
.
number
=
"
row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
span
>
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
style
=
"
width:100px
"
v
-
model
.
number
=
"
row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
span
>
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
row.seaFreightCurrency
"
style
=
"
width:100px
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
/>
/ <selector v-model="row.seaFreightVolume" style="width:100px" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 /
>
-->
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
else
class
=
"
price_list
"
>
<
div
v
-
if
=
"
!row.oneSeaFreight
"
>
<
span
class
=
"
price_label
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/span
>
...
...
@@ -559,19 +577,29 @@
<
div
class
=
"
price_list
"
>
<
div
class
=
"
price_label
"
>
{{
$t
(
'
运费
'
)
}}
:
<
/div
>
<
div
class
=
"
price_list
"
>
<
inputor
style
=
"
width:100px
"
default2
=
"
0
"
v
-
model
.
number
=
"
row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
span
>
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
style
=
"
width:100px
"
default2
=
"
0
"
v
-
model
.
number
=
"
row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
span
>
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
style
=
"
width:100px
"
v
-
model
=
"
row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
/>
/ <selector style="width:100px" v-model="row.seaFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 /
>
-->
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
price_list
"
>
<
div
class
=
"
price_label
"
>
{{
$t
(
'
清关费
'
)
}}
:
<
/div
>
<
div
class
=
"
price_list
"
>
<
inputor
style
=
"
width:100px
"
default2
=
"
0
"
v
-
model
.
number
=
"
row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
div
v
-
if
=
"
!scope.row.clearanceFreightCurrency||!scope.row.clearanceFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
style
=
"
width:100px
"
default2
=
"
0
"
v
-
model
.
number
=
"
row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
<
span
>
{{
currencyMap
[
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
row
.
clearanceFreightVolume
]
}}
<
/span
>
<!--
<
selector
style
=
"
width:100px
"
v
-
model
=
"
row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
/>
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 /
>
-->
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -839,10 +867,15 @@
<
div
class
=
"
channel
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
<
/div
>
<
/div
>
<
div
v
-
else
class
=
"
channel
"
>
<
span
v
-
if
=
"
!scope.row.oneSeaFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span
>
...
...
@@ -855,10 +888,15 @@
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
运费
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
div
v
-
if
=
"
!scope.row.seaFreightCurrency||!scope.row.seaFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneSeaFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
$t
(
'
运费
'
)
}}
:{{
scope
.
row
.
oneSeaFreight
}}
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
/ <selector v-model="scope.row.seaFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
else
class
=
"
channel
"
>
...
...
@@ -873,10 +911,15 @@
<
div
class
=
"
channel
"
>
<!--
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span> --
>
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/span
>
<
div
v
-
if
=
"
!scope.row.clearanceFreightCurrency||!scope.row.clearanceFreightVolume
"
>
/
<
/div
>
<
div
v
-
else
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
scope.row.oneClearanceFreight
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
/>
<
span
>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/span
>
<!--
<
selector
v
-
model
=
"
scope.row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
<
/div
>
<
/div
>
<
div
v
-
else
>
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span
>
...
...
@@ -1269,18 +1312,18 @@
if
([
'
overweight_exception
'
,
'
not_shipping_channel_exception
'
,
'
channel_packaging_overweight_exception
'
,
'
channel_exception
'
].
indexOf
(
this
.
orderExceptionData
.
orderExceptionType
)
>-
1
){
// this.handlerParams.channelPriceList = []
this
.
getOpenedRouterList
()
if
(
this
.
orderExceptionData
.
orderExceptionStatus
==
0
){
this
.
orderData
.
orderItemVOList
.
map
(
v
=>
{
if
(
!
v
.
oneSeaFreight
){
v
.
seaFreightCurrency
=
this
.
currencyList
[
0
][
'
id
'
]
v
.
seaFreightVolume
=
this
.
unitList
[
1
][
'
id
'
]
}
if
(
!
v
.
oneClearanceFreight
){
v
.
clearanceFreightCurrency
=
this
.
currencyList
[
0
][
'
id
'
]
v
.
clearanceFreightVolume
=
this
.
unitList
[
1
][
'
id
'
]
}
}
)
}
//
if(this.orderExceptionData.orderExceptionStatus==0)
{
//
this.orderData.orderItemVOList.map(v=>
{
//
if(!v.oneSeaFreight)
{
//
v.seaFreightCurrency = this.currencyList[0]['id']
//
v.seaFreightVolume = this.unitList[1]['id']
//
}
//
if(!v.oneClearanceFreight)
{
//
v.clearanceFreightCurrency = this.currencyList[0]['id']
//
v.clearanceFreightVolume = this.unitList[1]['id']
//
}
//
}
)
//
}
}
if
(
this
.
orderExceptionData
.
orderExceptionType
==
'
line_loop_exception
'
){
this
.
getExceptionPriceList
(
'
line_loop_exception
'
,
1
)
...
...
@@ -1427,21 +1470,29 @@
this
.
handlerParams
.
orderItemVOList
=
this
.
orderData
.
orderItemVOList
}
this
.
handlerParams
.
channelPriceList
=
[]
let
priceUnit
=
false
this
.
handlerParams
.
orderItemVOList
.
map
(
v
=>
{
var
listItem
=
{
orderId
:
v
.
orderId
,
orderItemId
:
v
.
orderItemId
,
charging
:
v
.
charging
,
freightFee
:
v
.
oneSeaFreight
,
isPayAdvance
:
v
.
isPayAdvance
||
0
,
freightCurrencyId
:
v
.
seaFreightCurrency
,
freightUnitId
:
v
.
seaFreightVolume
,
clearanceFee
:
v
.
oneClearanceFreight
,
clearanceCurrencyId
:
v
.
clearanceFreightCurrency
,
clearanceUnitId
:
v
.
clearanceFreightVolume
}
this
.
handlerParams
.
channelPriceList
.
push
(
listItem
)
}
)
if
(
!
v
.
seaFreightCurrency
||!
v
.
seaFreightVolume
||!
v
.
clearanceFreightCurrency
||
v
.
clearanceFreightVolume
){
priceUnit
=
true
}
var
listItem
=
{
orderId
:
v
.
orderId
,
orderItemId
:
v
.
orderItemId
,
charging
:
v
.
charging
,
freightFee
:
v
.
oneSeaFreight
,
isPayAdvance
:
v
.
isPayAdvance
||
0
,
freightCurrencyId
:
v
.
seaFreightCurrency
,
freightUnitId
:
v
.
seaFreightVolume
,
clearanceFee
:
v
.
oneClearanceFreight
,
clearanceCurrencyId
:
v
.
clearanceFreightCurrency
,
clearanceUnitId
:
v
.
clearanceFreightVolume
}
this
.
handlerParams
.
channelPriceList
.
push
(
listItem
)
}
)
if
(
priceUnit
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
请先去设置运费或清关费本身的货币单位、计价单位
'
));
return
}
}
handlerExceptionByExceptionId
(
this
.
handlerParams
).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
提交成功
'
));
...
...
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