Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
clique-web
Overview
Overview
Details
Activity
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
clique
clique-web
Commits
214184bb
Commit
214184bb
authored
Aug 12, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 积分有效期校验
parent
3881a267
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
18 deletions
+20
-18
point-form.vue
src/components/memberShip/point-form.vue
+5
-5
addPointSystem.vue
src/view/companyGroup/membershipSystem/addPointSystem.vue
+5
-5
companyGroupInfo.vue
src/view/companyGroup/membershipSystem/companyGroupInfo.vue
+3
-1
editPointSystem.vue
src/view/companyGroup/membershipSystem/editPointSystem.vue
+7
-7
No files found.
src/components/memberShip/point-form.vue
View file @
214184bb
...
...
@@ -193,7 +193,7 @@ export default {
for
(
let
i
=
1
;
i
<
28
;
i
++
){
arr
.
push
({
key
:
i
,
value
:
i
})
}
arr
.
push
({
key
:
0
,
value
:
'月末'
})
arr
.
push
({
key
:
'0'
,
value
:
'月末'
})
return
arr
;
}
// 月数
...
...
@@ -405,14 +405,14 @@ export default {
return
;
}
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
-
1
))
{
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
''
))
{
this
.
scrollToError
(
this
,
'yearY'
);
that
.
$message
.
error
({
duration
:
1000
,
message
:
"请完善积分有效期信息"
})
return
;
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
-
1
))
{
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
''
))
{
this
.
scrollToError
(
this
,
'yearY'
);
that
.
$message
.
error
({
duration
:
1000
,
...
...
@@ -654,12 +654,12 @@ export default {
}
else
if
(
that
.
ruleForm
.
integralExpireType
==
2
)
{
this
.
yearY
=
Number
(
this
.
ruleForm
.
integralExpireRule
[
0
]);
this
.
yearM
=
Number
(
this
.
ruleForm
.
integralExpireRule
[
1
]);
this
.
yearD
=
Number
(
this
.
ruleForm
.
integralExpireRule
[
2
])
;
this
.
yearD
=
this
.
ruleForm
.
integralExpireRule
[
2
]
;
this
.
ruleForm
.
effectiveTime
=
''
console
.
log
(
that
.
yearY
,
that
.
yearM
,
that
.
yearD
);
}
else
if
(
this
.
ruleForm
.
integralExpireType
==
3
)
{
this
.
mouthM
=
Number
(
this
.
ruleForm
.
integralExpireRule
[
0
]);
this
.
mouthD
=
Number
(
this
.
ruleForm
.
integralExpireRule
[
1
])
;
this
.
mouthD
=
this
.
ruleForm
.
integralExpireRule
[
1
]
;
this
.
ruleForm
.
effectiveTime
=
''
}
else
if
(
that
.
ruleForm
.
integralExpireType
==
1
)
{
that
.
ruleForm
.
effectiveTime
=
''
...
...
src/view/companyGroup/membershipSystem/addPointSystem.vue
View file @
214184bb
...
...
@@ -431,7 +431,7 @@ export default {
for
(
let
i
=
1
;
i
<
28
;
i
++
){
arr
.
push
({
key
:
i
,
value
:
i
})
}
arr
.
push
({
key
:
0
,
value
:
'月末'
})
arr
.
push
({
key
:
'0'
,
value
:
'月末'
})
return
arr
;
}
// 月数
...
...
@@ -806,10 +806,10 @@ export default {
if
(
this
.
timeType
==
2
)
{
this
.
yearYT
=
Number
(
this
.
timeRuleType
[
0
])
this
.
yearMT
=
Number
(
this
.
timeRuleType
[
1
])
this
.
yearDT
=
Number
(
this
.
timeRuleType
[
2
])
this
.
yearDT
=
this
.
timeRuleType
[
2
]
}
else
if
(
this
.
timeType
==
3
)
{
this
.
mouthMT
=
Number
(
this
.
timeRuleType
[
0
])
this
.
mouthDT
=
Number
(
this
.
timeRuleType
[
1
])
this
.
mouthDT
=
this
.
timeRuleType
[
1
]
}
else
if
(
this
.
timeType
==
0
||
this
.
timeType
==
null
)
{
this
.
effectiveDays
=
resData
.
result
.
memberIntegral
.
integralGetEffectiveDays
;
}
...
...
@@ -997,11 +997,11 @@ export default {
showMsg
.
showmsg
(
'请设置积分有效期'
,
'error'
)
return
;
}
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
-
1
))
{
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
''
))
{
this
.
scrollToError
(
this
,
'mouthM'
);
showMsg
.
showmsg
(
'请完善积分有效期信息'
,
'error'
)
return
;
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
-
1
))
{
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
''
))
{
this
.
scrollToError
(
this
,
'yearY'
);
showMsg
.
showmsg
(
'请完善积分有效期信息'
,
'error'
)
return
;
...
...
src/view/companyGroup/membershipSystem/companyGroupInfo.vue
View file @
214184bb
...
...
@@ -428,8 +428,10 @@ export default {
that
.
areaOptions
=
JSON
.
parse
(
obj
);
// that.areaOptions = JSON.parse(JSON.stringify(newEnterprise.region))
// 时间
if
(
!!
newEnterprise
.
storeBusinessTime
)
{
if
(
typeof
newEnterprise
.
storeBusinessTime
==
'string'
&&
newEnterprise
.
storeBusinessTime
.
indexOf
(
':'
)
>
0
)
{
newEnterprise
.
storeBusinessTime
=
newTime
.
timeToDate
(
newEnterprise
.
storeBusinessTime
);
}
else
{
newEnterprise
.
storeBusinessTime
=
[]
}
// 长度
...
...
src/view/companyGroup/membershipSystem/editPointSystem.vue
View file @
214184bb
...
...
@@ -629,7 +629,7 @@ export default {
for
(
let
i
=
1
;
i
<
28
;
i
++
){
arr
.
push
({
key
:
i
,
value
:
i
})
}
arr
.
push
({
key
:
0
,
value
:
'月末'
})
arr
.
push
({
key
:
'0'
,
value
:
'月末'
})
return
arr
;
}
// 月数
...
...
@@ -899,10 +899,10 @@ export default {
if
(
this
.
timeType
==
2
)
{
this
.
yearYT
=
Number
(
this
.
timeRuleType
[
0
])
this
.
yearMT
=
Number
(
this
.
timeRuleType
[
1
])
this
.
yearDT
=
Number
(
this
.
timeRuleType
[
2
])
this
.
yearDT
=
this
.
timeRuleType
[
2
]
}
else
if
(
this
.
timeType
==
3
)
{
this
.
mouthMT
=
Number
(
this
.
timeRuleType
[
0
])
this
.
mouthDT
=
Number
(
this
.
timeRuleType
[
1
])
this
.
mouthDT
=
this
.
timeRuleType
[
1
]
}
else
if
(
this
.
timeType
==
0
||
this
.
timeType
==
null
)
{
this
.
effectiveDays
=
resData
.
result
.
memberIntegral
.
integralGetEffectiveDays
;
}
...
...
@@ -1074,11 +1074,11 @@ export default {
return
;
}
if
(
data
.
userGeneralIntegralExpireRule
==
0
)
{
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
-
1
))
{
if
(
data
.
integralExpireType
==
3
&&
(
this
.
mouthM
==
''
||
this
.
mouthD
==
''
))
{
this
.
scrollToError
(
this
,
'mouthM'
);
showMsg
.
showmsg
(
'请完善积分有效期信息'
,
'error'
)
return
;
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
-
1
))
{
}
else
if
(
data
.
integralExpireType
==
2
&&
(
this
.
yearY
==
''
||
this
.
yearM
==
''
||
this
.
yearD
==
''
))
{
this
.
scrollToError
(
this
,
'yearY'
);
showMsg
.
showmsg
(
'请完善积分有效期信息'
,
'error'
)
return
;
...
...
@@ -1543,11 +1543,11 @@ export default {
}
else
if
(
that
.
ruleForm
.
integralExpireType
==
2
){
this
.
yearY
=
Number
(
that
.
ruleForm
.
integralExpireRule
[
0
]);
this
.
yearM
=
Number
(
that
.
ruleForm
.
integralExpireRule
[
1
]);
this
.
yearD
=
Number
(
that
.
ruleForm
.
integralExpireRule
[
2
])
;
this
.
yearD
=
that
.
ruleForm
.
integralExpireRule
[
2
]
;
that
.
ruleForm
.
integralGetEffectiveDays
=
''
;
}
else
if
(
that
.
ruleForm
.
integralExpireType
==
3
){
this
.
mouthM
=
Number
(
that
.
ruleForm
.
integralExpireRule
[
0
]);
this
.
mouthD
=
Number
(
that
.
ruleForm
.
integralExpireRule
[
1
])
;
this
.
mouthD
=
that
.
ruleForm
.
integralExpireRule
[
1
]
;
that
.
ruleForm
.
integralGetEffectiveDays
=
''
;
}
}
else
if
(
that
.
ruleForm
.
userGeneralIntegralExpireRule
==
1
){
...
...
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