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
c9d7371e
Commit
c9d7371e
authored
Aug 20, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/price_query' into dev
parents
add76b69
79ad5b69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
85 deletions
+108
-85
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+46
-25
edit.vue
src/views/ecw/productPrice/edit.vue
+62
-60
No files found.
src/views/ecw/order/prepayDeal.vue
View file @
c9d7371e
...
@@ -1047,12 +1047,13 @@
...
@@ -1047,12 +1047,13 @@
:
placeholder
=
"
$t('整数或者两位小数')
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
class
=
"
w100
"
/>
/>
<
span
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
>
{{
currencyMap
[
scope
.
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
{{
unitMap
[
scope
.
row
.
seaFreightVolume
]
}}
<
/spa
n
<!--
template
v
-
else
>
>
<
selector
v
-
model
=
"
scope.row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
class
=
"
w100
"
/>
<!--
<
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" /
>
-->
<
selector
v
-
model
=
"
scope.row.seaFreightVolume
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
class
=
"
w100
"
/>
<
/template--
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
else
class
=
"
channel
"
>
<
div
v
-
else
class
=
"
channel
"
>
...
@@ -1100,12 +1101,12 @@
...
@@ -1100,12 +1101,12 @@
:
placeholder
=
"
$t('整数或者两位小数')
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100
"
class
=
"
w100
"
/>
/>
<
span
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
>
{{
currencyMap
[
scope
.
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
{{
unitMap
[
scope
.
row
.
clearanceFreightVolume
]
}}
<
/spa
n
<!--
>
<
selector
v
-
model
=
"
scope.row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
class
=
"
w100
"
/
>
<!--
<
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"
class="w100" /
>
/ <selector v-model="scope.row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 class="w100" /
>
-->
-->
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
else
>
<
div
v
-
else
>
...
@@ -1193,12 +1194,14 @@
...
@@ -1193,12 +1194,14 @@
type
=
"
number
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
/>
<
span
<
span
v
-
if
=
"
!unitChangable
"
>
>
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
<
/spa
n
{{
unitMap
[
row
.
seaFreightVolume
]
}}
>
<
/span
>
<!--
<
selector
style
=
"
width:100px
"
v
-
model
=
"
row.seaFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
/>
<
template
v
-
else
>
/ <selector style="width:100px" v-model="row.seaFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 /
>
-->
<
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 /
>
<
/template
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -1221,12 +1224,14 @@
...
@@ -1221,12 +1224,14 @@
type
=
"
number
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
:
placeholder
=
"
$t('整数或者两位小数')
"
/>
/>
<
span
<
span
v
-
if
=
"
!unitChangable
"
>
>
{{
currencyMap
[
row
.
clearanceFreightCurrency
]
}}
/
{{
currencyMap
[
row
.
clearanceFreightCurrency
]
}}
/
{{
unitMap
[
row
.
clearanceFreightVolume
]
}}
<
/spa
n
{{
unitMap
[
row
.
clearanceFreightVolume
]
}}
>
<
/span
>
<!--
<
selector
style
=
"
width:100px
"
v
-
model
=
"
row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
/>
<
template
v
-
else
>
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" defaultable2 /
>
-->
<
selector
style
=
"
width:100px
"
v
-
model
=
"
row.clearanceFreightCurrency
"
:
options
=
"
currencyList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
/>
/ <selector style="width:100px" v-model="row.clearanceFreightVolume" :options="unitList" :label-field="$l
(
'title'
)
" value-field="id" /
>
<
/template
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -2280,6 +2285,8 @@ export default {
...
@@ -2280,6 +2285,8 @@ export default {
selectLine
:
null
,
selectLine
:
null
,
calculating
:
false
,
// 是否正在计算费用,防止频繁重新请求,
calculating
:
false
,
// 是否正在计算费用,防止频繁重新请求,
loopOrderItem
:
[],
//线路单询异常清关费,
loopOrderItem
:
[],
//线路单询异常清关费,
// 単询异常是否可以更改单位
unitChangable
:
false
}
;
}
;
}
,
}
,
activated
()
{
activated
()
{
...
@@ -2331,7 +2338,7 @@ export default {
...
@@ -2331,7 +2338,7 @@ export default {
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
this
.
orderExceptionData
.
orderExceptionAmountCurrencyId
);
);
}
}
if
(
if
(
this
.
orderExceptionData
.
orderExceptionType
==
this
.
orderExceptionData
.
orderExceptionType
==
"
not_shipping_channel_exception
"
"
not_shipping_channel_exception
"
...
@@ -2493,6 +2500,7 @@ export default {
...
@@ -2493,6 +2500,7 @@ export default {
that
.
loading
=
true
;
that
.
loading
=
true
;
getExceptionById
(
that
.
orderExceptionId
).
then
((
response
)
=>
{
getExceptionById
(
that
.
orderExceptionId
).
then
((
response
)
=>
{
that
.
orderExceptionData
=
response
.
data
;
that
.
orderExceptionData
=
response
.
data
;
that
.
loading
=
false
;
that
.
loading
=
false
;
that
.
orderId
=
response
.
data
.
orderId
;
that
.
orderId
=
response
.
data
.
orderId
;
that
.
getOrderData
();
that
.
getOrderData
();
...
@@ -2578,6 +2586,19 @@ export default {
...
@@ -2578,6 +2586,19 @@ export default {
//not_shipping_channel_exception 不可出渠道异常
//not_shipping_channel_exception 不可出渠道异常
getOrder
(
this
.
orderId
).
then
((
response
)
=>
{
getOrder
(
this
.
orderId
).
then
((
response
)
=>
{
this
.
orderData
=
response
.
data
;
this
.
orderData
=
response
.
data
;
const
orderItem
=
this
.
orderData
.
orderItemVOList
.
find
(
item
=>
item
.
orderItemId
===
this
.
orderExceptionData
.
orderItemId
)
console
.
log
(
"
uniChangable
"
,
this
.
orderExceptionData
.
orderExceptionStatus
,
this
.
orderExceptionData
.
orderExceptionType
,
orderItem
?.
oneSeaFreight
,
orderItem
?.
oneClearanceFreight
)
// 待处理 且 単询异常 且 清关费和运费为0则可以修改单位
if
(
this
.
orderExceptionData
.
orderExceptionStatus
==
0
&&
this
.
orderExceptionData
.
orderExceptionType
===
"
line_loop_exception
"
&&
orderItem
&&
orderItem
.
oneSeaFreight
===
0
&&
orderItem
.
oneClearanceFreight
===
0
){
this
.
unitChangable
=
true
}
else
this
.
unitChangable
=
false
if
(
this
.
orderData
.
channelId
!=
0
)
{
if
(
this
.
orderData
.
channelId
!=
0
)
{
this
.
channelList
.
map
((
v
)
=>
{
this
.
channelList
.
map
((
v
)
=>
{
if
(
v
.
channelId
==
this
.
orderData
.
channelId
)
{
if
(
v
.
channelId
==
this
.
orderData
.
channelId
)
{
...
...
src/views/ecw/productPrice/edit.vue
View file @
c9d7371e
...
@@ -952,10 +952,10 @@ export default {
...
@@ -952,10 +952,10 @@ export default {
isAllProduct
:
0
,
isAllProduct
:
0
,
});
});
if
(
this
.
form
.
needOrderInquiry
==
0
)
{
// 阶梯价
//不是单询价才校验价格参数 lanbm 2024-06-17
if
(
this
.
form
.
stepPrice
)
{
//
阶梯价
//
单询不校验
if
(
this
.
form
.
stepPrice
)
{
if
(
this
.
form
.
needOrderInquiry
==
0
)
{
let
isValid
=
true
;
let
isValid
=
true
;
for
(
let
stepPrice
of
this
.
$refs
.
stepPrice
)
{
for
(
let
stepPrice
of
this
.
$refs
.
stepPrice
)
{
if
(
!
stepPrice
.
validate
())
{
if
(
!
stepPrice
.
validate
())
{
...
@@ -964,26 +964,29 @@ export default {
...
@@ -964,26 +964,29 @@ export default {
}
}
}
}
if
(
!
isValid
)
return
;
if
(
!
isValid
)
return
;
}
// 全包价
// 全包价
if
(
this
.
form
.
priceType
==
1
)
{
if
(
this
.
form
.
priceType
==
1
)
{
data
.
fullPriceStepList
=
this
.
getPriceList
(
data
.
fullPriceStepList
=
this
.
getPriceList
(
this
.
form
.
fullPriceStepList
this
.
form
.
fullPriceStepList
);
);
delete
data
.
clearancePriceStepList
;
delete
data
.
clearancePriceStepList
;
delete
data
.
freightPriceStepList
;
delete
data
.
freightPriceStepList
;
}
else
{
}
else
{
data
.
clearancePriceStepList
=
this
.
getPriceList
(
data
.
clearancePriceStepList
=
this
.
getPriceList
(
this
.
form
.
clearancePriceStepList
this
.
form
.
clearancePriceStepList
);
);
data
.
freightPriceStepList
=
this
.
getPriceList
(
data
.
freightPriceStepList
=
this
.
getPriceList
(
this
.
form
.
freightPriceStepList
this
.
form
.
freightPriceStepList
);
);
delete
data
.
fullPriceStepList
;
delete
data
.
fullPriceStepList
;
}
}
}
//海运非阶梯价校验
}
else
{
//海运非阶梯价校验
else
{
// 单询不校验
if
(
this
.
form
.
needOrderInquiry
==
0
)
{
// 有多个组件则表示清关费 + 运费
// 有多个组件则表示清关费 + 运费
if
(
this
.
$refs
.
seaPrice
?.
length
)
{
if
(
this
.
$refs
.
seaPrice
?.
length
)
{
let
isValid
=
true
;
let
isValid
=
true
;
...
@@ -999,48 +1002,47 @@ export default {
...
@@ -999,48 +1002,47 @@ export default {
else
if
(
this
.
$refs
.
seaPrice
&&
!
this
.
$refs
.
seaPrice
.
validate
())
{
else
if
(
this
.
$refs
.
seaPrice
&&
!
this
.
$refs
.
seaPrice
.
validate
())
{
return
;
return
;
}
}
}
// 格式化
// 格式化
if
(
this
.
form
.
priceType
===
1
)
{
if
(
this
.
form
.
priceType
===
1
)
{
data
.
fullPricePackagingList
=
this
.
getPackingPrice
(
data
.
fullPricePackagingList
=
this
.
getPackingPrice
(
data
.
fullPricePackagingList
data
.
fullPricePackagingList
);
);
delete
data
.
freightPricePackagingList
;
delete
data
.
freightPricePackagingList
;
delete
data
.
clearancePricePackagingList
;
delete
data
.
clearancePricePackagingList
;
}
else
{
}
else
{
data
.
freightPricePackagingList
=
this
.
getPackingPrice
(
data
.
freightPricePackagingList
=
this
.
getPackingPrice
(
data
.
freightPricePackagingList
data
.
freightPricePackagingList
);
);
data
.
clearancePricePackagingList
=
this
.
getPackingPrice
(
data
.
clearancePricePackagingList
=
this
.
getPackingPrice
(
data
.
clearancePricePackagingList
data
.
clearancePricePackagingList
);
);
delete
data
.
fullPricePackagingList
;
delete
data
.
fullPricePackagingList
;
}
// 删除阶梯价字段
delete
data
.
freightPriceStepList
;
delete
data
.
fullPriceStepList
;
delete
data
.
clearancePriceStepList
;
}
}
// 设置了有效期,且已过期则给提示
// 删除阶梯价字段
if
(
this
.
form
.
validateEndDate
&&
force
!==
true
)
{
delete
data
.
freightPriceStepList
;
let
validateEndDate
=
new
Date
(
this
.
form
.
validateEndDate
);
delete
data
.
fullPriceStepList
;
if
(
validateEndDate
.
getTime
()
<
Date
.
now
())
{
delete
data
.
clearancePriceStepList
;
return
this
.
$confirm
(
}
"
您设置的线路价格已过期,确定提交吗?
"
,
"
提示
"
,
// 设置了有效期,且已过期则给提示
{
if
(
this
.
form
.
validateEndDate
&&
force
!==
true
)
{
confirmButtonText
:
"
确认提交
"
,
let
validateEndDate
=
new
Date
(
this
.
form
.
validateEndDate
);
cancelButtonText
:
"
取消提交
"
,
if
(
validateEndDate
.
getTime
()
<
Date
.
now
())
{
type
:
"
warning
"
,
return
this
.
$confirm
(
}
"
您设置的线路价格已过期,确定提交吗?
"
,
).
then
((
res
)
=>
{
"
提示
"
,
this
.
submitForm
(
true
);
{
});
confirmButtonText
:
"
确认提交
"
,
}
cancelButtonText
:
"
取消提交
"
,
type
:
"
warning
"
,
}
).
then
((
res
)
=>
{
this
.
submitForm
(
true
);
});
}
}
}
}
// 修改单条路线
// 修改单条路线
...
...
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