Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
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
member
member
Commits
b232a2b2
Commit
b232a2b2
authored
Jul 25, 2019
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量积分导入增加入口
parent
948b30fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
40 deletions
+111
-40
posmembers.js
src/components/posmembers/posmembers.js
+52
-19
posmembers.vue
src/components/posmembers/posmembers.vue
+5
-0
bulkIntegral.vue
src/components/wechatmembers/bulkIntegral.vue
+3
-8
wechatmembers.js
src/components/wechatmembers/wechatmembers.js
+46
-13
wechatmembers.vue
src/components/wechatmembers/wechatmembers.vue
+5
-0
No files found.
src/components/posmembers/posmembers.js
View file @
b232a2b2
...
...
@@ -771,36 +771,76 @@ export default {
checkStatus
(
err
);
});
},
handleVisibleBatch
(
val
)
{
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
''
;
checkFalse
(
'请勾选会员'
);
return
false
;
}
// handleVisibleBatch(val) {
// if(this.multipleList.length < 1) {
// this.batchValue = '';
// checkFalse('请勾选会员');
// return false;
// }
// if (!val) {
// if (this.batchValue == "integral") {
// this.dialogIntegralVisible = true;
// this.getEnterpriseInfo();
// if (this.$refs.IntegralForm) {
// this.$refs.IntegralForm.resetFields();
// }
// }
// if (this.batchValue == "grade") {
// this.dialogGradeVisible = true;
// this.getGradeList();
// if (this.$refs.gradeForm) {
// this.$refs.gradeForm.resetFields();
// }
// }
// if (this.batchValue == "mainstore") {
// this.dialogMainstoreVisible = true;
// if (this.$refs.mainstoreForm) {
// this.$refs.mainstoreForm.resetFields();
// }
// this.storeName = "";
// }
// if (this.batchValue == "store") {
// this.dialogSubStoreVisible = true;
// if (this.$refs.storeForm) {
// this.$refs.storeForm.resetFields();
// }
// this.getSubStoreList();
// }
// }
// },
handleFocusBatch
()
{
if
(
this
.
batchValue
==
"bulkIntegral"
)
{
this
.
batchValue
=
''
;
this
.
$router
.
push
({
path
:
'/bulkIntegral'
});
}
else
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
''
;
checkFalse
(
'请勾选会员'
);
return
false
;
}
if
(
!
val
)
{
if
(
this
.
batchValue
==
"integral"
)
{
this
.
di
a
logIntegralVisible
=
true
;
this
.
dilogIntegralVisible
=
true
;
this
.
getEnterpriseInfo
();
if
(
this
.
$refs
.
IntegralForm
)
{
this
.
$refs
.
IntegralForm
.
resetFields
();
}
}
if
(
this
.
batchValue
==
"grade"
)
{
this
.
dialogGradeVisible
=
true
;
this
.
getGradeList
();
this
.
dilogGradeVisible
=
true
;
if
(
this
.
$refs
.
gradeForm
)
{
this
.
$refs
.
gradeForm
.
resetFields
();
}
}
if
(
this
.
batchValue
==
"mainstore"
)
{
this
.
dialogMainstoreVisible
=
true
;
this
.
dilogMainstoreVisible
=
true
;
this
.
selectStore
(
val
);
if
(
this
.
$refs
.
mainstoreForm
)
{
this
.
$refs
.
mainstoreForm
.
resetFields
();
}
this
.
storeName
=
""
;
this
.
storeName
=
''
;
}
if
(
this
.
batchValue
==
"store"
)
{
this
.
di
a
logSubStoreVisible
=
true
;
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
...
...
@@ -808,13 +848,6 @@ export default {
}
}
},
handleFocusBatch
()
{
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
""
;
checkFalse
(
"请勾选会员"
);
return
false
;
}
},
selectAllmultipleList
()
{
this
.
selectAll
=
!
this
.
selectAll
;
if
(
this
.
selectAll
)
{
...
...
src/components/posmembers/posmembers.vue
View file @
b232a2b2
...
...
@@ -85,6 +85,11 @@
value=
"integral"
></el-option>
<el-option
key=
"bulkIntegral"
label=
"批量调整积分"
value=
"bulkIntegral"
></el-option>
<el-option
key=
"grade"
label=
"调整会员等级"
value=
"grade"
...
...
src/components/wechatmembers/bulkIntegral.vue
View file @
b232a2b2
...
...
@@ -16,11 +16,6 @@
@
change=
"onDateChange"
>
</el-date-picker>
<el-select
v-model=
"importType"
placeholder=
"所有导入类型"
style=
"width: 130px;margin-left: 8px;"
@
change=
"onImportTypeChange"
>
<!--
<el-option
label=
"基础信息"
value=
"1"
></el-option>
<el-option
label=
"资产信息"
value=
"2"
></el-option>
<el-option
label=
"家庭信息"
value=
"3"
></el-option>
<el-option
label=
"购物偏好"
value=
"4"
></el-option>
<el-option
label=
"其他"
value=
"5"
></el-option>
-->
<el-option
label=
"积分增加"
value=
"11"
></el-option>
<el-option
label=
"积分扣除"
value=
"12"
></el-option>
</el-select>
...
...
@@ -39,7 +34,7 @@
</el-table-column>
<el-table-column
prop=
"total"
label=
"
层
预计导入数量"
>
label=
"预计导入数量"
>
<
template
slot-scope=
"{ row }"
>
{{
row
.
total
||
'0'
}}
</
template
>
...
...
@@ -337,7 +332,7 @@ export default {
// 上传验证
beforeUpload
(
file
)
{
// let _this = this;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
10
;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
3
;
const
types
=
file
.
name
.
split
(
"."
)[
1
];
const
fileType
=
[
"xlsx"
,
"xlc"
,
"xlm"
,
"xls"
,
"xlt"
,
"xlw"
,
"csv"
].
some
(
item
=>
item
===
types
...
...
@@ -347,7 +342,7 @@ export default {
return
false
;
}
if
(
!
isLt2M
){
this
.
$message
.
error
(
'上传模板大小不能超过
10
MB'
)
this
.
$message
.
error
(
'上传模板大小不能超过
3
MB'
)
return
false
;
}
// console.log(file)
...
...
src/components/wechatmembers/wechatmembers.js
View file @
b232a2b2
...
...
@@ -699,12 +699,52 @@ export default {
checkStatus
(
err
);
});
},
handleVisibleBatch
(
val
)
{
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
''
;
checkFalse
(
'请勾选会员'
);
return
false
;
}
// handleVisibleBatch(val) {
// if(this.multipleList.length < 1) {
// this.batchValue = '';
// checkFalse('请勾选会员');
// return false;
// }
// if (!val) {
// if (this.batchValue == "integral") {
// this.dilogIntegralVisible = true;
// this.getEnterpriseInfo();
// if (this.$refs.IntegralForm) {
// this.$refs.IntegralForm.resetFields();
// }
// }
// if (this.batchValue == "grade") {
// this.dilogGradeVisible = true;
// if (this.$refs.gradeForm) {
// this.$refs.gradeForm.resetFields();
// }
// }
// if (this.batchValue == "mainstore") {
// this.dilogMainstoreVisible = true;
// this.selectStore(val);
// if (this.$refs.mainstoreForm) {
// this.$refs.mainstoreForm.resetFields();
// }
// this.storeName = '';
// }
// if (this.batchValue == "store") {
// this.dilogSubStoreVisible = true;
// if (this.$refs.storeForm) {
// this.$refs.storeForm.resetFields();
// }
// this.getSubStoreList();
// }
// }
// },
handleFocusBatch
()
{
if
(
this
.
batchValue
==
"bulkIntegral"
)
{
this
.
batchValue
=
''
;
this
.
$router
.
push
({
path
:
'/bulkIntegral'
});
}
else
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
''
;
checkFalse
(
'请勾选会员'
);
return
false
;
}
if
(
!
val
)
{
if
(
this
.
batchValue
==
"integral"
)
{
this
.
dilogIntegralVisible
=
true
;
...
...
@@ -736,13 +776,6 @@ export default {
}
}
},
handleFocusBatch
()
{
if
(
this
.
multipleList
.
length
<
1
)
{
this
.
batchValue
=
""
;
checkFalse
(
"请勾选会员"
);
return
false
;
}
},
selectAllmultipleList
()
{
this
.
selectAll
=
!
this
.
selectAll
;
if
(
this
.
selectAll
)
{
...
...
src/components/wechatmembers/wechatmembers.vue
View file @
b232a2b2
...
...
@@ -84,6 +84,11 @@
value=
"integral"
></el-option>
<el-option
key=
"bulkIntegral"
label=
"批量调整积分"
value=
"bulkIntegral"
></el-option>
<el-option
key=
"grade"
label=
"调整会员等级"
value=
"grade"
...
...
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