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
8b15b3f2
Commit
8b15b3f2
authored
Jun 24, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加必填
parent
811db4bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
edit.vue
src/views/ecw/channel/edit.vue
+23
-2
No files found.
src/views/ecw/channel/edit.vue
View file @
8b15b3f2
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
渠道包装列表
渠道包装列表
</h1>
</h1>
<div>
<div>
<el-button
type=
"primary"
@
click=
"addPackaging"
>
添加包装类型
</el-button>
<el-button
type=
"primary"
@
click=
"addPackaging"
>
添加包装类型
</el-button>
<el-button
type=
"text"
@
click=
"dialogVisible = true;"
>
选择渠道包装模板
</el-button>
<el-button
type=
"text"
@
click=
"dialogVisible = true;"
>
选择渠道包装模板
</el-button>
</div>
</div>
</div>
</div>
...
@@ -242,6 +242,8 @@ export default {
...
@@ -242,6 +242,8 @@ export default {
this
.
warehouseIdsArr
=
this
.
form
.
warehouseIds
.
split
(
'
,
'
)?.
filter
(
item
=>
!!
item
)
this
.
warehouseIdsArr
=
this
.
form
.
warehouseIds
.
split
(
'
,
'
)?.
filter
(
item
=>
!!
item
)
}
}
});
});
}
else
{
this
.
addPackaging
()
}
}
},
},
...
@@ -316,11 +318,14 @@ export default {
...
@@ -316,11 +318,14 @@ export default {
//添加包装类型
//添加包装类型
addPackaging
(){
addPackaging
(){
let
p
=
{
let
p
=
{
airWeightLimit
:
undefined
,
airWeightLimit
:
''
,
packagingTypes
:[],
packagingTypes
:[],
channelPriceStepClearanceList
:[],
channelPriceStepClearanceList
:[],
}
}
this
.
form
.
channelPackagingList
.
push
(
p
)
this
.
form
.
channelPackagingList
.
push
(
p
)
},
verify
(
row
){
return
(
row
.
startNum
!==
''
&&
row
.
endNum
!==
''
&&
row
.
clearancePrice
!==
''
&&
row
.
clearancePriceUnit
!==
''
&&
row
.
clearanceVolumeUnit
!==
''
)
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
@@ -328,6 +333,22 @@ export default {
...
@@ -328,6 +333,22 @@ export default {
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
let
derail
=
false
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
if
(
item
.
airWeightLimit
===
''
||
item
.
airWeightLimit
===
0
){
derail
=
true
return
this
.
$message
.
warning
(
'
请输入空运订单重量上限
'
)
}
if
(
!
item
.
packagingTypes
.
length
){
derail
=
true
return
this
.
$message
.
warning
(
'
请输入包装类型
'
)
}
if
(
!
item
.
channelPriceStepClearanceList
.
every
(
this
.
verify
)){
derail
=
true
return
this
.
$message
.
warning
(
'
请输入阶梯价格
'
)
}
})
if
(
derail
)
return
;
this
.
form
.
warehouseIds
=
this
.
warehouseIdsArr
.
join
(
'
,
'
)
this
.
form
.
warehouseIds
=
this
.
warehouseIdsArr
.
join
(
'
,
'
)
let
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
let
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
let
attrId
=
this
.
form
.
attrId
let
attrId
=
this
.
form
.
attrId
...
...
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