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
2fbcb645
Commit
2fbcb645
authored
Jul 25, 2019
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量积分导入新增入口
parent
b232a2b2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
86 deletions
+81
-86
posmembers.js
src/components/posmembers/posmembers.js
+22
-26
bulkIntegral.vue
src/components/wechatmembers/bulkIntegral.vue
+15
-8
total.js
src/components/wechatmembers/total.js
+22
-26
wechatmembers.js
src/components/wechatmembers/wechatmembers.js
+22
-26
No files found.
src/components/posmembers/posmembers.js
View file @
2fbcb645
...
...
@@ -808,7 +808,7 @@ export default {
// }
// }
// },
handleFocusBatch
()
{
handleFocusBatch
(
val
)
{
if
(
this
.
batchValue
==
"bulkIntegral"
)
{
this
.
batchValue
=
''
;
this
.
$router
.
push
({
path
:
'/bulkIntegral'
});
...
...
@@ -817,36 +817,32 @@ export default {
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
==
"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
();
}
}
else
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
=
''
;
}
else
if
(
this
.
batchValue
==
"mainstore"
)
{
this
.
dilogMainstoreVisible
=
true
;
this
.
selectStore
(
val
);
if
(
this
.
$refs
.
mainstoreForm
)
{
this
.
$refs
.
mainstoreForm
.
resetFields
();
}
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
this
.
storeName
=
''
;
}
else
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
}
this
.
batchValue
=
''
;
},
selectAllmultipleList
()
{
this
.
selectAll
=
!
this
.
selectAll
;
...
...
src/components/wechatmembers/bulkIntegral.vue
View file @
2fbcb645
...
...
@@ -411,19 +411,26 @@ export default {
this
.
$message
.
warning
(
'超出最大上传数'
);
},
handleError
()
{
checkFalse
(
'上传失败'
);
this
.
load
=
false
;
},
onDialogSuccessClosed
()
{
// 更新表单
this
.
getIntegral
();
},
handleSuccess
()
{
checkSuccess
(
'上传成功'
);
this
.
dialogImport
=
false
;
this
.
load
=
false
;
this
.
dialogSuccess
=
true
;
this
.
$refs
.
memberUpload
.
clearFiles
();
this
.
getIntegral
();
handleSuccess
(
response
,
file
,
fileList
)
{
// console.log(response)
if
(
response
.
errorCode
==
0
)
{
checkSuccess
(
'上传成功'
);
this
.
dialogImport
=
false
;
this
.
load
=
false
;
this
.
dialogSuccess
=
true
;
this
.
$refs
.
memberUpload
.
clearFiles
();
this
.
getIntegral
();
}
else
{
this
.
load
=
false
;
checkFalse
(
response
.
message
)
}
}
},
created
()
{
...
...
@@ -455,7 +462,7 @@ export default {
#bulkIntegral
{
height
:
100%
;
.el-table{
width
:
99.9%
;
width
:
99.9%
;
}
.contentBulkIntegral
{
padding
:
22px
24px
;
...
...
src/components/wechatmembers/total.js
View file @
2fbcb645
...
...
@@ -828,7 +828,7 @@ export default {
// }
// }
// },
handleFocusBatch
()
{
handleFocusBatch
(
val
)
{
if
(
this
.
batchValue
==
"bulkIntegral"
)
{
this
.
batchValue
=
''
;
this
.
$router
.
push
({
path
:
'/bulkIntegral'
});
...
...
@@ -837,36 +837,32 @@ export default {
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
==
"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
();
}
}
else
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
=
''
;
}
else
if
(
this
.
batchValue
==
"mainstore"
)
{
this
.
dilogMainstoreVisible
=
true
;
this
.
selectStore
(
val
);
if
(
this
.
$refs
.
mainstoreForm
)
{
this
.
$refs
.
mainstoreForm
.
resetFields
();
}
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
this
.
storeName
=
''
;
}
else
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
}
this
.
batchValue
=
''
;
},
selectAllmultipleList
()
{
this
.
selectAll
=
!
this
.
selectAll
;
...
...
src/components/wechatmembers/wechatmembers.js
View file @
2fbcb645
...
...
@@ -736,7 +736,7 @@ export default {
// }
// }
// },
handleFocusBatch
()
{
handleFocusBatch
(
val
)
{
if
(
this
.
batchValue
==
"bulkIntegral"
)
{
this
.
batchValue
=
''
;
this
.
$router
.
push
({
path
:
'/bulkIntegral'
});
...
...
@@ -745,36 +745,32 @@ export default {
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
==
"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
();
}
}
else
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
=
''
;
}
else
if
(
this
.
batchValue
==
"mainstore"
)
{
this
.
dilogMainstoreVisible
=
true
;
this
.
selectStore
(
val
);
if
(
this
.
$refs
.
mainstoreForm
)
{
this
.
$refs
.
mainstoreForm
.
resetFields
();
}
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
this
.
storeName
=
''
;
}
else
if
(
this
.
batchValue
==
"store"
)
{
this
.
dilogSubStoreVisible
=
true
;
if
(
this
.
$refs
.
storeForm
)
{
this
.
$refs
.
storeForm
.
resetFields
();
}
this
.
getSubStoreList
();
}
this
.
batchValue
=
''
;
},
selectAllmultipleList
()
{
this
.
selectAll
=
!
this
.
selectAll
;
...
...
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