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
996db3dd
Commit
996db3dd
authored
Jun 14, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阶梯价修改
parent
0e5d8f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
packaging-type.vue
src/views/ecw/channel/componrnts/packaging-type.vue
+1
-1
edit.vue
src/views/ecw/channel/edit.vue
+8
-3
No files found.
src/views/ecw/channel/componrnts/packaging-type.vue
View file @
996db3dd
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
watch
:{
watch
:{
'
value1.priceStepClearanceList
'
:{
'
value1.priceStepClearanceList
'
:{
handler
(
val
){
handler
(
val
){
if
(
val
.
length
===
0
){
if
(
val
&&
val
.
length
===
0
){
this
.
addInterval
();
this
.
addInterval
();
}
}
this
.
$emit
(
'
input
'
,
this
.
value1
)
this
.
$emit
(
'
input
'
,
this
.
value1
)
...
...
src/views/ecw/channel/edit.vue
View file @
996db3dd
...
@@ -225,8 +225,9 @@ export default {
...
@@ -225,8 +225,9 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
getChannel
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
getChannel
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
this
.
$set
(
this
,
'
form
'
,
{...
res
.
data
})
this
.
$set
(
this
,
'
form
'
,
{...
res
.
data
})
if
(
!
this
.
form
.
channelPackagingList
===
null
){
if
(
this
.
form
.
channelPackagingList
===
null
){
this
.
form
.
channelPackagingList
=
[];
this
.
form
.
channelPackagingList
=
[];
this
.
addPackaging
()
}
}
if
(
this
.
form
.
attrId
){
if
(
this
.
form
.
attrId
){
this
.
form
.
attrId
=
this
.
form
.
attrId
.
split
(
'
,
'
).
map
(
i
=>
+
i
)
this
.
form
.
attrId
=
this
.
form
.
attrId
.
split
(
'
,
'
).
map
(
i
=>
+
i
)
...
@@ -235,7 +236,7 @@ export default {
...
@@ -235,7 +236,7 @@ export default {
}
}
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
item
.
packagingTypes
=
item
.
packagingTypes
.
split
(
'
,
'
)
||
[]
item
.
packagingTypes
=
item
.
packagingTypes
&&
item
.
packagingTypes
.
length
!==
0
?
item
.
packagingTypes
.
split
(
'
,
'
)
:
[]
})
})
if
(
this
.
form
.
warehouseIds
.
length
){
if
(
this
.
form
.
warehouseIds
.
length
){
this
.
warehouseIdsArr
=
this
.
form
.
warehouseIds
.
split
(
'
,
'
)?.
filter
(
item
=>
!!
item
)
this
.
warehouseIdsArr
=
this
.
form
.
warehouseIds
.
split
(
'
,
'
)?.
filter
(
item
=>
!!
item
)
...
@@ -271,9 +272,12 @@ export default {
...
@@ -271,9 +272,12 @@ export default {
this
.
form
.
channelPackagingList
=
[];
this
.
form
.
channelPackagingList
=
[];
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
getChannel
(
val
).
then
((
res
)
=>
{
getChannel
(
val
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
,
'
data
'
)
res
.
data
.
channelPackagingList
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
channelPackagingList
.
forEach
((
item
,
index
)
=>
{
if
(
!
this
.
form
.
channelPackagingList
[
index
]){
if
(
!
this
.
form
.
channelPackagingList
[
index
]){
this
.
form
.
channelPackagingList
[
index
]
=
{
airWeightLimit
:
undefined
,
packagingTypes
:[],
channelPriceStepClearanceList
:[],}
this
.
form
.
channelPackagingList
[
index
]
=
{
airWeightLimit
:
item
.
airWeightLimit
,
packagingTypes
:[],
channelPriceStepClearanceList
:[],}
}
else
{
this
.
form
.
channelPackagingList
[
index
]
=
{
airWeightLimit
:
item
.
airWeightLimit
,
packagingTypes
:
[],
channelPriceStepClearanceList
:[],}
}
}
item
.
channelPriceStepClearanceList
.
forEach
((
itemm
,
indexx
)
=>
{
item
.
channelPriceStepClearanceList
.
forEach
((
itemm
,
indexx
)
=>
{
let
p
=
{
let
p
=
{
...
@@ -293,6 +297,7 @@ export default {
...
@@ -293,6 +297,7 @@ export default {
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]
=
{...
p
,...
it
,
clearancePrice
:
itemm
.
clearancePrice
,
clearancePriceUnit
:
itemm
.
clearancePriceUnit
,
clearanceVolumeUnit
:
itemm
.
clearanceVolumeUnit
}
;
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]
=
{...
p
,...
it
,
clearancePrice
:
itemm
.
clearancePrice
,
clearancePriceUnit
:
itemm
.
clearancePriceUnit
,
clearanceVolumeUnit
:
itemm
.
clearanceVolumeUnit
}
;
})
})
})
})
this
.
$forceUpdate
()
});
});
},
},
deleteFn
(
index
){
deleteFn
(
index
){
...
...
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