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
4e4a145b
Commit
4e4a145b
authored
Jan 07, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善海运价格编辑和批量设置
parent
161770b9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
357 additions
and
373 deletions
+357
-373
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+220
-275
SeaPrice.vue
src/views/ecw/productPrice/components/SeaPrice.vue
+113
-98
edit.vue
src/views/ecw/productPrice/edit.vue
+24
-0
No files found.
src/views/ecw/productPrice/batchEdit.vue
View file @
4e4a145b
This diff is collapsed.
Click to expand it.
src/views/ecw/productPrice/components/SeaPrice.vue
View file @
4e4a145b
This diff is collapsed.
Click to expand it.
src/views/ecw/productPrice/edit.vue
View file @
4e4a145b
...
...
@@ -371,12 +371,14 @@ export default {
if
(
this
.
form
.
stepPrice
===
1
){
this
.
initStepPrice
()
}
this
.
syncMinWeightUnit
()
},
'
form.stepPrice
'
(
stepPrice
){
if
(
this
.
form
.
stepPrice
===
1
){
this
.
initStepPrice
()
}
this
.
stepPrice
=
!!
stepPrice
this
.
syncMinWeightUnit
()
},
needPay
(
val
){
this
.
$set
(
this
.
form
,
'
needPay
'
,
val
?
1
:
0
)
...
...
@@ -521,6 +523,21 @@ export default {
})
},
methods
:
{
// 设置最小起计量单位
syncMinWeightUnit
(){
// 如果是阶梯价
if
(
this
.
form
.
stepPrice
){
const
field
=
this
.
form
.
priceType
===
1
?
"
fullPriceStepList
"
:
"
freightPriceStepList
"
const
stepPriceList
=
this
.
form
[
field
]
if
(
stepPriceList
?.
length
){
this
.
form
.
minWeightUnit
=
stepPriceList
[
0
]?.
weightUnit
||
DEFAULT_WEIGHT_UNIT
}
else
{
this
.
form
.
minWeightUnit
=
DEFAULT_WEIGHT_UNIT
}
}
else
{
this
.
form
.
minWeightUnit
=
this
.
form
[
this
.
form
.
priceType
===
1
?
'
allVolumeUnit
'
:
'
transportVolumeUnit
'
]
||
DEFAULT_WEIGHT_UNIT
}
},
handleAddPrice
(
field
,
fieldPrefix
){
if
(
!
this
.
form
[
field
]){
this
.
$set
(
this
.
form
,
field
,
[])
...
...
@@ -593,11 +610,18 @@ export default {
},
// 非阶梯价格更新单位
handleFormUnitChange
(
data
){
// 海运非阶梯价没有重量单位,所以按照体积单位同步最小起计量单位
if
(
data
.
field
===
'
transportVolumeUnit
'
||
data
.
field
==
'
allVolumeUnit
'
){
this
.
form
.
minWeightUnit
=
data
.
value
}
if
(
this
.
form
.
specialList
?.
length
){
this
.
form
.
specialList
.
forEach
(
p
=>
{
p
[
data
.
field
]
=
data
.
value
})
}
// TODO 等加了包装之后还需要同步包装的单位
},
initStepPrice
(){
if
(
this
.
form
.
priceType
==
1
&&
!
this
.
form
.
fullPriceStepList
?.
length
){
...
...
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