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
Show 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,11 +482,16 @@
<
div
class
=
"
channel
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0&&handlerParams.orderExceptionHandlerResult=='allow_over'
"
>
<
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
>
<
span
v
-
else
>
{{
scope
.
row
.
oneSeaFreight
}}
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/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,11 +524,16 @@
<
div
class
=
"
channel
"
>
<!--
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span> --
>
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0&&handlerParams.orderExceptionHandlerResult=='allow_over'
"
>
<
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
>
<
span
v
-
else
>
{{
scope
.
row
.
oneClearanceFreight
}}
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/span
>
...
...
@@ -537,11 +550,16 @@
<
div
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
class
=
"
price_list
"
>
<
div
class
=
"
price_label
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
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
v
-
else
class
=
"
price_list
"
>
<
div
v
-
if
=
"
!row.oneSeaFreight
"
>
<
span
class
=
"
price_label
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/span
>
...
...
@@ -559,15 +577,24 @@
<
div
class
=
"
price_list
"
>
<
div
class
=
"
price_label
"
>
{{
$t
(
'
运费
'
)
}}
:
<
/div
>
<
div
class
=
"
price_list
"
>
<
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
"
>
<
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
/>
...
...
@@ -575,6 +602,7 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
else
>
<
div
class
=
"
price_list
"
>
<
div
v
-
if
=
"
!row.oneSeaFreight
"
>
...
...
@@ -839,11 +867,16 @@
<
div
class
=
"
channel
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
全包价
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
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
>
<
span
v
-
else
>
{{
scope
.
row
.
oneSeaFreight
}}
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
...
...
@@ -855,12 +888,17 @@
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
div
style
=
"
width:80px
"
>
{{
$t
(
'
运费
'
)
}}
:
<
/div
>
<
div
style
=
"
width:88%
"
class
=
"
channel
"
>
<
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
"
>
<
span
v
-
if
=
"
!scope.row.oneSeaFreight
"
>
{{
$t
(
'
运费
'
)
}}
:{{
$t
(
'
未报价
'
)
}}
<
/span
>
<
span
v
-
else
>
{{
$t
(
'
运费
'
)
}}
:{{
scope
.
row
.
oneSeaFreight
}}
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/span
>
...
...
@@ -873,11 +911,16 @@
<
div
class
=
"
channel
"
>
<!--
<
span
v
-
if
=
"
!scope.row.oneClearanceFreight
"
>
{{
$t
(
'
未报价
'
)
}}
<
/span> --
>
<
div
class
=
"
channel
"
v
-
if
=
"
orderExceptionData.orderExceptionStatus==0
"
>
<
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
>
<
span
v
-
else
>
{{
scope
.
row
.
oneClearanceFreight
}}
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/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,7 +1470,11 @@
this
.
handlerParams
.
orderItemVOList
=
this
.
orderData
.
orderItemVOList
}
this
.
handlerParams
.
channelPriceList
=
[]
let
priceUnit
=
false
this
.
handlerParams
.
orderItemVOList
.
map
(
v
=>
{
if
(
!
v
.
seaFreightCurrency
||!
v
.
seaFreightVolume
||!
v
.
clearanceFreightCurrency
||
v
.
clearanceFreightVolume
){
priceUnit
=
true
}
var
listItem
=
{
orderId
:
v
.
orderId
,
orderItemId
:
v
.
orderItemId
,
...
...
@@ -1442,6 +1489,10 @@
}
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