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
ba72f0ab
Commit
ba72f0ab
authored
Jan 21, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化批量设置价格,未设置价格的阶梯不提交
parent
5cfd559d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+8
-5
batchEditAir.vue
src/views/ecw/productPrice/batchEditAir.vue
+7
-4
No files found.
src/views/ecw/productPrice/batchEdit.vue
View file @
ba72f0ab
...
@@ -470,7 +470,7 @@ export default {
...
@@ -470,7 +470,7 @@ export default {
},
},
// 获得用语提交的阶梯价副本
// 获得用语提交的阶梯价副本
getPriceList
(
stepList
){
getPriceList
(
stepList
,
prefix
){
if
(
!
stepList
?.
length
)
return
[]
if
(
!
stepList
?.
length
)
return
[]
let
stepPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
stepList
))
let
stepPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
stepList
))
stepPriceList
.
forEach
((
item
,
index
)
=>
{
stepPriceList
.
forEach
((
item
,
index
)
=>
{
...
@@ -481,7 +481,10 @@ export default {
...
@@ -481,7 +481,10 @@ export default {
return
p
return
p
})
})
})
})
return
stepPriceList
// 240121应老王要求,未设置价格的不提交
return
stepPriceList
.
filter
(
item
=>
{
return
!!
item
[
`
${
prefix
}
Price`
]
})
},
},
// 非阶梯价格更新单位
// 非阶梯价格更新单位
handleFormUnitChange
(
data
){
handleFormUnitChange
(
data
){
...
@@ -571,12 +574,12 @@ export default {
...
@@ -571,12 +574,12 @@ export default {
// 全包价
// 全包价
if
(
this
.
form
.
priceType
==
1
)
{
if
(
this
.
form
.
priceType
==
1
)
{
data
.
fullPriceStepList
=
this
.
getPriceList
(
this
.
form
.
fullPriceStepList
)
data
.
fullPriceStepList
=
this
.
getPriceList
(
this
.
form
.
fullPriceStepList
,
'
all
'
)
delete
data
.
clearancePriceStepList
delete
data
.
clearancePriceStepList
delete
data
.
freightPriceStepList
delete
data
.
freightPriceStepList
}
else
{
}
else
{
data
.
clearancePriceStepList
=
this
.
getPriceList
(
this
.
form
.
clearancePriceStepList
)
data
.
clearancePriceStepList
=
this
.
getPriceList
(
this
.
form
.
clearancePriceStepList
,
'
clearance
'
)
data
.
freightPriceStepList
=
this
.
getPriceList
(
this
.
form
.
freightPriceStepList
)
data
.
freightPriceStepList
=
this
.
getPriceList
(
this
.
form
.
freightPriceStepList
,
'
transport
'
)
delete
data
.
fullPriceStepList
delete
data
.
fullPriceStepList
}
}
...
...
src/views/ecw/productPrice/batchEditAir.vue
View file @
ba72f0ab
...
@@ -336,7 +336,10 @@ export default {
...
@@ -336,7 +336,10 @@ export default {
return
p
return
p
})
})
})
})
return
stepPriceList
// 240121应老王要求,未设置价格的不提交
return
stepPriceList
.
filter
(
item
=>
{
return
!!
item
[
`
${
prefix
}
Price`
]
})
},
},
submitForm
()
{
submitForm
()
{
...
@@ -376,12 +379,12 @@ export default {
...
@@ -376,12 +379,12 @@ export default {
// 全包价
// 全包价
if
(
this
.
form
.
priceType
==
1
)
{
if
(
this
.
form
.
priceType
==
1
)
{
data
.
fullPriceStepList
=
this
.
getPriceList
(
this
.
form
.
fullPriceStepList
)
data
.
fullPriceStepList
=
this
.
getPriceList
(
this
.
form
.
fullPriceStepList
,
'
all
'
)
delete
data
.
clearancePriceStepList
delete
data
.
clearancePriceStepList
delete
data
.
freightPriceStepList
delete
data
.
freightPriceStepList
}
else
{
}
else
{
data
.
clearancePriceStepList
=
this
.
getPriceList
(
this
.
form
.
clearancePriceStepList
)
data
.
clearancePriceStepList
=
this
.
getPriceList
(
this
.
form
.
clearancePriceStepList
,
'
clearance
'
)
data
.
freightPriceStepList
=
this
.
getPriceList
(
this
.
form
.
freightPriceStepList
)
data
.
freightPriceStepList
=
this
.
getPriceList
(
this
.
form
.
freightPriceStepList
,
'
transport
'
)
delete
data
.
fullPriceStepList
delete
data
.
fullPriceStepList
}
}
...
...
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