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
92c09049
Commit
92c09049
authored
Aug 04, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: pos会员批量修改门店
parent
d88c78b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
25 deletions
+53
-25
posmembers.js
src/components/posmembers/posmembers.js
+14
-7
posmembers.vue
src/components/posmembers/posmembers.vue
+39
-18
No files found.
src/components/posmembers/posmembers.js
View file @
92c09049
...
...
@@ -96,6 +96,7 @@ export default {
mainStoreId
:
""
},
storeName
:
""
,
selectId
:
''
,
dialogProcessVisible
:
false
,
processList
:
[],
timer
:
null
,
...
...
@@ -451,7 +452,8 @@ export default {
fromSubStoreId
:
this
.
storeForm
.
fromSubStoreId
,
toSubStoreId
:
this
.
storeForm
.
subOptType
==
2
?
this
.
storeForm
.
toSubStoreId
:
""
,
memberSearchParamStr
:
this
.
selectAll
==
true
?
this
.
memberSearchStr
?
this
.
memberSearchStr
:
"-1"
:
""
,
phoneNameCard
:
this
.
phoneNameCard
phoneNameCard
:
this
.
phoneNameCard
,
pageName
:
this
.
pageName
})
.
then
(
res
=>
{
this
.
$refs
[
formName
].
resetFields
();
...
...
@@ -493,7 +495,8 @@ export default {
memberIds
:
memberIdsArr
.
join
(
","
),
isCurrent
:
this
.
selectAll
==
true
?
2
:
this
.
multipleList
.
length
==
this
.
page
.
pageSize
?
1
:
0
,
memberSearchParamStr
:
"-1"
,
phoneNameCard
:
this
.
phoneNameCard
phoneNameCard
:
this
.
phoneNameCard
,
pageName
:
this
.
pageName
}).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
this
.
subStoreList
=
res
.
data
.
result
.
storeList
;
...
...
@@ -554,16 +557,17 @@ export default {
doFetch
(
url
.
updateStore
,
{
memberIds
:
this
.
selectAll
==
true
?
"-1"
:
memberIdsArr
.
join
(
","
),
remark
:
this
.
mainstoreForm
.
remark
,
isCurrent
:
this
.
selectAll
==
true
?
2
:
this
.
multipleList
.
length
==
this
.
page
.
pageSize
?
1
:
0
,
isCurrent
:
this
.
selectAll
==
true
?
2
:
this
.
multipleList
.
length
==
this
.
page
.
pageSize
?
1
:
0
,
optType
:
this
.
mainstoreForm
.
optType
,
mainOptType
:
this
.
mainstoreForm
.
mainOptType
,
mainStoreId
:
this
.
mainstoreForm
.
mainStoreId
,
memberSearchParamStr
:
this
.
selectAll
==
true
?
this
.
memberSearchStr
?
this
.
memberSearchStr
:
"-1"
:
""
,
phoneNameCard
:
this
.
phoneNameCard
phoneNameCard
:
this
.
phoneNameCard
,
pageName
:
this
.
pageName
})
.
then
(
res
=>
{
this
.
$refs
[
formName
].
resetFields
();
this
.
storeName
=
""
;
this
.
storeName
=
''
;
if
(
res
.
data
.
errorCode
===
0
)
{
checkSuccess
();
this
.
dialogMainstoreVisible
=
false
;
...
...
@@ -594,6 +598,8 @@ export default {
handleStore
()
{
if
(
this
.
mainstoreForm
.
mainOptType
==
4
)
{
this
.
showStoreDilog
=
true
;
this
.
storeName
=
'选择主门店'
;
this
.
storeNameVisible
=
true
;
}
if
(
this
.
mainstoreForm
.
mainOptType
!==
4
)
{
this
.
mainstoreForm
.
mainStoreId
=
""
;
...
...
@@ -607,7 +613,8 @@ export default {
if
(
Object
.
keys
(
val
).
length
>
0
)
{
if
(
this
.
batchValue
==
"mainstore"
)
{
this
.
mainstoreForm
.
mainStoreId
=
val
.
storeId
;
this
.
storeName
=
val
.
storeName
;
// this.storeName = val.storeName;
this
.
storeName
=
'选择主门店'
;
this
.
mainstoreForm
.
mainOptType
=
4
;
}
if
(
this
.
batchValue
==
"store"
)
{
...
...
@@ -872,7 +879,7 @@ export default {
if
(
this
.
$refs
.
mainstoreForm
)
{
this
.
$refs
.
mainstoreForm
.
resetFields
();
}
this
.
storeName
=
''
;
//
this.storeName = '';
return
;
}
else
if
(
this
.
batchValue
==
"store"
)
{
this
.
dialogSubStoreVisible
=
true
;
...
...
src/components/posmembers/posmembers.vue
View file @
92c09049
...
...
@@ -94,6 +94,16 @@
label=
"调整会员等级"
value=
"grade"
></el-option>
<el-option
key=
"mainstore"
label=
"修改主门店"
value=
"mainstore"
></el-option>
<el-option
key=
"store"
label=
"修改协管门店"
value=
"store"
></el-option>
</el-select>
<el-button
type=
"primary"
...
...
@@ -643,7 +653,7 @@
</el-dialog>
<!--批量调整会员等级-弹框-end-->
<!--修改主门店-弹框-->
<!--修改主门店-弹框-->
<el-dialog
title=
"修改主门店"
:visible
.
sync=
"dialogMainstoreVisible"
...
...
@@ -674,22 +684,15 @@
</p>
<p
class=
"lheigth40"
>
<el-radio
:label=
4
>
自定义主门店
</el-radio>
<span
class=
"member-store-name"
v-if=
"storeName"
@
click=
"changeStore"
>
{{storeName}}
</span>
</p>
</el-radio-group>
<p
style=
"line-height: 0;margin-left: 22px;"
v-if=
"storeName !== ''"
>
{{ storeName }}
<span
class=
"ml15 pointer"
@
click=
"changeStore"
>
修改
</span></p>
<p
style=
"line-height: 0;margin-left: 22px;"
v-else
><span
class=
"pointer"
@
click=
"changeStore"
>
点击选择主门店
</span></p>
</el-form-item>
<el-form-item
label=
"原因备注"
...
...
@@ -698,9 +701,11 @@
<el-input
type=
"textarea"
v-model=
"mainstoreForm.remark"
style=
"width: 400px;"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
...
...
@@ -708,7 +713,7 @@
<el-button
@
click=
"dialogMainstoreVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"('mainstoreForm')"
@
click=
"
submitMainStore
('mainstoreForm')"
>
确 定
</el-button>
</div>
</el-dialog>
...
...
@@ -726,7 +731,7 @@
:rules=
"storerules"
label-width=
"120px"
>
<p
class=
"ml15"
>
当前选择
20
个会员
</p>
<p
class=
"ml15"
>
当前选择
{{multipleList.length}}
个会员
</p>
<el-form-item
label=
"选择协管门店"
prop=
"subOptType"
...
...
@@ -744,7 +749,7 @@
@
click=
"changeStore"
>
选择门店
</span>
</el-radio>
<p
class=
"lheigth40"
>
<p>
<el-radio
@
change=
"changeSubStore"
:label=
2
...
...
@@ -837,6 +842,13 @@
</span>
</el-dialog>
<!--查看批量处理进度-弹框-end-->
<vue-gic-store
:projectName=
"projectName"
:showStoreDialog=
"showStoreDilog"
@
selectStore=
"selectStore"
:selectId=
"selectId"
></vue-gic-store>
</div>
</div>
<div
class=
"foot-add"
>
...
...
@@ -912,4 +924,13 @@ export default { ...posmembers };
width
:
1166px
;
}
}
.member-store-name
{
display
:
inline-block
;
vertical-align
:
middle
;
margin-left
:
40px
;
font-size
:
14px
;
color
:
#1890ff
;
cursor
:
pointer
;
}
</
style
>
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