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
4d964a5a
Commit
4d964a5a
authored
Nov 30, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
2c2f8609
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
132 additions
and
96 deletions
+132
-96
babyinfoDialog.vue
src/components/allCustomers/components/babyinfoDialog.vue
+12
-10
baseinfoDialog.vue
src/components/allCustomers/components/baseinfoDialog.vue
+30
-29
batchgradeDialog.vue
src/components/allCustomers/components/batchgradeDialog.vue
+12
-10
customergradeDialog.vue
...omponents/allCustomers/components/customergradeDialog.vue
+10
-8
customerlabelDialog.vue
...omponents/allCustomers/components/customerlabelDialog.vue
+8
-2
customermainstoreDialog.vue
...nents/allCustomers/components/customermainstoreDialog.vue
+16
-14
customersubstoreDialog.vue
...onents/allCustomers/components/customersubstoreDialog.vue
+13
-11
integralDialog.vue
src/components/allCustomers/components/integralDialog.vue
+7
-1
mainstoreDialog.vue
src/components/allCustomers/components/mainstoreDialog.vue
+7
-1
substoreDialog.vue
src/components/allCustomers/components/substoreDialog.vue
+8
-2
tableColumDialog.vue
src/components/allCustomers/components/tableColumDialog.vue
+9
-8
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+0
-0
No files found.
src/components/allCustomers/components/babyinfoDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"宝宝信息"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"宝宝信息"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"636px"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
v-for=
"(item,index) in fieldsList"
:key=
"index"
...
...
@@ -13,8 +13,8 @@
v-model=
"fieldsList[activeName].form.name"
style=
"width: 160px;"
></el-input>
</el-form-item>
<el-form-item
label=
"宝宝生日:"
prop=
"birthDay"
>
<el-date-picker
style=
"width: 160px;"
v-model=
"fieldsList[activeName].form.birthDay"
type=
"date"
></el-date-picker>
<el-date-picker
style=
"width: 160px;"
v-model=
"fieldsList[activeName].form.birthDay"
type=
"date"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"宝宝性别:"
prop=
"sex"
>
<el-select
v-model=
"fieldsList[activeName].form.sex"
style=
"width: 160px;"
>
...
...
@@ -58,17 +58,14 @@ export default {
},
data
()
{
return
{
visible
:
false
,
fieldsList
:
[],
activeName
:
'0'
};
},
methods
:
{
cancel
()
{
this
.
$emit
(
'update:dialogVisible'
,
false
);
},
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
n
)
{
const
filterObj
=
{
'宝宝名称'
:
'name'
,
...
...
@@ -93,7 +90,12 @@ export default {
this
.
fieldsList
=
JSON
.
parse
(
JSON
.
stringify
(
fieldList
));
}
}
}
},
methods
:
{
cancel
()
{
this
.
$emit
(
'update:dialogVisible'
,
false
);
},
},
};
</
script
>
...
...
src/components/allCustomers/components/baseinfoDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"编辑基本信息"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"编辑基本信息"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"133px"
>
<el-form-item
label=
"姓名:"
prop=
"memberName"
>
...
...
@@ -89,6 +89,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
memberId
:
''
,
memberName
:
''
,
...
...
@@ -111,6 +112,34 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
n
)
{
const
{
memberId
,
memberName
,
memberGender
,
memberBirthday
,
birthType
,
remark
,
phoneNumber
,
nationCode
}
=
this
.
baseInfo
;
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
memberName
,
memberGender
:
memberGender
||
''
,
memberBirthday
,
birthType
,
remark
,
phoneNumber
,
nationCode
:
nationCode
||
'86'
});
this
.
phoneNumber
=
phoneNumber
;
this
.
$refs
[
'form'
].
clearValidate
();
}
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -157,34 +186,6 @@ export default {
});
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
n
)
{
const
{
memberId
,
memberName
,
memberGender
,
memberBirthday
,
birthType
,
remark
,
phoneNumber
,
nationCode
}
=
this
.
baseInfo
;
console
.
log
(
memberId
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
memberName
,
memberGender
:
memberGender
?
memberGender
:
''
,
memberBirthday
,
birthType
,
remark
,
phoneNumber
,
nationCode
:
nationCode
||
'86'
});
this
.
phoneNumber
=
phoneNumber
;
this
.
$refs
[
'form'
].
clearValidate
();
}
}
}
};
</
script
>
...
...
src/components/allCustomers/components/batchgradeDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"批量修改等级"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"批量修改等级"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<div
class=
"checkedCustomers"
>
当前选中
<span
class=
"num"
>
{{
selectObj
.
selectAll
?
selectObj
.
totalCount
:
selectObj
.
multipleList
.
length
}}
</span>
位客户
...
...
@@ -58,6 +58,7 @@ export default {
type
:
Object
,
default
:
()
=>
{
return
{
visible
:
false
,
totalCount
:
0
,
selectAll
:
false
,
multipleList
:
[]
...
...
@@ -84,6 +85,16 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
n
)
{
if
(
this
.
showEditClique
)
{
this
.
form
.
isClique
=
1
;
}
}
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -125,15 +136,6 @@ export default {
});
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
n
)
{
if
(
this
.
showEditClique
)
{
this
.
form
.
isClique
=
1
;
}
}
}
}
};
</
script
>
...
...
src/components/allCustomers/components/customergradeDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"修改等级"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"修改等级"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"133px"
>
<el-form-item
label=
"调整后等级:"
prop=
"gradeId"
>
...
...
@@ -46,6 +46,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
memberId
:
''
,
gradeId
:
""
,
...
...
@@ -62,6 +63,14 @@ export default {
btnLoading
:
false
,
};
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
false
;
if
(
n
)
{
this
.
form
=
{
...
this
.
form
,
gradeId
:
this
.
gradeId
,
memberId
:
this
.
memberId
};
}
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -96,13 +105,6 @@ export default {
});
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
n
)
{
this
.
form
=
{
...
this
.
form
,
gradeId
:
this
.
gradeId
,
memberId
:
this
.
memberId
};
}
}
}
};
</
script
>
...
...
src/components/allCustomers/components/customerlabelDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"编辑手工标签"
custom-class=
"customer-dailog label-dailog"
:
visible
.
sync=
"dialogVisible"
:
close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-dialog
title=
"编辑手工标签"
custom-class=
"customer-dailog label-dailog"
:visible
.
sync=
"visible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-tabs
v-model=
"activeName"
>
<template
v-for=
"tab in tabsList"
>
<el-tab-pane
:label=
"tab.label"
:name=
"tab.name"
:key=
"tab"
...
...
@@ -71,6 +71,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
tabsList
:
[
{
name
:
'clerk'
,
label
:
'导购标签'
},
{
name
:
'other'
,
label
:
'其他标签'
},
...
...
@@ -90,6 +91,11 @@ export default {
created
()
{
this
.
getTagList
();
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
false
;
}
},
methods
:
{
cancel
()
{
this
.
$emit
(
'update:dialogVisible'
,
false
);
...
...
src/components/allCustomers/components/customermainstoreDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"修改服务门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"修改服务门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"133px"
>
<el-form-item
label=
"服务门店:"
prop=
"mainStoreId"
>
...
...
@@ -54,6 +54,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
mainStoreIdBak
:
''
,
// 修改前的服务门店id
mainStoreId
:
''
,
...
...
@@ -81,6 +82,20 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
n
)
{
const
{
memberId
,
mainStoreName
,
mainStoreId
,
mainClerkId
,
clerkInStore
}
=
this
.
obj
;
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
mainStoreId
,
mainClerkId
:
clerkInStore
===
0
?
''
:
mainClerkId
,
mainStoreIdBak
:
mainStoreId
});
if
(
mainStoreId
)
{
this
.
getMainStoreCodeName
(
mainStoreName
);
this
.
getClerckList
(
mainStoreId
,
true
);
}
// this.$nextTick(_=>this.$refs['form'].clearValidate())
}
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -146,19 +161,6 @@ export default {
});
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
n
)
{
const
{
memberId
,
mainStoreName
,
mainStoreId
,
mainClerkId
,
clerkInStore
}
=
this
.
obj
;
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
mainStoreId
,
mainClerkId
:
clerkInStore
===
0
?
''
:
mainClerkId
,
mainStoreIdBak
:
mainStoreId
});
if
(
mainStoreId
)
{
this
.
getMainStoreCodeName
(
mainStoreName
);
this
.
getClerckList
(
mainStoreId
,
true
);
}
// this.$nextTick(_=>this.$refs['form'].clearValidate())
}
}
}
};
</
script
>
...
...
src/components/allCustomers/components/customersubstoreDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"修改协管门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"修改协管门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"133px"
>
<el-form-item
label=
"协管门店:"
prop=
"fromSubStoreIds"
>
...
...
@@ -48,6 +48,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
memberId
:
''
,
subStoreIdsBak
:
''
,
// 修改前的协管门店id
...
...
@@ -77,6 +78,17 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
n
)
{
const
{
shopNames
,
memberId
}
=
this
.
obj
;
let
storeIds
=
shopNames
.
map
(
item
=>
item
.
storeId
);
this
.
subStoreList
=
[].
concat
(
shopNames
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
storeIds
,
subStoreIdsBak
:
storeIds
.
join
(
','
)
});
}
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -136,16 +148,6 @@ export default {
});
},
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
n
)
{
const
{
shopNames
,
memberId
}
=
this
.
obj
;
let
storeIds
=
shopNames
.
map
(
item
=>
item
.
storeId
);
this
.
subStoreList
=
[].
concat
(
shopNames
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
memberId
,
storeIds
,
subStoreIdsBak
:
storeIds
.
join
(
','
)
});
}
}
}
};
</
script
>
...
...
src/components/allCustomers/components/integralDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"批量调整积分"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"批量调整积分"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<div
class=
"checkedCustomers"
>
当前选中
<span
class=
"num"
>
{{
selectObj
.
selectAll
?
selectObj
.
totalCount
:
selectObj
.
multipleList
.
length
}}
</span>
位客户
...
...
@@ -74,6 +74,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
editType
:
1
,
accumulatPoints
:
0
,
...
...
@@ -99,6 +100,11 @@ export default {
storeList
:
[]
};
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
src/components/allCustomers/components/mainstoreDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"批量修改服务门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"批量修改服务门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<div
class=
"checkedCustomers"
>
当前选中
<span
class=
"num"
>
{{
selectObj
.
selectAll
?
selectObj
.
totalCount
:
selectObj
.
multipleList
.
length
}}
</span>
位客户
...
...
@@ -59,6 +59,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
remark
:
""
,
optType
:
1
,
// 1服务门店(主门店),2协管门店
...
...
@@ -81,6 +82,11 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
src/components/allCustomers/components/substoreDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"批量修改协管门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"批量修改协管门店"
custom-class=
"customer-dailog"
:visible
.
sync=
"
v
isible"
:close-on-click-modal=
"false"
@
close=
"cancel"
width=
"600px"
>
<div
class=
"checkedCustomers"
>
当前选中
<span
class=
"num"
>
{{
selectObj
.
selectAll
?
selectObj
.
totalCount
:
selectObj
.
multipleList
.
length
}}
</span>
位客户
...
...
@@ -71,6 +71,7 @@ export default {
},
data
()
{
return
{
visible
:
false
,
form
:
{
remark
:
""
,
optType
:
2
,
// 1服务门店(主门店),2协管门店
...
...
@@ -99,6 +100,11 @@ export default {
computed
:
{
...
mapState
([
"showEditClique"
])
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
}
},
methods
:
{
cancel
()
{
this
.
$refs
[
'form'
].
resetFields
();
...
...
@@ -159,7 +165,7 @@ export default {
})
.
catch
(
err
=>
{
checkStatus
(
err
);
}).
finally
(
_
=>
this
.
btnLoading
=
false
);
}).
finally
(
_
=>
this
.
btnLoading
=
false
);
}
else
{
return
false
;
}
...
...
src/components/allCustomers/components/tableColumDialog.vue
View file @
4d964a5a
<
template
>
<div>
<el-dialog
title=
"设置显示字段"
custom-class=
"table-colum-dailog"
:visible
.
sync=
"
dialogV
isible"
<el-dialog
title=
"设置显示字段"
custom-class=
"table-colum-dailog"
:visible
.
sync=
"
v
isible"
@
close=
"cancel"
width=
"600px"
>
<div
class=
"checkwtip mBottom10"
>
请选择您想显示的列表字段,最多勾选8个选项,已经勾选了
<span
class=
"curcheck"
>
{{
checkedFieldsCopy
.
length
}}
</span>
个
</div>
...
...
@@ -38,9 +38,17 @@ export default {
},
data
()
{
return
{
visible
:
false
,
checkedFieldsCopy
:
[]
};
},
watch
:
{
dialogVisible
(
n
,
o
)
{
this
.
visible
=
n
;
if
(
!!
n
)
this
.
checkedFieldsCopy
=
[].
concat
(
this
.
checkedFields
);
}
},
methods
:
{
submitFields
()
{
this
.
$emit
(
'update:dialogVisible'
,
false
);
...
...
@@ -52,13 +60,6 @@ export default {
}
},
watch
:
{
dialogVisible
(
n
,
o
)
{
if
(
!!
n
)
this
.
checkedFieldsCopy
=
[].
concat
(
this
.
checkedFields
);
}
}
};
</
script
>
...
...
src/components/allCustomers/customerDetail.vue
View file @
4d964a5a
This diff is collapsed.
Click to expand it.
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