Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
bp
op-web-service
Commits
73c3863e
Commit
73c3863e
authored
Jul 21, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:更新验证
parent
4ae2fc00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
index.vue
src/pages/Goods/Retail/index.vue
+8
-8
No files found.
src/pages/Goods/Retail/index.vue
View file @
73c3863e
...
...
@@ -554,7 +554,7 @@ export default {
async
findProducts
()
{
// 获取参数
const
{
goods_spu_id
,
life_account_id
}
=
this
.
ruleIdForm
;
let
[
start_time
,
end_time
]
=
this
.
timeSelect
;
let
[
start_time
,
end_time
]
=
this
.
timeSelect
||
[]
;
if
(
start_time
&&
end_time
)
{
start_time
=
this
.
formatTime
(
start_time
);
end_time
=
this
.
formatTime
(
end_time
);
...
...
@@ -581,7 +581,7 @@ export default {
}
},
selectGoodsChange
(
e
)
{
this
.
ruleForm
.
goods_s
k
u_id
=
e
.
map
((
item
)
=>
item
.
goods_sku_id
);
this
.
ruleForm
.
goods_s
p
u_id
=
e
.
map
((
item
)
=>
item
.
goods_sku_id
);
},
async
getAllList
()
{
let
all
=
await
getMarketingList
({
...
...
@@ -594,14 +594,14 @@ export default {
async
addList
()
{
this
.
$refs
.
ruleForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
this
.
ruleForm
.
goods_s
k
u_id
);
if
(
this
.
ruleForm
.
goods_s
k
u_id
.
length
<=
0
)
{
console
.
log
(
this
.
ruleForm
.
goods_s
p
u_id
);
if
(
this
.
ruleForm
.
goods_s
p
u_id
.
length
<=
0
)
{
ElMessage
(
"请选择商品"
);
return
;
}
else
{
var
goods_sku_id
=
this
.
ruleForm
.
goods_s
k
u_id
&&
this
.
ruleForm
.
goods_s
k
u_id
.
join
(
","
);
this
.
ruleForm
.
goods_s
p
u_id
&&
this
.
ruleForm
.
goods_s
p
u_id
.
join
(
","
);
}
// console.log(goods_sku_id);
let
{
...
...
@@ -609,10 +609,10 @@ export default {
first_commission_value
,
second_commission_value
,
}
=
this
.
ruleForm
;
let
[
start_time
,
end_time
]
=
this
.
timeSelect
;
let
[
start_time
,
end_time
]
=
this
.
timeSelect
||
[]
;
if
(
!
marketing_name
||
!
first
_commission_value
||
!
second
_commission_value
||
!
start_time
||
!
end_time
)
{
...
...
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