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
3b46e88a
Commit
3b46e88a
authored
Aug 04, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 禁用
parent
a52e1ee2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
39 deletions
+49
-39
editIntegralSytem.vue
src/view/companyGroup/membershipSystem/editIntegralSytem.vue
+22
-5
editPointSystem.vue
src/view/companyGroup/membershipSystem/editPointSystem.vue
+27
-34
No files found.
src/view/companyGroup/membershipSystem/editIntegralSytem.vue
View file @
3b46e88a
...
...
@@ -23,7 +23,7 @@
</el-form-item>
<el-form-item
label=
"适用对象"
prop
class=
"margin-20"
>
<el-select
@
change=
"changePeople"
v-model=
"ruleForm.useCrowd"
placeholder=
"请选择"
>
<el-select
:disabled=
"true"
@
change=
"changePeople"
v-model=
"ruleForm.useCrowd"
placeholder=
"请选择"
>
<el-option
v-for=
"item in applyObjOption"
:key=
"item.value"
...
...
@@ -33,7 +33,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"人群定向"
v-if=
"ruleForm.useCrowd == 2"
prop
class=
"padding-0"
>
<el-button
@
click=
"showPeople"
>
已设置
{{
selectCount
}}
项筛选
</el-button>
<el-button
:disabled=
"true"
@
click=
"showPeople"
>
已设置
{{
selectCount
}}
项筛选
</el-button>
</el-form-item>
<el-form-item
label=
"适用条件"
class=
"padding-0"
>
...
...
@@ -49,6 +49,7 @@
<div
class=
"form-child margin-20"
v-if=
"item.openStatus == 1"
:key=
"index"
>
<el-form-item
label=
"选择商户"
>
<el-select
:disabled=
"opendisabled1"
v-model=
"item.enterpriseRelationIdArr"
placeholder=
"请选择"
multiple
...
...
@@ -66,6 +67,7 @@
<el-form-item
label=
"适用商品"
class=
"margin-20"
>
<el-select
:disabled=
"opendisabled1"
class=
"fl w240"
style=
"margin-right: 10px;"
v-model=
"item.channelRelationProType"
...
...
@@ -82,6 +84,7 @@
<!-- 商品品牌 -->
<el-select
:disabled=
"opendisabled1"
size=
"small"
class=
"fl w240"
@
change=
"selectGoodsStoreWx"
...
...
@@ -101,6 +104,7 @@
<!-- 商品品类 -->
<div
v-if=
"item.channelRelationProType == 3"
class=
"fl goods-cate"
>
<goodsCate
:disabled=
"opendisabled1"
ref=
"selectGoodsCate"
:selectCateType=
"selectCateTypeWx"
:selectCateData=
"selectCateDataWx"
...
...
@@ -109,6 +113,7 @@
</div>
<el-button
:disabled=
"opendisabled1"
style=
"width:202px"
class=
"fl"
v-if=
"item.channelRelationProType == 4"
...
...
@@ -161,13 +166,13 @@
</el-select>
</el-form-item>
<el-form-item
label=
"选择店铺"
class=
"margin-20"
>
<el-select
v-model=
"storeValue"
v-if=
"!isJinHua"
class=
"w240"
>
<el-select
:disabled=
"opendisabled9"
v-model=
"storeValue"
v-if=
"!isJinHua"
class=
"w240"
>
<el-option
label=
"所有门店"
value=
""
></el-option>
</el-select>
<vue-gic-store-new
v-else
:scenesVal=
"scencs"
:options=
"options"
:isAdd=
"isAdd"
:uuid
.
sync=
"wmuuid"
ref=
"wmstoreGroup"
></vue-gic-store-new>
<vue-gic-store-new
:disabled=
"opendisabled9"
v-else
:scenesVal=
"scencs"
:options=
"options"
:isAdd=
"isAdd"
:uuid
.
sync=
"wmuuid"
ref=
"wmstoreGroup"
></vue-gic-store-new>
</el-form-item>
<el-form-item
label=
"微盟商品"
class=
"margin-20"
>
<el-select
v-model=
"item.channelRelationProType"
placeholder=
"请选择"
class=
"w240"
>
<el-select
:disabled=
"opendisabled9"
v-model=
"item.channelRelationProType"
placeholder=
"请选择"
class=
"w240"
>
<el-option
v-for=
"item in wMGoodOption"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -284,6 +289,9 @@ export default {
mixins
:
[
wmMixins
],
data
()
{
return
{
opendisabled3
:
false
,
opendisabled1
:
false
,
opendisabled9
:
false
,
repProjectName
:
'gic-clique'
,
navpath
:
[
{
...
...
@@ -805,6 +813,15 @@ export default {
if
(
item
.
channelList
)
{
item
.
channelList
.
forEach
(
item
=>
{
if
(
item
.
openStatus
==
true
)
{
if
(
item
.
channelType
==
3
)
{
this
.
opendisabled3
=
true
;
}
else
if
(
item
.
channelType
==
1
)
{
this
.
opendisabled1
=
true
;
}
else
if
(
item
.
channelType
==
9
)
{
this
.
opendisabled9
=
true
;
}
}
if
(
item
.
openStatus
==
false
)
{
item
.
integralUseDiscountControl
==
1
}
...
...
src/view/companyGroup/membershipSystem/editPointSystem.vue
View file @
3b46e88a
...
...
@@ -34,10 +34,12 @@
:uuid
.
sync=
"uuid"
:isClique=
"true"
ref=
"storeGroup"
:disabled=
"opendisabled3"
></dm-store-selector>
</el-form-item>
<el-form-item
label=
"适用商品:"
prop=
"name"
class=
"margin-20"
>
<el-select
:disabled=
"opendisabled3"
class=
" w215"
v-model=
"item.channelRelationProType"
placeholder=
"请选择"
...
...
@@ -52,6 +54,7 @@
</el-select>
<!-- 二级 -->
<span
:disabled=
"opendisabled3"
class=
"span-txt"
ref=
"treeinput"
v-if=
"item.channelRelationProType == 2"
...
...
@@ -64,6 +67,7 @@
@
click=
"toggle('brand')"
>
已选择
{{
item
.
strategyGoodsRelationIdArr
?
item
.
strategyGoodsRelationIdArr
.
length
:
0
}}
个品类
</span>
<treeselect
:disabled=
"opendisabled3"
v-if=
"item.channelRelationProType == 2 || item.channelRelationProType == 3"
placeholder
noOptionsText=
"暂无数据"
...
...
@@ -80,6 +84,7 @@
/>
<!--:default-expand-level="1":load-options="loadOptions" :normalizer="normalizer" :always-open="goodsOpen" -->
<el-button
:disabled=
"opendisabled3"
v-if=
"item.channelRelationProType == 4"
@
click=
"showGoodsDialog"
>
已选0件商品
</el-button>
...
...
@@ -144,6 +149,7 @@
<el-form-item
label=
"适用商品:"
class=
"margin-20"
>
<el-select
:disabled=
"opendisabled1"
class=
"w215"
v-model=
"item.channelRelationProType"
placeholder=
"请选择"
...
...
@@ -158,18 +164,21 @@
</el-select>
<!-- 二级 -->
<span
:disabled=
"opendisabled1"
class=
"span-txt"
ref=
"treeinput"
v-if=
"item.channelRelationProType == 2"
@
click=
"toggle('wx')"
>
已选择
{{
item
.
goodsRelationIds
?
item
.
goodsRelationIds
.
length
:
0
}}
个品牌
</span>
<span
:disabled=
"opendisabled1"
class=
"span-txt"
ref=
"treeinput"
v-if=
"item.channelRelationProType == 3"
@
click=
"toggle('wx')"
>
已选择
{{
item
.
goodsRelationIds
?
item
.
goodsRelationIds
.
length
:
0
}}
个品类
</span>
<treeselect
:disabled=
"opendisabled1"
v-if=
"item.channelRelationProType == 2 || item.channelRelationProType == 3"
placeholder
noOptionsText=
"暂无数据"
...
...
@@ -185,6 +194,7 @@
/>
<!--model=item.strategyGoodsRelationIds和上一个相同会有问题 -->
<el-button
:disabled=
"opendisabled1"
v-if=
"item.channelRelationProType == 4"
@
click=
"showGoodsDialog"
>
已选0件商品
</el-button>
...
...
@@ -285,7 +295,7 @@
<el-select
v-model=
"storeValue"
v-if=
"!isJinHua"
class=
"w215"
>
<el-option
label=
"所有门店:"
value=
""
></el-option>
</el-select>
<vue-gic-store-new
v-else
:scenesVal=
"scencs"
:options=
"options"
:isAdd=
"isAdd"
:uuid
.
sync=
"wmuuid"
ref=
"wmstoreGroup"
></vue-gic-store-new>
<vue-gic-store-new
:disabled=
"opendisabled9"
v-else
:scenesVal=
"scencs"
:options=
"options"
:isAdd=
"isAdd"
:uuid
.
sync=
"wmuuid"
ref=
"wmstoreGroup"
></vue-gic-store-new>
</el-form-item>
<el-form-item
label=
"微盟商品:"
class=
"margin-20"
>
<el-select
v-model=
"item.channelRelationProType"
placeholder=
"请选择"
class=
"w215"
>
...
...
@@ -393,11 +403,11 @@
<dm-sub-title
text=
"规则配置"
type=
"fill"
style=
"margin: 40px 0 20px"
></dm-sub-title>
<el-form-item
label=
"适用对象:"
prop=
"useCrowd"
class=
"margin-20"
>
<el-radio-group
v-model=
"ruleForm.useCrowd"
>
<el-radio
v-for=
"item in applyObjOption"
:key=
"item.value"
:label=
"item.value"
>
{{ item.label }}
</el-radio>
<el-radio
:disabled=
"true"
v-for=
"item in applyObjOption"
:key=
"item.value"
:label=
"item.value"
>
{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"人群定向"
v-if=
"ruleForm.useCrowd == 2"
prop=
""
class=
"padding-0"
>
<el-button
style=
"width: 214px;"
@
click=
"showPeople"
>
已设置{{ selectCount }}项筛选
</el-button>
<el-button
:disabled=
"true"
style=
"width: 214px;"
@
click=
"showPeople"
>
已设置{{ selectCount }}项筛选
</el-button>
</el-form-item>
<el-form-item
label=
"获取规则:"
prop=
"integralGetStatus"
>
<div>
...
...
@@ -581,8 +591,8 @@
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-row>
<el-button
@
click=
"dialogVisiblePeople = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"getPeopleData"
>
确 定
</el-button>
<el-button
:disabled=
"true"
@
click=
"dialogVisiblePeople = false"
>
取 消
</el-button>
<el-button
:disabled=
"true"
type=
"primary"
@
click=
"getPeopleData"
>
确 定
</el-button>
</el-row>
</span>
</el-dialog>
...
...
@@ -638,6 +648,9 @@ export default {
return
arr
;
}
return
{
opendisabled3
:
false
,
opendisabled1
:
false
,
opendisabled9
:
false
,
yearYT
:
''
,
//按年失效 年
yearMT
:
''
,
//按年失效 月
yearDT
:
''
,
//按年失效 日
...
...
@@ -1409,35 +1422,6 @@ export default {
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
0
)
{
let
item
=
res
.
data
.
result
.
strategy
;
// 积分有效期
// if(item.userGeneralIntegralExpireRule==0){
// this.ruleForm.userGeneralIntegralExpireRule = 0;
// this.ruleForm.integralExpireType = item.integralExpireType;
// item.integralExpireRule = item.integralExpireRule.split(',');
// if(item.integralExpireType==2){
// this.yearY = item.integralExpireRule[0];
// this.yearM = item.integralExpireRule[1];
// this.yearD = item.integralExpireRule[2];
// this.ruleForm.integralGetEffectiveDays = '';
// }else if(item.integralExpireType==3){
// this.mouthM = Number(item.integralExpireRule[0]);
// this.mouthD = Number(item.integralExpireRule[1]);
// this.ruleForm.integralGetEffectiveDays = '';
// }else if(item.integralExpireType==0){
// this.ruleForm.integralGetEffectiveDays = item.integralGetEffectiveDays;
// } else if(item.integralExpireType == null) {
// if(item.integralGetEffectiveDays!=null){
// this.ruleForm.integralExpireType = 0;
// this.ruleForm.integralGetEffectiveDays = item.integralGetEffectiveDays;
// }else {
// this.ruleForm.integralExpireType = -1;
// this.ruleForm.integralGetEffectiveDays = '';
// }
// }
// }else if(item.userGeneralIntegralExpireRule==1){
// this.ruleForm.userGeneralIntegralExpireRule = 1;
// this.getPointInfo();
// }
// 商户列表
let
prise
=
res
.
data
.
result
.
enterpriseList
;
prise
.
forEach
(
function
(
ele
,
index
)
{
...
...
@@ -1515,6 +1499,15 @@ export default {
channelList
=
channelList
.
concat
(
item
.
channelList
.
filter
(
el
=>
!
channelListSort
.
some
(
item
=>
el
.
channelType
==
item
)));
item
.
channelList
=
channelList
;
item
.
channelList
.
forEach
(
item
=>
{
if
(
item
.
openStatus
==
true
)
{
if
(
item
.
channelType
==
3
)
{
this
.
opendisabled3
=
true
;
}
else
if
(
item
.
channelType
==
1
)
{
this
.
opendisabled1
=
true
;
}
else
if
(
item
.
channelType
==
9
)
{
this
.
opendisabled9
=
true
;
}
}
if
(
item
.
openStatus
==
false
)
{
item
.
integralUseDiscountControl
==
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