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
e43cf0f4
Commit
e43cf0f4
authored
Jan 12, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复海运非阶梯价不能设置包装类型
parent
f801a9f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
SeaPrice.vue
src/views/ecw/productPrice/components/SeaPrice.vue
+12
-1
edit.vue
src/views/ecw/productPrice/edit.vue
+15
-3
No files found.
src/views/ecw/productPrice/components/SeaPrice.vue
View file @
e43cf0f4
...
...
@@ -58,7 +58,17 @@ export default {
getDictDatas
,
// 包装类型初始化
initPackingPrice
(){
if
(
this
.
value
[
this
.
packagingField
]?.
length
)
return
// 已有包装类型则处理字段,没有则初始化一个
if
(
this
.
value
[
this
.
packagingField
]?.
length
){
this
.
value
[
this
.
packagingField
].
forEach
(
item
=>
{
if
(
!
item
.
packagingTypes
){
this
.
$set
(
item
,
'
packagingTypes
'
,
[])
}
else
if
(
typeof
item
.
packagingTypes
==
'
string
'
){
item
.
packagingTypes
=
item
.
packagingTypes
.
split
(
'
,
'
)
}
})
return
}
this
.
addPackage
()
},
// 初始化特需加价
...
...
@@ -110,6 +120,7 @@ export default {
// 检查包装费
if
(
this
.
value
[
this
.
packagingField
]?.
length
){
this
.
value
[
this
.
packagingField
]?.
forEach
((
item
,
index
)
=>
{
if
(
!
item
.
packagingTypes
?.
length
)
return
if
(
!
this
.
validatePrice
(
item
.
packagingPrice
)){
valid
=
false
this
.
$message
.
error
(
this
.
$t
(
"
请设置{name}的包装费{index}
"
,
{
name
:
this
.
priceName
,
index
:
index
+
1
}))
...
...
src/views/ecw/productPrice/edit.vue
View file @
e43cf0f4
...
...
@@ -755,9 +755,21 @@ export default {
}
// 格式化
data
.
fullPricePackagingList
=
this
.
getPackingPrice
(
data
.
fullPricePackagingList
)
data
.
freightPricePackagingList
=
this
.
getPackingPrice
(
data
.
freightPricePackagingList
)
data
.
clearancePricePackagingList
=
this
.
getPackingPrice
(
data
.
clearancePricePackagingList
)
if
(
this
.
form
.
priceType
===
1
){
data
.
fullPricePackagingList
=
this
.
getPackingPrice
(
data
.
fullPricePackagingList
)
delete
data
.
freightPricePackagingList
delete
data
.
clearancePricePackagingList
}
else
{
data
.
freightPricePackagingList
=
this
.
getPackingPrice
(
data
.
freightPricePackagingList
)
data
.
clearancePricePackagingList
=
this
.
getPackingPrice
(
data
.
clearancePricePackagingList
)
delete
data
.
fullPricePackagingList
}
// 删除阶梯价字段
delete
data
.
freightPriceStepList
delete
data
.
fullPriceStepList
delete
data
.
clearancePriceStepList
}
// 设置了有效期,且已过期则给提示
...
...
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